TICKS.GetProperty (FUN)

Input:

wProperty

WORD

Property number

Output:

dwProperty

DWORD

Property value

Value

TICKs.PROPERTY

Meaning

Possible values

1

TICKS.RESEXP

Resolution of the tick[1]:

1 Tick = (TICK.RESNUM/ TICK.RESDENOM)x 10-TICK.RESEXPs

>0

2

TICKS.RESNUM

>0

3

TICKS.RESDENOM

>0

10

TICKS.MAXINTERVAL

2(8*SIZEOF CAA_TICK)) *(TICK.RESNUM/ TICK.RESDENOM )x 

10-TICK.RESEXP+3

Maximum time difference in ms, which can be stored in CAA.TICK.

[1] The “GetProperty” function is used for deliberately defining the conversion function. A possible second solution would have been: 3 functions (counter-argument: number of POUs is raised unnecessarily), FB (counter-argument: must be instanced and resolved externally), global variables (counter-argument: library specifications should be consistent)