5238-E P-318
SECTION 13 SCHEDULE PROGRAMS
3.
Branch Block
The branching function of the schedule program, which is identical to SECTION 13, "Control
Statement Function 1", is made possible by GOTO and IF blocks, which provide unconditional
branching and conditional branching, respectively.
GOTO Block
[Function]
The GOTO block unconditionally changes program sequences. The destination of a jump is
specified using a sequence name immediately after the GOTO command.
[Programming format]
Commands must be specified in the following order:
LE33013R0301500030001
IF Block
[Function]
The IF block conditionally changes program sequences. If the condition is ’true’, the sequence
branches to the destination of a jump. If the condition is ’false’, it proceeds to the next stop.
[Programming format]
Commands must be specified in the following order:
LE33013R0301500030002
4.
Variables Setting Block
[Function]
’VSET’ must be specified to set variables using the schedule program.
[Programming format]
Commands must be specified in the following order:
LE33013R0301500040001
Variable in the left part : Specify a common, system, or output variable. If any other variable is
specified in the left part, an alarm will occur.
Right part
: An alarm will occur if an output variable is specified.
GOTO N
Specifies the destination of a jump
IF [
]
N
Specifies the destination of a jump
Expression
Comparison operator
Expression
The comparison operators include LT (<), LE (
≤
), EQ (=), NE (
≠
), GE (
≥
), GT (>). For details,
see SECTION 13 "Arithmetic Operation Function 1".
VSET =
=
Variable
Variable
Expression
Expression