The text of a manual · part 44 of 59
Mini-PLC-2/02, -2/16, -2/17 Processor (cat. no. 1772-LZ, LZP, LX, LXP, LW, LWP) User Manual: 23 - Report Generation, pages 360 to 367
Pages 360 to 367 of 490, from Mini-PLC-2/02, -2/16, -2/17 Processor (cat. no. 1772-LZ, LZP, LX, LXP, LW, LWP) User Manual
The original document is the PDF (2.5 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-LX / LXP
Page 360
Chapter 23 Report Generation
Figure 23.1 Alphanumeric and Alphanumeric/Graphic Keytop Overlays
MODE SELECT
' 1
ESC
" 2 Q
CTR
# 3 W
A
SHIFT
$ 4 E
& 6
R
S Z
% 5
D X
, 7
T F
C
( 8
Y G
V
) 9
U H
I
B
ALPHANUMERIC
@ P
O [ K
J ] M
^ N
0
\ L
= _
LINE FEED
RETURN
+ ;
< ,
> .
Alphanumeric Keytop Overlay (1770-KAA)
* :
RUB OUT
? /
REPT LOCK
SHIFT LOCK
CAT. NO. 1770 KAA
1982 ALLEN-BRADLEY
Alphanumeric/Graphic Keytop Overlay (1770-KAB)
MODE SELECT
' 1
ESC
" 2 Q
CTR
SHIFT
# 3
$ 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
23-9
Page 361
Chapter 23 Report Generation
If the processor is in the Program mode, you can enter a message by executing the following steps:
RECORD
These lines appear in the lower left hand corner of the screen. CHANNEL C: 9600 BAUD; INPUT = ON; HANDSHAKE = ON RECORD The previous messages disappear. The following messages appear in the upper left hand corner of the screen.
DISPLAY
SWITCH TO ALPHANUMERIC OVERLAY CONFIGURING MESSAGE AREA CONFIGURATION COMPLETE, PLEASE CONTINUE At this point, change to the Alphanumeric Overlay (cat. no. 1770-KAA). MS,n appears on a line underneath the previous message.
MS, n
The letter n represents the number of any message from 1-64. The message READY FOR INPUT appears underneath the line MS,4.
RETURN
You may enter your alphanumeric message. The message END OF MESSAGE STORE appears on the screen.
ESC
ESC
ESC
23-10
You have exited message generation. Messages are displayed on the 1770-T3 terminal or printed on a peripheral device manually using keystrokes each time a message is desired. Messages can also be activated by programming specific bits in the ladder diagram program.
Page 362
Chapter 23 Report Generation
Manually Initiated Report Generation You can display messages manually on the T3 terminal or the peripheral device by executing a key sequence each time a message is desired. You can display a message manually by executing the following steps:
RECORD
These lines appear in the lower left hand corner of the screen. CHANNEL C: 9600 BAUD; INPUT = ON; HANDSHAKE = ON RECORD The following messages appear in the upper left hand corner of the screen.
DISPLAY
SWITCH TO ALPHANUMERIC OVERLAY CONFIGURING MESSAGE AREA CONFIGURATION COMPLETE, PLEASE CONTINUE At this point, change to the Alphanumeric Overlay (cat. no. 1770-KAA). MR,n appears on the screen.
MR,n RETURN
The message n appears on the screen. You have exited message generation. Change to the PLC-2 Family overlay (cat. no. 1770-KCB).
ESC
Automatic Report Generation Once you have entered automatic report generation, your 1770-T3 terminal serves as a device that automatically displays messages as the program executes. These messages are displayed automatically through program control by energizing specific message request bits. You can access automatic report generation if the processor is in the Run, Run/Program, Test, or Remote Test mode by performing the following keystrokes:
23-11
Page 363
Chapter 23 Report Generation
ESC
40
The word SEARCH appears in the lower left hand corner of the screen. The words AUTOMATIC REPORT GENERATION appear across the top of the screen and appear in the lower left hand corner of the screen. The word SEARCH changes to SEARCH 40. CHANNEL C: 9600 BAUD; INPUT = ON; HANDSHAKE = ON RECORD If your processor is in Program mode, the following message appears underneath the words AUTOMATIC REPORT GENERATION: PROCESSOR NOT IN RUN OR TEST MODE. Change modes and continue. Press [Cancel Command] to exit report generation. You can enter automatic report generation by another method if you have the Alphanumeric Key top overlay (cat. no. 1770-KAA) on the keytop and the processor is in the Run or Run/Program mode. The processor must also be in report generation. Perform the following steps:
MR ESC
MR appears on the screen. The words AUTOMATIC REPORT GENERATION appear across the top of the screen. If your processor is in the Program mode, the following message appears underneath the words AUTOMATIC REPORT GENERATION: PROCESSOR NOT IN RUN OR TEST MODE. Change modes and continue. Press [Esc] [Esc] to exit Automatic report generation
23-12
Page 364
Chapter 23 Report Generation
Important: Automatic report generation 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 23.2). To find these switches, turn power off and remove the keyboard. Figure 23.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]. The display returns to the ladder diagram if automatic report generation was entered by a command from a peripheral device. Messages 1-6 Bits 10-15 of word 027 are used to control messages 1-6 (Figure 23.3). Bit 027/10 is the request message number 1, bit 027/11 is the request bit for message number 2 and so on. The remaining 64 messages have a user-defined file of message request bits for control. 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 stays on for 300 milliseconds and then resets. Figure 23.3 Bit Assignments in Word 027 Request Bits 17 16 15 14 13 12 11 10 07 (6) (5) (4) (3) (2) (1)
Busy BIt Done Bit
00
Corresponding Message Numbers 10399-I
23-13
Page 365
Chapter 23 Report Generation
You can display any of the six messages when the corresponding bit 10-15 of word 027 is latched on. An example program to display one of the messages 1-6 is shown in Figure 23.4. Three programming rungs are required to display each stored message. The rungs must be programmed in the order shown. Figure 23.4 Example Program For Displaying Messages (1-6)
Event 265
Busy Bit 027
04
16
Storage Bit
Done Bit 027
RUNG 1
Message (1) Request Bit 027 L 10
RUNG 2
Message (1) Request Bit 027 U 10
RUNG 3
Storage Bit
17
Additional Messages The upper byte of each message control word contains the request bits for eight messages. Figure 23.5 Bit Address and Message Number Relationship Control Word Number 0 1 2 3 4 5 6 7
23-14
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
Page 366
Chapter 23 Report Generation
You define the control word addresses that correspond to the control word number. The last three digits of the message request bit address are coded to represent a particular message. For example, message number 312 indicates the 12th bit of the 3rd control word. The message request bit address (follow the arrows in the figure above) is then 203/12. Likewise, message number 716 indicates the 16th bit of the 7th control word, with a message request bit of 207/16. 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 23.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. 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 23.6 shows this relationship. For example, if 204/15 is the request bit for a message, the done bit is located at 205/05, one byte below the request bit. Figure 23.6 Extended Message Control Word Message Request Bits
17
Message Done Bits
10
07
00
Message Control Word
10401-I
Figure 23.7 shows an example program that can be used to display each message.
23-15
Page 367
Chapter 23 Report Generation
Figure 23.7 Example Program to Display Any of the Remaining 64 Messages
Event 265
RUNG 1
Message (010) Request Bit 200 L 10
RUNG 2
Message (010) Request Bit 200 U 10
04 Event 265
Message (010) Done Bit 200
04
00
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 in hazardous or unexpected machine operation. This could damage equipment and injure personnel.
The message control word file can be located anywhere in the data table except in processor work areas and in the input image table. If Memory Write Protect is active, the message control word file must be placed in the area of the data table which can be changed (words 010-177).
Graphic Programming
23-16
Several keys and special industrial terminal control codes are used to move through the display and perform a variety of functions (Table 23.D and Table 23.E).