M221 serial line stuck (stress test)

Paulo Balbino

Member
Join Date
Feb 2023
Location
Abu Dhabi
Posts
7
Hi,

I am using M221 reading from 3 different sensors (modbus rs485) sharing same bus (daisy chain). I am currently using READ_VAR (in total about 9 of them) sequentially which means when one finishes DONE triggers EXECUTE of the next one. Everything seems ok the problem is one of the scenarios we need to test (as part of the pre commissioning testing plan) is negative test cases for example adding "noise": parity errors, drop of frames, insert/remove out extra characters to the frame, ignore requests, delay responses.

PLC/Ladder is properly able to handle the scenario where the requests are ignored (sensor disconnected) and when the response is delayed. But when we test introducing parity errors (CRC) or any other simulation that actually corrupts the frame, after some time (5 min to 10 min) the READ_VAR blocks get stuck and the only way to properly get the communication back is to restart the PLC.

After getting "stuck" every new read attempt on any READ_VAR (EXECUTE to 1) fails (ERROR to 1) with the following error codes:


CommError: 255

OperError: 6


How do we perform this tests?
PLC connected to a computer (using a Rs485 to usb converter), and computer running a modbus simulator.
Then configure the fault simulation (ModRSsim2)

Did you guys know about any known issue on READ_VAR communication block? I would expect it to fail during the test, but after fault simulation is stopped I would expect it to be able to read properly. READ_VARs are getting stuck.

See attachments for more info.

Thanks,
Paulo
 

Attachments

  • Image3.png
    Image3.png
    64.1 KB · Views: 4
  • Image2.png
    Image2.png
    257.9 KB · Views: 4
  • Image1.png
    Image1.png
    55.6 KB · Views: 4

Similar Topics

I am using a M221 PLC (TM221CE24R) which provides me 1 Rs485 port, which I am already using to communicate with a sensor (Rs485/Modbus). My...
Replies
1
Views
747
Hello new user here seeking some guidance. I have been given the task of polling data from a modbus slave (Thermo 43i Analyzer) using RS-232...
Replies
2
Views
1,684
Hello I am using a Schneider M221 plc I want to get TTL to work on the plc. I have a TTL to RS232 converter and have wired it correctly to the...
Replies
4
Views
4,942
Hello, I need to access the bits from the fire system control panel through RS-485. So, I used Read Var block to read from the panel...
Replies
0
Views
190
Hi, I am stuck with these SE cartridges, I am trying to add a second serial port rs485 to a M221 PLC. What is the difference between TMC2CONV01...
Replies
1
Views
118
Back
Top Bottom