Instruction list (il), Modifiers and operators in il, L-force | plc designer – Lenze PLC Designer PLC Designer (R2-x) User Manual
Page 51

L-force | PLC Designer
What is What in PLC Designer
DMS 3.2 EN 02/2011 TD29
49
4.2.1
Instruction List (IL)...
An instruction list (IL) consists of a series of instructions. Each instruction begins in a
new line and contains an operator and, depending on the type of operation, one or
more operands separated by commas.
In front of an instruction there can be an identification mark (label) followed by a
colon (:).
A comment must be the last element in a line. Empty lines can be inserted between
instructions.
Example:
LD 17
ST lint (* Kommentar *)
GE 5
JMPC next
LD idword
EQ istruct.sdword
STN test
next:
Modifiers and operators in IL
In the IL language the following operators and modifiers can be used.
Modifiers:
• C
with JMP, CAL, RET:
The instruction is only then executed if the result of the
preceding expression is TRUE.
• N
with JMPC, CALC, RETC:
The instruction is only then executed if the result of the
preceding expression is FALSE.
• N
otherwise:
Negation of the operand (not of the accumulator)