9/13/2005
Programming the SMLC
82
CoDeSys - Adding an EveryScan action
•
In most programs there are a few things we
will want to do on every scan of the logic
regardless of the machine state. Reading
axis position and velocity are examples.
•
We could put this code in our ErrorCheck
action but to keeps things clean lets add
another action that runs every scan.
•
Right click on PLC_PRG and select
Add Action.
•
Call the new action EveryScan and
set the language to LD.