◆ BackgroundCycleCounterGet()

virtual int32_t BackgroundCycleCounterGet ( )
pure virtual

Get the current value of the controller's processor's background cycle counter.

ℹ This function is avaliable in RapidCode and RapidSequencer

Description:
BackgroundCycleCounterGet returns the value of the counter
Returns
(int32_t) Background cycle counter value.
Sample Code:
// -- C++ -- //
printf("Background Cycle Counter reads %ld\n", controller->BackgroundCycleCounterGet());
// -- C# -- //
Console.WriteLine("Background Cycle Counter reads {0}", controller.BackgroundCycleCounterGet());
See also
SampleCounterGet
Note
The return value is a 32 bit counter which will roll over.