CALL Command

Purpose

Places another block (usually another Program block, Device Control block, or Boolean block) on scan, while the original Program block pauses. The command returns to the original block and resumes execution when the called block completes its operation. If you want the Program block making the call to continue running, use the RUN command instead.

Syntax

CALL block

Example

To place the block PROG2 on scan, enter:

CALL PROG2

NOTE: When making a CALL to a Program block, make sure you take into account any previous MAXWAIT commands. In addition, you cannot use the CALL command in a Program block that is part of an exception-based chain.

Called blocks should be off scan until called. If the block calls a block that is already on scan, the call is ignored.