Instruction List (IL) Language
The instruction list (IL)is an assembler-like IEC 61131-3 conformal programming language.
This language supports programming based on an accumulator. The 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 is available in the accumulator, from where you should store it with the ST instruction.
In order to program conditional executions or loops, IL supports both comparing operators such as EQ, GT, LT, GE, LE, NE and jumps. The latter can be unconditional (JMP) or conditional (JMPC / JMPCN). For conditional jumps, the value of the accumulator is referenced for TRUE or FALSE.
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, 1 or more operands separated by commas. You can extend the operator by a modifier.
In a line before an instruction, there can be an identification mark (label) followed by a colon (:) (ml: in the example shown below). A label can be the target of a jump instruction (JMPC m1 in the example shown below).
Place a comment as last element of a line.
You can insert empty lines between instructions.
LD BVar1
ST tonInst1.IN
CAL tonInst1(
PT:=t1,
ET=>tOut2)
LD toninst1.Q
JMPC mark1
ST tonInst2.IN
___________________________________________________________
markl:
LD iVar2
ADD 230
For further information, refer to: