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

The text of a manual · part 43 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 352 to 359

Pages 352 to 359 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 352

Chapter

23

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 industrial terminal must be in the Mini-PLC-2/02, Mini-PLC-2/16, or Mini-PLC-2/17 mode. Messages are stored in the processor’s memory after the END of program statement. The 1770-T3 industrial terminal report generation features include: as many as 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

23-1

Page 353

Chapter 23 Report Generation

Report Generation Commands

Use the report generation commands (Table 23.A) to enter control words and to store, print, report, and delete messages and to display an index of existing messages. Table 23.A Report Generation Commands

Command Enter report generation function

Key Sequence

Description

[RECORD][DISPLAY] Set baud rate (Message Code Keys)

Puts industrial terminal into report generation function.

Message store

[M][S][,] (Message Number) [RETURN]

Stores message in processor memory. Use [ESC] to end message.

Message print

[M][P][,] (Message Number) [RETURN]

Prints message exactly as entered.

Message report

[M][R][,] (Message Number) [RETURN]

Prints message with current data table values or bit status.

Message delete

[M][D][,] (Message Number) [RETURN]

Removes message from processor memory.

Message index

[M][I][RETURN]

Lists messages used and the number of words in each message.

Automatic report generation.

[SEARCH][4][0] [M][R][RETURN]

Allows messages to be printed through program control.

Exit automatic report generation

[ESC] [CANCEL COMMAND] 1

Terminates automatic report generation.

Exit report

[ESC] [CANCEL COMMAND]

Returns to ladder diagram display. Terminates Report Generation Function.

1

Same (entered from a peripheral device).

1

[CANCEL COMMAND] can only be used if the function was entered by a command from a peripheral device.

Message Control Word File - MS, 0 Bits from eight consecutive user-selected words control the 64 additional messages. The eight message control words are determined by establishing a 2-word message in the data table, called message 0. Store Message 0 by using the following keystrokes:

23-2

Page 354

Chapter 23 Report Generation

You must be in report generation.

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 MS,0 appears on the screen. This prompt appears on the screen:

MS, 0 RETURN

MESSAGE CONTROL WORDS (ENTER 3 DIGIT WORD ADDRESS) ADDRESS = Enter the beginning word address of the message control word file. The industrial terminal calculates and displays the words in the message control word file. You can locate the message control word file in any unused data table area except processor work areas and input image table areas. If memory write protect is active, place the message control word file in the area of the data table which can be changed (010-177). Once you choose the start address, the industrial terminal displays a table (Table 23.B) which shows the message numbers associated with each message control word.

ESC

The display returns to the ladder diagram.

23-3

Page 355

Chapter 23 Report Generation

Table 23.B Example Message Control Word and Message Number Relationship Control Words

Message Numbers

200 201 202 203 204 205 206 207

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

Important: This table assumes user selected messages control words begin at 2008.

Message Store - MS Accessible only in the Program or Remote Program mode, use this command to enter messages in memory. Access the message store command by: You must be in report generation.

MS,nnn

MS,nnn appears on the screen. nnn = message number

RETURN

ESC

ESC

ESC

A prompt READY FOR INPUT message is displayed. Any subsequent keys pressed then become part of the message. If you try to use a message number that already exists, the terminal displays MESSAGE ALREADY EXISTS. A prompt END OF MESSAGE STORE appears on the screen. The display returns to the ladder diagram. Each key you press, except [Shift], [Ctrl], [Esc], or [Rub Out] generates a code that is stored in one byte of memory. This includes ASCII and graphic characters as well as other keys such as [Rub Out] or [Esc]. You can enter messages which when reported give the current value of a data table word or byte. The messages can report the on or off status of a data table bit by using the delimiters shown in Table 23.C.

23-4

Page 356

Chapter 23 Report Generation

Table 23.C Address Delimiters Delimiter Format

Explanation

Message Report Format

*XXX*

Enter 3-digit word address between delimiters.

Displays the 3-digit BCD value at assigned word address.

*XXX1* or *XXX0*

Enter 3-digit word address and a for upper byte or a for lower byte between delimiters.

Displays the 3-digit octal value at assigned byte address.

*XXXXX*

Enter 5-digit bit address between delimiters.

Displays the On or Off status of the assigned bit address.

#XXX#

Enter 3, 4, or 5-digit word address between delimiters.

Displays the 3-digit BCD value at assigned word address.

!XXX!

Enter 3, 4, or 5-digit word address between delimiters.

Displays the 4-digit hex value at address.

&XXX1& &XXX0&

Enter 3, 4, or 5 digit word address and a upper byte or a for lower byte between delimiters.

Displays the 3-digit octal value at the assigned byte address.

^XXXXX^

Enter 5, 6, or 7-digit bit address between delimiters.

Displays the On or Off status of the assigned bit address.

The desired delimiter is entered before and after the bit, byte, or word address. The delimiter tells the industrial terminal to print the current status or value of the bit, byte, or word at the address. You can enter as many consecutive addresses as needed by sharing the same delimiter, such as *XXX*XXX*XXX*. As an example, suppose you want to report the on/off condition of a device SR6, during each cycle of machine operation. The delimiters denote the output address 013/05, and the cycle counter accumulated value (stored at 030). The desired message, “SR6 is (on or off) in cycle (xxx)”, is entered into memory with the following keystrokes: You must be in report generation.

MS,n appears on the screen.

MS,n n = message number RETURN

READY FOR INPUT appears on the screen. SR6 [space] IS [space] *01305* [space] IN [space] CYCLE [space] #030#

ESC

ESC

23-5

Page 357

Chapter 23 Report Generation

The words END OF MESSAGE STORE appear on the screen. Returns the display to the ladder diagram. Message Print - MP Accessible in any mode, the message print command is to print the contents of a message to verify it. You can print a message with the following keystrokes: You must be in report generation.

MP,n

MP,n appears on the screen. n = message number

RETURN

ESC

Message n appears on the screen. Returns the display to the ladder diagram. The message print command is valid for message 0. It prints out 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. In the example, the message print command would give the following: You must be in report generation.

MP,n

MP,n appears on the screen.

RETURN

SR6 IS *01305* IN CYCLE #030#

ESC

23-6

Returns the display to the ladder diagram.

Page 358

Chapter 23 Report Generation

Message Report - MR Accessible in any mode, the message report command prints a message with the current data table value or bit status that corresponds to an address between the delimiters. For example, the message report command gives the following: bit 013/05 is off and counter 030 accumulated value is 000. You must be in report generation.

MR,n

MR,n appears on the screen.

RETURN n = message number

RETURN

SR6 IS OFF IN CYCLE 000

ESC

Returns the display to the ladder diagram. Message Delete - MD Accessible only in the Program or Remote Program mode, the message delete command is used to delete messages from memory. This command is accessed by: You must be in report generation.

MD,n

MD,n appears on the screen n = message number

RETURN

The prompt DELETION IN PROGRESS appears on the screen. The message delete command cannot be terminated before completion. It terminates after the message has been cleared from memory and a MESSAGE DELETED prompt is printed.

ESC

The display returns to the ladder diagram. Important: Deleting MS,0 does not delete data in other stored messages. 23-7

Page 359

Chapter 23 Report Generation

Message Index - MI Accessible in any mode, the message index command prints an MI list of the message numbers used and the amount of memory (in words) used for each message. In addition, the number of unused memory words available is listed. The message index command is accessed by the following keystrokes: You must be in report generation.

MI

MI appears on the screen. This command cannot be terminated before completion. It self-terminates after the list is completed.

ESC

Entering a Message

The display returns to the ladder diagram.

Enter messages 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 23.1): Alphanumeric Keytop Overlay (cat. no. 1770-KAA) Alphanumeric/Graphics Keytop Overlay (cat. no. 1770-KAB)

23-8