Displaying numeric data – Rockwell Automation 2705 REDIPANEL KEYPAD MODULE USER MANUAL User Manual

Page 42

Advertising
background image

Chapter 7
Programming

7–4

Figure 7.2

Rung 2:0

F1

Function

Key

I:020

] [

10

F1

Function

Key

I:020

] [

Rung 2:1

10

COUNT UP
Counter

C5:1

Preset

69

Accum

50

CTU

(CU)

(DN)

MOV
Source

C5:1.ACC

50

Dest

0:021

69

MOV

The program example in Figure 7.2 illustrates how the function key, F1, may
be used just like a push button or other similar input type device. In this
instance, F1 is used to increment the accumulative value of count up counter
C5:1 and initiate a MOVE instruction. Each time the F1 function key is
pressed, the accumulated value of the counter increases by one and the
MOVE instruction moves the new value to the right hand side of the Keypad
display.

The Destination address of the MOVE instruction is 0:021 which, for this
configuration, is the word in the output image table where integer data is sent
to the Keypad Module. (See Figure 7.1, Input and Output Image Tables.)
Any integer number sent to this word address will be displayed on the
Keypad Module display.

Move instructions aren’t the only instructions that may be used to display
data on a Keypad Module. Logical, Arithmetic and some File type
instructions may also be used. Any method of moving data is acceptable.

Displaying Numeric Data

Advertising