Instruction list - il, L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual

Page 682

Advertising
background image

L-force | PLC Designer

General Editors

680

DMS 4.1 EN 03/2011 TD29

The FBD/LD/IL Editor is provided by the 'Network List Editor'-plug-in.

Abb. 369 Example of a Ladder Diagram network

Instruction List - IL
The Instruction List is an assembler-like IEC 61131-3 conformal programming
language.
This language supports programming based on an accumulator. All IEC 61131-3
operators are supported as well as multiple inputs / multiple outputs, negations,
comments, set / reset of outputs and unconditional / conditional jumps.
Each instruction is primarily based on the loading of values into the accumulator by
using the LD operator. After that the operation is executed with the first parameter
taken out of the accumulator. The result of the operation again is available in the
accumulator, from where the user should store it with the ST instruction.
In order to program conditional executions or loops IL supports both comparing
operators like EQ, GT, LT, GE, LE, NE and jumps. The latter can be unconditional (JMP) or
conditional (JMPC / JMPCN). For conditional jumps the accumulator's value is checked
on TRUE or FALSE.

Syntax:
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. The operator might be
extended by a modifier.
In a line before an instruction there can be an identification mark (label) followed by a
colon (:), for example "ml:" in the example shown below. A label can be the target of a
jump instruction, for example "JMPC next" in the example shown below.
A comment must be placed as last element of a line.
Empty lines can be inserted between instructions.

Advertising