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)
a 1
seconds from power on (high order)
a 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
Содержание VersaMax PLC
Страница 1: ...GE Intelligent Platforms GFK 1503E VersaMax PLC User Manual September 2015 For public disclosure ...
Страница 16: ...Notes 16 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Страница 38: ...Notes 38 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Страница 50: ...Notes 50 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Страница 92: ...Notes 92 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Страница 112: ...Notes 112 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Страница 224: ...Notes 224 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Страница 292: ...Notes 292 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Страница 316: ...Notes 316 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Страница 317: ......
Страница 318: ...GE Intelligent Platforms 1 800 433 2682 1 434 978 5100 www ge ip com GFK 1503E For public disclosure ...