Basic Function Instruction
6-9
SET D P
SET
(Set coil or all the bits of register to 1)
SET D P
Example 2 Set 16-Bit Register
Ladder Diagram Key Operations Mnemonic Codes
P
SET
X0
EN
R 0
ORG
ORG
SET P
X
R
0
0
B15 B0
↓ ↓
D R0 1 011011011101100
Ø
X0=
B15 B0
↓ ↓
D R0 1 111111111111111
Example 3 32-Bit Register Set
Ladder Diagram Key Operations Mnemonic Codes
SET
R 0
X0
EN
D
ORG
ORG
SET D
X
R
0
0
B31 R1 R0 B0
↓ ∣ ↓
D R0 1 0 1 1 0 1 1 0 1 0 1 1 1 0 1 1 1 1 1 1 0 1 0 1 1 0 1 1 0 0 0 1
Ø
X0=1
D
R0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1