PROGRAMS

The PLC has a list of ’Main Tasks’ that contain the main program(s) run each scan of the PLC. Additional programs can be created that are called as subroutines. Valid program types include Ladder Logic, Structured Text, Sequential Function Charts, and Function Block Diagrams.

Program files can also be created for ’Power-Up Handling’ and ’Controller Faults’. The power-up programs are used to initialize the controller on the first scan. In previous chapters this was done in the main program using the ’S:FS’ bit. Fault programs are used to respond to specific failures or issues that may lead to failure of the control system. Normally these programs are used to recover from minor failures, or shut down a system safely.