EasyManua.ls Logo

Hitachi EH-150 - Sample Program 8 To Read Status Register (for EH-CPU)

Hitachi EH-150
176 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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 o
f
source
To configure 13 words for sending size
R7E3
(00003)
(00002)
R100
To set execution bit by setting R0=1
FUN201command execution
N
ormal end procedure
Abnormal end procedure
FUN201 (WR000)
SR read
Request bit
R100
WR003 = H2
WR004 = H22F
ADRIO (WR005, R100)
ADRIO (WR006, WM100)
WR007 = 13
R103R101
R102
N
orma
l
End flag
Execute
flag
Abnormal
end flag
Execute
flag
During
execution
R100
R104R101
R102
N
ormal
en
d
R105R101
R102
Abnormal
en
d
R0 = 0
:
Normal end procedure
:
R104
R0 = 0
:
Abnormal end procedure
:
R105
N
ormal
en
d
Abnormal
en
d
(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

Table of Contents

Related product manuals