Read Status Register - Hitachi HIDIC EH-150 Applications Manual

Programable controller; ethernet module(eh-eth)
Hide thumbs Also See for HIDIC EH-150:
Table of Contents

Advertisement

Sample program 8

Read status register

When FUN201 is executed at R100=1, the value of status register will be putting on WM100 to WM10C.
R7E
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
R10
Execute
flag
FUN201 (WR000)
R103
During
execution
R104
Normal
end
R105
Abnormal
end
R0 = 0
:
Normal end procedure
:
R0 = 0
:
Abnormal end procedure
:
8-17
Chapter 8 Register Structure
Slot No.
EH-ETH
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 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
The process is normal completion
(00005)
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
-
-
*

Advertisement

Table of Contents
loading

Table of Contents