Error simulator for trainees
Couldn't load pickup availability
Description
This SCL function block, FB_Error Evaluation, handles the central evaluation of internal error codes, sets the corresponding flags, and provides diagnostic information for HMI and service. It can be run directly in the Siemens TIA Portal.
Note: All modules are designed exclusively as a learning and optimization basis and are not approved for live operation. System modules, in particular, must be finally tested and commissioned by qualified personnel before productive use.
How it works
- Cycle start: Reset all internal error and enable flags
- Evaluate error ID → depending on the code:
- Set error active
- Deactivate valve release or voltage OK
- Assign InfoText for HMI
– Save timestamp when first encountered - Acknowledgement activated → Error flag, reset LED & buzzer, InfoText “Error acknowledged”
Technical details
• Inputs: Error ID, Current Time, Acknowledge (cyclic)
• Outputs: #ErrorActive, #ErrorLED, #Buzzer, #ValveRelease, #VoltageOK
• Internal variables: ErrorInternal, ErrorReported, TimeDetected
• Error evaluation via CASE structure for IDs 1–3, fallback “No error”
• Acknowledgement path resets all relevant flags and documents success
Possible applications
• Central error collection in machine and system controls
• HMI diagnostic pages and service dashboards
• Retrofit of existing PLC projects for uniform error handling
• Live demos in training environments for error diagnosis and acknowledgement
compatibility
Siemens S7-1200 & S7-1500, TIA Portal V13 and higher (V16+ recommended for HMI & PLCSIM)
Scope of delivery
.scl file with input/output declarations, state transitions, timer instances, and section comments; download link available immediately after purchase
Support
Adaptation of additional error codes, integration of additional diagnostic functions or HMI connection on request via shop message or email.