Modbus TCP/IP
Posted: 26 Jul 2019, 09:59
Hi,
I am currently trying to send my safety controller data via the virtual outputs which is via the Modbus TCP/IP. I would like to read the data from my safety controller. Basically the Rev Pi Core 3 is my master and the safety controller is my slave. For the safety controller the addressing starts at “0”. I followed the tutorial on how to use RevPi Core as Modbus TCP Master. But still cant get the readings. I am not sure which part i have done wrong. I am not quite sure about the address part.
Basically below would be the steps i have done:
1) Enabling the modbus tcp master under the services tab.
2) Adding the modbus tcp master in pictory and also putting in my slave ip address. Both ip addresses are in the same network.
3) Right clicking the modbus tcp master and clicking extended data. below attached has an image. (This is the part i am not sure if i did correctly.)
4) I also use the command "piTest -d" to check if the modbus tcp master has been configured and save in the pictory. It has no issues here.
Ok so below attached are my safety controller Modbus TCP/IP operating manual images.
I would need some help here as my knowledge on Modbus TCP/IP is quite low.
I decided to use the function code read discrete inputs as i am using just to read the data in bits format from the slave. I am not sure if this is correct. But based on the operating manual of the safety controller i used that function code. So once again my safety controller addressing starts from 0. So must i use the virtual output bit 1 in my safety controller software?
And also please tell me the command to make sure i can see the bit 1 when activated. is this command correct, "piTest -r Input_Bit_1" ?
I am currently trying to send my safety controller data via the virtual outputs which is via the Modbus TCP/IP. I would like to read the data from my safety controller. Basically the Rev Pi Core 3 is my master and the safety controller is my slave. For the safety controller the addressing starts at “0”. I followed the tutorial on how to use RevPi Core as Modbus TCP Master. But still cant get the readings. I am not sure which part i have done wrong. I am not quite sure about the address part.
Basically below would be the steps i have done:
1) Enabling the modbus tcp master under the services tab.
2) Adding the modbus tcp master in pictory and also putting in my slave ip address. Both ip addresses are in the same network.
3) Right clicking the modbus tcp master and clicking extended data. below attached has an image. (This is the part i am not sure if i did correctly.)
4) I also use the command "piTest -d" to check if the modbus tcp master has been configured and save in the pictory. It has no issues here.
Ok so below attached are my safety controller Modbus TCP/IP operating manual images.
I would need some help here as my knowledge on Modbus TCP/IP is quite low.
I decided to use the function code read discrete inputs as i am using just to read the data in bits format from the slave. I am not sure if this is correct. But based on the operating manual of the safety controller i used that function code. So once again my safety controller addressing starts from 0. So must i use the virtual output bit 1 in my safety controller software?
And also please tell me the command to make sure i can see the bit 1 when activated. is this command correct, "piTest -r Input_Bit_1" ?