
PROGRAMMING EXAMPLES
6.3 Program Example for Setting the Operation Mode
Write programs as explained below to write various data to the inverters:
1)The following program changes the operation mode of station 2 inverter to
The reply code at the time of instruction code execution is set to D2. (Refer to page 32.)
26
36
44
46
67
88
| M9036 |
|
|
|
|
|
|
|
|
|
|
| H | H | K4 | K | |||
|
|
|
|
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| FROM 0000 | 00E2 | M200 | 2 | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
| X0000 X000F X0001 X0020 | M202 |
|
|
|
| |||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| PLS | M302 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
| M302 |
|
|
|
| Write setting Inverter running |
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| SET | M303 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
| M303 |
|
|
|
|
|
|
|
|
|
|
|
|
| H |
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| MOV | 00FB | D100 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| H |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| MOV | 0000 | D101 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| H | H |
| K |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| TO | 0000 | 01E6 | D100 | 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
| M215 |
|
|
|
|
|
|
|
|
|
|
|
|
| SET | M115 | ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
| H | H |
| K | |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| FROM 0000 | 02E6 | D2 | 1 | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| RST | M115 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| RST | M303 |
| M9036 |
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
| H | H | K4 | K | ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| TO | 0000 | 0162 | M100 | 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reads the remote input (RX20 to RX3F) data of buffer memory to
Writes operation mode writing code (FBH) to RWw6 and set data (0000H) to RWw7.
Switches on the instruction code execution request (RY2F).
Reads reply code (RWr6) to D2 when the instruction code execution completion (RX2F) switches on.
Switches off the instruction code execution request (RY2F).
Writes
34