Rockwell Automation 2705 REDIPANEL KEYPAD MODULE USER MANUAL User Manual
Page 59

Chapter 7
Programming
7–21
Rungs 1–5 show a procedure for monitoring the accumulated value of
counter 037 using the Keypad Module:
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
+
310
10
(
CTU
)
0037
+
0037
063
(
PUT
)
0500
!
!
+
477
00
(
CTU
)
500
!
!
+
477
00
(
)
500
G
PR 500
AC 214
063
15
!
!
+
310
10
(
PUT
)
0412
17
0500
063
G
063
!
!
!
1
2
3
4
5
Rung 1:
The input signal, function key F1, is programmed to increment counter 037.
Rung 2:
The counter value cannot be sent directly to the output image table of the
Keypad Module because the counter is a 3–digit BCD and word 412 of the
keypad output table is designed for a 4–digit BCD value. So, we must first
put the counter value in a buffer location and make sure the upper 4 bits of
counter 037 are zero before being sent to Keypad Module output image table.
Rung 3:
These rungs guarantee that no number will appear
Rung 4:
in the fourth digit of the Keypad Module. Input signal 477 on both rungs
will put a zero into the done bit (500/15) and CTU enable (500/17) bit of the
buffer (word 500).
Rung 5:
When function key F1 is depressed, the accumulated value of the counter
will be displayed on the right hand side of the Keypad Module.
Part A: Changing and Examining
Accumulated Value of Counter
for PLC-2