LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MOXA, RS-485, ModBus RTU

Then it's not a LabVIEW issue.

You have to sort out your issues with communication.

Can you provide a print screen of a communication settings from Performance Analyzer tool?

 



0 Kudos
Message 11 of 52
(2,010 Views)

I hope I understand you correctly )

0 Kudos
Message 12 of 52
(2,005 Views)

It looks like the tool you are using is just for RS-485 com, not Modbus.

Try to use MODSCAN. It will allow you to poll for Modbus registers.

You can download eval version here: https://www.win-tech.com/html/demos.htm

 



0 Kudos
Message 13 of 52
(1,994 Views)

 I tried to configure Modscan itself, but I still get a Modbus Message Timeout error.

Could you explain to me how to properly configure the connection in modscan? Please  )

 

0 Kudos
Message 14 of 52
(1,985 Views)

You need to configure two things:

1. Communication parameters:

Modscan1.PNG

Where you need to configure BaudRate, Word Length, Parity, Stop Bits and COM port.

 

2. Modbus Settings

Modscan2.PNG

Where you need to configure Modbus Registers.

MODSCAN address is your regular address + 1. So if you want to read register 18 you need to type 19 to the Address field.

Be sure that Device ID matches your device's Unit ID.

Length should be set to 1 and 03: Holding Registers set.

 

Check if it works.

If not, check you cabling, device or anything in between...



0 Kudos
Message 15 of 52
(1,972 Views)

Thank you! as I will check I will unsubscribe to you, but most likely on Monday.

0 Kudos
Message 16 of 52
(1,955 Views)

I can not configure through modscan, I do not understand where to get the id of my device. I tried to contact again via modbus poll (the result in the picture). as a result : the modbus poll contacted only device I didn't figure out which one as there are 5 pieces and they soedeniny consistently.

0 Kudos
Message 17 of 52
(1,945 Views)

It looks like the communication works fine.

The ID of the device is 1.

The picture you sent states that Baudrate is 57600 not 9600 what you said earlier.

 

Try your LabVIEW code now with he same communication parameters you used in Modbus Poll tool.

Port: 4
BaudRate: 57600

UnitID: 1

Parity: Even

StopBit: 1

 



0 Kudos
Message 18 of 52
(1,937 Views)

I changed new master series to new master slave and as a result the error at the end of the program disappeared, but remained at the beginning )

0 Kudos
Message 19 of 52
(1,923 Views)

You cannot use Modbus Slave, since you are the Master. Your device is a Slave.

 

Try to create simple code as attached below:

Modbus.png



0 Kudos
Message 20 of 52
(1,917 Views)