EasyManuals Logo

GE VersaMax PLC User Manual

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
Page #218 background imageLoading...
Page #218 background image
11.16 SVCREQ 16: Read Elapsed Time Clock
Use SVCREQ 16 to read the system's elapsed time clock. The elapsed time clock
measures the time in seconds since the PLC was powered on.
11.16.1 Output Parameter Block for SVCREQ 16
This function has an output parameter block only. Its length is 3 words.
address
seconds from power on (low order)
address + 1
seconds from power on (high order)
address + 2 100 microsecond ticks
The first two words are the elapsed time in seconds. The last word is the number of 100
microsecond ticks in the current second.
11.16.2 Example of SVCREQ 16
In the example, when internal coil %M0233 is on, the SVCREQ with a parameter block
located at %R0127 reads the system's elapsed time clock and sets internal coil %M0234.
When coil %M0233 is off, the SVCREQ with a parameter block at %R0131 reads the
elapsed time clock again.
The subtraction function finds the difference between the first and second readings, which
have been stored in the SVCREQ parameter blocks. The subtraction ignores the hundred
microsecond ticks.
The difference between the two readings is placed in memory location %R0250.
CONST
00016
SVC
_
REQ
FNC
PARM
%R0127
%M0233 %M0234
%M0223
%M0234
I1
I2
Q
%R0131
SUB
_
D INT
%M0234
CONST
00016
SVC
_
REQ
FNC
PARM
%R0131
S
R
%R0250
%R0127
218 GFK-1503E VersaMax PLC User Manual
For public disclosure

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the GE VersaMax PLC and is the answer not in the manual?

GE VersaMax PLC Specifications

General IconGeneral
BrandGE
ModelVersaMax PLC
CategoryController
LanguageEnglish

Related product manuals