EasyManua.ls Logo

GE VersaMax PLC

GE VersaMax PLC
318 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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

Table of Contents

Related product manuals