PLC API bRun : Activates the block bReset : Initialises the block with the initialisation value in 'fInit' fIn : Input value for integration fInit : Initialisation value VAR_OUTPUT VAR_OUTPUT fOut : REAL; (* Integral out, Integrated over milliseconds*) END_VAR fOut : Integrated value Requirements 6.7 FB_SimPastCpuCounterTicks Timing module This block measures the time that elapses between two block calls in 100 ns ticks. 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 TS1110 62 Version: 1.0 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) Development Environment Target System PLC Libraries to include TwinCAT v2.9.0 Build > 1020 PC (i386) TcSimManager.Lib