ifm
Programming Manual
ecomatmobile
ifm function elements
>
TIMER_READ_US
Unit type = function block (FB)
Unit is contained in the library ifm_CR0403_Vxxyyzz.LIB
Symbol in CODESYS:
>
Description
TIMER_READ_US reads the current system time in [µs].
When the supply voltage is applied, the device generates a clock pulse which is counted upwards in a
register. This register can be read by means of the FB call and can for example be used for time
measurement.
Info
The system timer runs up to the counter value 4 294 967 295 µs at the maximum and then starts
again from 0.
4 294 967 295 µs = 1h 11min 34s 967ms 295µs
>
Parameters of the outputs
Parameter
TIME_US
RESULT
Possible results for RESULT:
Value
Description
dec | hex
0
00
FB is inactive
1
01
FB execution completed without error – data is valid
>
BasicController (CR0403) Runtime System V03.02
Data type
DWORD
BYTE
201
ifm function elements for the device CR0403
Description
current system time [µs]
feedback of the function block
(possible messages → following table)
2015-04-01
8219
660
8220
Need help?
Do you have a question about the CR0403 and is the answer not in the manual?