EasyManua.ls Logo

Hitachi EH-150 - Sample Program 9 To Write to Control 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 9 To write to Control Register Slot No.
012
(for EH-CPU) EH-ETH2
--*
When FUN201 command is executed at R200 = 1, WM110 to WM119 will be putting on Control Register.
R1
(00001)
To set s parameter area
The request of Control Register putting
To set the target area (Unit 0, slot2)
To configure R200 as the control bit I/O No.
To configure WM110 as the starting area o
f
source
To configure 10 words for sending size
R7E3
(00003)
(00002)
R200
To set execution bit by setting R1=1
FUN201command execution
N
ormal end procedure
Abnormal end procedure
FUN201 (WR008)
CR write
Request bit
R200
WR00B = H3
WR00C = H200
ADRIO (WR00D, R200)
ADRIO (WR00E, WM110)
WR00F = 10
R203R201
R202
N
orma
l
flag
Execute
flag
Error
flag
Execute
flag
During
execution
R200
R204R201
R202
N
orma
l
flag
Execute
flag
Error
flag
N
orma
l
condition
R205R201
R202
N
orma
l
flag
Error
flag
Error
condition
R1 = 0
:
Normal end procedure
:
R204
R1 = 0
:
Abnormal end procedure
:
R205
N
orma
l
condition
Error
condition
(00004)
(00005)
(00006)
(00007)
To detect FUN201 command 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-20

Table of Contents

Related product manuals