The library PLCService.lib
PLCGetCPUClockRate
This function returns the CPU cycle frequency in Hertz as 64-bit value.
The cycle frequency of the CPU can be determined using the PLCGetCPUClockRate function. The time
differences can be determined in this way, by the linking of both values.
In/Out Variable Data type Description
pClkHi UDINT High-value part of the number.
pClkLo UDINT Low-value part of the number.
Output variable Data type Description
PLCGetCPUClockRate BOOL Return value:
TRUE ... Function successfully executed,
FALSE ... Function was not successfully
completed.
Example:
The value of the cycle frequency of 33 MHz is returned e.g. as pClkLo = 33,000.000 and pClkHi = 0.
PLCGetDeviceName
This function returns the device description of the control.
Output variable Data type Description
PLCGetDeviceName STRING(80) Return value:
Device description of the control
(e.g. CECX-X-C1).
CECX-VII 2