Chapter 8 Register Structure
Sample program 8
To read Status Register
Slot No.
0 1
2
(for EH-CPU)
EH-ETH2
- -
*
When FUN201 is executed at R100=1, the value of Status Register will be putting on WM100 to WM10C.
R0
(00001)
To set s parameter area
The request of Status Register getting
(without handshake)
To set the target area(Unit 0, slot2)
To configure R100 as the control bit I/O No.
To configure WM100 as the starting area of
source
To configure 13 words for sending size
R7E3
(00003)
(00002)
R100
To set execution bit by setting R0=1
FUN201command execution
Normal end procedure
Abnormal end procedure
FUN201 (WR000)
SR read
Request bit
R100
WR003 = H2
WR004 = H22F
ADRIO (WR005, R100)
ADRIO (WR006, WM100)
WR007 = 13
R103
R101
R102
Normal
End flag
Execute
flag
Abnormal
end flag
Execute
flag
During
execution
R100
R104
R101
R102
Normal
end
R105
R101
R102
Abnormal
end
R0 = 0
:
Normal end procedure
:
R104
R0 = 0
:
Abnormal end procedure
:
R105
Normal
end
Abnormal
end
(00004)
(00005)
(00006)
(00007)
To detect FUN201command status
The process is normal completion
FUN 201 is in status of wait for instruction.
The process is abnormal completion
FUN 201 is in status of wait for instruction.
8-18