The text of a manual · part 40 of 59
Mini-PLC-2/02, 2/16, 2/17 Processor (cat. no. 1772-LZ, LZP, LX, LXP, LW, LWP) User Manual: 21 - Sequencers, pages 333 to 340
Pages 333 to 340 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.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-LW /LWD, Allen-Bradley 1772-LWP, Allen-Bradley 1772-LX / LXP and Allen-Bradley 1772-LZP
Page 333
Chapter 21 Sequencer
Start by positioning your cursor on the words SEQUENCER INPUT. Use the arrow keys to move the cursor. DISPLAY
0
The word display appears in the lower left hand corner of the screen. BINARY DATA MONITOR SEQUENCER OUTPUT STEP: 001 SEQUENCER LENGTH: COUNTER ADDR: 200 FILE: 400- 413 201 OUTPUT ADDR: 110 DATA: 00000000 00000000 00000000 00000000 MASK ADDR: 070 DATA: 00000000 00000000 STEP 001 002 003 004 005 006
006
071 00000000 00000000
WORD 1 WORD 2 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 DATA: 00000000 00000000
The cursor is located on the last digit of the first word of DATA in the Command Buffer. The digits in step 1 for word 1 are intensified. 00000010 00000000
BINARY DATA MONITOR SEQUENCER OUTPUT STEP: 001 SEQUENCER LENGTH: COUNTER ADDR: 200 FILE: 400- 413 201 OUTPUT ADDR: 110 DATA: 00000000 00000000 00000000 00000000 MASK ADDR: 070 071 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
006
21-9
Page 334
Chapter 21 Sequencers
INSERT
BINARY DATA MONITOR SEQUENCER OUTPUT STEP: 001 SEQUENCER LENGTH: COUNTER ADDR: 200 FILE: 400- 413 201 OUTPUT ADDR: 110 DATA: 00000000 00000000 00000000 00000000 MASK ADDR: 070 071 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
006
Data is inserted into Step 001 of Word 1. ↓ ↓
Cursor down one line. The cursor is on the last digit of the second word of DATA in the command buffer. The digits in step 2 for word 2 are intensified.
00000010 00000001
21-10
BINARY DATA MONITOR SEQUENCER OUTPUT STEP: 001 SEQUENCER LENGTH: COUNTER ADDR: 200 FILE: 600- 613 013 OUTPUT ADDR: 012 DATA: 00000000 00000000 00000000 00000000 MASK ADDR: 075 076 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 00001001
006
Page 335
Chapter 21 Sequencer
INSERT
↓ ↓
BINARY DATA MONITOR SEQUENCER OUTPUT STEP: 001 SEQUENCER LENGTH: COUNTER ADDR: 200 FILE: 600- 613 013 OUTPUT ADDR: 012 DATA: 00000000 00000000 00000000 00000000 MASK ADDR: 075 076 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
006
Cursor down one line.
The cursor is on the last digit of the third word of DATA in the command buffer. The digits in step 3 for word 3 are intensified. Continue inserting your data. 003: 004: 005: 006:
00000010 00000010 00000010 00000010
00010001 00010001 01000001 00000000
To add data to WORD 2 press [Shift] [→] and cursor up or down as needed. Do not press [Cancel Command]. We will use the display to add a mask. DISPLAY
The word DISPLAY appears in the lower left hand corner of the screen.
21-11
Page 336
Chapter 21 Sequencers
000
BINARY DATA MONITOR SEQUENCER OUTPUT STEP: 001 SEQUENCER LENGTH: COUNTER ADDR: 200 FILE: 400- 413 201 OUTPUT ADDR: 110 DATA: 00000000 00000000 00000000 00000000 MASK ADDR: 070 071 DATA: 00000000 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: 00000010 00000000
006
The cursor is on the first digit of DATA in the command buffer. The digits for INPUT ADDR 110, DATA are intensified. Cursor down one line. The display for MASK ADDR 070, DATA are intensified.
00000010 01010001
21-12
BINARY DATA MONITOR SEQUENCER OUTPUT STEP: 001 SEQUENCER LENGTH: COUNTER ADDR: 200 FILE: 400- 413 201 OUTPUT ADDR: 110 DATA: 00000000 00000000 00000000 00000000 MASK ADDR: 070 071 DATA: 00000000 00000000 00000000 00000000 STEP WORD 1 WORD 2 001 00000000 00000000 00000000 00000000 002 00000000 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 01010001
006
Page 337
Chapter 21 Sequencer
SHIFT
CANCEL COMMAND
Sequencer Output
BINARY DATA MONITOR SEQUENCER OUTPUT STEP: 001 SEQUENCER LENGTH: COUNTER ADDR: 200 FILE: 400- 413 201 OUTPUT ADDR: 110 DATA: 00000000 00000000 00000000 00000000 MASK ADDR: 070 071 DATA: 00000010 01010001 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: 00000010 01010001
006
To display your rung.
The Sequencer Output instruction transfers the values of the current sequencer step to a specified output word. Here are some characteristics of the sequencer output instruction. You can transfer up to 64 bits. This instruction is programmed as an output instruction (can be programmed in the same rung as a sequencer input instruction). You can mask the unused output bits. The counter is internally indexed by the instruction (external counter instruction is not required). The instruction requires 5-8 words of your program. If the rung condition becomes: True False
The counter increments to the next step and transfers the data. No action is taken.
21-13
Page 338
Chapter 21 Sequencers
ATTENTION: The counter address for the Sequencer Output instruction should be reserved for that instruction. Do not manipulate the counter accumulated or preset values. Inadvertent changes to these values could result in hazardous machine operation or a RUN TIME ERROR. Damage to equipment and/or personal injury could result.
You are now ready to insert this instruction. The word SEQUENCER appears in the lower left hand corner of the screen.
0
SEQUENCER INPUT COUNTER ADDR: CURRENT STEP: SEQ LENGTH: WORDS PER STEP: FILE: 400MASK: 070INPUT WORDS 2: 1: 110 3: 4:
200 001 006 2 413 071 201
SEQUENCER INPUT COUNTER ADDR: 030 CURRENT STEP: 001 SEQ LENGTH: 001 WORDS PER STEP: 1 FILE: 110- 110 MASK: 010- 010 INPUT WORDS 2: 1: 010 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. Insert the following values. Your cursor will move automatically throughout the block instruction. The values are: COUNTER ADDR: CURRENT STEP: SEQ LENGTH: WORDS PER STEP: FILE: MASK: OUTPUT WORDS:
21-14
200 001 006 2 600 075 1: 012 2: 013
Page 339
Chapter 21 Sequencer
Your sequencer output instruction should look like this: SEQUENCER INPUT COUNTER ADDR: CURRENT STEP: SEQ LENGTH: WORDS PER STEP: FILE: 400MASK: 070INPUT WORDS 2: 1: 110 3: 4:
200 001 006 2 413 071 201
SEQUENCER INPUT COUNTER ADDR: CURRENT STEP: SEQ LENGTH: WORDS PER STEP: FILE: 600MASK: 075INPUT WORDS 2: 1: 012 3: 4:
200 001 006 2 613 076
200 EN 17 200 DN 15
013
To continue, enter your data using the binary data monitor mode. You will get your data from the worksheet in Figure 21.6. A filled-in block means that a 1 should be inserted in the corresponding bit location.
21-15
Page 340
Chapter 21 Sequencers
Figure 21.6 Completed Sequencer Output Worksheet
PROJECT NAME
ALLEN-BRADLEY Programmable Controller Sequencer Table Bit Assignments
PAGE
PROCESSOR
Mini–PLC–2/16
Bottle Filling Applications
DESIGNER
SEQUENCER FILE
OUTPUT
COUNTER ADDR:
200
WORD ADDR:
012
013
MASK ADDR:
075
076
WORD #1
TO
613
10 07
SEQ LENGTH:
006
WORD #3 00 17
10 07
WORD #4 00 17
10 07
00
Timer
CM
CMT
00 17
FTM
FTR
SOL
FTF
D E N V A I M C E E
600
WORD #2
10 07
FTS
17
2
TO
DATA TABLE ADDR
Engineer
OF
2
MASK STEP
1 2 3 4 5 6
FROM ADDR TO ADDR
Note: A filled-in box means that each device is actuated
21-16
10148-I