S
ys
te
m
S
et
up
Yo
ur
P
an
el
C
on
fig
ur
in
g
P
ro
gr
am
m
in
g
E
xa
m
pl
es
5--10
Programming Examples
In LED Separation mode, the LEDs in the corner of each momentary pushbutton
may be directly controlled by the PLC program. The example on the right shows a
segment of a program that lights button 4’s inset LED when input I:0.2/12 is
energized.
In order for this example to work, the panel must be configured for LED
separation and button 2 must be a momentary pushbutton.
You can flash the LED by
turning on the appropriate flash bit. In the following example, when N7:0/3 is on, turn
on N7:1/3 to flash.
I:0.2
N7:0
Button 4 Inset LED
Indicator Lamp/LED Button On/Off Contol
Indicator Lamp/LED Button Flash Control
Button On/Off Status
Force Data and Commands
LSB
MSB
L6
B1
B2
B3
12
13
14
15
8
9
10
11
4
5
6
7
0
1
2
3
L4 L3
L5
L1
L2
B4
L1
L4 L3
L5
L2
L6
B1
B2
B3
B4
B1
B2
B3
F2
F1
B4
B1
B2
B3
B4
12
3
N7:1
N7:0
N7:2
N7:3
F3
To flash an inset LED, you must turn it on and set the associated flash bit. The
example below shows a program used to set the LED inset of button 1 to flash
whenever I:0.3/4 is energized. The table below it shows LED operation with button 1
set as alternate action.
I:0.3
N7:1
Button 1 LED Flash
Indicator Lamp/LED Button On/Off Contol
Indicator Lamp/LED Button Flash Control
Button On/Off Status
Force Data and Commands
LSB
MSB
L6
B1
B2
B3
12
13
14
15
8
9
10
11
4
5
6
7
0
1
2
3
L4 L3
L5
L1
L2
B4
L1
L4 L3
L5
L2
L6
B1
B2
B3
B4
B1
B2
B3
F2
F1
B4
B1
B2
B3
B4
0
N7:1
N7:0
N7:2
N7:3
F3
4
Button State
X2 Status
LED Operation
Button State
X2 Status
LED Operation
Inactive
de--energized
Off
Inactive
energized
Off
Active
de--energized
On solid
Active
energized
Flashing
NOTE:
When using an OP--406 with an Allen-Bradley PLC, always be sure that at
least 4 words of memory are allocated to allow proper communications.
Lighting an Inset
LED
Flashing an Inset
LED