Codesys 3.5 'First Scan' variable? WAGO PLC 'Run & Stop Switch' variable?

Hello,

Is there a “first scan” system variable available in Codesys 3.5?

Also, looking for a WAGO system variable for monitoring the run and stop switch on the PLC.

Thanks,

1 Like

Hi Jacob,

  1. Yes, you can setup systemevents in the taskconfiguration:
    image

  2. You cannot read the plc-switch directly in the codesys programm. Because it will be stopped.
    But you choose a systemevent, for example PrepareStop or StopDone, where you can set you plc-variable.
    image

Best Regards
Michael

1 Like