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--4
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 X5 is
energized.
X5
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
V40603
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
C31
V40601
V40600
V40602
F3
C11
OUT
OUT
The following example illustrates the use of an OP--406 button in a program. When
button 3 is activated, C42 will become active and energize output Y0.
Y0
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
V40601
V40600
V40603
V40602
L4 L3
L5
L1
L2
B4
L1
L4 L3
L5
L2
L6
B1
B2
B3
B4
B1
B2
B3
F2
F1
B4
F3
B1
B2
B3
B4
Button 3
OUT
C42
Flashing a Lamp
Using a Button