I added the following code in my cyclic section on one of my flexy 205’s:
// Check the scan time of the cyclic section
LatestMsec% = GetSys Prg, “Msec”
ClockSec@ = LatestMsec% / 1000
If(LatestMsec% < PrevMsec%) Then
// Rollover Occured
LastScanSec@ = ((134217728 - PrevMsec%) + LatestMsec%) / 1000
RolloverApprox@ = PrevMsec% / 1000 // Rollover just after value in “PrevMsec%” so check that value
Else
LastScanSec@ = (LatestMsec% - PrevMsec%) / 1000
Endif
PrevMsec% = LatestMsec%
If(LastScanSec@ > MaxScanSec@) Then MaxScanSec@ = LastScanSec@
//
However, it appears the spec for rollover at 134,217,727 milliseconds does not occur ?
Has there been a change to the this spec (taken from RG-0006-01 manual, page 50)