First-scan setup

Load starting values once, then let the program change them.

Step by step

Pick a step. The rungs are drawn by the editor after Core scans the program up to that step.

1. First scan. System_Scan_First is 1, so the MOV loads 500 into Setpoint.

StepSystem_Scan_FirstRaisePBSetpoint
1. First scan10500
2. Scan 200500
3. Press RaisePB01510
4. Release RaisePB00510

Why it works

  • The engine sets System_Scan_First to 1 on the first scan after a reset or a project load, and to 0 on every scan after.
  • The MOV runs only on that scan, so later changes to Setpoint are kept.

Common mistakes

  • Writing a default every scanWithout System_Scan_First, the MOV puts 500 back every scan and RaisePB seems to do nothing.

Instructions used

Related