Configure JSR, SBR, and RET instructions in Legacy style

Set up Jump to Subroutine (JSR), Subroutine (SBR), and Return (RET) instructions using the Legacy style and enter routine parameters.
  1. In the routine editor, add a Jump to Subroutine (JSR) instruction.
  2. In the JSR instruction, enter the subroutine name.
    The editor checks for routine parameters. If no parameters exist, the editor uses the Legacy style.
  3. (optional) In the JSR instruction, add or remove input and output parameters.
    Parameter names display as Input Par and Return Par.
  4. In the ladder editor, add an Subroutine (SBR) instruction as the first instruction on the first rung.
  5. In the SBR instruction, enter the corresponding input tags from the JSR instruction. The number of SBR input tags must match the number of input parameters in the JSR.
    Tags can match or differ from those used in JSR and RET instructions.
  6. Add a Return (RET) instruction anywhere in the routine.
  7. In the RET instruction, enter the corresponding output tags from the JSR instruction. The number of SBR output tags must match the number of output parameters in the JSR.
    Tags can match or differ from those used in JSR and SBR instructions.
The routine uses JSR, SBR, and RET instructions in Legacy style with specified parameters.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal