2 instruction list (il), 1 operators and modifiers, Operators and modifiers – Lenze DDS v2.3 User Manual

Page 40: Drive plc developer studio

Advertising
background image

Drive PLC Developer Studio

Programming languages

4-2

l

DDS EN 2.3

4.2

Instruction list (IL)

An instruction list (IL) consists of a sequence of instructions.

•

Each instruction starts with a new line, contains an operator and - depending on the type of
operation - one or several comma-separated operands.

•

An instruction may be preceded by a jump label followed by a colon (;).

•

Additional comments can be entered.

•

Blank lines may be inserted between instructions.

•

All commands are saved in an accumulator where intermediate results and the result of the
last command are stored.

Example:

LD 17
ST lint (* comment *)
GE 5
JMPC next
LD idword
EQ istruct.sdword
STN test
next:

4.2.1

Operators and modifiers

The following operators and modifiers can be used in IL.

Modifiers

•

C: conditional for JMP, CAL, RET:
The instruction will only be carried out if the result of the preceding expression is TRUE.

•

N for JMPC, CALC, RETC:
The instruction will only be carried out if the result of the preceding expression is FALSE.

•

N otherwise
Negation of the operand (not of the accumulator).

Show/Hide Bookmarks

Advertising