Configure JSR, SBR, and RET instructions in Routine Parameter style

Set up Jump to Subroutine (JSR) and Return (RET) instructions using Routine Parameter style in FactoryTalk Design Studio.
  1. Add a Jump to Subroutine (JSR) instruction to the routine.
  2. Enter a subroutine name.
    The editor integrates the parameters of the called subroutine, if any parameters exist.
    • If parameters exist, the editor uses the Routine Parameter style.
    • If parameters do not exist, the editor uses the Legacy style.
    The JSR instruction automatically completes the inputs and outputs as parameters to the routine. Parameter labels are generally the routine parameter names.
  3. (optional) Update parameters from the routine.
    The editor updates to display the updates.
  4. Enter a Return (RET) instruction.
    TIP: Do not enter an SBR instruction. FactoryTalk Design Studio automatically pulls input arguments from the JSR into the routine input parameters.
    You can add RET instructions anywhere within the routine. The return instruction does not present a list of return parameters because they are not necessary. FactoryTalk Design Studio automatically returns the outputs from the routine output parameters.
The routine uses Routine Parameter style for JSR and RET instructions. FactoryTalk Design Studio automatically manages input and output parameters.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal