Instruction list language
144
35015365.01 07/2008
Rules for running an instruction list program
Principle Running an instruction list program is done sequentially instruction by instruction.
The first instruction for an instruction sequence must always be an LD instruction,
i.e. an unconditional instruction (e.g.: JMP).
Each instruction (except for LD and unconditional instructions) uses the Boolean
result of the previous instruction.
Example 1 The program below describes the complete run of a sequence.
Example 2 The parentheses are used to modify the order that the Boolean results are taken into
account:
Example 3 Sequencing instructions can be modified by jump instructions JMP for calling up a
sub program.
LD %I1.1
result = status of bit %I1.1
AND %M0 result = AND of previous Boolean result and the status of bit %M0
OR %M10 result = OR of previous Boolean result and the status of bit %M10
ST %Q2.0 %Q2.0 has the status of the previous Boolean result
LD %I1.1 result = status of bit %I1.1
AND %M0 result = AND of previous Boolean result and the status of bit %M0
OR( %M10 result = status of bit %M10
AND %I1.2 result = AND of previous Boolean result and the status of bit %M10
)
ST %Q2.0 %Q2.0 has the status of the previous Boolean result
! LD %M0
JMPC %L10
! LD %I1.1
AND %M10
ST %Q2.0
! %L10:
LD %I1.3
AND %M20
......
Jump to label %L10 if %M0=1