2023 2024 Student Forum > Management Forum > Main Forum

 
  #2  
19th March 2016, 01:05 PM
Super Moderator
 
Join Date: May 2012
Re: IFIX Modbus RTU

Most Modbus/TCP devices use the slave’s IP address, not the slave node’s ID address like Modbus RTU requires, but some early vintage PLC firmware does “Modbus RTU over Ethernet”, which requires the slave node address to be configured and working.

The software ordinarily calculates the CRC bytes.

The actual Modbus message frame looks like this:



The Modbus message starts counting at zero. Your decimal registers are likely one-offset from zero.
(3)0000 = register 0001
(3)0001 = register 0002
(3)0098 = register 0099
(3)0099 = register 0100
(3)0100 = register 0101
(3)0101 = register 0102
(3)0200 = register 0201

(3)0101 = register 0102 = 0066 hex
(3)0200 = register 0201 = 00C9 hex

Quantity of 100 input registers = 0064 hex

For Slave address 02, the Modbus RTU message would be

You can use a generic Windows Modbus master with the correct hardware connections, to test the connection as well as the functionality of the Modbus slave, presumably the PLC. This is a very good way to test that the slave is setup the way one thinks it is.


Quick Reply
Your Username: Click here to log in

Message:
Options




All times are GMT +5. The time now is 10:07 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
SEO by vBSEO 3.6.0 PL2

1 2 3 4