Relay Ladder - Allen-Bradley Logix5000 Reference Manual

1756 controllogix, 1768 compactlogix, 1769 compactlogix, 1789 softlogix, 1794 flexlogix, powerflex 700s with drivelogix
Hide thumbs Also See for Logix5000:
Table of Contents

Advertisement

Chapter 11
Program Control Instructions (JMP, LBL, JSR, RET, SBR, JXR, TND, MCR, UID, UIE, AFI, NOP, EOT, SFP, SFR, EVENT)
When abc is on, subroutine_1 executes, calculates the number of cookies, and places a value in cookies_1.
Adds the value in cookies_1 to cookies_2 and stores the result in total_cookies.
When def is on, the RET instruction returns value_1 to the JSR cookies_1 parameter and the rest of the subroutine is not scanned.
When def is off (previous rung) and ghi is on, the RET instruction returns value_2 to the JSR cookies_1 parameter and the rest of the subroutine
is not scanned.
When both def and ghi are off (previous rungs), the RET instruction returns value_3 to the JSR cookies_1 parameter.
460
Example 2:

Relay Ladder

Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
MainRoutine
Subroutine_1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents