%I0001
DO_IO
ST
END
ALT
%Q0001
%AQ001
%AQ004
%R0001
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.
%I0001
DO_IO
ST
END
ALT
%Q0001
%I0001
%I0016
CONST
00002
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.
140
GFK-1503E
VersaMax PLC User Manual
For public disclosure
Summary of Contents for VersaMax PLC
Page 16: ...Notes 16 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 38: ...Notes 38 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 50: ...Notes 50 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 92: ...Notes 92 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 112: ...Notes 112 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 224: ...Notes 224 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 292: ...Notes 292 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 316: ...Notes 316 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 317: ......