11.2
Format of the SVCREQ Function
The SVCREQ function has three inputs and one output.
SVC
_
REQ
FNC
PARM
Function number
Beginning reference
enable
OK
When the SVCREQ receives power flow, the PLC is requested to perform the function
number FNC indicated. Parameters for the function are located beginning at the reference
given for PARM. This is the beginning of the “parameter block" for the function. The
number of 16-bit references required depends on the SVCREQ function being used.
Parameter blocks may be used as both inputs for the function and the location where data
may be output after the function executes. Therefore, data returned by the function is
accessed at the same location specified for PARM.
The SVCREQ function passes power flow unless an incorrect function number, incorrect
parameters, or out-of-range references are specified. Specific SVCREQ functions have
additional causes for failure.
11.2.1
Parameters of the SVCREQ Function
Input/Output
Choices
Description
enable
flow
When enable is energized, the service request is
performed.
FNC
I, Q M, T, G, R, AI, AQ,
constant
Contains the constant or reference for the
requested service.
PARM
I, Q M, T, G, R, AI, AQ
Contains the beginning reference for the
parameter block for the requested service.
ok
flow, none
OK is energized when the function is performed
without error.
11.2.2
Example of the SVCREQ Function
In the example, when the enabling input %I0001 is ON, SVCREQ function number 7 is
called, with the parameter block located starting at %R0001. Output coil %Q0001 is set
ON if the operation succeeds.
%I0001
%Q0001
CONST
00007
SVC
_
REQ
FNC
PARM
%R0001
The Service Request Function
GFK-1503E User Manual 197
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: ......