
X0
Appendix D How to Use PLC Function
ZCP K10 K100 C10 M0
M0
If C10 < K10, M0 = On
M1
If K10 < C10 < K100, M1 = On
= =
M2
If C10 > K100, M2 = On
3.To clear the comparison result, use RST or ZRST instruction.
X0
RST M0
RST M1
X0
ZRST M0 M2
RST M2
API
12
| Mnemonic | Operands | Function | |
|
|
|
|
|
| MOV | P | S, D | Move |
|
|
|
|
|
Type | Bit Devices |
|
| Word devices |
|
| Program Steps | ||||
OP | X | Y | M | K | H | KnX | KnY | KnM | T | C | D MOV, MOVP: 5 steps |
| |||||||||||
S |
|
|
| * | * | * | * | * | * | * | * |
D |
|
|
|
|
|
| * | * | * | * | * |
Operands:
S: Source of data D: Destination of data
Explanations:
1.See the specifications of each model for their range of use.
2.When this instruction is executed, the content of S will be moved directly to D. When this instruction is not executed, the content of D remains unchanged.
Program Example:
MOV instruction has to be adopted in the moving of
1.When X0 = Off, the content in D10 will remain unchanged. If X0 = On, the value K10 will be moved to D10 data register.
2.When X1 = Off, the content in D10 will remain unchanged. If X1 = On, the present value T0 will be moved to D10 data register.
Revision June 2008, 04EE, |