Skip to product information
1 of 1

Automatic greenhouse (variation)

Regular price €19,90 EUR
Regular price Sale price €19,90 EUR
Sale Sold out

Description
This SCL function block, FB_GreenhouseControl, monitors and controls temperature, light, soil moisture, and door status in a greenhouse. It automatically controls heating, ventilation, irrigation, and lighting and triggers an alarm if the door is left open while the equipment is running.

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

  1. Temperature control
    – Actual vs. target temperature with hysteresis ±2 °C
    – Below target tolerance → heating on
    – Over target+tolerance → fan on
    – Else → Heater/Fan off
    – Manual ventilation overrides at any time
  2. Soil moisture
    – HumidityActual < HumidityTarget → Irrigation on
    – otherwise → irrigation off
  3. lighting
    – Light value < LightLimit and time between TimeStart–TimeEnd (also over midnight) → Light on
    – otherwise → light off
  4. Door monitoring
    – DoorOpen = TRUE and (heating or fan on) → Alarm on, StatusText = "Alarm: Door open when technology is active"

Technical details
• Inputs: TempActual, TempSetpoint, ManualVentilation, HumidityActual, HumiditySetpoint, LightValue, TimeStart, TimeEnd, Time, DoorOpen
• Outputs: Heating, Fan, Irrigation, Light, Alarm, StatusText (STRING)
• Hysteresis via target offset; time window check including over midnight without timer
• Clear IF/ELSIF logic, no additional timer

Possible applications
• Fully automatic climate and environmental control in greenhouses and vertical farms
• Retrofit of existing systems for energy and harvest optimization
• Demonstration and training projects in agricultural technology and PLC automation

compatibility
Siemens S7-1200 & S7-1500; TIA Portal ≥ V13 (recommended V16+ for PLCSIM & HMI)

Scope of delivery
• .scl file with input/output declarations, variables and header comments (version, author, email, customization notes)
• Download link directly after purchase

Support
Adjustment of setpoints, integration of additional sensors, HMI layouts or data logging/remote monitoring on request via shop message or email.