beautypg.com

Plc-2 programming example – Rockwell Automation 2705 REDIPANEL KEYPAD MODULE USER MANUAL User Manual

Page 54

background image

Chapter 7
Programming

7–16

The following pages contain a PLC–2 example program which utilizes many
of the functions of the Keypad Module. Keep in mind that this program is
simply an example - your applications may or may not fit this structure.

The programming examples cover the following topics:

Part A: Examining accumulated values of a counter

Part B: Changing and examining preset values of a counter

Part C: Displaying a 16–character message

Part D: Displaying a message and variable data simultaneously

Part E: Destination bits for retrieval of data

To operate the following program, set the Keypad Module for:

BCD Mode

Rack 1

3

/

4

Rack Configuration

I/O Group = 0

Baud Rate = 57.6K

Enable:

Destination Bits

Stored Message

Split Display

Disable:

Handshake

Keyswitch

Last State

XT–keyboard

Note: A table has been constructed to assign numeric values to word
locations.

Word 477=0

Word 511=1 -

Word 512=2 -

Word 513=3 -

Word 510=500 - Destination Bits

These numbers are used to call up stored messages from EEPROM in the Keypad Module.

PLC-2 Programming Example