understanding basic ladder instructions
DESCRIPTION
Entendiendo instrucciones basicas de escaleraTRANSCRIPT
7/18/2019 Understanding Basic Ladder Instructions
http://slidepdf.com/reader/full/understanding-basic-ladder-instructions 1/23
02/24/97 1
Rockwell
AutomationHands-OnSeminar Series
7/18/2019 Understanding Basic Ladder Instructions
http://slidepdf.com/reader/full/understanding-basic-ladder-instructions 2/23
2
02/24/97 2
SLC 500
BASIC LADDER
INSTRUCTIONS
7/18/2019 Understanding Basic Ladder Instructions
http://slidepdf.com/reader/full/understanding-basic-ladder-instructions 3/23
3
02/24/97 3
Advanced Instructions
Math
Add
Subract
Multiply
Divide
Comparison
reater !han
"ess !han#$ual
%ot #$ual
reater !han or #$ual
"ess !han or #$ual
Data Movement
Move
CopyClear
7/18/2019 Understanding Basic Ladder Instructions
http://slidepdf.com/reader/full/understanding-basic-ladder-instructions 4/23
402/24/97 4
Math Instructions - ADD
Source A & Source ' ( Dest
N7:0 10
N7:1 5
N7:2 15 )* & + ( )+
ADD
Source A N7:0
Source B N7:1
Dest N7:2
ADDI:1
0
7/18/2019 Understanding Basic Ladder Instructions
http://slidepdf.com/reader/full/understanding-basic-ladder-instructions 5/23
502/24/97 5
Math Instructions - ADD
Source A & Source ' ( Dest
N7:0 1
N7:1 5
N7:1 6 ) & + ( ,
ADD
Source A N7:0
Source B N7:1
Dest N7:1
ADDI:1
0
Application Runnin. !otal
7/18/2019 Understanding Basic Ladder Instructions
http://slidepdf.com/reader/full/understanding-basic-ladder-instructions 6/23
602/24/97 6
Math Instructions - ADD
Source A & Source ' ( Dest
N7:0 1
N7:1 5
N7:1 6 ) & + ( ,
%O!# !his instruction e/ecutes every scan that therun. is true0 there1ore use a One-Shot OSR2
ADD
Source A N7:0
Source B N7:1
Dest N7:1
ADDI:1
0
B3
0
OSR
Application Runnin. !otal
7/18/2019 Understanding Basic Ladder Instructions
http://slidepdf.com/reader/full/understanding-basic-ladder-instructions 7/23
702/24/97 7
Math Instructions - S3'!RAC!
Source A - Source ' ( Dest
N7:0 10
N7:1 5
N7:2 5 )* - + ( +
SUBTRACT
Source A N7:0
Source B N7:1
Dest N7:2
SUBI:1
0
7/18/2019 Understanding Basic Ladder Instructions
http://slidepdf.com/reader/full/understanding-basic-ladder-instructions 8/23
802/24/97 8
Math Instructions - M3"!I4"5
Source A / Source ' ( Dest
N7:0 10
N7:1 5
N7:2 50 )* / + ( +*
MULTIPLY
Source A N7:0
Source B N7:1
Dest N7:2
MULI:1
0
7/18/2019 Understanding Basic Ladder Instructions
http://slidepdf.com/reader/full/understanding-basic-ladder-instructions 9/23
902/24/97 9
Math Instructions - DI6ID#
Source A 7 Source ' ( Dest
N7:0 10
N7:1 5
N7:2 2 )* 7 + ( 8
DIVIDE
Source A N7:0
Source B N7:1
Dest N7:2
DIVI:1
0
S:13 0 remainder
S:14 2 unrounded quotient
MathRe.ister {
7/18/2019 Understanding Basic Ladder Instructions
http://slidepdf.com/reader/full/understanding-basic-ladder-instructions 10/23
1002/24/97 10
Math Instructions - DI6ID#
Source A 7 Source ' ( Dest
N7:0 29
N7:1 10
N7:2 3 89 7 )* ( 829
DIVIDE
Source A N7:0
Source B N7:1
Dest N7:2
DIVI:1
0
S:13 9 remainder
S:14 2 unrounded quotient
MathRe.ister {
7/18/2019 Understanding Basic Ladder Instructions
http://slidepdf.com/reader/full/understanding-basic-ladder-instructions 11/23
1102/24/97 11
Comparison Instructions :
GREATER THAN
Source A N7:0
Source B N7:1
GTR0:3
0
( )
I; Source A : Source ' !H#% !R3# #"S# ;A"S#
N7:0 29
N7:1 10
89 : )* !R3#there1ore Output is#ner.i<ed
7/18/2019 Understanding Basic Ladder Instructions
http://slidepdf.com/reader/full/understanding-basic-ladder-instructions 12/23
1202/24/97 12
Comparison Instructions =
LESS THAN
Source A N7:0
Source B N7:1
LES0:3
0
( )
I; Source A = Source ' !H#% !R3# #"S# ;A"S#
N7:0 29
N7:1 10
89 = )* ;A"S#there1ore Output isde-#ner.i<ed
7/18/2019 Understanding Basic Ladder Instructions
http://slidepdf.com/reader/full/understanding-basic-ladder-instructions 13/23
1302/24/97 13
Comparison Instructions (
EQUAL
Source A N7:0
Source B N7:1
EQU0:3
0
( )
I; Source A ( Source ' !H#% !R3# #"S# ;A"S#
N7:0 29
N7:1 10
89 ( )* ;A"S#there1ore Output isde-#ner.i<ed
7/18/2019 Understanding Basic Ladder Instructions
http://slidepdf.com/reader/full/understanding-basic-ladder-instructions 14/23
1402/24/97 14
Comparison Instructions ≠
NOT EQUAL
Source A N7:0
Source B N7:1
NEQ0:3
0
( )
I; Source A ≠ Source ' !H#% !R3# #"S# ;A"S#
N7:0 29
N7:1 10
89 ≠ )* !R3#there1ore Output is#ner.i<ed
7/18/2019 Understanding Basic Ladder Instructions
http://slidepdf.com/reader/full/understanding-basic-ladder-instructions 15/23
1502/24/97 15
Comparison Instructions
GRTR THAN OR EQUAL
Source A N7:0
Source B N7:1
GEQ0:3
0
( )
I; Source A Source ' !H#% !R3# #"S# ;A"S#
N7:0 29
N7:1 10
89 )* !R3#there1ore Output is#ner.i<ed
7/18/2019 Understanding Basic Ladder Instructions
http://slidepdf.com/reader/full/understanding-basic-ladder-instructions 16/23
1602/24/97 16
Comparison Instructions
LESS THAN OR EQUAL
Source A N7:0
Source B N7:1
LEQ0:3
0
( )
I; Source A Source ' !H#% !R3# #"S# ;A"S#
N7:0 29
N7:1 10
89 )* ;A"S#there1ore Output isde-#ner.i<ed
7/18/2019 Understanding Basic Ladder Instructions
http://slidepdf.com/reader/full/understanding-basic-ladder-instructions 17/23
1702/24/97 17
Data Movement - Move
MOVE
Source N7:0
Dest N7:1
MOVI:1
0
Source Dest
N7:0 50
N7:1 50
7/18/2019 Understanding Basic Ladder Instructions
http://slidepdf.com/reader/full/understanding-basic-ladder-instructions 18/23
1802/24/97 18
Data Movement - Copy
COPY FILE
Source #N7:0
Dest #N7:5
Length 4
COPI:1
0
Source Dest
N7:0 10N7:1 20N7:2 30N7:3 40
N7:4N7:5 10N7:6 20N7:7 30N7:8 40
}
}
7/18/2019 Understanding Basic Ladder Instructions
http://slidepdf.com/reader/full/understanding-basic-ladder-instructions 19/23
1902/24/97 19
Data Movement - Clear
CLEAR
Dest N7:1
CLRI:1
0
>ero Dest
N7:0 50
N7:1 0
7/18/2019 Understanding Basic Ladder Instructions
http://slidepdf.com/reader/full/understanding-basic-ladder-instructions 20/23
2002/24/97 20
Advanced Instructions
A%5 ?3#S!IO%S@@@
MathAdd
Subract
Multiply
Divide
Comparisonreater !han
"ess !han
#$ual
%ot #$ual
reater !han or #$ual"ess !han or #$ual
Data MovementMove
Copy
Clear
7/18/2019 Understanding Basic Ladder Instructions
http://slidepdf.com/reader/full/understanding-basic-ladder-instructions 21/23
2102/24/97 21
!imer Addressin. and 4arameters
4reset !*24R# How long the timer should time or!
Accumulated !*2ACC How long the timer h"s timed or "lre"d#!
Done !*BD% $et to %1& when "''umul"ted "lue *reset "lue!
!imer !imin. !*B!! $et to %1& when "''umul"ted "lue + *reset "lue!
#nable !*B#% $et to %1& when the rung 'ont"ining the timer is true!
!*
;ile !ype
;ile %umber
!imer %umber
*-8++
!imers
,ile 'ont"ins 256timers
-reset ."lue
''umul"ted ."lue
15 14 13
ord 0
ord 1
ord 2
7/18/2019 Understanding Basic Ladder Instructions
http://slidepdf.com/reader/full/understanding-basic-ladder-instructions 22/23
2202/24/97 22
he imers %done it& turns the motor o "ter " 10 se'ond time del"#!
!IM#R O% D#"A5
!imer !*
!ime 'ase )2*
4reset )*
Accum *
Stop Start Motor
E/F E F
E F
I:1/0I:1/1
M)
O:3/0
O:3/0
E F
M)
O:3/0
EBF
T4:0/DN
#%
D%
!imer Done
!imers
!O%
7/18/2019 Understanding Basic Ladder Instructions
http://slidepdf.com/reader/full/understanding-basic-ladder-instructions 23/23
2302/24/97 23
!imers
!IM#R O% D#"A5
!imer !*!ime 'ase )2*
4reset )*
Accum *
!O%
E F #%
D%
O%-O;;
Selector Switch
I:2/2
Motor
E F O:3/0T4:0/TT
!imer !imin.
he imers %timin. bit& turns the motor on or onl# 10 se'onds!