Beckhoff First Scan Bit Link
// -- Normal logic after first scan done -- IF NOT bFirstScanDone THEN // Final first-scan tasks that require bus ready fbAxis1.ExecuteHome(); bFirstScanDone := TRUE; END_IF
Call it at the beginning of your main cycle: beckhoff first scan bit