8.2.2
Calling a Subroutine
A subroutine invoked in the program is using a CALL instruction. Up to 64 subroutine
block declarations and 64 CALL instructions are allowed for each block in the program.
%I0004
%Q0001
%I0006
%I0003
%Q0010
CALL subroutine
%I0010
8.3
Program Languages
Programs can be created in Ladder Diagram or Instruction List format. The main program
or subroutines within the program can also be created in Sequential Function Chart
format. The PLC programming software can be used to create both types of logic.
8.3.1
Sequential Function Chart
Sequential Function Chart (SFC) is a graphic method of representing the functions of a
sequential automated system as a sequence of steps and transitions. Each step represents
commands or actions that are either active or inactive.
The flow of control passes from one step to the next through a conditional transition that
is either true (1) or false (0). If the transition condition is true (1), control passes from the
current step (which becomes inactive) to the next step, which then becomes active.
The logic associated with a step is executed when the step is active. This logic is
programmed in Ladder Diagram format. The transitions between steps are also
programmed as Ladder Diagram logic.
Step 2
Step 3
Step 1
Transition 2
Transition 1
Trans1
Trans2
Elements of an Application Program
GFK-1503E User Manual 105
For public disclosure
Summary of Contents for VersaMax PLC
Page 16: ...Notes 16 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 38: ...Notes 38 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 50: ...Notes 50 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 92: ...Notes 92 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 112: ...Notes 112 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 224: ...Notes 224 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 292: ...Notes 292 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 316: ...Notes 316 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 317: ......