The text of a manual · part 3 of 14
Mini-PLC-2 Programmable Controller Programming and Operations Manual, pages 21 to 30
Pages 21 to 30 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 21
Page 2-3
Processor, Processor memory and I/O mod- ules. It is ON when 5.1V DC is present. If the line drops below 5.1V DC, the indicator turns OFF and the controller shuts down.
2.4 SWITCH GROUP ASSEMBLY
When the Processor detects an internal fault, communication with the I/O rack is termi- nated. The last state of output terminals in this situation is user-selectable by the settings on the Switch Group Assembly. It is located on the left side of the I/O chassis backplane. (Refer to Figure 2-4.) Switch #1 must be set to determine output response to a Processor fault. Switch numbers 2-8 are not used. There are two switch settings:
e ON, Outputs remain in their last state, energized or de-energized, when a fault is detected.
e OFF, Outputs are de-energized when a fault is detected.
WHEN ON: OUTPUTS REMAIN IN LAST STATE (ENERGIZED OR DE-ENERGIZED) IF FAULT IS DETECTED
WHEN OFF: OUTPUTS ARE DE-ENERGIZED WHEN FAULT IS DETECTED (SWITCH IS SHOWN IN OFF POSITION)
WARNING: Switch #1 should be set to OFF for most applications. This allows the Pro- cessor to turn controlled devices OFF when a fault is detected. If this switch is set ON, machine operation can continue after fault detection and damage to equipment and/or injury to personnel could result.
2.5 INDUSTRIAL TERMINAL
The Industrial Terminal (Cat. No. 1770-T1,-T2 or-T3) can be used to program the Mini-PLC-2.
FIGURE 2-4, Switch Group Assembly
2.5.1 Hook-Up
Perform the following steps to connect the Industrial Terminal to the Mini-PLC-2 Pro- cessor: See Figure 2-5.
1. Plug the AC power cord of the Industrial Terminal into a grounded AC outlet.
2. Connect one end of the PLC-2 Program Panel Interconnect Cable (Cat. No. 1772-TC) to Channel A on the rear of the Industrial Terminal.
INDUSTRIAL TERMINAL
CHANNEL A
MINI-PLC-2
CAT. NO.
1772-TC (10 FT.)
INTERFACE
FIGURE 2-5, Mini-PLC-2 Connection Diagram
Page 22
Page 2-4
3. Connect the other end of the cable to the socket labeled INTERFACE on the front of the Mini-PLC-2 Processor.
4. Insert the PLC-2 Keytop Overlay (Cat. No. 1770-KCA), Figure 2-6, on the Keyboard Module (Cat. No. 1770-FDC).
5. Turn the power switch on the front of the Industrial Terminal to the ON position. Mode Select display will appear.
For additional information on the Industrial Terminal, refer to the Industrial Terminal
System User’s Manual, Publication No. 1770- 805
2.5.2 Mode Selection and Initialization of the Industrial Terminal
When the Industrial Terminal is turned ON or when communication between the Industrial Terminal and Processor is interrupted for any reason, the Mode Selection display will appear. See Figure 2-7 for the 1770-T1 or -T2 display and Figure 2-8 for the 1770-T3 display. Any of the following occurrences can cause
|
(JLIL I a
_) RECORD RUNG ] [ssn] [+] {6}
Tl | +
9 O
SIgauE
Jel
U4) ue 6
Ile l-l elf] J(2)(3
SS Secs Oe
(_ For use with puc-2
CAT. NO. w70xca )
(@ 982 accen-eraovey ssors7.0g )
FIGURE 2-6, PLC-2 Keytop Overlay (Cat. No. 1770-KCA)
MODE SELECTION KEYBOARD MODULE 1770-FAC SERIES A/D
INSERT KEYTOP OVERLAY 10 = PLC MODE 1770-KBA Ml
11 = PLC-2 MODE 1770-KCA 12 = ALPHANUMERIC MODE 1770-KAA
SELECT DESIRED MODE:
@ PLC Mode is displayed on the 1770-T2 Industrial Terminal.
cr
™
MODE SELECTION KEYBOARD MODULE 1770-FOC SERIES A/B
INSER FOR USE WITH THE MODE KEYTOP OVERLAY FOLLOWING PROCESSORS:
10 = PROCESSOR 1770-KBA 11 = PROCESSOR 1770-KCB
PLC MINI-PLC-2. PLC-2 MINI-PLC-2/15 PLC-2/20 (LP1) PLC-2/20 (LP2) PLC - 2/30
12 » ALPHANUMERIC 1770-KAA
SELECT DESIRED MODE:
“a ~
@ PLC processor selection is displayed on 1770-T3 Series B or later models of the Industrial Terminal.
SJ
FIGURE 2-7, Mode Selection Display 1770-T1 or T2 Industrial Terminal
FIGURE 2-8, Mode Selection Display 1770-T3 Industrial Terminal
Page 23
Page 2-5 an interruption in communication and initialization of the Industrial Terminal e Pressing the [MODE SELECT] Key e Loss of power to the Processor or Industrial Terminal
¢ Disconnecting the Program Panel Interface Cable
To initialize the Industrial Terminal, one of the operating modes shown in Figure 2-7 or 2-8 must be chosen. If the Industrial Terminal is connected to a PLC-2 Family Processor, the Processor type (i.e. Mini-PLC-2, Mini-PLC- 2/15, PLC-2/20, PLC-2/30) will be intensified.
To enter Ladder Diagram (PLC-2) mode, press [1][1] on the PLC-2 Keytop Overlay (Cat No. 1770-KCA).
When the Industrial Terminal is to be used as an alphanumeric data terminal, insert the Alphanumeric Keytop Overlay (Cat. No. 1770- KAA) and press [1][2]. Operation of the
Industrial Terminal with the Alphanumeric Keytop Overlay is described in Section 10.3, Report Generation.
2.5.3 Keytop Overlay
The Mini-PLC-2 Processor should be pro- grammed using the PLC-2 Keytop Overlay (1770-KCA) shown in Figure 2-6. All keys in this overlay are functional with the 1770-T1, -T2 or -T3 Industrial Terminal. The functions of the keys will be described in detail starting with Section 3 of this manual.
The PLC-2 Family Keytop Overlay (1770- KCB) can be used with any of the Processors inthe PLC-2 Family. It should be used with the 1770-T3 Industrial Terminal when program- ming either the Mini-PLC-2/15 or the PLC- 2/30. This overlay contains keys for some functions that are not possible with the Mini- PLC-2. When any one of these keys is pressed, the message “FUNCTION NOT AVAILABLE WITH THIS PROCESSOR?” or “INVALID KEY” will appear on the screen.
Page 24
Page 25
Page 3-1
Section 3 RELAY-TYPE INSTRUCTIONS
3.0 GENERAL Programmable controllers have many of the capabilities of hardwired relay control systems. Control functions similar to those available with relays are provided by the following relay-type instructions:
e Examine instructions
® Output instructions e Branch instructions
3.1 EXAMINE INSTRUCTIONS There are two Examine instructions: ° ON 4 |- e OFF -/-
The Examine instructions can examine the status of bits in any Data Table area except for Processor Work Areas. When an EXAMINE ON or EXAMINE OFF instruction is given an address in the I/O Image Table, the instruc- tion can indirectly examine the status of a corresponding I/O device. The status of the 1/O Image Table bit will be a 1 or 0 reflecting the ON or OFF condition, respectively, of the 1/O device. The I/O device and the I/O Image Table bit have the same address. (See Hard- ware/Program Interface, Section 1.4).
The condition of the instruction can be either TRUE or FALSE depending on the status of the examined bit. If the Image Table bit is in the desired state, the instruction is TRUE. The TRUE-FALSE conditions of the Examine instructions are as follows:
e The EXAMINE ON instruction is TRUE when the addressed memory bit is a 1, meaning that the corresponding I/O device or bit is ON.
e The EXAMINE ON instruction is FALSE when the addressed memory bit is a 0, meaning that the corresponding I/O device or bit is OFF.
@ The EXAMINE OFF instruction is TRUE when the addressed memory bit is a 0, meaning that the corresponding I/O device or bit is OFF.
e The EXAMINE OFF instruction is FALSE when the addressed memory bit is a 1, meaning that the corresponding I/O device or bit is ON.
The EXAMINE ON and EXAMINE OFF instruc- tions are illustrated in an example rung in Figures 3-1 and 3-2, respectively.
| 112 L rk
012 { 13
FIGURE 3-1, EXAMINE ON Instruction
112 | 05
012 ( 14
FIGURE 3-2, EXAMINE OFF Instruction
Page 26
Page 3-2
3.2 OUTPUT INSTRUCTIONS
The output instructions set an addressed memory bit to “1” (ON) or reset it to “O” (OFF). An Output Image Table bit, as a‘‘1” or “0”, can Cause an output device to be turned ON or OFF, respectively.
Output instructions are programmed at the end of the ladder-diagram rungs. Only one output instruction can be programmed on each rung. The output instruction will be performed only if the Condition (input) instructions preceding it provide a path of logical continuity (Figure 3-3).
These output instructions are: e ENERGIZE -( )- e LATCH -(L)-
@ UNLATCH -(U)-
These instructions are used to set memory bits ON or OFF in any area of the Data Table, excluding the Processor Work Areas. General- ly, they should NOT be assigned Input Image Table addresses because Input Image Table words are reset by the I/O scan.
3.2.1 OUTPUT ENERGIZE Instruction
The OUTPUT ENERGIZE instruction tells the Processor to turn an addressed memory bit ON when rung conditions are TRUE. This memory bit will determine the ON or OFF status of an output device when addressed to an output terminal. This instruction can also be used to turn ON astorage bit for later use in the program.
The OUTPUT ENERGIZE instruction tells the Processor to turn the addressed memory bit OFF when rung conditions go FALSE. Refer to Figure 3-4.
The OUTPUT ENERGIZE instruction can be programmed unconditionally for some types of specialized programming. Its use should be limited to storage bits for these special pur-poses. An unconditional OUTPUT ENERGIZE instruction (Figure 3-5) causes the output instruction to remain energized continuously. This is not advisable in output device programming for safety reasons, because the device cannot be turned OFF by program logic. Care should be taken not to inadvertently enter an unconditional output instruction.
t= OUTPUT CONDITIONS | INSTRUCTION F+4 -+rF4 + + A CONTINUOUS PATH IS NEEDED FOR LOGICAL CONTINUITY FIGURE 3-3, Ladder-Diagram Rung 112 012 { 06 15
FIGURE 3-4, OUTPUT ENERGIZE Instruction
Page 27
Page 3-3
035 + 15
FIGURE 3-5, Unconditional OUTPUT ENERGIZE Instruction
3.2.2 OUTPUT LATCH and UNLATCH Instructions
There are two output instructions that are termed “retentive.” These instructions are:
e OUTPUT LATCH e¢ OUTPUT UNLATCH
These instructions are usually used as a pair for any bit address they control.
The OUTPUT LATCH instruction (L) is some- what similar to the OUTPUT ENERGIZE instruction. The OUTPUT LATCH instruction tells the Processor to set an addressed mem- ory bit ON when the rung condition is TRUE. Unlike the OUTPUT ENERGIZE instruction, the OUTPUT LATCH instruction is “retentive.” This means that once the rung condition goes FALSE, the latched bit remains ON until reset by an OUTPUT UNLATCH instruction. If power is lost but Processor back-up battery is maintained, all latched bits will remain ON. Outputs associated with the latched bits will be OFF with the power OFF. However, they will turn ON immediately when power is restored.
The OUTPUT UNLATCH instruction (U) is used to turn OFF a memory bit that has been latched ON. The OUTPUT UNLATCH instruc- tion addresses the same memory bit that has been latched ON (Figure 3-6). When the rung condition for the OUTPUT UNLATCH instruc- tion goes TRUE, the addressed memory bit is reset to zero (OFF). Refer to Figure 3-7. The OUTPUT UNLATCH is also “retentive.” This means that once the rung condition goes FALSE, the unlatched bit remains OFF until reset by an OUTPUT LATCH instruction.
When the Mode Select Switch is changed from the RUN position, the last LATCH or UNLATCH instruction continues to control the addressed memory bit, but the output device is de-energized by the Processor. When the Mode Select Switch is turned back to RUN a latched output device will be energized.
The OUTPUT LATCH and UNLATCH instruc- tions, when entered, automatically set the bit to OFF. The bit can be initially preset ON by entering the number [1] immediately after the address. The ON or OFF condition will be displayed below the instruction when the Processor is in the PROGRAM mode (Figure 3-8). When the Mode Select Switch is turned to the RUN position, the addressed memory bit and output device, if latched ON, will
113 010 H | (L} 04 00 113 010 4 | (UJ
05 00
FIGURE 3-6, LATCH/UNLATCH Instructions
Page 28
Page 3-4
I I | | | | LATCH TRUE --~- - | | | | a RUNG FALSE ! | : : | ! | | | | | | | | | ! ! | | | | | | UNLATCH TRUE, - - _, | -- | RUNG FALSE | 1 | | | | | | | | | | | | | | | | | | | Po 1 | | OUTPUT ON | | BIT l | | 01000 OFF ! L I | | | | ! 1 | I ! FIGURE 3-7, LATCH/UNLATCH Timing Diagram 112 014 4 | { 04 OFF 00 112 014 rt oK {U)} - 05 ON 16 INDICATES ON OR OFF
FIGURE 3-8, LATCH/UNLATCH Indication immediately be energized, regardless of the rung condition.
WARNING: Do not preset a bit ON con- trolled by LATCH/UNLATCH instructions if it controls potentially hazardous machine motion. If the bit is preset ON by the LATCH/UNLATCH instructions, the output device controlled by that bit is energized immediately when the Mode Select Switch is turned to the RUN position. Injury to personnel near the machine could result.
Both LATCH and UNLATCH instructions can be programmed unconditionally. This pro- gramming technique is generally used with storage bits and should not be used to control output devices.
3.3 BRANCH INSTRUCTIONS
The branch instructions allow more than one combination of input conditions to energize an output device (Figure 3-9).
There are two branch instructions: ¢ BRANCH START e BRANCH END
BRANCH START, This instruction begins each parallel logic branch of a rung. The BRANCH START is programmed immediately
Page 29
Page 3-5 before the first instruction of each parallel logic path.
BRANCH END, This instruction completes a set of parallel branches. The BRANCH END is entered after the last instruction of the last branch to end a set of parallel branches.
Branch instructions must be entered in the correct order for proper logic function. The only limitation is that a “nested” branch (a branch within a branch) cannot be pro- grammed directly (Figure 3-10). A total of seven (7) branches can be programmed in one rung and properly displayed on the Industrial Terminal.
3.4 PROGRAMMING RELAY-TYPE INSTRUCTIONS
All relay-type instructions are entered from the Industrial Terminal Keyboard with the
Processor in the PROGRAM mode. When a relay type instruction is initially entered, it will appear intensified on the screen to indicate the cursor’s present position. When a bit address is required, the instruction will blink to indicate information is needed to complete the instruction. The default bit address, 010/00, is displayed automatically with the instruction. (NOTE: The term “default” simply means that data is to be added.) A reverse- video character cursor is positioned at the first digit. This cursor indicates where information is needed and moves to the next digit as information is entered. When all information is entered, the instruction stops blinking and remains intensified until the next instruction is entered.
Refer to Table 3-1 for a complete summary of
TWO A SINGLE BRANCH END BRANCH \\| 111 4 INSTRUCTION
START |
INSTRUCTIONS "1 relay-type instructions. 4 { 00
111 TWO POSSIBLE PATHS FOR LOGIC CONTINUITY. (OR-LOGIC)
12
FIGURE 3-9, Branching Instructions
A B C Ho
A. DESIRED LOGIC (CANNOT BE PROGRAMMED)
D BRANCH, - - - > [4 WITHIN A BRANCH c 4 -_ - - - A B C FoI E44 | D C
- t4 K+ b/Y<« - INSTRUCTION REPEATED
B. EQUIVLENT LOGIC (CAN BE PROGRAMMED)
FIGURE 3-10, Nested Branching vs. Proper Programming
Page 30
Page 3-6
TABLE 3-1, Relay Type Instructions
Note: Examine and Output addresses, XXX/XX, can b
€ assigned to any location in the Data Table, excluding the Processor Work Areas and as noted below. KEYTOP INSTRUCTION -T1, -T2 1770-T3 DESCRIPTION SYMBOL NAME DISPLAY DISPLAY -+| |- EXAMINE ON XXXXX XXX When the addressed memory + |- -+| |- bit is ON, the instruction is XX TRUE. 44- EXAMINE OFF XXXXX XXX When the addressed memory -|/- -|/- bit is OFF, the instruction it XX TRUE. -( )- ENERGIZE XXXXX XXX MWhen the rung is TRUE, the -( )- -( )- addressed memory bit is set XX ON. If the bit controls an output device that output device will be ON. -(L)- OUTPUT LATCH XXXXX XXX WM When the rung is TRUE, the -(L)- -(L)- addressed memory bit is ON or ON XX latched ON and remains ON OFF or OFF until it is unlatched. The OUTPUT LATCH instruction is initially OFF when entered, as indicated below the instruction. It can be preset ON by pressing a [1] after entering the bit address. An ON will then be indicated below the instruction in PROGRAM mode. -(U)- OUTPUT XXXXX XXX @ When the rung is TRUE, the UNLATCH -(U)- -(U)- addressed bit is unlatched. If ON or ON XX the bit controls an output OFF or OFF device that device is deenergized. ON or OFF will appear below the instruction indicating the status of the bit in PROGRAM mode only.
BRANCH START
This instruction begins a parallel logic path and is entered at the beginning of each parallel path.
BRANCH END
This instruction ends two or more parallel logic paths and is used with BRANCH START instructions.
Ml These instructions should not be assigned Input Image Table addresses because Input Image Table words are reset by the I/O scan.