A maior rede de estudos do Brasil

Grátis
LogixProCCZF

Pré-visualização | Página 28 de 50

Stop the conveyor if any conditions exist that unlatch the ”Machine RUN Latch”
bit. 
| Machine | Conveyor |
| RUN | Start/Stop |
| Latch | |
| B3:0 O:3.0 |
|––––]/[–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––(U)–––––|
| 0 0 |
Adding File 6
This subroutine controls the up and down motion of the drill for the paper drilling
machine.
Drill Home
I:1/5 Drill On/Off O:3/1
Drill Retract O:3/2
Drill Forward O:3/3
Drill Depth
I:1/4
PrefaceInstruction Set Reference Manual
1–34
Rung 6:0
This section of ladder logic controls the up/down motion of the drill for the
book drilling machine.
When the conveyor positions the book under the drill, the DRILL SEQUENCE START
bit is set. This rung uses that bit to begin the drilling operation. Because
the bit is set for the entire drilling operation, the OSR is required to be
able to turn off the forward signal so the drill must retract.
| Drill |Drill Subr| Drill |
| Sequence | OSR | Forward |
| Start | |
| B3:2 B3:3 O:3.0 |
|––––] [–––––––[OSR]–––––––––––––––––––––––––––––––––––––––––––––––––––(L)–––––|
| 0 0 3 |
Rung 6:1
When the drill has drilled through the book, the body of the drill will actuate
the DRILL DEPTH limit switch. When this happens, the DRILL FORWARD signal is
turned off and the DRILL RETRACT signal is turned on.
| Drill Drill |
| Depth LS Forward |
| I:1.0 O:3.0 |
|–+––––] [––––––––––––––––+–––––––––––––––––––––––––––––––––––––+––––(U)–––––+–|
| | 4 | | 3 | |
| | 1’st |Drill | | Drill | |
| | Pass |Home LS | | Retract | |
| | S:1 I:1.0 | | O:3.0 | |
| +––––] [––––––––]/[–––––+ +––––(L)–––––+ |
| 15 5 2 |
Rung 6:2
When the drill is retracting (after drilling a hole), the body of the drill
will actuate the DRILL HOME limit switch. When this happens the DRILL
RETRACT signal is turned off, the DRILL SEQUENCE START bit is turned off to
indicate the drilling process is complete, and the conveyor is restarted.
| Drill |Drill Drill |
| Home LS |Retract Retract |
| I:1.0 O:3.0 O:3.0 |
|––––] [––––––––] [––––––––––––––––––––––––––––––––––+–––––––––––––––(U)–––––+–|
| 5 2 | 2 | |
| | Drill | |
| | Sequence | |
| | Start | |
| | B3:2 | |
| +–––––––––––––––(U)–––––+ |
| | 0 | |
| | Machine |Conveyor | |
| | RUN |Start/Stop | |
| | Latch | | |
| | B3:0 O:3.0 | |
| +––––] [––––––––(L)–––––+ |
| 0 0 |
Comparison Instructions
2–1
2 Comparison Instructions
This chapter contains general information about comparison instructions and
explains how they function in your application program. Each of the comparison
instructions includes information on:
• what the instruction symbol looks like
• how to use the instruction
In addition, the last section contains an application example for a paper drilling
machine that shows the comparison instructions in use.
Comparison Instructions
Instruction
Purpo e Pa e
Mnemonic Name
Purpose Page
EQU Equal Test whether two values are equal. 2–3
NEQ Not Equal Test whether one value is not equal to a second
value.
2–3
LES Less Than Test whether one value is less than a second value. 2–3
LEQ Less Than or
Equal
Test whether one value is less than or equal to a
second value.
2–4
GRT Greater Than Test whether one value is greater than another. 2–4
GEQ Greater Than or
Equal
Test whether one value is greater than or equal to a
second value.
2–4
MEQ Masked 
Comparison for
Equal
Test portions of two values to see whether they are
equal. Compares 16-bit data of a source address to
16-bit data at a reference address through a mask.
2–5
LIM Limit Test Test whether one value is within the limit range of
two other values.
2–5
PrefaceInstruction Set Reference Manual
2–2
About the Comparison Instructions
Comparison instructions are used to test pairs of values to condition the logical
continuity of a rung. As an example, suppose a LES instruction is presented with
two values. If the first value is less than the second, then the comparison instruction
is true.
To learn more about the compare instructions, we suggest that you read the
Compare Instructions Overview that follows.
Comparison Instructions Overview
The following general information applies to comparison instructions.
Using Indexed Word Addresses
When using comparison instructions, you have the option of using indexed word
addresses for instruction parameters specifying word addresses. Indexed addressing
is discussed in appendix F of this manual.
Using Indirect Word Addresses
You have the option of using indirect word-level and bit-level addresses for
instructions specifying word addresses when using an SLC 5/03 OS302,
SLC 5/04 OS401, or SLC 5/05 processors. See appendix F for more information.
Comparison Instructions
2–3
Equal (EQU)
Use the EQU instruction to test whether two values are equal. If source A and
source B are equal, the instruction is logically true. If these values are not equal, the
instruction is logically false.
Source A must be an address. Source B can either be a program constant or a
address. Negative integers are stored in two’s complementary form.
Not Equal (NEQ)
Use the NEQ instruction to test whether two values are not equal. If source A and
source B are not equal, the instruction is logically true. If the two values are equal,
the instruction is logically false.
Source A must be an address. Source B can be either a program constant or an
address. Negative integers are stored in two’s complementary form.
Less Than (LES)
Use the LES instruction to test whether one value (source A) is less than another
(source B). If source A is less than the value at source