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.
0
1
2
(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 on
after RUN
(00004)
R110
R110
Execute
flag
R111
R112
Normal
flag
Error
flag
(00005)
R110
R114
Execute
flag
R111
R112
Normal
flag
Error
flag
R115
R111
R112
Normal
flag
Error
flag
(00006)
R113
R114
During
reset
Normal
condition
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
No need to set starting area
No need to set sending size
R113
Execute
flag
During
execution
Normal
condition
Error
condition
Sample program 10
To execute software reset
Slot No.
0
1
2
(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 on
after RUN
(00004)
R110
R110
Execute
flag
R111
R112
Normal
flag
Error
flag
(00005)
R110
R114
Execute
flag
R111
R112
Normal
flag
Error
flag
R115
R111
R112
Normal
flag
Error
flag
(00006)
R113
R114
During
reset
Normal
condition
R7B0 = 0
To set s parameter area
Software reset control
To set the target area(unit 0, slot 0)
No need to set starting area
No need to set sending size
R113
Execute
flag
During
execution
Normal
condition
Error
condition
The average time to complete initial procedure after EH-ETH2 receive software reset request is approx. 3 seconds.
8-22