Industrial Communications

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Modbus Protocol for Serial Communications

Solved!
Go to solution

Hello everyone,

 

I am trying to create a LabVIEW vi using Modbus protocol to pull data from a CryoMech compressor (from COM2 using an RS-485 connection, user manual is attached). The wires are then connected to an EVC8024 USB to Serial Converter (using COMN3 for the RS-485). The code I've created so far allows me to send commands to the compressor (such as the start and stop command). But I am unable to pull data from the compressor with the Modbus protocol. When I try to pull data via the Modus protocol, I only get one element and its value isn't anything that I would be expecting. I'm not sure why.

 

CryoMech also provided a Python file for pulling data from the compressor via Modbus protocol in case anyone needs more detail on how the data is pulled from the compressor.

 

This is my first time using LabVIEW's Modbus protocol and posting on a LabVIEW forum, so please be patient with me. 

0 Kudos
Message 1 of 3
(100 Views)
Solution
Accepted by topic author markus36

Hi there,

 

With all things being equal, have you tried the use the python script?  If it doesn't work, then you know that it's not a LabVIEW problem, but a general RS-485 modbus problem.  If it works, then you'll have a working reference.  Just make sure you are executing the actions in LabVIEW as in the python script, and you should be good.

BR

John

 

Add motion to LabVIEW in 30min or less - TENET EMotion
Finding it hard to source legacy NI hardware? Try Extend Test

0 Kudos
Message 2 of 3
(42 Views)

From what I've seen with the RS-485 to USB converter it seems like there might be an issue with the hardware. It's not a software problem as the Python script also had trouble with getting a status from the compressor. Thanks for your help, John.

0 Kudos
Message 3 of 3
(9 Views)