Unitary

Pre-APOGEE

APOGEE

BACnet

PXC.A

Syntax

RETURN

Use

Marks the end of a subroutine.

RETURN must be the last command of any GOSUB subroutine. When a RETURN command is encountered, the program returns to the line following the GOSUB command.

Example

100 GOSUB 310

110 ...

120 ...

130 ...

290 ...GO TO 350

300 C  THIS SUBROUTINE PERFORMS...

310 ...

320 ...

330 ...

340 RETURN

350 CONTINUE WITH REST OF PROGRAM

Notes

  • In a network system, a load defined by a PDLDAT statement must reside in the same automation station as the PDL statement.
  • A PDLDAT statement is referenced by only one PDL statement. Using multiple references produces unpredictable results.
  • The PDLDAT statement should be in the same automation station as the load.

See also the GOSUB and GOTO topics.