1 / 23

Rockwell Automation Hands-On Seminar Series

Rockwell Automation Hands-On Seminar Series. SLC 500 BASIC LADDER INSTRUCTIONS. Advanced 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. I:1. ADD.

kuniko
Download Presentation

Rockwell Automation Hands-On Seminar Series

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Rockwell Automation Hands-On Seminar Series

  2. SLC 500 BASIC LADDER INSTRUCTIONS

  3. Advanced 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

  4. I:1 ADD ADD Source A N7:0 Source B N7:1 Dest N7:2 0 Math Instructions - ADD Source A + Source B = Dest N7:0 10 N7:1 5 N7:2 15 10 + 5 = 15

  5. I:1 ADD ADD Source A N7:0 Source B N7:1 Dest N7:1 0 Math Instructions - ADD Source A + Source B = Dest N7:0 1 N7:1 5 N7:1 6 1 + 5 = 6 Application: Running Total

  6. I:1 B3 ADD OSR ADD Source A N7:0 Source B N7:1 Dest N7:1 0 0 Math Instructions - ADD Source A + Source B = Dest N7:0 1 N7:1 5 N7:1 6 1 + 5 = 6 Application: Running Total NOTE: This instruction executes every scan that the rung is true, therefore use a One-Shot OSR.

  7. I:1 SUB SUBTRACT Source A N7:0 Source B N7:1 Dest N7:2 0 Math Instructions - SUBTRACT Source A - Source B = Dest N7:0 10 N7:1 5 N7:2 5 10 - 5 = 5

  8. I:1 MUL MULTIPLY Source A N7:0 Source B N7:1 Dest N7:2 0 Math Instructions - MULTIPLY Source A x Source B = Dest N7:0 10 N7:1 5 N7:2 50 10 x 5 = 50

  9. I:1 DIV DIVIDE Source A N7:0 Source B N7:1 Dest N7:2 0 Math Instructions - DIVIDE Source A ÷ Source B = Dest N7:0 10 N7:1 5 N7:2 2 10 ÷ 5 = 2 { S:13 0 remainder S:14 2 unrounded quotient Math Register

  10. I:1 DIV DIVIDE Source A N7:0 Source B N7:1 Dest N7:2 0 Math Instructions - DIVIDE Source A ÷ Source B = Dest N7:0 29 N7:1 10 N7:2 3 29 ÷ 10 = 2.9 { S:13 9 remainder S:14 2 unrounded quotient Math Register

  11. 0:3 GTR ( ) GREATER THAN Source A N7:0 Source B N7:1 0 Comparison Instructions > IF Source A > Source B THENTRUE ELSE FALSE 29 > 10 TRUE therefore Output is Energized N7:0 29 N7:1 10

  12. 0:3 LES ( ) LESS THAN Source A N7:0 Source B N7:1 0 Comparison Instructions < IF Source A < Source B THENTRUE ELSE FALSE 29 < 10 FALSE therefore Output is de-Energized N7:0 29 N7:1 10

  13. 0:3 EQU ( ) EQUAL Source A N7:0 Source B N7:1 0 Comparison Instructions = IF Source A = Source B THENTRUE ELSE FALSE 29 = 10 FALSE therefore Output is de-Energized N7:0 29 N7:1 10

  14. 0:3 NEQ ( ) NOT EQUAL Source A N7:0 Source B N7:1 0 Comparison Instructions ¹ IF Source A ¹ Source B THENTRUE ELSE FALSE 29 ¹ 10 TRUE therefore Output is Energized N7:0 29 N7:1 10

  15. 0:3 GEQ ( ) GRTR THAN OR EQUAL Source A N7:0 Source B N7:1 0 Comparison Instructions ³ IF Source A ³ Source B THENTRUE ELSE FALSE 29 ³ 10 TRUE therefore Output is Energized N7:0 29 N7:1 10

  16. 0:3 LEQ ( ) LESS THAN OR EQUAL Source A N7:0 Source B N7:1 0 Comparison Instructions £ IF Source A £ Source B THENTRUE ELSE FALSE 29 £ 10 FALSE therefore Output is de-Energized N7:0 29 N7:1 10

  17. I:1 MOV MOVE Source N7:0 Dest N7:1 0 Data Movement - Move Source Dest N7:0 50 N7:1 50

  18. I:1 COP COPY FILE Source #N7:0 Dest #N7:5 Length 4 0 Data Movement - Copy Source Dest } N7:0 10 N7:1 20 N7:2 30 N7:3 40 N7:4 N7:5 10 N7:6 20 N7:7 30 N7:8 40 }

  19. I:1 CLR CLEAR Dest N7:1 0 Data Movement - Clear Zero Dest N7:0 50 N7:1 0

  20. Advanced Instructions ANY QUESTIONS??? 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

  21. File Type Timer Number (0-255) T4:0 4 Timers 15 14 13 File Number File contains 256 timers EN TT DN Word 0 Preset Value Word 1 Accumulated Value Word 2 Timer Addressing and Parameters Preset T4:0.PRE How long the timer should time for. Accumulated T4:0.ACC How long the timer has timed for already. Done T4:0/DN Set to “1” when accumulated value > preset value. Timer Timing T4:0/TT Set to “1” when accumulated value < preset value. Enable T4:0/EN Set to “1” when the rung containing the timer is true.

  22. M1 O:3/0 M1 O:3/0 Timers The Timer’s “done bit” turns the motor off after a 10 second time delay. Stop Motor Start Timer Done T4:0/DN I:1/1 O:3/0 I:1/0 ]/[ ]/[ ] [ ( ) ] [ TON (EN) ] [ TIMER ON DELAY Timer T4:0 Time Base 1.0 Preset 10 Accum 0 (DN)

  23. ON-OFF Selector Switch I:2/2 TON (EN) ] [ TIMER ON DELAY Timer T4:0 Time Base 1.0 Preset 10 Accum 0 (DN) Motor Timer Timing T4:0/TT O:3/0 ][ ( ) Timers The Timer’s “timing bit” turns the motor on for only 10 seconds.

More Related