Title: Rockwell Automation Hands-On Seminar Series
1Rockwell Automation Hands-On Seminar Series
2SLC 500 BASIC LADDER INSTRUCTIONS
3Advanced Instructions
Data Movement Move Copy Clear
Comparison Greater Than Less Than Equal Not
Equal Greater Than or Equal Less Than or Equal
Math Add Subract Multiply Divide
4Math Instructions - ADD
Source A Source B Dest
N70 10 N71 5 N72 15
10 5 15
5Math Instructions - ADD
Source A Source B Dest
N70 1 N71 5 N71 6
1 5 6
Application Running Total
6Math Instructions - ADD
Source A Source B Dest
N70 1 N71 5 N71 6
1 5 6
Application Running Total
NOTE This instruction executes every scan that
the rung is true, therefore use a One-Shot OSR.
7Math Instructions - SUBTRACT
Source A - Source B Dest
N70 10 N71 5 N72 5
10 - 5 5
8Math Instructions - MULTIPLY
Source A x Source B Dest
N70 10 N71 5 N72 50
10 x 5 50
9Math Instructions - DIVIDE
Source A Source B Dest
N70 10 N71 5 N72 2
10 5 2
S13 0 remainder S14 2 unrounded quotient
Math Register
10Math Instructions - DIVIDE
Source A Source B Dest
N70 29 N71 10 N72 3
29 10 2.9
S13 9 remainder S14 2 unrounded quotient
Math Register
11Comparison Instructions gt
IF Source A gt Source B THEN TRUE ELSE FALSE
29 gt 10 TRUE therefore Output is Energized
N70 29 N71 10
12Comparison Instructions lt
IF Source A lt Source B THEN TRUE ELSE FALSE
29 lt 10 FALSE therefore Output is de-Energized
N70 29 N71 10
13Comparison Instructions
IF Source A Source B THEN TRUE ELSE FALSE
29 10 FALSE therefore Output is de-Energized
N70 29 N71 10
14Comparison Instructions ¹
IF Source A ¹ Source B THEN TRUE ELSE FALSE
29 ¹ 10 TRUE therefore Output is Energized
N70 29 N71 10
15Comparison Instructions ³
IF Source A ³ Source B THEN TRUE ELSE FALSE
29 ³ 10 TRUE therefore Output is Energized
N70 29 N71 10
16Comparison Instructions
IF Source A Source B THEN TRUE ELSE FALSE
29 10 FALSE therefore Output is de-Energized
N70 29 N71 10
17Data Movement - Move
Source Dest
N70 50 N71 50
18Data Movement - Copy
Source Dest
N70 10 N71 20 N72 30 N73 40 N74 N75 10
N76 20 N77 30 N78 40
19Data Movement - Clear
Zero Dest
N70 50 N71 0
20Advanced Instructions
ANY QUESTIONS???
Comparison Greater Than Less Than Equal Not
Equal Greater Than or Equal Less Than or Equal
Data Movement Move Copy Clear
Math Add Subract Multiply Divide
21Timer Addressing and Parameters
Preset T40.PRE How long the timer should time
for. Accumulated T40.ACC How long the timer has
timed for already. Done T40/DN Set to 1 when
accumulated value gt preset value. Timer
Timing T40/TT Set to 1 when accumulated value
lt preset value. Enable T40/EN Set to 1 when
the rung containing the timer is true.
22Timers
The Timers done bit turns the motor off after
a 10 second time delay.
Stop
Start
Motor
Timer Done
T40/DN
I1/1
O3/0
I1/0
/
( )
/
TON
(EN)
TIMER ON DELAY Timer T40 Time
Base 1.0 Preset
10 Accum 0
(DN)
23Timers
The Timers timing bit turns the motor on for
only 10 seconds.