Call a subroutine in an action, Call a subroutine – Rockwell Automation Logix5000 Controllers Sequential Function Charts Programming Manual User Manual
Page 68
Chapter 2 Program a sequential function chart
1. Double-click the text area of the action.
2. Type the required structured text.
3. To close the text entry window, press Ctrl+Enter.
Call a subroutine in an action
Use a Jump to Subroutine (JSR) instruction to execute a subroutine when the
action is active.
1. In the SFC, right-click the action and then click Set JSR.
2. In the Routine box, click the down arrow and then click the routine that
you want to call.
3. To pass a parameter to the routine, click an empty Input Parameters box.
Click the down arrow and then click the tag that contains the parameter.
4. To receive a parameter from the routine, click an empty Return
Parameters box. Click the down arrow and then click the tag in which to
store the parameter from the routine.
68
Rockwell Automation Publication 1756-PM006F-EN-P - October 2014