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

The text of a manual · part 9 of 14

Mini-PLC-2 Programmable Controller Programming and Operations Manual, pages 81 to 90

Pages 81 to 90 of 132

The original document is the PDF (13 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-LN2 and Allen-Bradley 1772-LN3

Page 81 read from a scan by OCR; it may hold reading errors

Page 9-7

9.5.5 Search For Incomplete Rung (1770-T3 Industrial Terminal)

In the event that an interruption in programming occurred and a rung was inadvertently left without an Output instruction, this rung can be located by pressing the [SHIFT] [SEARCH] keys. The Processor can be in any mode.

9.5.6 Search For Specific Instruction and Specific Address

The procedures for finding a specific instruction or an address are similar. Any instruction in User Program can be located by pressing [SEARCH] [Instruction][Key Sequence of Address]. Any address (excluding those as- sociated with EXAMINE ON and EXAMINE OFF instructions) can be located by pressing the keys [SEARCH][8][Key Sequence of Address]. The address entered is the word address. For the OUTPUT ENERGIZE, LATCH and UNLATCH instructions, the Industrial Terminal will locate all of the bit addresses associated with the word address.

The message “SEARCH FOR’ and the entered key sequences will be displayed at the bottom of the screen. The message “EXECUTING SEARCH’ will appear temporarily. The 1770- T3 Industrial Terminal will begin to search for the address and/or instruction from the cursor’s position. It will look past the TEMP- ORARY END boundary to the END statement. Then it will continue searching from the beginning of the program to the point where the search began.

A 1770-T1 or -T2 Industrial Terminal will not look past the temporary END statement. It will continue searching from the beginning of the program to the point where it began the search

If found, the rung containing the first occurrence of the address and/or instruction will be displayed as well as the rungs after it. If the [SEARCH] key is pressed again, the next occurrence of the address and/or instruction will be displayed. When it cannot be located or all addresses and/or instructions have been found, a “NOT FOUND” message will be displayed at the bottom of the screen.

This function can be terminated at any time by pressing [CANCEL COMMAND]. All other keys are ignored during the search.

9.5.7 Single Rung Display

Upon power-up, a multiple rung display ap- pears on the screen. A single rung can be viewed by pressing [SEARCH][DISPLAY]. To return to the multiple rung display, press [SEARCH][DISPLAY] again.

9.6 TROUBLESHOOTING AIDS

The following troubleshooting aids are useful during starting-up and when troubleshooting a system:

e Bit Manipulation and Monitor Functions (1770-T3 Industrial Terminal)

e¢ FORCE ON and FORCE OFF Functions e TEMPORARY END Instruction (1770-T3 Industrial Terminal)

e ERR Message Display

The Troubleshooting aids are summarized in Table 9-5.

9.6.1 Bit Manipulation and Monitor (1770-T3 Industrial Terminal)

Bit Monitor allows the status of all 16 bits of any Data Table word to be displayed. Bit Manipulation allows the status of the dis- played bits to be selectively changed or forced, and is useful in setting initial conditions inthe data of word instructions.

BIT MONITOR

Bit Monitor can function when the Processor is in any mode. By pressing the key sequence [SEARCH]J[5][3][Key Sequence of Word Address], the status of all 16 bits of the desired word will be displayed. While the cursor is in the word address field, the [+] and [+] keys can be used to change address digits.

The status of the 16 bits in the next highest or next lowest word address also can be dis- played by pressing the [4] or [t] keys, respectively. Bit Monitor also can display the status of Force conditions, if any. See 9.6.2 below.

Page 82 read from a scan by OCR; it may hold reading errors

Page 9-8

TABLE 9-5, Troubleshooting Aids

E INDUSTRIAL KEY DESCRIPTION FUNCTION MOD TERMINAL SEQUENCE Bit Monitor Any 1770-T3 [SEARCH] [Displays the ON/OFF status of all [5] [3] 16 bits at specified word address

[Address] land corresponding force conditions if they exist.

[t+] or [4] Displays the status of 16 new bits at the next lowest or highest word address, respectively.

Bit PROGRAM 1770-T3 [SEARCH] _ |Displays the ON/OFF status of all Manipulation or [5] [3] 16 bits at specified word address TEST [Address] and corresponding force - |conditions if they exist.

[>] or [+] Moves cursor to the bit to be changed.

[1] or [0] Enter a “1” to set bit ON or a “0” to set bit OFF.

See FORCING [Forcing or removing forces from below input bits or output devices.

Either of above [CANCEL To terminate.

COMMAND] FORCE ON or TEST or RUN Anyil [FORCE ON] Position the cursor on the Image FORCE OFF [INSERT] Table bit or bit instruction to be instruction or forced ON or OFF and press the

[FORCE OFF] jkey sequence. The input bit or

[INSERT] output device will be forced ON or OFF.

Removing a TEST or RUN Any [FORCE ON] Position the cursor on the Image FORCE ON or [REMOVE] _ |Table bit or bit instruction whose FORCE OFF or force ON is to be removed and instruction [FORCE OFF] |press the key sequence. [REMOVE] Removing ail TEST or RUN Any a [FORCE ON] Position cursor anywhere in FORCE ON [CLEAR program and press key sequence. instructions MEMORY] Removing all TEST or RUN Anyi [FORCE OFF] |Position the cursor anywhere in FORCE OFF [CLEAR program and press key sequence. instructions MEMORY] Forced Any 1770-T3 [SEARCH] _ |Displays a list of the bit addresses Address [FORCE ON] that are forced ON or OFF. Display or The [SHIFT] [4] and [SHIFT] [7] [SEARCH] ’

[FORCE OFF] keys can be used to display additional forces.

Page 83 read from a scan by OCR; it may hold reading errors

Page 9-9

TABLE 9-5, Troubleshooting Aids (cont.)

INDUSTRIAL KEY FUNCTION MODE TERMINAL SEQUENCE DESCRIPTION Any of the above [CANCEL To terminate COMMAND]

Inserting a PROGRAM | 1770-T1, -T2 [INSERT] Position the cursor on the

Temporary END [4A-] [8] instruction that will precede the

Statement temporary END statement. Press the key sequence and END will be displayed on the screen. The remaining rungs will not be displayed or scanned.

Inserting a PROGRAM 1770-T3 [INSERT] Position the cursor on the

TEMPORARY [T.END] instruction that will precede the

END Instruction TEMPORARY END instruction and press the key sequence. TEMPORARY END will be displayed on the screen. The remaining rungs, although displayed and accessible, are not scanned.

Removing a PROGRAM | 1770-T1, -T2 [REMOVE] Position cursor on END statement

Temporary END (4A-] and press key sequence. If

Statement temporary, it can be removed. If it cannot be removed, it is an END of program statement.

Removing a PROGRAM 1770-T3 [REMOVE] Position cursor on the

TEMPORARY [T.END] TEMPORARY END instruction and

END Instruction press key sequence.

‘Ml 1770-11, -T2, or -T3

When in TEST mode, the Processor will hold outputs OFF regardless of attempts to force them ON.

BIT MANIPULATION

Bit Manipulation can function when the Pro- cessor is in Program mode. When in TEST mode, the User Program may override the bit status in the next scan.

The [+] and [+] keys can be used to cursor over to any bit. With the cursor on the desired bit, its status can be changed by pressing the [1] or [0] key. Bit Manipulation also allows the forcing of Image Table bits as described in 9.6.2 below.

To terminate this function, press [CANCEL COMMAND].

WARNING: If it is necessary to change the status of any Data Table bit, be sure that the consequences of the change are thoroughly understood beforehand. If not, unpredict- able machine operation could occur directly or indirectly as a result of changing the bit status. Damage to equipment and/or injury to personnel could occur.

9.6.2 FORCE ON and FORCE OFF Functions

The Force functions are used to selectively force an input bit or output device ON or OFF. The Processor must be in the TEST or RUN mode.

Page 84 read from a scan by OCR; it may hold reading errors

Page 9-10

The Force functions determine the ON/OFF status of input bits and output devices by overriding the I/O scan. An input bit can be forced ON or OFF regardless of the actual state of the corresponding input device. However, forcing an output terminal will cause the corresponding output device to be ON or OFF regardless of the rung logic or the status of the Output Image Table bit.

From 1 to 16 bits of an Input Image Table word and from 1 to 16 terminals of an Output Module Group can be forced ON or OFF separately or in combination.

NOTE: When in TEST mode, the Procesor will hold outputs OFF regardless of attempts to force then ON, even though the output bit instruction will be intensified.

USING THE 1770-T1, -T2 or 1770-T3 (Series A Rev A) INDUSTRIAL TERMINAL

The same force, ON or OFF, can be applied to any of the bits within a word. However, if a bit in a different Input Image Table word, or a terminal in a different Output Module Group is forced the same way, all previous forces in that word or module group are instantly re- moved. For example, if any terminal in Output Module Group 013 is forced OFF, and another terminal such as 012/01 is then forced OFF, all force conditions in the Output Module Group 013 will be removed.

Forcing functions can be applied in Ladder Diagam display by placing the cursor on the desired Examine or Energize instruction. After positioning the cursor, any one of the following key sequences can be used for placing or removing a forced condition:

[FORCE ON][INSERT] [FORCE OFF][INSERT] [FORCE ON][REMOVE] [FORCE OFF][REMOVE]

USING THE 1770-T3 (Series A Rev. B or later) INDUSTRIAL TERMINAL

Simultaneous forcing of bits in different Input Image Table words or terminals in different Output Module Groups is prevented by the

1770-T3 Series A Rev B or later model Indus- trial Terminal. If attempted, one of the following messages would appear.

SIMULTANEOUSLY FORCING BITS ON (OR OFF) IN TWO INPUT IMAGE TABLE WORDS IS NOT ALLOWED

SIMULTANEOUSLY FORCING BITS ON (OR OFF) IN TWO OUTPUT MODULE GROUPS IS NOT ALLOWED

A bit that is already forced, cannot be forced in the opposite mode. For example, if bit 012/03 is forced ON and an attempt is made to force it OFF, the following message will be displayed.

BIT ALREADY FORCED. EXISTING FORCE MUST BE REMOVED

Forcing functions can be applied using the 1770-T3 Industrial Terminal in either of two ways using: 1) Bit Manipulation/Monitor dis- play of an I/O word or b) Ladder Diagram display of User Program. By pressing the key sequence [SEARCH][5][3][Key sequence of Address], the bit status and force status of the 16 corresponding input bits or output terminals of the desired word can be displayed. The [+] and [+] keys can be used to cursor over to the desired bit. Or, in the Ladder Diagram display, forcing can be applied by placing the cursor on an Examine or Energize instruction.

ALL MODELS

When in TEST mode, the Processor will hold outputs OFF regardless of attempts to force them ON even though the output bit instructions will be intensified.

In every mode except the PROGRAM mode, the ON or OFF status of a forced bit will appear beneath the bit instruction in the rung. In all Processor modes, a “FORCED 1/0” message will be displayed near the bottom of the screen when bits are forced ON or OFF.

Note: The ON or OFF status of OUTPUT LATCH/UNLATCH instructions is also dis- played below the instruction. However, this is displayed only in PROGRAM mode.

All Force ON or all Force OFF functions can be removed at once in Ladder Diagram Display by pressing either of the following key sequences:

Page 85 read from a scan by OCR; it may hold reading errors

Page 9-11 e [FORCE ON][CLEAR MEMORY] e [FORCE OFF][CLEAR MEMORY]

All force functions will be removed immediately if any of the following conditions should occur: the Industrial Terminal or Processor is disconnected or loses AC power; the [MODE SELECT] key is pressed; or a terminal of a different Output Module Group or a bit in a different Input Image Table word is forced (excluding 1770-T3 Series A Rev B or later).

WARNING: When an energized output is being forced OFF, keep personnel away from the machine area. Accidental removal of Force functions will instantly turn ON the output device. Injury to personnel could result.

9.6.3 Forced Address Display (1770-T3 Industrial Terminal)

Acomplete list of bit addresses that are forced ON and OFF can be displayed by the Industrial Terminal. Either of the following key se- quences can be used.

° [SEARCH][FORCE ON] e [SEARCH][FORCE OFF]

If all the bits forced ON or OFF cannot be displayed at one time, the [SHIFT] [4] and [SHIFT][*] keys can be used to display addi- tional forced bits.

To terminate this display, press [CANCEL COMMAND].

9.6.4 TEMPORARY END Instruction

The TEMPORARY END instruction (or temp- orary END statement) can be used to test or debug a program up to the point where it is inserted. It acts as a program boundary be- cause instructions below it in User Program are not scanned or operated upon. Instead, the Processor immediately scans the |/O Image Table followed by User Program from the first instruction to the TEMPORARY END instruc- tion, or temporary END statement.

USING THE 1770-T3 INDUSTRIAL TERMINAL

When the TEMPORARY END instruction is inserted, the rungs below it, although visable and accessible, are not scanned. Their con- tent can be edited, if desired. The displayed section of User Program made inactive by the TEMPORARY END instruction will contain the message “INACTIVE AREA” in the lower right-hand corner of the screen.

The TEMPORARY END instruction can be inserted in either of two ways:

a) Cursor to the last rung of the User Program to be kept active. Position the cursor on the output instruction. Press [INSERT] [+][T.END] b) Cursor to the first rung of the User Program to be made inactive. Position the cursor in the first instruction in the rung. Press [INSERT] [-][T.END].

To remove this instruction, position the cursor on it and press [REMOVE][T.END].

To enter a rung after the T.END instruction, place the cursor onthe T.END instruction and press [INSERT][RUNG]. Then enter the new rung.

Although more than one TEMPORARY END instruction can be inserted, no rungs will be executed beyond the TEMPORARY END in- struction closest to the beginning of the program. The TEMPORARY END instruction uses one word of User Program.

USING THE 1770-T1 OR -T2 INDUSTRIAL TERMINAL

The temporary END statement is similar in function to the TEMPORARY END instruction described above with the following excep- tions. When the temporary END statement is inserted, the rungs below it are not shown (nor are they scanned) and norungs can be entered below it. The temporary END statement will look just like the normal END statement.

The temporary END statement can be inserted in two ways:

a) Cursor to the last rung of the User Program to be kept active. Position the cursor on the output instruction. Press [INSERT][-|/-][8].

b) Cursor to the first rung of User Program to be made inactive. Position the cursor on the first instruction in the rung. Press [INSERT]

[~][-4-1[8}.

Page 86 read from a scan by OCR; it may hold reading errors

Page 9-12

To remove this instruction, position the cursor on the END statement and press [REMOVE]

[-A-]. If it is temporary, it will be removed and the subsequent program instructions will be displayed.

9.6.5 ERR Message for an ILLEGAL OPCODE

An illegal opcode is an instruction code that the Processor does not recognize. It will cause the Processor to fault and will be displayed as an ERR message in the ladder diagram rung in which it occurs. The 4-digit hex value of the illegal opcode is displayed above the ERR message by the 1770-T3 Industrial Terminal. The 1770-T1 or -T2 Industrial Terminal will display the ERR message without the hex value.

If an illegal opcode should occur, the rung containing it can be compared with the equivalent rung in a hard copy printout of the program. A decision must be made either to replace the error with its correct instruction, see paragraph 9.3.6 Replacing an Instruction, or to remove it. The ERR message due to an illegal opcode cannot be removed directly. Instead, remove and replace the entire rung as described in paragraphs 9.3.3 and 9.3.4 In- serting and Removing a Rung. The cause of the problem should be identified and cor- rected in to correcting the ERR message.

9.7 CLEARING MEMORY

The option of clearing the Data Table, User Program and Messages is available with vari- ous CLEAR MEMORY functions. The Clearing Memory instructions are summarized in Table 9-6.

9.7.1 Data Table Clear (1770-T3 Industrial Terminal)

Part or all of the Data Table can be cleared by pressing [CLEAR MEMORY]|[7][7], entering a Start and end word address, and then pressing [CLEAR][MEMORY] again. The Data Table will be cleared between and including these two word addresses.

9.7.2 User Program Clear (1770-T3 Industrial Terminal)

Part or all of the User Program can be cleared by pressing [CLEAR MEMORY][8][8]. The User Program will be cleared from the cursor position to the TEMPORARY END instruction, or the END statement. Neither the Data Table nor Messages are cleared.

9.7.3 Partial Memory Clear

Part of the User Program and the Messages can be cleared by pressing [CLEAR MEMORY] [9][9]. The User Program and Messages are cleared from the cursor position to the end of memory. None ofthe bits in the Data Table are cleared.

9.7.4 Total Memory Clear

The complete memory can be cleared by pressing [SEARCH]|[t] to position the cursor on the first instruction of the program and then pressing [CLEAR MEMORY][9][9]. This resets all the Data Table bits to zero. A total memory clear should be done before entering the User Program.

Page 87 read from a scan by OCR; it may hold reading errors

Page 9-13

TABLE 9-6, Clear Memory Functions

FUNCTION MODE INDUSTRIAL KEY DESCRIPTION TERMINAL SEQUENCE Data Table PROGRAM 1770-T3 [CLEAR Displays a start address and an Clear MEMORY] end address field. (7][7] [Start Start and end word addresses Address] determine boundaries for Data [End Table clearing. Address] [CLEAR Clears the Data Table within and MEMORY] including addressed boundaries. User Program PROGRAM 1770-T3 [CLEAR Clears User Program from the Clear MEMORY] position of the cursor to the END [8] [8] statement or TEMPORARY END instruction. Does not clear Data Table or Messages. Partial Memory PROGRAM Any [CLEAR Clears User Program and Clear MEMORY] messages from position of the [9] [9] cursor to end of memory. Does not clear Data Table. Total Memory PROGRAM Any @ [SEARCH] [t] |Position the cursor on the first Clear [CLEAR instruction of the program. Clears MEMORY] _ {total memory (Data Table, User [9] [9] Program and Messages).

‘Hl 1770-11, -T2 or -T3

Page 88

This page is a scan with no text; see it in the PDF.

Page 89 read from a scan by OCR; it may hold reading errors

Page 10-1

Section 10 PERIPHERAL FUNCTIONS INCLUDING REPORT GENERATION

10.0 GENERAL

There are several functions that can be per- formed with a Mini-PLC-2 and the Industrial Terminal. The functions include:

e Contact Histogram e Report Generation e Cassette Recorder Dump and Load e Data Cartridge Recorder Dump and Load (1770-T3 Industrial Terminal)

e Ladder Diagram Dump e Total Memory Dump (1770-T3 Industrial Terminal)

Except for the contact histogram and report generation, the remaining functions require the use of a peripheral device connected to Channel C of the Industrial Terminal.

10.1 BAUD RATE SETTING

The baud rate for Channel C must be set to match the baud rate of the peripheral device when a peripheral device other than the Digital -

Cassette Recorder (Cat. No. 1770-SA) or Digital Cartridge Recorder (Cat. No. 1770-SB) is used. The baud rate is the number of bits per second sent to/from Channel C. The baud rate for Channel C can be set in one of two ways:

e Setting switches 1, 2 and 3 of the Switch Group Assembly on the Industrial Terminal’s main logic board (Table 10-1).

e Pressing [RECORD][n] and anumber from 2 to 8 on the Industrial Terminal (Table 10-2).

A baud rate entered via the keyboard will override the default setting of the Switch Assembly Group if initially set to some other (often used) baud rate.

USING THE 1770-T3 INDUSTRIAL TERMINAL

Channel C must be ON to receive input froma peripheral device. Channel C is initially ON. It can be turned OFF by pressing [RECORD][9] and ON by pressing [RECORD] [9] again. The

TABLE 10-1, Switch Group Settings

SWITCH BAUD

1 2 3 RATE Down | Down | Down 110 Down |} Down |Up 300 Down | Up Down 600 Down | Up Up 1200 Up Down | Down 2400 Up Down |Up 4800 Up Up Down 9600

TABLE 10-2, Key Sequence for Setting Baud Rate

BAUD

KEY SEQUENCE RATE [RECORD][2] 110. [RECORD][3] 300 [RECORD][4] 600 [RECORD][5] 1200 [RECORD][6] 2400 [RECORD]|[7] 4800 [RECORD][8] 9600

ON/OFF status of Channel C and the baud rate will be displayed at the bottom of the screen when setting the baud rate using the [RECORD][n] keys where 2<n<8.

USING THE 1770-T1 OR -T2 INDUSTRIAL TERMINAL

Channel C must be ON to receive input froma peripheral device. Channel C is initially OFF. It can be turned ON by setting the baud rate using the [RECORD] [n] keys. Another way of turning ON channel C is as follows:

e Change to the Alphanumeric Keytop Over- lay, 1770-KAA.

e Press [1][2], Mode Selection on the Alpha- numeric Keytop Overlay.

e Press [4], the Channel C Alphanumeric Mode Option.

e Press [1] for ON ([0] for OFF).

Pressing the [1] key returns the display to the Alphanumeric Mode Option which displays

Page 90 read from a scan by OCR; it may hold reading errors

Page 10-2 the ON/OFF status of Channel C. Pressing the [Mode Select] key will terminate the Alpha- numeric Mode Option and will turn OFF Channel C.

10.2 CONTACT HISTOGRAM

The Contact Histogram function displays the ON/OFF history of aspecific memory bit. This can be monitored on the Industrial Terminal and can also be printed by a peripheral printer. If a peripheral device is used, the baud rate for Channel C of the Industrial Terminal must be set.

Any Data Table bit, excluding the Processor Work Areas, can be accessed by the Contact Histogram command. The status of the bit (ON or OFF) and the length of time the bit remained ON or OFF (in hours, minutes and seconds) will be displayed. The seconds are displayed to within 00.01 second (10 msec.) resolution.

There are two operating modes for the contact histogram, shown in Table 10-3:

¢ Continuous: It is accessed by pressing

[SEARCH][6]. Once started, the histogram is displayed continuously until stopped.

e Paged: Itis accessed by pressing [SEARCH] [7]. The histogram is displayed one page at a time by user command.

After pressing [SEARCH][6] or [SEARCH][7], enter the bit address to be monitored.

After pressing [DISPLAY], the data of the histogram will be displayed on every other line with 5 frames of data per line. Each frame of data contains the ON or OFF status and the length of time in hours, minutes and seconds [read between the dash (-) symbols] in the format shown in Figure 10-1.

hr. mn. sec. (ate ate anim’ -OFF or ON 00:00:00.00-

-ON 00:00:00.00-OFF 00:00:00.00-ON 00:00:00.00- se! \ eee

\ - - /

“VV mu, v ON TIME OFF TIME ON TIME

FIGURE 10-1, Contact Histogram Display

If the bit is changing states faster than can be printed or displayed, a buffer is maintained to Store these changes. If the buffer becomes

TABLE 10-3, Contact Histogram Functions

FUNCTION MODE key SEQUENCE DESCRIPTION Continuous RUN [SEARCH][6] |Provides a continuous display of the ON/OFF Contact Histogram or [Bit Address] history of the addressed bit in hours, minutes TEST [DISPLAY] land seconds. Obtain a hardcopy printout of contact histogram by connecting a peripheral device to Channel C and selecting proper baud rate before entering indicated key sequence. Paged Contact RUN [SEARCH][7] |Displays 11 lines ON/OFF history of the addressed Histogram or [Bit Address] bit in hours, minutes and seconds. TEST [DISPLAY] [DISPLAY] Displays the next 11 lines of contact histogram. Obtain a hard copy printout of contact histogram by connecting peripheral device to Channel C and selecting proper baud rate. Either RUN [CANCEL To terminate. or COMMAND] TEST