Chapter 6. Service Request Function
GFK-2950C
February 2018
325
6.27
SVC_REQ 29: Read Elapsed Power Down Time
Use SVC_REQ 29 to read the amount of time elapsed between the last power-down and the most
recent power-up. If the watchdog timer expired before power-down, the CPU is not able to calculate
the power down elapsed time, so the time is set to 0.
This service request cannot be accessed from a C block.
This function has an output parameter block only. The parameter block has a length of three words.
Address
Power-down elapsed seconds (low order)
A 1
Power-down elapsed seconds (high order)
A 2
100µS ticks
The first two words are the power-down elapsed time in seconds. The last word is the number of
100 µs ticks in the current second.
Note:
Although this request responds with a resolution of 100 µS, the actual accuracy is 1 second.
The battery-backed clock, which is used when the controller is powered down, is accurate to
within 1 second.
SVC_REQ 29 Example
When input %I0251 is ON, the elapsed power-down time is placed into the parameter block that
starts at %R0050. The output coil (%Q0001) is turned on.
CONST
00029
SVC_
REQ
FNC
PARM
%R0050
%I0251
%Q0001
Содержание PACSystems RSTi-EP
Страница 357: ......
Страница 466: ...Chapter 9 Diagnostics GFK 2950C February 2018 451 ...