U
nd
er
sta
nd
in
g
th
e
F
ea
tu
re
s
U
nd
er
sta
nd
in
g
th
e
F
ea
tu
re
s
3--11
Installation and Specifications
Pushbuttons and Lamps
The OP--640 has five user-defined pushbuttons. Pushbuttons may be used to begin
events or tasks within the PLC, such as start/stop control. This section describes
concepts of how to monitor and control the pushbuttons on your OP-panel.
The OP-panel pushbutton inputs are monitored for ON/OFF conditions in your PLC
ladder logic program. From a practical point of view we need to control and monitor
the bits in the status register on an individual basis. The OP--640 pushbuttons are
assigned to the
first five bits
of the
Status Register (M+12)
. Examine the highlighted
status bits below which show each user-definable pushbutton.
Status Register
LSB
F5
F1
F2
F3
F4
12
13
14
15
8
9
10
11
4
5
6
7
0
1
2
3
Bottom line data 2 (for long BCD and floating point numbers)
Control register
Bottom line data
Status register
M+12
M+13
M+10
M+11
MSB
Control Register
LSB
LF2
LF3
BD
L1
L2
L3
LF1
12
13
14
15
8
9
10
11
4
5
6
7
0
1
2
3
MSB
The pushbutton example shown here is using
Direct
LOGIC PLC address
references. The equivalent instructions for
other
PLC products supported are shown
in Chapter 5 of this manual.
NOTE:
In this example we assume that the OP-panel is configured with a base
register of V2000. In this case, status register M+12 is V2014 which we will assume
has been mapped to V40600, the
Direct
Logic internal control relay memory
.
Mapping details are discussed later in this chapter.
V40600 =
Status Register
M+12
C0
Status Register
C0 -- C17
OUT
C50
(D2--250/D3--350/D4--450 Only)
OUT
V2014.0
C50
PLC Program User Memory
In this example, C0 represents the pushbutton
No.1 (F1) via the mapping process. When push-
button No.1 is pressed C0 is true and Coil C50
is energized.
ON
Status Register (M+12) = V40600: C0 -- C17
M+12
Bit 0: (F1)
Direct bit register access
ON
Status Register
OP--640
M+6
F5
F2
F3
F4
F1
(P.B. F1)
C14
C15
C16
C17
C10
C11
C12
C13
C4
C5
C6
C7
C0
C1
C3
C2
Pushbutton
Operation
Pushbutton
Example