I have a ConnectPort X4 and a RS-485 Adapter with 2 current sensors connected.
I made what says this tutorial (Modbus Bridge on CPX4) but I don’t know what to do next.
I tried to create a socket to send and get the Modbus requests and responses but it seen it is not working.
How I can collect data from the sensor with a python script?
I wrote python code for other project that get the data by rci and send it to a server and a Dia application that show the sensor data on the web, but the serial adapter has no Dia support.
Thanks for your help.
The trace from the CPX4 is this:
3844515:ia:INFO:mbtcp:m01 recv req 677
3844515:ia:DEBG: 19 00 00 00 00 06 65 04 00 00 00 0A
3844518:ia:INFO:mbtcp:s00 send req 677
3844518:ia:DEBG: F2 6E 00 00 00 06 65 04 00 00 00 0A
3845518:ia:WARN:mbtcp:s00 slave timeout error
3845520:ia:DEBG:mbtcp:m01 suppress error resp per config
It seems that I can not connect with the sensor through the modbus/TCP conexion. I`m using ModScan32 to do the tests.
I tested all wires conexion and combinations (sensor don’t tell what pin is A or B ) to discard hardware problems.