To Read Status Register - Hitachi EH-150 Applications Manual

Ethernet module 2 eh-eth2
Hide thumbs Also See for EH-150:
Table of Contents

Advertisement

Sample program 8

To read Status Register

(for EH-CPU)
When FUN201 is executed at R100=1, the value of Status Register will be putting on WM100 to WM10C.
R7E3
R0
SR read
Request bit
R100
R101 R102
Execute
Normal
Abnormal
flag
End flag
end flag
R100
R101 R102
R101 R102
R104
Normal
end
R105
Abnormal
end
WR003 = H2
WR004 = H22F
ADRIO (WR005, R100)
ADRIO (WR006, WM100)
WR007 = 13
R100
Execute
flag
FUN201 (WR000)
R103
During
execution
R104
Normal
end
R105
Abnormal
end
R0 = 0
:
Normal end procedure
:
R0 = 0
:
Abnormal end procedure
:
8-18
Chapter 8 Register Structure
Slot No.
EH-ETH2
To set s parameter area
The request of Status Register getting
(00001)
(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
(00002)
To set execution bit by setting R0=1
(00003)
FUN201command execution
(00004)
To detect FUN201command status
(00005)
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.
(00006)
Normal end procedure
(00007)
Abnormal end procedure
0
1
2
-
-
*

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents