Electric fence monitoring with alarm
Couldn't load pickup availability
Description
This SCL function block, FB_Fence Monitoring, continuously monitors the electric fence voltage and a door contact. If predefined thresholds are exceeded or the door is opened, it activates a warning, alarm, sounds a horn, and delivers appropriate HMI texts. It runs 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
- FenceVoltage < WarningLimit → WarningActive = TRUE; otherwise FALSE
- FenceVoltage < AlarmLimit OR DoorOpen = TRUE → AlarmActive = TRUE, AlarmStored = TRUE
• AlarmText = “Fence voltage too low!” or “Fence interrupted / opened!” - AlarmAcknowledge = TRUE → AlarmActive = FALSE, AlarmSaved = FALSE, AlarmText = "No fault"
- Horn = AlarmActive
Technical details
• Inputs: FenceVoltage, WarningLimit, AlarmLimit, DoorOpen, AlarmAcknowledge
• Outputs: WarningActive, AlarmActive, AlarmSaved, AlarmText (STRING), Horn
• Pure IF/ELSIF logic, no timers or FSM
Possible applications
• Perimeter protection of compound and stable fences
• Securing pastures
• PLC training on monitoring functions
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, internal variables, and header comments for limit adjustments. Download link available immediately after purchase.
Support
Adjustment of limit values, integration of additional sensors or HMI layouts on request via shop message or email.