SAIA PCD1 connected via MODBUS to iFix 5.5

Janez68

Member
Join Date
Dec 2014
Location
Kranj
Posts
5
I have a PLC SAIA PCD1. I would like to connect to the iFix 5.5 via MBE Modbus Ethernet v7.xx I/O driver.



I would like to read Multiple Registers in PLC address 101 - 200.

What command should write?

For example 30101 to 30200.

thanks for the help
 
The 3xxxx registers are addressed using the 04 “read input registers” Modbus function code.

30101 to 30200 is 100 registers. You usually tell the software how many registers it needs to read in one message, but there’s no guarantee of that.

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



02 04 00 66 00 64 CD 11 (CRC error)

(I can't format the bytes to line up with the windows in the query image, sorry)
(I forget which byte is the leading byte in the error check field)

I have no idea how your particular software constructs a Modbus command. You need to refer to your Modbus master documentation for that.

You can use a generic Windows Modbus master with the correct hardware connections, to test the connection and functionality of the Modbus slave, presumably the PLC. (both master and slave have to be on the same Ethernet subnet to talk to one another). This is a good way to test that the slave is setup the way you think it is.

A free Modbus Master utility is available at
http://www.icpdas-usa.com/documents/modbus/modbus_master_tool.zip
 

Similar Topics

Would anyone know what software is needed to program a SAIA PCD1 controller? Or know where to find it online?
Replies
1
Views
182
Questions about an old SAIA PLC type PLC is PCD4 - board RS422 (PCD7.F110) We sold a HMI to replace one but our HMI doesn´t communicate with the...
Replies
0
Views
1,100
Hi there. I am trying to read time of day from a Modbus register in SAIA PCD3 however I have limited data about the point. It should be read as...
Replies
5
Views
2,426
Good morning. I have SAIA PCD4 PLC system (kindly see the attached photo). I need to upload the program to be a backup in case of any...
Replies
5
Views
3,728
hi, i have a machine with SAIA model number PCD2.M5540. Recently i am facing issue regarding the run and stop mode. i tried setting the plc to...
Replies
2
Views
1,849
Back
Top Bottom