Hi everyone! Been having a problem thats been stumping me for a while now regarding a build we're doing.
We've set up a Siemens S700 PLC to run a system that has inputs from some sensors (throughbeam style sensors).
From a high-level point of view when the user croses a throughbeam sensor, a light will turn on.
Logic wise, whats actually happening is the PLC is connected to a windows based PC with a python script. The PC acts as the conductor of this orchestra. When the throughbeam sensor is tripped, the PLC sends a message to the PC saying that specific sensor is tripped. The PC will then send a message to the PLC to turn on the light which the PLC then does so.
Right now we've noticed a very significant lag in the communication between the PC and the PLC. If someone dashes past the throughbeam, even though the PLC actually detected the trigger (visible via the physical input led on the PLC), the message doesnt actually get sent to the PC. If someone slowly walks past the sensor (triggered for longer), then the PC gets the message. We tested the communication with a Modbus Sim and can see the lag on it too so i dont believe it is the python script.
I believe its something to do with with the comms between the PLC and the PC but cant figure out whats causing it. We're using a Cat5 cable to connect the PC to the PLC as well so im not sure what else could be the cause. If anyone has any ideas, im all ears! Thanks a lot in advance!
We've set up a Siemens S700 PLC to run a system that has inputs from some sensors (throughbeam style sensors).
From a high-level point of view when the user croses a throughbeam sensor, a light will turn on.
Logic wise, whats actually happening is the PLC is connected to a windows based PC with a python script. The PC acts as the conductor of this orchestra. When the throughbeam sensor is tripped, the PLC sends a message to the PC saying that specific sensor is tripped. The PC will then send a message to the PLC to turn on the light which the PLC then does so.
Right now we've noticed a very significant lag in the communication between the PC and the PLC. If someone dashes past the throughbeam, even though the PLC actually detected the trigger (visible via the physical input led on the PLC), the message doesnt actually get sent to the PC. If someone slowly walks past the sensor (triggered for longer), then the PC gets the message. We tested the communication with a Modbus Sim and can see the lag on it too so i dont believe it is the python script.
I believe its something to do with with the comms between the PLC and the PC but cant figure out whats causing it. We're using a Cat5 cable to connect the PC to the PLC as well so im not sure what else could be the cause. If anyone has any ideas, im all ears! Thanks a lot in advance!
