Chapter 9 Maintenance, check, error
9.3.2
How to turn off LED
The status of ERR LED and IER LED can be read out or turned off by user program.
(1) Confirm LED light
User program can confirm the status (light or unlighted) of ERR and IER.
The status of each LED is stored in Module status register (MDSR) in EH-ETH2.
Module status register (MDSR)
Bit
15
to
7
6 5 4 3 2 1 0
+00
- OPM
-
EIE
AVR ATR IERR ERR
0: unlighted
ERR LED
1: light
IER LED
You can read the value of MDSR to WM10 by the below user program (example of EH-CPU). As a result,
M100 means the status of ERR LED and M101 means status of IER LED.
Execute FUN201 command for SR read.
FUN201 (WM000)
(00003)
(00001)
WM003 = H2
WM004 = H2F
ADRIO = (WM005, R100)
ADRIO = (WM006, WM10)
WM007 = 1
R100 = 1
(00002)
R100
S
Execute SR read by R100 = 1.
R100
Set FUN201(s) parameter area for SR read
Mounted position of EH-ETH2 (unit 0, slot 0)
Set control bit I/O No. R100
Set head of I/O No. WM10.
Set transmission sizes 1 word.
Set SR read control bit.
R7E3
(2) How to turn off LED
There are 3 ways to turn off ERR LED or IER LED.
(a) By E.CLR button
ERR LED and IER LED go off by pushing E.CLR button.In this way, both LED go off. To turn off ERR LED or
IER LED individually, operate the way of (b) or (c).
(b) By WYs1
Partial data of Module control register (MDCR) is assigned to WYs1
(*1)
. By setting “1” in the appropriate bit,
corresponding LED goes off.
*1 : “s” means slot No. that EH-ETH2 is allocated.
WYs1
Bit
15
14
13 to 8
7 to 4
3
2
1
0
+00
- APR AnR
TnR
- - EC1
EC0
0: Turn-off request cancellation
ERR LED
1: Turn off request
IER LED
9-3