Example program – Rockwell Automation 2705 REDIPANEL KEYPAD MODULE USER MANUAL User Manual

Page 80

Advertising
background image

Chapter 7
Programming

7–42

The example program is shown below. Each time a function key is pressed
on the RediPANEL, its associated message is displayed. This program also
monitors the scanner’s Enabled Device Fault bit (M1:1.0/0). If
communications are lost, an alarm is activated.

I:1.0

8

MOVE

Source

T4:0 PRE

Dest

O:1.1

MOV

14

MOV

9

MOV

MOVE

Source

2

Dest

O:1.2

If the communications

attempted and Enabled

Device Fault bits are

set to 1, activate the
alarm.

MEQ

MASKED EQUAL

Source

M1:1.0

Mask

003

Compare

3

( )

0:2

2

If function key 1 is

pressed (bit 8 of input

word 0), T4:0 preset is

moved to the display.

When a new number is

entered onto the Redi-

PANEL, it is moved to

preset T4:0.

If function key 2 is

pressed (bit 9 of input

word 0), RediPANEL

message #2 is trig-
gered and displayed.

MOVE

Source

I:1.1

Dest

T4:0 PRE

I:1.0

I:1.0

END

Example Program

Advertising