Beckhoff First Scan Bit [new] -

PROGRAM MAIN VAR fbFirstScan : TON; bFirstScan : BOOL; END_VAR

VAR fbGetCurTaskIdx : GETCURTASKINDEX; // Function block to find the current task ID bFirstScan : BOOL; END_VAR fbGetCurTaskIdx(); // Call the FB // Access the system's internal task info array bFirstScan := _TaskInfo[fbGetCurTaskIdx.index].FirstCycle; IF bFirstScan THEN // Insert initialization logic here END_IF Use code with caution. Copied to clipboard beckhoff first scan bit

: Triggering a one-time read from a CSV file or database. PROGRAM MAIN VAR fbFirstScan : TON; bFirstScan :