Call - GE PACSystems RX7i Cpu Programmer's Reference Manual

Hide thumbs Also See for PACSystems RX7i:
Table of Contents

Advertisement

4.11.2

Call

Non-parameterized Parameterized. May call a parameterized external block or a parameterized
When the CALL function receives power flow, it causes the logic execution to go immediately to the
designated program block, external C block (parameterized or not), or parameterized block and
execute it. After the block's execution is complete, control returns to the point in the logic
immediately following the CALL instruction.
Notes:
A CALL function can be used in any program block, including the _MAIN block, or a parameterized
block. It cannot be used in an external block.
You cannot call a _MAIN block.
The called block must exist in the target before making the call.
There is no limit to the number of calls that can be made from or to a given block.
You can set up recursive subroutines by having a block call itself. When stack size is configured
to be the default (64K), the PLC guarantees a minimum of eight nested calls before an
Application Stack Overflow fault is logged.
Each block has a predefined parameter, Y0, which the CPU sets to 1 upon each invocation of the
block. Y0 can be controlled by logic within the block and provides the output status of the block.
When the Y0 parameter of a Program Block, parameterized block, or external C block returns ON,
the CALL passes power to the right; when it returns OFF, the CALL does not pass power to the
right.
GFK-2950C
block. May have up to 7 input and 8 output parameters.
February 2018
Chapter 4. Ladder Diagram (LD) Programming
203

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pacsystems rx3iPacsystems rsti-ep

Table of Contents