Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 20 of 29

1772 Mini PLC-2/05 Processor (Cat. No. 1772-LS, LSP) Programming and Operations Manual, pages 191 to 200

Pages 191 to 200 of 289

The original document is the PDF (1.4 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Allen-Bradley 1772-LSP

Page 191

Chapter 16 Program Editing

Keystrokes: You can change the lower 12 bits of a word by performing the following steps. 1.

Position the cursor on the appropriate instruction and press [SEARCH] 5 1.

The message “ON-LINE DATA CHANGE, ENTER DIGITS FOR: <Required Information>” is displayed near the bottom of the screen. The new digits are displayed in a command buffer as they are entered. 2.

Press [INSERT] to enter the data into memory.

3.

To terminate this function, press [CANCEL COMMAND].

ATTENTION: When the address of an instruction whose data is to be changed duplicates the address of other instructions in user program, this could cause unwanted machine operation. This may result in damage to equipment and/or injury to personnel. The consequences of the change for each instruction should be examined beforehand.

Important: When the memory write protect is activated by the EEPROM back-up memory, you cannot perform an online data change for addresses above 177. If you attempt this change, the industrial terminal will display the error message: MEMORY PROTECT ENABLED. Online Programming Online programming allows you to change the program during machine operation (processor is operating in the run/program mode and memory write protect is not active).

ATTENTION: Assign the task of online programming only to an experienced programmer who understands the nature of Allen-Bradley programmable controllers and the machinery being controlled. Check and re-check proposed online changes for accuracy. Assess all possible sequences of machine operation resulting from the change in advance. Be absolutely certain that the change must be done online and that the change solves the problem without introducing additional problems. Notify personnel in the machine area before changing machine operation online.

To minimize the chances of error, maintain accurate data table assignments sheets and use the data initialization key described in this section. 16-14

Page 192

Chapter 16 Program Editing

Online Programming Procedure You can make the following changes to your program in the online programming mode: insert an instruction remove an instruction insert a rung remove a rung change an instruction or instruction address The online programming mode is accessible from the industrial terminal by pressing the key sequence [SEARCH] 52. The processor module must be in the run/program mode. The heading, “ON-LINE PROGRAMMING” appears in the top right- hand corner of the screen highlighted in reverse video. You can not enter the following instructions during online programming: temporary end MCR ZCL JMP JSR block transfer read and write The procedure for online programming in run/program mode is similar to the procedure for editing in program mode. However, the following three keys have a special purpose in online programming: [RECORD} [CANCEL COMMAND] [DATA INIT] Use the [RECORD] key to enter a change to your program. Once pressed, the changed program is active. Use the [CANCEL COMMAND] key to abort any online programming operation prior to pressing the [RECORD] key. Pressing [CANCEL COMMAND] restores the ladder diagram display and program logic to its original state prior to the online programming operation. You can also use it to terminate the online programming mode.

16-15

Page 193

Chapter 16 Program Editing

Data Initialization Key

You must enter two types of information when programming the following instructions: Get Equal to Less than Timers Counters Files Sequencers The two types of information needed are the instruction and operating parameters. Important: Operating parameters are used only for file and sequencer instructions. The data stored at the instruction address is divided into two sections: status bits (bits 14-17) BCD values (bits 00-13) During program execution,these bits are constantly changing to reflect current states and values of program instructions. Therefore, when programming on line, you must decide whether to use the current data or enter new data. Use [DATA INIT] when adding an instruction containing new data. Do not use it when adding an instruction that uses the data at a pre-assigned address. The [DATA INIT] key performs two functions in the online programming mode: It allows entry of BCD data values (stored at the instruction address). It resets status bits. Use the [DATA INIT] key when programming a data instruction whose address is not currently being used in the program. If you do not use [DATA INIT], data at the new address (possibly remaining from previous programming) may interfere with proper machine operation when you insert the new instruction into the program.

16-16

Page 194

Chapter 16 Program Editing

ATTENTION: When the address of a new instruction duplicates the address of other instructions in the program, the [DATA INIT] key should not be used without first assessing the consequences. Pressing the [DATA INIT] key zeros out the status bits stored at the existing instruction address. This may cause unwanted machine motion and result in equipment damage and/or injury to personnel.

To look for a specific instruction, press [SEARCH] <instruction>. To look for a specific address, press [SEARCH] <address>. This helps you to determine addresses currently used in your program. To locate all addresses (excluding those associated with Examine On and Examine Off instructions and those contained within files) press [SEARCH][8] <address>. The address entered is the word address for the Output Energize, Latch and Unlatch instructions, the 1770-T3 terminal locates all of the bit addresses associated with the word address. The message “SEARCH FOR” and the entered key sequences are displayed at the bottom of the screen. The message “EXECUTING SEARCH” appears temporarily. The industrial terminal begins to search for the address and/or instruction from the cursor’s position. It looks past the temporary end and subroutine area boundaries to the END statement. Then, it continues searching from the beginning of the program to the point where the search began. If found, the rung containing the first occurrence of the address and/or instruction is displayed as well as the rungs after it. If you press [SEARCH] again, the next occurrence of the address and/or instruction is displayed. When another occurrence cannot be located or all addresses and/or instructions have been found, a “NOT FOUND” message appears. If the instruction is found in the subroutine area or part the temporary end instruction, the area in which it is found is displayed in the lower right hand corner of the screen. Press [CANCEL COMMAND] at any time to terminate this function. All other keys are ignored during the search. In summary, use [DATA INIT] to: enter a data instruction with an unused address enter new data clear the status bits of an already used address

Chapter Summary

We described how to edit instructions in your program. The next chapter shows how to generate messages.

16-17

Page 195

Chapter

17

Report Generation

Chapter Objectives

This chapter describes how to generate messages containing: ASCII characters graphic characters variable information You can use the report generation function of the 1770-T3 industrial terminal to generate messages that contain ASCII and graphic characters, and variable data table information. The processor must be in the PLC-2 mode. Messages are stored in the processor’s memory after the END of program statement. These messages may be displayed or printed manually or automatically. The 1770-T3 industrial terminal report generation features include: up to 70 messages - you can choose the number of messages to be stored. simple programming - only 20 or 3 rungs of programming are required to display a message by program logic selectable communication rates - you can choose from seven communication rates: 110, 300, 600, 1200, 2400, 4800 or 9600 bits per second selectable parity bit - you can choose odd, even or no parity Messages are entered into memory from either the 1770-T3 industrial terminal or a peripheral device connected to channel C of the industrial terminal. Use one of two optional keytop overlays on the 1770-T3 industrial terminal, depending on whether graphic characters are desired (Figure 17.1):

17-1

Page 196

Chapter 17 Report Generation

Figure 17.1 Alphanumeric Keytop Overlays

MODE SELECT

' 1

ESC

" 2 Q

CTR

SHIFT

# 3 W

A

$ 4 E

S Z

% 5 R

D X

& 6

, 7

T

Y

F C

( 8 U

G

I

H

V

) 9

[ K ] M

ALPHANUMERIC

\ L

= _

LINE FEED

RETURN

+ ;

< ,

Alphanumeric Keytop Overlay (1770-KAA)

* : @ P

O

J ^ N

B

0

RUB OUT

> .

? /

REPT LOCK

SHIFT LOCK

CAT. NO. 1770 KAA

1982 ALLEN-BRADLEY

Alphanumeric/Graphic Keytop Overlay (1770-KAB)

MODE SELECT

' 1

ESC

" 2

# 3

Q CTR

SHIFT

$ 4

W A

E S

Z

% 5 R

D X

& 6 T

F C

, 7 Y

G V

( 8 U

H B

ALPHANUMERIC GRAPHICS

) 9 I

J N

] M

0 @ P

O [ K

\ L

< ,

> .

* :

= _

LINE FEED

RETURN

+ ;

RUB OUT

? /

REPT LOCK

SHIFT LOCK

CAT. NO. 1770 KAB

1982 ALLEN-BRADLEY 10160-I

Alphanumeric Keytop Overlay (cat. no. 1770-KAA) Alphanumeric/Graphics Keytop Overlay (cat. no. 1770-KAB) The messages are displayed manually or printed on the 1770-T3 industrial terminal or peripheral device by a key sequence each time a message is desired. They can also be activated program control by programming specific data table bits in the ladder diagram program.

17-2

Page 197

Chapter 17 Report Generation

Generating Messages

Manually Initiated Report Generation If processor operation is changed to the run/program mode, the processor automatically changes from automatic to manual report generation mode. Every time you change the mode of operation, the peripheral device displays a prompt to indicate the current operating mode. Automatic Report Generation Messages are printed through program control automatically by energizing specific message requires bits using Output Latch and Output Unlatch instructions. You can access automatic report generation is the processor is in the remote test, or run/program mode. To do this press [SEARCH] 40 or [M][R][RETURN]. It can also be activated automatically upon initialization of the industrial terminal if you move parity switches 4 and 5 to the up position on the industrial terminal’s main logic board (Figure 17.2). Figure 17.2 Parity Switch Locations

1 2

3

4

5 6 10664-I

Once automatic report generation is activated, the message request bits are scanned by the industrial terminal for a false-to-true transition. Each time one of the request bits goes true, the corresponding message is printed automatically. You can terminate automatic report generation by pressing [ESC]. To return to ladder diagram display, press [ESC] again. Pressing [CANCEL COMMAND] also terminates automatic report generation. The display returns to the ladder diagram if automatic report generation was entered by a command from a peripheral device. Messages 1-6 Messages 1-6 use bits 10-15 of word 027 as message request bits. All other messages have a user-defined file of message request bits for control.

17-3

Page 198

Chapter 17 Report Generation

The upper byte of word 027 is used to control messages 1-6. Bit 027/10 is the request bit for message number 1 and so on. Bit 027/16, the busy bit is set when any of messages 1-6 are requested and remains set until all requested messages have been printed. Once all messages are printed, bit 027/17 will stay on for 300 milliseconds and is then reset. Additional Messages The upper byte of each message control word contains the request bits for eight messages. There is an easy way to determine the message number from the bit which requests it. The three right-most digits in the bit address are coded to the message number. For example, if message number 312 is of interest, bit 12 of the third message control word requests message 312 on a false-to-true transition (Figure 17.3). Figure 17.3 Bit Address-Message Number Relationship Control Word Number 0 1 2 3 4 5 6 7

Control Word Address 201 202 203 204 205 206 207 210

Message Numbers 010-017 110-117 210-217 310-317 410-417 510-517 610-617 710-717

The control word addresses are user selected. Message number 3XX has a message request bit at address 204/XX. Message request bit 204/XX, when enabled, will activate message number 3XX where XX are bit numbers 00-178.

10218

Unlike messages 1-6 which share a common done bit (027-17), the additional 64 messages each have a separate done bit. After a particular message is printed, the done bit is set until the user program resets the request bit. Done bits are located in the lower byte of the message control words. Figure 17.4 shows this relationship. For example, if 404/15 is the request bit for a message, the done bit is located at 404/05, one byte below the request bit.

17-4

Page 199

Chapter 17 Report Generation

Figure 17.4 Message Request Bit-Done Bit Relationship Message Request Bits 17

Message Done Bits 10

07

00

Message Control Word

10219-I

The message print command is valid for message 0. It prints out the message control word addresses in a form similar to that shown in Table 17.A. If the location of the message control file is to be changed or you no longer need message 0, it can be deleted with the message delete command and re-entered at any time. Table 17.A Example Message Control Word-Message Number Relationship Control Words

Message Numbers

200

010-017

201

110-117

202

210-217

203

310-317

204

410-417

205

510-517

206

610-617

207

710-717

IMPORTANT: This table assumes user selected message control words begin at 2008.

ATTENTION: Do not use message control words for any other purpose. This warning is especially critical for output image table locations when output or block transfer modules are placed in corresponding slots. Failure to observe this warning could result hazardous or unexpected machine operation. This could result in damage to equipment and/or injury to personnel.

17-5

Page 200

Chapter 17 Report Generation

Control Codes and Special Commands When entering a message, there are several keys and special industrial terminal control codes that you can use to move through the display and perform a variety of functions (Table 17.B and Table 17.C). For example, you can access graphic capability with the control code, [CTRL][P][5][G]. In addition, standard ASCII control codes can be used with the industrial terminal (Table 17.B). These codes, although not displayed, can be interpreted and acted on by a peripheral device connected to channel C. Table 17.B Alphanumeric/Graphic Key Definitions Key

17-6

Function

[LINE FEED]

Moves the cursor down one line in the same column.

[RETURN]

Returns the cursor to the beginning of the next line.

[RUB OUT]

Deletes the last character or control code that was entered.

[REPT LOCK]

Allows the next character that is pressed to be repeated continuously until [REPT LOCK] is pressed again.

[SHIFT]

Allows the next key pressed to be a shift character.

[SHIFT LOCK]

Allows all subsequent keys pressed to be shift characters until [SHIFT] or [SHIFT LOCK] is pressed.

[CTRL]

Used as part of a key sequence to generate a control code.

[ESC]

Terminates the present function.

[MODE SELECT]

Terminates all functions and returns the mode select display to the screen.

Blank Yellow Keys

Space keys. Move the cursor one position to the right.