Download 5Categories and Use of Basic Application Instructions

Transcript
4 Basic Instructions
Mnemonic
Function
OUT
Output Coil
Operand
X0~X377
Y0~Y377
-
M0~M4095 S0~S1023
T0~T255
C0~C255
D0~D9999
-
-
-
Explanations:
1. To output the logical operation result before OUT instruction into a designated device.
2. Actions of coil contact:
OUT instruction
Operational
result
Coil
Contact
A contact (normally open) B contact (normally closed)
FALSE
OFF
OFF
ON
TRUE
ON
ON
OFF
Program Example:
Ladder diagram:
X0
X1
Y1
Instruction code:
Operation:
LDI
X0
Loading in contact B of X0
AND
X1
Connecting to contact A of X1 in series
OUT
Y1
Driving Y1 coil
Mnemonic
Function
SET
Latched (On)
Operand
X0~X377
Y0~Y377
M0~M4095
S0~S1023
T0~T255
C0~C255
D0~D9999
-
-
-
-
Explanations:
When SET instruction is driven, its designated device will be “On” and keep being On both when SET instruction is
still being driven or not driven. Use RST instruction to set “Off” the device.
Program Example:
Ladder diagram:
X0
Operation:
LD
X0
Loading in contact A of X0
ANI
Y0
Connecting to contact B of Y0 in series
SET
Y1
Y1 latched (On)
Y0
SET
4-6
Instruction code:
Y1
DVP-PM Application Manual