bluffit
Member
Dear Forum reader,
I'm trying to connect my DirectLogic DL06 via Port 2 (RS485) using Modbus RTU to an RTU that reads PT100 sensors (CIT from Contrel). Attached is the comms manual for this device.
I've written a very simple ladder logic program to test it, but am struggling to see if it's actually working, or to get any data back.
I can step through the program, and see the states of SP116 and SP117 changing. However, I can't seem to specify the address of the slave correctly (the manual says read 8 x 2 byte registers starting from 0x0258 - see CIT manual attached), but I'm not sure how to specify the slave address in the RX command. It doesn't allow me add a K constant or O octal value?
Also, when I attempt to use the high bit of the LD command specifying the number of bytes to be read (i.e. set it to 8016) so I can change the Slave Function to diagnostic, nothing seems to work - i.e. it doesn't toggle the states of SP116 and SP117.
And as for the Master 'V' address to read the results, all I ever see is the first bit set.
Please forgive my lack of knowledge and newness to this field.
Attached are a screen dump of my simple ladder program, and the CIT Comms manual. Any help much appreciated.
I'm trying to connect my DirectLogic DL06 via Port 2 (RS485) using Modbus RTU to an RTU that reads PT100 sensors (CIT from Contrel). Attached is the comms manual for this device.
I've written a very simple ladder logic program to test it, but am struggling to see if it's actually working, or to get any data back.
I can step through the program, and see the states of SP116 and SP117 changing. However, I can't seem to specify the address of the slave correctly (the manual says read 8 x 2 byte registers starting from 0x0258 - see CIT manual attached), but I'm not sure how to specify the slave address in the RX command. It doesn't allow me add a K constant or O octal value?
Also, when I attempt to use the high bit of the LD command specifying the number of bytes to be read (i.e. set it to 8016) so I can change the Slave Function to diagnostic, nothing seems to work - i.e. it doesn't toggle the states of SP116 and SP117.
And as for the Master 'V' address to read the results, all I ever see is the first bit set.
Please forgive my lack of knowledge and newness to this field.
Attached are a screen dump of my simple ladder program, and the CIT Comms manual. Any help much appreciated.