O
pe
ra
to
r
P
an
el
E
xa
m
ple
s
5--9
Programming Examples
To cause a lamp to flash, you must turn the lamp on and set the associated flash bit.
The example below shows a PLC program used to flash lamp 2 as long as I:0.0/5 is
energized.
I:0.0
N7:0
lamp 2 on
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
lamp 2 flash
N7:1
9
9
5
N7:1
N7:0
N7:2
N7:3
F3
The following example illustrates the use of an OP--406 button in a program. When
button 3 is activated, N7:2/2 will become active and energize output O:0.1/5.
N7:2
O:0.1
Button 3
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
2
5
N7:1
N7:0
N7:2
N7:3
F3
Flashing a Lamp
Using a Button