IX10 - Python script not working

We have several python scripts running on IX10. Everything worked fine till firmware version 24.9.79.161.
Once we upgrade the modem to a newer firmware version communication part with PLC (Modbus) seems to stuck.

Depending on what version of firmware you are coming from prior, it is very possible that the version of Python has changed from what was included in the older version of firmware to what is included in 24.9.79.161 (it has yet changed again to a newer version in more recent releases).

You will likely need to run your code in a debug mode to see where the errors are occurring, and make changes to the code for the more recent version of Python.

I checked the code… it seems to be a problem with Modbus. Socket connection doesn’t work anymore on port 502. Communication on other ports seems to work fine.

Thanks .

How exactly is your port 502 setup?

If it’s setup as a standard TCP socket (where the serial mode is Remote access TCP within the serial port settings, and the TCP connection section within is enabled and setup as Raw TCP connection) then that setup is working for my IX10 running the same system firmware as yours, i.e. I can open the respective port (which is 4001 by default, but I changed it to 502).

Or are you doing this via the Modbus gateway within the Services area of the config?

Setup:

  • PLC and modem are connected with an ethernet cable
  • PLC has a static IP
  • the python script is launched at modem startup.

Problem:
The script open a TCP/IP socket against a PLC port 502. Connect sequence seems to hang. Is it possible that port 502 to be blocked by a firewall?!

A similar script with another PLC using CIP protocol(port 44818) works fine with a newer firmware.
This setup worked fine on IX10 and WR21 modems(more than 5+ years).