
PROGRAMMING EXAMPLES
6.9Alarm Definition Reading Program Example
1)The following program reads the alarm definition of station 2 inverter to D1. Alarm (error) history No. 1, No. 2 reading code number: 74H (hexadecimal)
The reply code at the time of instruction code execution is set to D2. (Refer to page 32.)
| M9036 |
|
|
|
|
|
|
|
| H | H | K4 | K | |||
|
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
26 |
|
|
|
|
|
|
|
|
|
|
| FROM 0000 | 00E2 | M200 | 2 | |
|
|
|
|
|
|
|
|
|
|
| ||||||
| X0000 X000F X0001 X0020 |
|
|
|
| |||||||||||
36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| PLS | M302 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||
|
| M302 |
|
|
|
| Read setting |
|
|
|
| |||||
43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| SET | M303 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
|
| M303 |
|
|
|
|
|
|
|
|
|
| H |
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
45 |
|
|
|
|
|
|
|
|
|
|
|
|
| MOV | 0074 | D100 |
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
| H | H |
| K |
|
|
|
|
|
|
|
|
|
|
|
| TO | 0000 | 01E6 | D100 | 1 |
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
| M215 |
|
|
|
|
|
|
|
|
|
| SET | M115 | ||
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
| H | H |
| K | |||
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||
61 |
|
|
|
|
|
|
|
|
|
|
| FROM 0000 | 02E7 | D1 | 1 | |
|
|
|
|
|
|
|
|
|
|
| ||||||
|
|
|
|
|
|
|
|
|
|
|
|
| H | H |
| K |
|
|
|
|
|
|
|
|
|
|
|
| FROM 0000 | 02E6 | D2 | 1 | |
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| RST | M115 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| RST | M303 |
| M9036 |
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
| H | H | K4 | K | ||||
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
82 |
|
|
|
|
|
|
|
|
|
|
| TO | 0000 | 0162 | M100 | 2 |
|
|
|
|
|
|
|
|
|
|
| ||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reads the remote input (RX20 to RX3F) data of buffer memory to
Writes alarm history No. 1, No. 2 reading code (74H) to RWw6.
Switches on the instruction code execution request (RY2F).
Reads alarm data (RWr7) and reply code (RWr6) to D1 and D2 when the instruction code execution completion (RX2F) switches on.
Switches off the instruction code execution request (RY2F).
Writes
42