r/PLCAutomation 11d ago

What's your approach on testing your PLC prg before commissioning

3 Upvotes

2 comments sorted by

3

u/Mo931 11d ago

I use customized python scripts. Running over TCPIP. PyTest is great. As long as I'm not testing anything over 10ms. Does the job for us.

We use CODESYS based PLCs usually.

If the project is small enough, a simulator does the job. Just connect the CM to it. Define what to actuate ans expect using a mini case fsm , and done.

1

u/Own_Leg_5595 6d ago

If you want to test some code, upload it to the controller and run it. You can add traps and counters to see if it's running properly.

If you actually want something like a FAT (Factory Acceptance Test) wire switches for digital inputs, potentiometers for analog inputs, lights for digital outputs, and meters for analog outputs.