LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to connect MODBUS 485 without using virtual com port?

Solved!
Go to solution

I am trying to do serial 485 communication via ethernet using adam 4571.
For ASCII communication, you can change the setting of adam 4571 to connect without using virtual com port.
However, in the case of Modbus communication, communication connection is not possible without using Virtual Com port.
Of course, it is possible to connect the serial communication line directly to the PC, but it is not possible to install the serial communication line due to the distance from the PC and noise caused by the power line.
If you know how to connect Modbus without using Virtual Com port, please let me know.

0 Kudos
Message 1 of 9
(3,525 Views)
Solution
Accepted by RevolutionKwon

Why don't you want a virtual com port?

 

This reason is rather important to find a solution.

 

For instance, you won't need a virtual com port if you use a TCP\IP to RS485 converter, like a Moxa.

 

You could of course also use a RS232 to RS485 converter, and use a real COM port...

Message 2 of 9
(3,500 Views)

Hi Kwon,

 


@RevolutionKwon wrote:

For ASCII communication, you can change the setting of adam 4571 to connect without using virtual com port.
However, in the case of Modbus communication, communication connection is not possible without using Virtual Com port.


As you are not using ASCII mode communication you need to use the virtual COM port created by the ADAM driver.

So why don't you want to use that?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 9
(3,499 Views)

In case of using Virtual Com port, if the power of ADAM is cut off due to power failure during communication, the Labview program stops and the computer freezes.

0 Kudos
Message 4 of 9
(3,449 Views)

Hi

In case of using Virtual Com port, if the power of ADAM is cut off due to power failure during communication, the Labview program stops and the computer freezes.

0 Kudos
Message 5 of 9
(3,448 Views)

No need to duplicate the message.

 

Does it outright freeze?  Or do you get an error message that causes it to no longer execute properly, and that if you handled that error you could allow the program to recover.

Message 6 of 9
(3,434 Views)

It stops completely.

0 Kudos
Message 7 of 9
(3,411 Views)

Hi Kwon,

 


@RevolutionKwon wrote:

It stops completely.


How does it stop "completely"? Due to (inefficient) error handling? Due to BSOD?

Mind to attach your VI? How did you implement the serial communication with ADAM?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 9
(3,401 Views)

When I checked the converter of MOXA, I confirmed that using ADAM 4572, MODBUS TCP communication is possible without using virtual comfort.
Thank you.

0 Kudos
Message 9 of 9
(3,392 Views)