246
ifm
System Manual
ecomat
mobile
SmartController (CR2500) V05
More functions in the ecomatmobile controller
Reading the system time
10.7
Reading the system time
The following functions offered by
ifm electronic
allow you to read the continually running system
time of the controller and to evaluate it in the application program.
10.7.1
Function TIMER_READ
Contained in the library:
ifm_CRnnnn_Vxxyyzz.LIB
Available for the following devices:
•
CabinetController: CR0301, CR0302, CR0303
•
ClassicController: CR0020, CR0032, CR0505
•
ExtendedController: CR0200, CR0232
•
PCB controller: CS0015
•
SafetyController: CR7020, CR7021, CR7032, CR7200, CR7201, CR7232, CR7505, CR7506
•
SmartController:
CR2500
•
PDM360 smart: CR1070, CR1071
Function symbol:
TIMER_READ
T
Description
TIMER_READ reads the current system time.
When the supply voltage is applied, the controller generates a clock pulse which is counted upwards in
a register. This register can be read using the function call and can for example be used for time
measurement.
NOTE
The system timer goes up to FFFF FFFF
16
at the maximum (corresponds to about 49.7 days) and then
starts again from 0.
Parameters of the function outputs
Name
Data type Description
T
TIME
Current system time (resolution [ms])