Home/Support/Support Forum/How to read modbus data from RS-485 Adapter
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

How to read modbus data from RS-485 Adapter

0 votes
Hello,

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.
asked May 9, 2013 in Modbus and Industrial Automation by sergiojgl New to the Community (1 point)
edited May 10, 2013 by sergiojgl

Please log in or register to answer this question.

1 Answer

0 votes
More information:

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
3844516:ia:DEBG:rte[0]: return[20]
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.
answered May 10, 2013 by sergiojgl New to the Community (1 point)
...