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
source
To configure 10 words for sending size
R7E3
(00003)
(00002)
R200
To set execution bit by setting R1=1
FUN201command execution
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
orma
flag
Execute
flag
Error
flag
Execute
flag
During
execution
R200
R204R201
R202
orma
flag
Execute
flag
Error
flag
orma
condition
R205R201
R202
orma
flag
Error
flag
Error
condition
R1 = 0
:
Normal end procedure
:
R204
R1 = 0
:
Abnormal end procedure
:
R205
orma
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