What you’ll learn
- Map a function-block connection to a named variable in a textual sequence.
- Trace a program across a normal scan, a brief loss of proof and a sustained fault.
Before you start · 2 related lessons
0 of 2 prerequisites demonstrated. You can open this lesson at any time.Follow variables and execution order
A function-block diagram shows data traveling from input pins through logic to output pins. Check pin type and units. A comparator converts a numeric value to a Boolean. Each timer instance stores elapsed time across calls. A programming system may use execution order or prior-scan values on some paths. Inspect the actual compiled order and task interval when two blocks appear to respond one scan apart.
Read a short structured-text example
Suppose RunRequest is assigned (Occupied OR Extension) AND Ready. A separate instance call ProofDelay(IN := RunRequest AND NOT FanProof, PT := T#15s) evaluates the missing- An observation satisfying a defined criterion. A current switch proves current above its threshold. A duct switch proves pressure differential at its taps. interval. FanAlarm := ProofDelay.Q assigns the result to an alarm variable. The symbols := indicate assignment or named input association. The timer instance must be evaluated each scan in this example so a returning proof can reset it. These lines describe control intent and need platform-specific declarations and terminators before use in a real program.
Build the scan trace
On paper give each scan an input snapshot, enable, elapsed time and alarm output. Write a plain-language version before editing the block diagram. If a timer is only called inside a conditional branch, check its documented behavior when skipped. A retained output can make a corrected physical condition look like a persistent alarm.
- Read Occupied / Extension / Ready
- Assign RunRequest
- Compare request with FanProof
- Call ProofDelay instance
- Assign FanAlarm from Q
Normal operation
Example training conditions
- A program scans once per second. Occupied becomes true while Ready is false; the AND block and fan output remain false. On the next scan both inputs are true and the output becomes true.
- The program can issue a command in one scan. The physical fan and its proof take longer to respond.
Worked service example
A simulated fan annunciates failure when proof normally arrives eight seconds after the request.
Recorded field evidence · training example
- Approved proving delay 15 s. Scan interval 1 s.
- Recorded program drives alarm directly from RunRequest AND NOT FanProof.
- Timer Q remains false when fan proof arrives at 8 s.
The missing-proof condition becomes true immediately, but the alarm output is wired to the raw comparator. Route the training alarm to the qualified result and test early proof, sustained failure and return to normal.
Field procedure
- Write the input, output and retained state for each block.
- Translate the path into plain-language assignments, then step through multiple scans.
- Test normal start, interruption shorter than the delay and a sustained failure. Record the result and deployed revision.
Hands-on exercise
Use the function-block playground to identify the input, comparison or Boolean intermediate, and output. Predict the next scan before executing it.
Function-block commissioning
Connect the request and permission so both must remain on for three seconds before EF-01 receives a start. Losing either input must immediately remove the start. Each scan advances the same simulated controller and exhaust plant by one second.
- InputsRequest · AHU occupancyPermit · exhaust enable
- On delay
- Binary outputEF-01.EF-CMD
Unit 4 service call
The operator enabled the AHU. Should the fan have started yet?
Predict which transition is permitted and when its proof timer starts. Bring back the source, reading and time of your strongest observation.
Open case simulatorStandalone simulator · free practice
Validate and run a virtual DDC program
Inspect a program, validate its typed connections and deploy it to the isolated controller. Step the controller and compare output and equipment response.
Open simulator →Knowledge check
Pass at 80%.
Field takeaways
- Trace the actual writer of each output.
- Test both sides of a timing boundary with a scan-by-scan record.
References and further reading
- Schneider Electric · Functions, function blocks and retained state between calls ↗
- Schneider Electric · Using a function block in structured text ↗