GE VersaMax PLC User Manual page 204

Table of Contents

Advertisement

FST_SCN
%R0150
%R0150
%I0137
CONST
00006
%R0150
204
GFK-1503E
For public disclosure
11.7.1.1 Example of SVCREQ 6
In the example, when enabling contact FST_SCN is set, the parameter blocks for the
checksum function are built. Later in the program, if input %I0137 turns on, the SVCREQ
reads the number of words being checksummed. The parameter block for the Read
function is located at %R0150-151. The ADD function adds 32 to the current word count
in %R0151 and places the result in %R0153. The parameter block for the Change
function is located at %R00152-153. The second SVCREQ then changes to the new word
count specified in %R0153.
XOR_
INT
Q
%R0150
CONST
I1
00001
I2
SVC_
REQ
FNC
%R0151
CONST
PARM
00032
MOVE
INT
IN Q
%R0152
ADD_
INT
Q
%R0153
I1
CONST
%R0152
I2
SVC_
REQ
FNC
00006
PARM
VersaMax PLC User Manual

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents