PROGRAMMING EXAMPLES
42
6.9 Alarm 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: 74
H
(hexadecimal)
The reply code at the time of instruction code execution is set to D2. (Refer to page 32.)
Reads alarm data (RWr
7
) and reply code
(RWr
6
) to D1 and D2 when the instruction
code execution completion (RX2F) switches on.
00E2
SET M303
M9036
FROM 0000
HH
M200 2
K
PLS M302
M303
FROM 0000
H
02E7
H
D1 1
K
MOV 0074
H
D100
TO 0000
H
01E6
H
D100 1
K
2
6
4
5
X0000 X000F X0001 X0020
M302
K4
SET M115
M215
FROM 0000
H
02E6
H
D2 1
K
6
1
RST M115
RST M303
TO 0000
H
0162
H
M100
K4
2
K
M9036
8
2
3
6
4
3
Read setting
Writes alarm history No. 1, No. 2 reading
code (74
H
) to RWw
6
.
Switches on the instruction code execution
request (RY2F).
Switches off the instruction code execution
request (RY2F).
Reads the remote input (RX20 to RX3F)
data of buffer memory to M200-M231.
Writes M100-M131 data to the remote outputs
(RY20 to RY3F) of buffer memory.