4

CALL

Use the CALL function to cause program execution to go to a specified subroutine block.

————————————————

???????

-

(SUBROUTINE)

————————————————

 

When the CALL function receives power flow, it causes the scan to go immediately to the designated subroutine block and execute it. After the subroutine block execution is complete, control returns to the point in the logic immediately following the CALL instruction.

Example:

The following example screen shows the subroutine CALL instruction as it appears in the calling block. By positioning the cursor within the instruction, you can press F10 to zoom into the subroutine.

 

%I0004

%T0001

—— —————————————————————————————————————————————————————————————————————( )—

 

 

 

 

————————————————

 

 

%I0006

CALL ASTRO

-

—— ———————

(SUBROUTINE)

 

 

 

————————————————

 

 

 

 

%I0003

%I0010

%Q0010

—— ——+—— —————————————————————————————————————————————————————————————( )—

%I0001 —— ——+

Note

Micro PLCs do not accommodate subroutines; therefore, the CALL function is inappropriate for use with a Micro PLC.

4-108

Series 90-30/20/Micro Programmable Controllers Reference Manual–September 1998

GFK-0467K

Page 189
Image 189
GE 90-30/20/Micro manual Call