FB_SimPastCpuCounterTicks

Timing module

This block measures the time that elapses between two block calls in 100 ns ticks.

FB_SimPastCpuCounterTicks 1:

VAR_INPUT

VAR_INPUT
    bReset : BOOL; (* TRUE = > reset cpu counter tick measure*)
END_VAR

bReset: Initialisation of timing

VAR_OUTPUT

VAR_OUTPUT
    (* one digit = 100 nanoseconds *)
    dwTicksLo : DWORD;    (* Low DWORD of the time delta *)
    dwTicksHi : DWORD;    (* High DWORD of the time delta *)
END_VAR

dwTicksLo: Time difference lower DWORD (in 100ns ticks)

dwTicksHi: Time difference upper DWORD (in 100ns ticks)

Requirements

Development
Environment

Target System

PLC Libraries to include

TwinCAT v2.9.0 Build > 1020

PC (i386)

TcSimManager.Lib

(Standard.Lib; TcBase.Lib; TcSystem.Lib are included automatically)