beautypg.com

Instruction 81- subroutine return – Maple Systems MAPware-7000 User Manual

Page 136

background image

MAPware-7000 Ladder Logic Guide

128

1010-1041 rev. 00

Instruction 81- Subroutine Return

Expression:

Space Requirement: 1 line x 1 column Location Requirement: Middle, Right rail

Function:

This instruction indicates the end of a subroutine. When program execution is reached this
instruction, it is returned to the original CALL instruction.

Execution Condition:

Input

Operation

Output

---

Execution

---

Operand:

No operand is required.

Example:

When X007 is ON, the subroutine number 8 is called. When the program execution is returned
from the subroutine, the output is turned ON.

Main Program

Subroutine

Note:

Refer to the SUBR instruction.

The RET instruction can be programmed only in the program type ‘Subroutine’.

The RET instruction must be connected directly to the left power rail.