- Value Added Distributor & Cloud Services
- Complete partner support with our solutions
- Premium care for partners and customers
- Cyber Security, Data Protection and Business Continuity in one place
- Top technology, winning approach, dedicated team
When the runtime transitions from STOP to RUN mode, or when the industrial PC reboots, the very first loop execution is highly critical. Running uninitialized pointers, unpopulated recipes, or empty configuration arrays during this first cycle can cause real-time system traps, or worse, unpredictable machine behavior. A first-scan mechanism guarantees that configuration values are safely applied before the main machine control loop takes command. Method 1: The Native System Approach ( PlcTaskSystemInfo )
: Retrieves the Distributed Clock (DC) timestamp, which is absolutely vital for high-precision motion control and EtherCAT synchronization.
FB_init is a specialized method that executes the first cycle of the PLC task. It runs during the transition from Stop to Run or during an Online Change. How to use FB_init: Right-click your Function Block in the solution tree. Select Add > Method .
: