
Appendix D How to Use PLC Function
Operands:
S1: Data address for reading S2: Register that saves the read data
API
140
| Mnemonic |
| Operands | Function | |
|
|
|
|
|
|
| WPR |
| P | S1, S2 | Write the AC motor drive’s parameters |
|
|
|
|
|
|
Type | Bit Devices |
|
| Word devices |
|
| Program Steps | ||
OP | X | Y | M | K | H | KnX KnY KnM | T | C | D WPR, WPRP: 5 steps |
| |||||||||
S1 |
|
|
| * | * |
|
|
| * |
S2 |
|
|
| * | * |
|
|
| * |
Operands:
S1: Data address for writing S2: Register that saves the written data
Program Example:
1.Assume that it will write the data in address H2100 of the
2.When M0=ON, it will write the data in D10 to the address H2001 of the
3.When M1=ON, it will write the data in H2 to the address H2000 of the
4.When M2=ON, it will write the data in H1 to the address H2000 of the
5.When data is written successfully, M1017 will be ON.
M1000 |
|
|
RPR | H2100 | D0 |
RPR | H2101 | D1 |
M0 | D10 | H2001 |
WPR | ||
M1 | H2 | H2000 |
WPRP | ||
M2 | H1 | H2000 |
WPRP | ||
M1017 |
|
|
Y0 |
|
|
END |
|
|
Revision June 2008, 04EE, |