11.8.3.3
Example of SVCREQ 7
In the example, when called for by previous logic, a parameter block for the time-of-day
clock is built. It requests the current date and time, then sets the clock to 12 noon using
BCD format. The parameter block is located at location %R0300. Array NOON has been
set up elsewhere in the program to contain the values 12, 0, and 0. (Array NOON must
also contain the data at %R0300.) BCD format requires six contiguous memory locations
for the parameter block.
FST_SCN
%T0001
CONST
+00007
SVC_
REQ
FNC
PARM
%R0300
CONST
+04608
MOVE
INT
IN
Q
NOON
CONST
+00007
SVC_
REQ
FNC
PARM
%R0300
CONST
+00000
MOVE
INT
IN
Q
MIN_SEC
%T0001
AND_
WOR
I1
I2
Q
CONST
00FF
%R0303
%R0303
%I0017
%R0303
ADD_
INT
I1
I2
Q
NOON
%R0303
%I0016
CONST
+00000
MOVE
INT
IN
Q
%R0300
CONST
+00001
MOVE
INT
IN
Q
%R0301
%T0001
%I0017
MIN_SEC
MOVE
INT
IN
Q
%R0304
CONST
+00001
MOVE
INT
IN
Q
%R0300
The Service Request Function
GFK-1503E User Manual 209
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: ......