GetSysTick
The "GetSysTick" function can read the value of the internal system tick. The PLC Controller's system tick is a 32 bit counter that is incremented every millisecond. The counter is cleared by a reset or when the controller is powered down, but can be set to a particular value by means of the PresetSysTick function.
FUNCTION GetSysTick : DWORD
VAR_INPUT
VAR_INPUT
bDummy : BOOL
END_VAR
At least one input is required for functions.
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v2.7.0 and above | BCxxxx (165) | PlcSystemBC.Lb6 |