A Program is a sequence of statements executed in order. You can execute a Program in one of two ways:
A Program uses this syntax:
program ::=
PROGRAM program-name
{ variable-declaration }
[ program-code ]
END_PROGRAM
program-code ::= [ structured-text | sequential-function-chart | instruction-list ]
Where:
Use any of the following for the program-code:
A Program can reference other Functions and Function_Blocks.
Var_Global (* Global variable storing total current *) PumpStationCurrent : LREAL; End_Var Program CalcTotalCurrent (* Calculate total current and store in a global variable *) PumpStationCurrent := %"PumpStation.Motor1Current" + %"PumpStation.Motor2Current" + %"PumpStation.Motor3Current"; End_Program
IEC 61131-3 Second Edition: Table 39.
IEC 61131-3 Third Edition: Table 47.
To learn about other program units.
To learn about variable declarations.
To learn about Structured Text.
To learn about Sequential Function Charts.
To learn about Instruction List.
For the meaning of terms used in Fernhill SCADA.