The text of a manual · part 14 of 29
1772 Mini PLC-2/05 Processor (Cat. No. 1772-LS, LSP) Programming and Operations Manual, pages 131 to 140
Pages 131 to 140 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 131
Chapter 12 Sequencers
Sequencer Input Purpose: Compares input data to stored data for equality. Programmed as an input instruction. The counter is externally controlled by the ladder diagram logic in your program. This instruction requires 5-8 words of the program. May be programmed with a sequencer output instruction. You can compare up to 64 bits. You can mask the unused input bits. If the rung becomes: True - The instruction increments to the next step and compares the input word to current step for equality. False - No action is taken.
ATTENTION: The counter address of the sequencer input instruction should be used only for the intended instruction and the corresponding instructions which manipulate the preset or accumulated value. Do not inadvertently manipulate the preset or accumulated word. Changes to these values could result in unpredictable machine operation or a run-time error. Damage to equipment and/or injury to personnel could occur.
Keystrokes: Start by expanding your data table if required. Expand it to a size large enough to store your program. See appendix C for data table size values.
[SEARCH] 50
The screen does not change. The DATA TABLE CONFIGURATION appears. The cursor is on the first digit of NUMBER OF 128 WORD D.T. BLOCKS.
12-5
Page 132
Chapter 12 Sequencers
To be able to use the sequencer input, output, and load examples:
04
The cursor moves the digit 4 and DATA TABLE SIZE changed to 512. This gives you a 512 word data table. After you adjust the data table press [CANCEL COMMAND]. You are now ready to insert this program.
1
Sequencer Input 200 Counter Addr: 001 Current Step: 006 Seq Length: 2 Words Per Step: 400- 413 File: 070- 071 Mask:
Sequencer Output Counter Addr: 200 Current Step: 001 Seq Length: 006 Words Per Step: 2 File: 600- 613 Mask: 075- 076
Input Words 1: 110 2. 201 3: 4:
Output Words 1: 012 2. 013 3: 4:
200 EN 17 200 DN 15
The word SEQUENCER appears in the lower left hand corner of the screen. Sequencer Input 030 Counter Addr: 000 Current Step: 001 Seq Length: 1 Words Per Step: 110- 110 File: 010- 010 Mask: Input Words 1: 010 2. 3: 4:
Notice that the words SEQUENCER INPUT are flashing, the cursor is on the first digit of counter address, and the default values are shown.
12-6
Page 133
Chapter 12 Sequencers
Insert the following values. The cursor moves automatically throughout the sequencer instruction. The values are: COUNTER ADDR: CURRENT STEP: SEQ LENGTH: 006 WORDS PER STEP: FILE: MASK: INPUT WORDS: 1:110 2: 201
200 001 2 400 070
The completed instruction should look like this: Sequencer Input 200 Counter Addr: 001 Current Step: 006 Seq Length: 2 Words Per Step: 400- 413 File: 070- 071 Mask: Input Words 1: 110 2. 201 3: 4:
For this example, enter data using the binary data monitor mode. Get your data from the worksheet (Figure 12.4). A filled in block means that a 1 should be inserted in the corresponding bit position. Sequencer Input 200 Counter Addr: 001 Current Step: 006 Seq Length: 2 Words Per Step: 400- 413 File: 070- 071 Mask:
Sequencer Output Counter Addr: 030 Current Step: 000 Seq Length: 001 Words Per Step: 2 File: 110- 110 Mask: 010- 010
Input Words 1: 110 2. 201 3: 4:
Output Words 1: 010 2. 3: 4:
030 EN 17 030 DN 15
12-7
Page 134
Chapter 12 Sequencers
Figure 12.4 Completed Sequencer Input Worksheet ALLEN-BRADLEY Programmable Controller Data Table MAP (128-word) PROJECT NAME Bottle DESIGNER
PROCESSOR
Filling Applications
FILE
200
WORD ADDR:
110
Timer 200
MASK ADDR:
070
071
2
TO
TO
413
10 07
SEQ LENGTH:
006
WORD #3 00 17
10 07
WORD #4 00 17
10 07
00
Timer
PC
LS1
00 17
LS2
Auto
D E N V A I M C E E
400
WORD #2
10 07
OF
Input
COUNTER ADDR:
WORD #1
1
Mini–PLC–2/05
DATA TABLE ADDR
Engineer SEQUENCER
17
PAGE
MASK STEP
1 2 3 4 5 6
FROM ADDR TO ADDR
Note: A filled-in box means that each device is actuated
12-8
10145-I
Page 135
Chapter 12 Sequencers
Position the cursor on the words SEQUENCER INPUT. Use the arrow keys to move the cursor.
[DISPLAY] 0
The display appears in the lower left hand corner of the screen. BINARY DATA MONITOR SEQUENCER INPUT COUNTER ADDR: 200 STEP: 001 SEQUENCER LENGTH: 006 FILE: 400- 413 INPUT ADDR: 110 201 DATA: 00000000 00000000 00000000 00000000 MASK ADDR: 070 701 DATA: 00000000 00000000 00000000 00000000 STEP 001 002 003 004 005 006
WORD 1 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
WORD 2 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
DATA: 00000000 00000000
The cursor is located on the first digit of DATA in the Command Buffer. The digits in step 1 for word 1 are intensified.
12-9
Page 136
Chapter 12 Sequencers
00000010 00000000
[INSERT]
BINARY DATA MONITOR SEQUENCER INPUT COUNTER ADDR: 200 STEP: 001 SEQUENCER LENGTH: 006 FILE: 400- 413 INPUT ADDR: 110 201 DATA: 00000000 00000000 00000000 00000000 MASK ADDR: 070 701 DATA: 00000000 00000000 00000000 00000000 STEP WORD 1 WORD 2 001 00000000 00000000 00000000 00000000 002 00000000 00000000 00000000 00000000 003 00000000 00000000 00000000 00000000 004 00000000 00000000 00000000 00000000 005 00000000 00000000 00000000 00000000 006 00000000 00000000 00000000 00000000 DATA: 00000010 00000000 BINARY DATA MONITOR SEQUENCER INPUT COUNTER ADDR: 200 STEP: 001 SEQUENCER LENGTH: 006 FILE: 400- 413 INPUT ADDR: 110 201 DATA: 00000000 00000000 00000000 00000000 MASK ADDR: 070 701 DATA: 00000000 00000000 00000000 00000000 STEP WORD 1 WORD 2 001 00000010 00000000 00000000 00000000 002 00000000 00000000 00000000 00000000 003 00000000 00000000 00000000 00000000 004 00000000 00000000 00000000 00000000 005 00000000 00000000 00000000 00000000 006 00000000 00000000 00000000 00000000 DATA: 00000010 00000000
Data is inserted into Step 001 of Word 1. Cursor down one line. The cursor is on the first digit of DATA in the command buffer. The digits in step 2 for word 1 are intensified. BINARY DATA MONITOR SEQUENCER INPUT COUNTER ADDR: 200 STEP: 001 SEQUENCER LENGTH: 006 FILE: 400- 413 INPUT ADDR: 110 201 DATA: 00000000 00000000 00000000 00000000 MASK ADDR: 070 701 DATA: 00000000 00000000 00000000 00000000 STEP WORD 1 001 00000010 00000000 002 00000000 00000000 003 00000000 00000000 004 00000000 00000000 005 00000000 00000000 006 00000000 00000000
WORD 2 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
DATA: 00000000 000000
12-10
Page 137
Chapter 12 Sequencers
[INSERT]
BINARY DATA MONITOR SEQUENCER INPUT COUNTER ADDR: 200 STEP: 001 SEQUENCER LENGTH: 006 FILE: 400- 413 INPUT ADDR: 110 201 DATA: 00000000 00000000 00000000 00000000 MASK ADDR: 070 701 DATA: 00000000 00000000 00000000 00000000 STEP WORD 1 WORD 2 001 00000010 00000000 00000000 00000000 002 00000000 00000000 00000000 00000000 003 00000000 00000000 00000000 00000000 004 00000000 00000000 00000000 00000000 005 00000000 00000000 00000000 00000000 006 00000000 00000000 00000000 00000000 DATA: 00000010 00000001 BINARY DATA MONITOR SEQUENCER INPUT COUNTER ADDR: 200 STEP: 001 SEQUENCER LENGTH: 006 FILE: 400- 413 INPUT ADDR: 110 201 DATA: 00000000 00000000 00000000 00000000 MASK ADDR: 070 701 DATA: 00000000 00000000 00000000 00000000 STEP WORD 1 WORD 2 001 00000010 00000000 00000000 00000000 002 00000010 00000001 00000000 00000000 003 00000000 00000000 00000000 00000000 004 00000000 00000000 00000000 00000000 005 00000000 00000000 00000000 00000000 006 00000000 00000000 00000000 00000000 DATA: 00000010 00000001
Cursor down one line. The cursor is on the first digit of DATA in the command buffer. The digits in step 3 for word 1 are intensified. Continue adding your data. 003: 004: 005: 006:
00000010 00000010 00000010 00000010
00010001 00010001 01000001 00000000
↑
00000010 00000000
To add data to WORD 2 press [SHIFT][→|] and cursor up [↑] or down [ ] as desired. Do not press [CANCEL COMMAND]. The next example uses this data to add a mask.
12-11
Page 138
Chapter 12 Sequencers
[DISPLAY] 000
The screen does not change. BINARY DATA MONITOR SEQUENCER INPUT COUNTER ADDR: 200 STEP: 001 SEQUENCER LENGTH: 006 FILE: 400- 413 INPUT ADDR: 110 201 DATA: 00000000 00000000 00000000 00000000 MASK ADDR: 070 701 DATA: 00000000 00000000 00000000 00000000 STEP WORD 1 001 00000010 00000000 002 00000010 00000001 003 00000010 00010001 004 00000010 00010001 005 00000010 01000001 006 00000010 00000000
WORD 2 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
DATA: 00000000 00000000
The cursor is on the first digit of DATA in the command buffer. INPUT ADDR 110, DATA is intensified. You can enter additional data. Cursor down one line. MASK ADDR 070, DATA is intensified.
11111111 00000000 [INSERT]
The screen does not change. BINARY DATA MONITOR SEQUENCER INPUT COUNTER ADDR: 200 STEP: 001 SEQUENCER LENGTH: 006 FILE: 400- 413 INPUT ADDR: 110 201 DATA: 00000000 00000000 00000000 00000000 MASK ADDR: 070 701 DATA: 11111111 00000000 00000000 00000000 STEP WORD 1 WORD 2 001 00000010 00000000 00000000 00000000 002 00000010 00000001 00000000 00000000 003 00000010 00010001 00000000 00000000 004 00000010 00010001 00000000 00000000 005 00000010 01000001 00000000 00000000 006 00000010 00000000 00000000 00000000 DATA: 11111111 00000000
[CANCEL COMMAND]
12-12
To display your rung.
Page 139
Chapter 12 Sequencers
Sequencer Output Purpose: Transfers the values of the current sequencer step to a specified output word. Programmed as an output instruction. The counter is externally controlled by the ladder diagram logic in your program. The instruction requires 5-8 words of your program. May be programmed with a sequencer input instruction. You can transfer up to 64 bits. You can mask the unused output bits. True - The counter increments to the next step and transfers the data. False - No action is taken.
ATTENTION: The counter address for the sequencer output instruction should be reserved for that instruction. Do not preset values. inadvertent changes to the values could result in hazardous machine operation or a RUN TIME ERROR. Damage to equipment and/or personal injury could result.
Keystrokes: You enter the sequencer output instruction by performing the following steps.
[SEQ] 0
The word SEQUENCER appears in the lower left hand corner of the screen. Sequencer Input 200 Counter Addr: 001 Current Step: 006 Seq Length: 2 Words Per Step: 400- 413 File: 070- 071 Mask:
Sequencer Output 030 Counter Addr: Current Step: 000 Seq Length: 001 Words Per Step: 2 File: 110- 110 Mask: 010- 010
Input Words 1: 110 2. 201 3: 4:
Output Words 1: 010 2. 3: 4:
030 EN 17 030 DN 15
Notice that the words SEQUENCER OUTPUT are flashing, the cursor is on the first digit of the counter address, and the default values are shown.
12-13
Page 140
Chapter 12 Sequencers
Insert the following values. The cursor moves automatically throughout the instruction. The values are: COUNTER ADDR: CURRENT STEP: SEQ LENGTH: 006 WORDS PER STEP: FILE: MASK: OUTPUT WORDS: 1:012 2: 013
200 001 1 600 075
The sequencer output instruction should look like this: Sequencer Input 200 Counter Addr: 001 Current Step: 006 Seq Length: 2 Words Per Step: 400- 413 File: 070- 071 Mask:
Sequencer Output Counter Addr: 200 Current Step: 001 Seq Length: 006 Words Per Step: 2 File: 600- 613 Mask: 075- 076
Input Words 1: 110 2. 201 3: 4:
Output Words 1: 012 2. 013 3: 4:
200 EN 17 200 DN 15
For this example, enter data using the binary data monitor mode. Get your data from the worksheet (Figure 12.5). A filled block means that a 1 should be inserted in the corresponding bit location.
12-14