3-2 The LD, LDI, AND, ANI, OR, ORI, INV, OUT and END Instructions
LD
(LOAD)
LDI
(LOAD INVERSE)
AND
(AND)
ANI
(AND INVERSE)
OR
(OR)
ORI
(OR INVERSE)
INV
(INVERSE)
OUT
(OUT)
Y0
END
(END)
END
END
LD X20
OR Y20
AND
X21
OUT Y20
LDI
X22
ORI
Y21
ANI X23
OUT
LD
Y21
INV
OUT
X24
Y22
X20 X21
Y20
Y21
Y22
Y20
X22
Y21
X24
X23
END
81
Mnemonic Devices Function
X, Y, M, S, T, C, D.b, R.b
X, Y, M, S, T, C, D.b, R.b
X, Y, M, S, T, C, D.b, R.b
X, Y, M, S, T, C, D.b, R.b
X, Y, M, S, T, C, D.b, R.b
X, Y, M, S, T, C, D.b, R.b
Y, M, S, T, C, D.b, R.b
Force the current program scan to end
Ladder Diagram
Instruction List
Initial logical operation contact type NO (Normally Open)
Parallel connection of NO (Normally Open) contact
Serial connection of NO (Normally Open) contact
Final logical operation type coil drive
Initial logical operation contact type NC (Normally Closed)
Parallel connection of NC (Normally Closed) contact
Serial connection of NC (Normally Closed) contact
Final logical operation type coil drive
Initial logical operation contact type NO (Normally Open)
Invert the current result of the internal PLC operation
Final logical operation type coil drive
Force the current program scan to end
The OUT instruction for the coil of T or C will have an explicit explanation in the Section 3-9.
When the PLC executes the END instruction, that will force to terminate the current scan and process both output and
input component updates. All instructions in the program and subroutines after the END instruction will not be executed.
The END instruction can be inserted into the middle of the program, it can be used to do the programming debug.
The section after the END instruction is disabled and isolated from the whole program.
Format
Initial logical operation contact type NO
(Normally Open)
Initial logical operation contact type NC
(Normally closed)
Invert the current result of the internal
PLC operation
Final logical operation type coil drive
Serial connection of NO
(Normally Open) contact
Serial connection of NC
(Normally Closed) contact
Parallel connection of NO
(Normally Open) contact
Parallel connection of NC
(Normally Closed) contact