Control Functions Call - GE VersaMax PLC User Manual

Table of Contents

Advertisement

%I0001
%AQ001
%AQ004
%R0001
%I0001
%I0001
%I0016
CONST
00002
140
GFK-1503E
For public disclosure
ST
END
ALT
If no reference were specified for ALT, the PLC would write values at references %
AQ001-004 to analog output channels.
10.2.1.6 Do I/O to One Module (Enhanced Do I/O)
The Do I/O function can be used on a single discrete input or discrete output module
located in the main PLC. Execution of the function is much faster when just one module
is read or written to.
The module to be read/written is specified in the ALT parameter. For example, a constant
value of 2 in this parameter indicates to the CPU that it is to execute the Do I/O function
block for the module in location 2. The start and end references must be either %I or %Q.
These references specify the first and last reference the module is configured for.
10.2.1.7 Example Do I/O for One Module
In this example, the Do I/O function is executed only to a 16-point input module which is
configured at %I0001 through %I0016 in location 2.
ST
END
ALT

10.2.2 Control Functions Call

The Call function causes program execution to go to a specified subroutine block.
CALL
(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.
%Q0001
%Q0001
VersaMax PLC User Manual

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents