Download presentation
Presentation is loading. Please wait.
Published byArmando Nuth Modified over 10 years ago
1
02/24/97 1 Rockwell Automation Hands-On Seminar Series
2
02/24/97 2 2 SLC 500 BASIC LADDER INSTRUCTIONS
3
02/24/97 3 3 Advanced Instructions Math Add Subract Multiply Divide Comparison Greater Than Less Than Equal Not Equal Greater Than or Equal Less Than or Equal Data Movement Move Copy Clear
4
02/24/97 4 4 Math Instructions - ADD Source A + Source B = Dest N7:010 N7:1 5 N7:215 10 + 5 = 15 ADD Source AN7:0 Source BN7:1 DestN7:2 ADD I:1 0
5
02/24/97 5 5 Math Instructions - ADD Source A + Source B = Dest N7:0 1 N7:1 5 N7:1 6 1 + 5 = 6 ADD Source AN7:0 Source BN7:1 DestN7:1 ADD I:1 0 Application: Running Total
6
02/24/97 6 6 Math Instructions - ADD Source A + Source B = Dest N7:0 1 N7:1 5 N7:1 6 1 + 5 = 6 NOTE: This instruction executes every scan that the rung is true, therefore use a One-Shot OSR. ADD Source AN7:0 Source BN7:1 DestN7:1 ADD I:1 0 B3 0 OSR Application: Running Total
7
02/24/97 7 7 Math Instructions - SUBTRACT Source A - Source B = Dest N7:010 N7:1 5 N7:2 5 10 - 5 = 5 SUBTRACT Source AN7:0 Source BN7:1 DestN7:2 SUB I:1 0
8
02/24/97 8 8 Math Instructions - MULTIPLY Source A x Source B = Dest N7:010 N7:1 5 N7:250 10 x 5 = 50 MULTIPLY Source AN7:0 Source BN7:1 DestN7:2 MUL I:1 0
9
02/24/97 9 9 Math Instructions - DIVIDE Source A ÷ Source B = Dest N7:010 N7:1 5 N7:2 2 10 ÷ 5 = 2 DIVIDE Source AN7:0 Source BN7:1 DestN7:2 DIV I:1 0 S:13 0 remainder S:14 2 unrounded quotient Math Register {
10
02/24/97 10 Math Instructions - DIVIDE Source A ÷ Source B = Dest N7:029 N7:110 N7:2 3 29 ÷ 10 = 2.9 DIVIDE Source AN7:0 Source BN7:1 DestN7:2 DIV I:1 0 S:13 9 remainder S:14 2 unrounded quotient Math Register {
11
02/24/97 11 Comparison Instructions > GREATER THAN Source AN7:0 Source BN7:1 GTR 0:3 0 ( ) IF Source A > Source B THEN TRUE ELSE FALSE N7:029 N7:110 29 > 10 TRUE therefore Output is Energized
12
02/24/97 12 Comparison Instructions < LESS THAN Source AN7:0 Source BN7:1 LES 0:3 0 ( ) IF Source A < Source B THEN TRUE ELSE FALSE N7:029 N7:110 29 < 10 FALSE therefore Output is de-Energized
13
02/24/97 13 Comparison Instructions = EQUAL Source AN7:0 Source BN7:1 EQU 0:3 0 ( ) IF Source A = Source B THEN TRUE ELSE FALSE N7:029 N7:110 29 = 10 FALSE therefore Output is de-Energized
14
02/24/97 14 Comparison Instructions NOT EQUAL Source AN7:0 Source BN7:1 NEQ 0:3 0 ( ) IF Source A Source B THEN TRUE ELSE FALSE N7:029 N7:110 29 10 TRUE therefore Output is Energized
15
02/24/97 15 Comparison Instructions GRTR THAN OR EQUAL Source AN7:0 Source BN7:1 GEQ 0:3 0 ( ) IF Source A Source B THEN TRUE ELSE FALSE N7:029 N7:110 29 10 TRUE therefore Output is Energized
16
02/24/97 16 Comparison Instructions LESS THAN OR EQUAL Source AN7:0 Source BN7:1 LEQ 0:3 0 ( ) IF Source A Source B THEN TRUE ELSE FALSE N7:029 N7:110 29 10 FALSE therefore Output is de-Energized
17
02/24/97 17 Data Movement - Move MOVE Source N7:0 DestN7:1 MOV I:1 0 SourceDest N7:050 N7:150
18
02/24/97 18 Data Movement - Copy COPY FILE Source #N7:0 Dest#N7:5 Length4 COP I:1 0 SourceDest N7:010 N7:120 N7:230 N7:340 N7:4 N7:510 N7:620 N7:730 N7:840 } }
19
02/24/97 19 Data Movement - Clear CLEAR DestN7:1 CLR I:1 0 ZeroDest N7:050 N7:1 0
20
02/24/97 20 Advanced Instructions ANY QUESTIONS??? Math Add Subract Multiply Divide Comparison Greater Than Less Than Equal Not Equal Greater Than or Equal Less Than or Equal Data Movement Move Copy Clear
21
02/24/97 21 Timer Addressing and Parameters PresetT4:0.PREHow long the timer should time for. AccumulatedT4:0.ACCHow long the timer has timed for already. DoneT4:0/DNSet to “1” when accumulated value > preset value. Timer TimingT4:0/TTSet to “1” when accumulated value < preset value. EnableT4:0/ENSet to “1” when the rung containing the timer is true. T4:0 File Type File Number Timer Number (0-255) 4 Timers File contains 256 timers Preset Value Accumulated Value 151413 ENTTDN Word 0 Word 1 Word 2
22
02/24/97 22 The Timer’s “done bit” turns the motor off after a 10 second time delay. TIMER ON DELAY Timer T4:0 Time Base 1.0 Preset 10 Accum 0 Stop Start Motor ]/[]/[ ] [ ( ) I:1/0 I:1/1 M1 O:3/0 ] [ M1 O:3/0 ]/[ T4:0/DN ( EN ) ( DN ) Timer Done Timers TON
23
02/24/97 23 Timers TIMER ON DELAY Timer T4:0 Time Base 1.0 Preset 10 Accum 0 TON ] [ ( EN ) ( DN ) ON-OFF Selector Switch I:2/2 Motor ] [] [ ( ) O:3/0 T4:0/TT Timer Timing The Timer’s “timing bit” turns the motor on for only 10 seconds.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.