Chapter 8 Register Structure
8.3.2 Software reset function
EH-ETH2 support software reset function by the command FUN 201 or SCRW. The below is the sample program
of software reset.
Sample program 10 To execute software reset Slot No.
012
(for EH-CPU) EH-ETH2
*--
(00001)
R7E3
WR023 = HA55A
WR024 = H0
ADRIO ( WR025, R110 )
WR026 = 0
WR027 = 0
(00002)
R7B0
(00003)
FUN201 ( WR020 )
Error
detected
1 scan o
after RUN
(00004)
R110
R110
Execute
flag
R111
R112
ormal
flag
Error
flag
(00005)
R110
R114
Execute
flag
R111
R112
ormal
flag
Error
flag
R115R111
R112
ormal
flag
Error
flag
(00006)
R113
R114
During
reset
ormal
conditio
R7B0 = 0
To set s parameter area
Software reset control
To set the target area(unit 0, slot 0)
To configure R110 as the control bit
o need to set starting area
o need to set sending size
R113
Execute
flag
During
executio
orma
conditio
Error
conditio
Sample program 10 To execute software reset Slot No.
012
(for EHV-CPU) EH-ETH2
*--
(00001)
R7E3
WR023 = HA55A
WR024 = H0
DR025 = 0
WR027 = 0
(00002)
R7B0
(00003)
SCRW ( WR020, R110 )
Error
detected
1 scan o
after RUN
(00004)
R110
R110
Execute
flag
R111
R112
ormal
flag
Error
flag
(00005)
R110
R114
Execute
flag
R111
R112
ormal
flag
Error
flag
R115R111
R112
ormal
flag
Error
flag
(00006)
R113
R114
During
reset
ormal
conditio
R7B0 = 0
To set s parameter area
Software reset control
To set the target area(unit 0, slot 0)
o need to set starting area
o need to set sending size
R113
Execute
flag
During
executio
orma
conditio
Error
conditio
The average time to complete initial procedure after EH-ETH2 receive software reset request is approx. 3 seconds.
8-22