Chapter 9 Maintenance, check, error
(c-1) By user program (for EH-CPU)
User program can turn off ERR and IER LEDs. To turn each LED off, set Module control register (MDCR).
Module control register (MDCR)
Bit
15
to
8 7 6 5 4 3 2 1 0
+00
-
- - - -
AEN
IAV
EC1
EC0
0: Turn-off request cancellation
ERR LED
1: Turn off request
IER LED
The below user program can monitor the status of ERR and I.ERR LEDs, and turn off LED automatically by the
light of LED. This sample program is in case the “open error” happens on ASR connection 1, which is specified as
positive station.
Set EC0 bit of MDCR to internal output M200 and EC1 bit to internal output M201 as well.
FUN 201 for reading out SR
FUN201 (WM000)
(00003)
(00001)
WM003 = H2
WM004 = H2F
ADRIO = (WM005, R100)
ADRIO = (WM006, WM10)
WM007 = 1
R100 = 13
(00002)
R100
S
Reading out SR at R100 = 1
R100
Set FUN201(s) parameter area.
Request to SR read
Set EH-ETH2 installation position(unit 0, slot0)
Set control I/O No. R100.
Set head of I/O No. WM10.
Set read size 1 word
Set SR read control bit 1.
R7E3
(00004)
M200
Check the status of ERR and IER LED, if detecting an
open error at connection 1.
If each LED turns on, set the lights out instruction bit.
M110
Set 1 to “request to write to CR bit”, if it passes for
five seconds after detecting an open error.
Validate the lights out demand cancellation circuit
(00006)
R103 = 1
R104 = 0
R1 = 0
R3 = 1
(0000x)
R7E3
WM00B = H3
WM00C = H0
ADRIO = (WM00D, R103)
ADRIO = (WM00E, WM20)
WM00F = 10
FUN201 (WM008)
(0000y)
Parameter area setting of FUN201(s) for writing CR.
Request to write CR.
Area setting (unit:0, slot:0)
Control bit address is R103.
Transmission I/O address is starting from WM20.
Transmission data size is 10 words.
FUN 201 for writing CR
Set 1 to “request to write to CR bit”, if the lights out
instruction bit of ERR or IER LED is cleared.
Validate the lights out demand cancellation circuit
(00007)
M201
M100
M101
TD64 M200
M201
R104 M200
M201
R103 = 1
R104 = 0
R3 = 0
R4 = 1
R3
R3
(00005)
TD64
If the lights out instruction bit is set, start the timer.
M200
M201
1s
5
DIF0
ASR connection 1 open request retries circuit
9-4