Chapter 8 Logic Instructions
8-51
FB/FC
FB
Sys_ReadPowerOnTime reads power-on time of the controller.
Input Parameter
Parameter name Function Data type
Validation timing
Enable
executed when Enable
changes from FALSE to
BOOL
TRUE or FALSE
(FALSE)
When Enable is
TRUE.
Output Parameters
Function Data type Valid range
Done TRUE when the instruction execution is completed. BOOL TRUE/FALSE
PowerOnTime Shows total power-on time of the controller. TIME
T#0ms ~ 213503d23h34m33s709.551ms
Function Explanation
Sys_ReadPowerOnTime reads total power-on time of the controller. The instruction will restart to
measure the power-on time if the controller is repowered after power off. When Enable is TRUE, the
total power-on time of the controller will be read in the variable specified by PowerOnTime.
Sys_ReadPowerOnTime
Sys_ReadPowerOnTime_instance
Enable Done
PowerOnTime