1/11/2023 9:42 AM | |
Joined: 8/5/2022 Last visit: 5/6/2023 Posts: 4 Rating: (0) |
Hi, Thank you for the reply. I was using https://www.modbustools.com/modbus_slave.html as modbus slave simulation. I apologize if my discription is not cleared. My setup is: iot2050 connects to my laptop via port X1-P1. I access the node-red browser on iot2050 from my laptop and create the flow as shown in the post. iot2050 ip is 192.168.200.1, my laptop ethernet port ip is 192.168.200.5, and i was able to ping to my laptop from iot2050 console normally. On my laptop, the modbus slave simulation has connection infomation as followed: Modbus TCP/IP, TCP/IP Server ip 192.168.200.5, port 502. I have prepared some data on the modbus slave. I want to use the modbus-flex-getter node to poll the data from the modbus slave. However, I did not see any data shown in modbus response node, and the modbus-flex-getter node show error message: Error: Client Not Ready To Read At State init. My understanding of modbus is low so I think iot2050 should be the modbus master, but I don't know what role is my laptop in the setup, I thought it should only be the medium of some sort. I think the problem lies in my setup rather than node-red but I dont know how to verify my guess and find the problem. Do you have any suggestions ? |
Last edited by: VPNVu0234 at: 01/11/2023 09:57:15 |
|
1/13/2023 7:31 AM | |
Joined: 4/28/2015 Last visit: 11/5/2024 Posts: 3345 Rating: (379)
|
Hi, when you want to read data with the IOT2050, your IOT2050 is the client and you need to read data from a server. But maybe this software can also act as server, I don't really get it. I used ModRSSim as Server some time ago and that worked. Somehow I can't make it work at the moment. Have you already tried to use the Modbus Read node instead of the gatter? This also has a poll function. And did you open the port 502 on your PC? Best regards! |
Not working for IOT2050 support anymore from March 1st, 2024. |
|
1/17/2023 7:43 AM | |
Joined: 4/28/2015 Last visit: 11/5/2024 Posts: 3345 Rating: (379)
|
Hi, we will try also some things. Here is an instruction how to open a port in the Windows firewall. EDIT: We used the software pyModSlave and it worked. We were able to read data with the Modbus read node. Best regards! |
Last edited by: bergmanu at: 01/17/2023 10:10:22Not working for IOT2050 support anymore from March 1st, 2024. |
|
Follow us on