Siemens LOGO! 0BA7 Tunnel Ventilation Control with Danfoss FC302

David Krause17 min read
SiemensTIA PortalTutorial / How-to
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

Siemens LOGO! 0BA7 Tunnel Ventilation Control with Danfoss FC302 VFD

Tunnel ventilation is a multi-discipline automation problem that combines motor control, sensor feedback, time-of-day scheduling, and fail-safe emergency logic. For a school project or pilot installation, the Siemens LOGO! 0BA7 (LOGO! 8 generation, also called LOGO! 8.1/8.2 depending on the FS level) paired with a Danfoss VLT AutomationDrive FC 302 is a credible, low-cost solution. This article walks through the full engineering path: hardware selection, I/O mapping, the weekly time program, analog reference scaling into the VFD, the smoke detector emergency stop chain, and the final commissioning verification.

Scope note: The control philosophy implemented here is a representative classroom/learning project. Real road, rail, or mine tunnels require redundant PLCs, fire-rated cabling, SIL-rated safety logic, and conformity to standards such as NFPA 502, EN 12101-3, PIARC, and the EU Tunnel Directive 2004/54/EC. Do not deploy this design to an in-service traffic tunnel without qualified fire-engineering review.

1. Functional Requirements Summary

The student specification defines four speed levels, automatically selected by a weekly time-of-day schedule, with manual override pushbuttons and a smoke-detector-driven emergency stop.

Ventilation Level Schedule
Level Time Window VFD Reference Typical Use Case
L1 20:00 – 03:00 15 % (≈ 1.5 V on 0–10 V input) Night base load, pollutant purge
L2 03:00 – 10:00 45 % (≈ 4.5 V) Morning ramp, peak pollution hours
L3 10:00 – 16:00 90 % (≈ 9.0 V) Mid-day high traffic
L4 16:00 – 20:00 100 % (10.0 V) Evening peak, smoke readiness

The motor is assumed to be a three-phase induction motor (typical ratings 1.5 kW to 7.5 kW for a small traffic/service tunnel or model tunnel). The VFD will operate in open-loop VVC+ mode and accept a 0–10 V speed reference from the LOGO!.

2. System Topology

The complete control loop is short and easy to draw because the LOGO! acts as both the scheduler and the analog reference source. The diagram below summarises the signal flow.

Smoke Detector (24 V relay output) NC contact, failsafe Siemens LOGO! 0BA7 + 1× DM8 Extension Weekly Timer → AO Manual Pushbuttons ESD logic (NC loop) Danfoss FC 302 0–10 V ref on T 53 DI on T 27 (Start) 3-Phase Motor Contactor K1 (24 V) Thermal overload relay ESD signal AQ + DO U/V/W 24 V DC control rail (LOGO! power supply or external PSU)

3. Prerequisites

  • LOGO! Soft Comfort V8.2 or later (programming environment). Download from the Siemens LOGO! product support page.
  • MCT 10 Set-up Software for the FC 302, available from the Danfoss Drives support portal.
  • LOGO! 0BA7 base module (e.g. 6ED1052-1MD08-0BA1 for the 24 V DC variant with relay outputs) plus one DM8 extension (e.g. 6ED1055-1MB00-0BA2 for additional digital I/O).
  • Danfoss FC 302 frame size matched to motor (e.g. 132F0043 for 1.5 kW 400 V three-phase).
  • 24 V DC power supply sized for LOGO!, smoke detector, and contactor coils. A 60 W DIN-rail PSU (e.g. Phoenix Contact QUINT) is comfortable for one fan contactor.
  • 24 V DC contactor (e.g. Eaton DILM7-01(24VDC)) and matching thermal overload relay.
  • Smoke detector with 24 V DC relay output (e.g. Siemens FDOOT241-A4 or equivalent addressable point with a single-pole NC relay contact).
  • Three momentary pushbuttons (Stop, Auto, Manual) and a level-selector rotary switch (4 positions) or four individual pushbuttons.
  • Shielded twisted-pair cable for the 0–10 V analog run, kept physically separated from the 400 V motor cabling.

4. Hardware Sizing and Ratings

4.1 Motor and VFD

For a small service tunnel or model build, a 1.5 kW three-phase 400 V motor is typical. Using the standard induction motor sizing formula:

kVA = √3 × VLL × Iline / 1000

For a 1.5 kW four-pole motor running near full load at 0.85 power factor:

  • Iline ≈ 3.3 A at 400 V
  • kVA = 1.732 × 400 × 3.3 / 1000 ≈ 2.29 kVA
  • The VFD must be sized at or above the motor full-load current; an FC 302 with 5.6 A continuous rating (frame size A2) is the usual match.

The student should verify the motor's actual nameplate FLC and not use the kW rating alone, because motors from different manufacturers draw different currents at the same power. Always program par 1-30 (Stator Resistance), par 1-31 (Rotor Resistance) and par 1-33 (Stator Leakage Reactance) using an Automatic Motor Adaptation (AMA) run on first power-up. Refer to the FC 302 Design Guide MG33BC02 for the parameter map.

4.2 LOGO! 0BA7 I/O Budget

LOGO! 0BA7 I/O Allocation
Signal LOGO! Terminal Type Function
I1 Base I1 DI 24 V Stop pushbutton (NC)
I2 Base I2 DI 24 V Auto mode pushbutton (NO)
I3 Base I3 DI 24 V Manual override pushbutton (NO)
I4 Base I4 DI 24 V Smoke detector NC (fail-safe)
I5 Base I5 DI 24 V (analogue-capable) Manual level selector position 1
I6 Base I6 DI 24 V (analogue-capable) Manual level selector position 2
I7 Base I7 DI 24 V (analogue-capable) Manual level selector position 3
I8 Base I8 DI 24 V (analogue-capable) Manual level selector position 4
Q1 Base Q1 DO relay Contactor K1 (line contactor upstream of VFD)
Q2 Base Q2 DO relay VFD Start command (terminal 27)
Q3 Base Q3 DO relay Fault lamp / siren
Q4 Base Q4 DO relay Spare (e.g. reversible fan if upgraded)
AQ Base AQ (AM2) AO 0–10 V Speed reference to FC 302 terminal 53

If more digital inputs are needed for the level selector, the DM8 extension adds I9–I16. The 0BA7 base also includes AI1–AI4 (0–10 V) on terminals I7/I8 and on AI1/AI2 of the AM2 module if fitted. For the simple 4-level selector, four discrete inputs are sufficient and avoid the cost of an analog selector.

5. LOGO! Program Design

5.1 Weekly Timer Block (B016)

The 0BA7 firmware supports a Weekly Timer with up to three ON/OFF cam pairs per block. Four blocks are cascaded to cover the four time windows described in the spec. Configure each Weekly Timer in LOGO!Soft Comfort as follows:

Weekly Timer Configuration
Block Day mask On time Off time Output
B016 W1 Mo–Su 20:00 03:00 Level 1 active
B016 W2 Mo–Su 03:00 10:00 Level 2 active
B016 W3 Mo–Su 10:00 16:00 Level 3 active
B016 W4 Mo–Su 16:00 20:00 Level 4 active

Time windows that cross midnight (20:00 → 03:00) require the Weekly Timer to be set to span two days, or the use of an additional Astronomical Timer block (B018) for sunrise/sunset alternatives. In LOGO!Soft Comfort, configure the cam with separate ON and OFF entries rather than relying on a single cam, otherwise the OFF action triggers the same day. The verified method is to use a Night timer with two cams: Cam 1 ON at 20:00 Mo–Su, Cam 2 OFF at 03:00 Mo–Su.

5.2 Reference Value Selection (B007 Analog Multiplexer)

The Analog Multiplexer block (B007) selects between the auto-schedule value and the manual override value. Connect the four Weekly Timer outputs through a priority encoder built from AND/OR gates to a single "Auto Value" integer (0–1000, representing 0–100.0 % scaled by 10 for the LOGO! 0–10 V output resolution).

Manual mode logic (pseudocode in Structured Text form to be entered as an FBD diagram):

// Manual level selection: I5..I8 → reference
IF Manual_Button AND NOT Stop_Button AND NOT Smoke_Alarm THEN
    IF I5 THEN Reference := 150  // 15.0 %
    ELSIF I6 THEN Reference := 450
    ELSIF I7 THEN Reference := 900
    ELSIF I8 THEN Reference := 1000
    END_IF
ELSE
    // Auto mode
    IF Level1_Timer THEN Reference := 150
    ELSIF Level2_Timer THEN Reference := 450
    ELSIF Level3_Timer THEN Reference := 900
    ELSIF Level4_Timer THEN Reference := 1000
    ELSE Reference := 0
    END_IF
END_IF

// Smoke alarm forces zero and latches fault
IF Smoke_Alarm OR Stop_Button THEN
    Reference := 0
    Fault_Latch := 1
END_IF

5.3 Analog Output Scaling

The 0BA7 base analog output (AM2 optional or integrated on the 0BA8) produces 0–10 V proportional to 0–1000 internal units. The B025 Analog Ramp block is used to apply a 5-second ramp-up and a 3-second ramp-down so that the VFD does not see a step change from 0 % to 100 % in one program cycle. Connect the ramp output to the physical AQ. The corresponding VFD parameter is par 3-02 Minimum Reference = 0 % and par 3-03 Maximum Reference = 100 % to match the 0–10 V span.

6. Danfoss FC 302 VFD Configuration

6.1 Terminal Wiring

The FC 302 control terminals relevant to this project are listed in the table below. Reference the VLT AutomationDrive FC 302 Design Guide MG33BC02.

FC 302 Control Terminal Map
Terminal Function in this Project Source
12 (+24 V) 24 V supply to digital inputs Internal (max 200 mA total)
27 (DI) Start/Stop (configured as "Start, active high") LOGO! Q2
12 / 27 Jumper for source-type wiring Internal link
53 (AI) Speed reference 0–10 V LOGO! AQ
55 (COM) Common for analog I/O LOGO! AQ ground
04 / 05 (RELAY) Fault relay (energised in run, de-energised on trip) LOGO! I4 spare / alarm lamp
91 / 92 / 93 RS-485 Modbus (optional for HMI) Optional

6.2 Essential Parameter Settings

FC 302 Parameter Programming
Parameter Name Setting Reason
0-01 Language English Operator display
0-03 Regional Settings International 50 Hz default
0-10 Active Set-up Set-up 1 Single configuration
1-20 Motor Power From nameplate Match motor
1-22 Motor Voltage 400 V From nameplate
1-23 Motor Frequency 50 Hz EU supply
1-24 Motor Current From nameplate Current limit reference
1-25 Motor Nominal Speed From nameplate Slip compensation
1-29 Automatic Motor Adaptation Enable AMA Run on first power-up
3-02 Minimum Reference 0 % 0 V → 0 % speed
3-03 Maximum Reference 100 % 10 V → 100 % speed
3-10.0 Preset Reference 0 15 % Optional safety preset
3-15.1 Reference Resource 1 Analog input 53 LOGO! AQ source
4-10 Motor Speed Direction Clockwise only Tunnel safety
5-10 Terminal 27 Digital Input Start LOGO! Q2 drives start
5-12 Terminal 27 Logic PNP (source) Match 24 V from LOGO!
6-10 Terminal 53 Low Voltage 0.07 V Live zero offset
6-11 Terminal 53 High Voltage 10.0 V Full scale
6-14 Terminal 53 Low Ref / Feedback 0 Hz Match scaling
6-15 Terminal 53 High Ref / Feedback 50 Hz Full speed
14-01 Switching Frequency 4 kHz Quiet operation
14-20 Reset Mode Manual reset Require operator action on trip
Critical safety step: Set par 4-10 to Clockwise only. Reversing a tunnel jet-fan can cause catastrophic back-flow of smoke during a fire event. If a reversible impulse fan is later specified by the tunnel designer, the safety case must be reviewed by a fire engineer.

6.3 Acceleration / Deceleration Ramps

Set par 3-41 (Ramp 1 Ramp-up Time) to 30 s and par 3-42 (Ramp 1 Ramp-down Time) to 30 s. Tunnel fans have large rotating-mass inertia; a step change from 0 to 50 Hz on a 7.5 kW fan will trip the VFD on DC-link overcurrent if the ramp is too short. A 30-second ramp matches the LOGO! Analog Ramp duration for a smooth handover.

7. Smoke Detector and Emergency-Stop Chain

The smoke detector is wired in a fail-safe loop: its normally-closed (NC) contact is in series with the LOGO! Stop pushbutton and the VFD's Safe Stop input (terminal 37 on the FC 302, which is a hardware-based STO function). The wiring must be sized so that any single break in the loop drops out the contactor K1 and inhibits the VFD.

7.1 LOGO! ESD Logic

Wire the smoke detector NC contact into input I4. In the LOGO! program, I4 is monitored by a negation input on the master enable latch. The logic is:

// ESD latch — any condition clears the latch
SD := NOT I4     // Smoke detector NC inverted
ESD := Stop_PB OR SD OR VFD_Fault_ACK
Run_Enable := Auto_OR_Manual AND NOT ESD

Once triggered, ESD latches the contactor off and forces the analog reference to 0 V. The reset is a deliberate operator action (Stop pushbutton released, Auto pushbutton pressed) — never an automatic reset. This matches the Phoenix Contact reference design for tunnel ventilation control, which recommends manual reset of fire interlocks.

7.2 VFD STO Wiring (FC 302 Terminal 37)

Terminal 37 is a Safe Torque Off input. It must be tied to 24 V to allow the drive to produce torque; removing 24 V from terminal 37 puts the drive into the STO state in < 20 ms. Route the contactor K1 aux-NO contact in series with the LOGO! Q2 output to terminal 37. This is a hardware interlock, completely independent of the LOGO! program and the analog reference — the safest possible architecture for a fire-mode shutdown.

STO is not a substitute for a line contactor. The contactor K1 must still be present to provide galvanic isolation for maintenance lock-out/tag-out. STO removes torque but does not disconnect the drive from the mains.

8. Wiring Diagram (Detailed)

Power and Control Wiring (simplified) L1 L2 L3 K1 Line contactor FC 302 L1 L2 L3 (mains) U V W (motor) T53=ref T27=start T37=STO M 3-phase motor U V W +24V 0V LOGO! 0BA7 I1=Stop I2=Auto I3=Man I4=Smoke I5..I8=Level Q1=K1 Q2=VFDstart AQ→T53 Smoke NC contact Pushbuttons Stop (NC) Auto Manual shielded 0-10V 24V DC PSU 24V / 60W DIN-rail

9. Step-by-Step Commissioning Procedure

  1. Mechanical and power pre-checks. Verify the motor is uncoupled, the fan impeller rotates freely, and the earthing conductor is connected at every enclosure. Measure the insulation resistance (≥ 1 MΩ at 500 V) between phases and from each phase to earth.
  2. Power up the LOGO! and PSU only. Leave the VFD disconnected from the motor (U, V, W floating). Confirm the LOGO! runs its self-test, the time-of-day clock keeps time, and the menu appears in English. Use the LOGO!'s built-in display to navigate to Card → Program → Copy from LOGO! Soft Comfort if you programmed it offline.
  3. Verify the weekly timers. Manually set the LOGO! clock to a time inside each window (e.g. 22:00 for Level 1, 04:00 for Level 2, 12:00 for Level 3, 17:00 for Level 4). Read the value of the analog output AQ with a multimeter. Expected voltages: 1.5 V, 4.5 V, 9.0 V, 10.0 V respectively (±0.1 V).
  4. Verify the manual override. With the LOGO! in Manual mode, press I5 → AQ = 1.5 V, I6 → 4.5 V, I7 → 9.0 V, I8 → 10.0 V. The transition between positions must be smooth thanks to the Analog Ramp block.
  5. Power up the VFD without motor. Apply 400 V to the FC 302 input. Confirm display is normal and no alarm is present. Navigate to par 1-29 and run AMA (Automatic Motor Adaptation) with the motor uncoupled but the motor cable connected. The VFD will measure stator resistance and leakage reactance; this takes about 60 s.
  6. Verify the analog reference at the VFD. With the LOGO! outputting 5.0 V, measure the voltage between FC 302 terminals 53 and 55. Read par 16-01 (Frequency) — it should display approximately 25 Hz. Read par 16-09 (Custom Readout) for the actual reference in %.
  7. First motor run (open tunnel). Re-couple the motor to the fan. Press Auto. The fan should ramp from 0 Hz to 7.5 Hz (15 % of 50 Hz) over 30 s. Listen for abnormal noise. Touch the motor frame to check for excessive vibration. Log the motor current at par 16-11; it should be well below the nameplate FLC.
  8. Step through the four levels. Force each level manually and verify the speed is correct and the current is stable.
  9. Test the smoke ESD. Trigger the smoke detector (use the test button on the device). Within 1 s, the LOGO! should de-energise Q1, the contactor K1 should drop out, the VFD should display alarm 8 (DC-link undervoltage) or 60 (External interlock), and the analog reference should fall to 0 V.
  10. Reset sequence. Restore the smoke detector, press Stop, wait 10 s, press Auto. The system must not restart automatically; the operator must press Auto again.
  11. Endurance test. Leave the system on Level 4 (100 %) for at least one hour. Monitor the VFD heatsink temperature (par 16-34) and the motor winding temperature (if a PTC is fitted, par 1-93). Both must remain within nameplate rating.

10. Verification Checklist

Final Acceptance Test
Item Expected Observed Pass/Fail
Level 1 reference voltage 1.5 V ± 0.1 V
Level 4 reference voltage 10.0 V ± 0.1 V
Ramp-up time 0 → 100 % 30 s ± 2 s
Motor current at Level 4 ≤ nameplate FLC
Smoke ESD response time ≤ 1 s
Manual reset after ESD Required
Direction lock (par 4-10) Clockwise only
Insulation resistance ≥ 1 MΩ
Earthing continuity ≤ 0.1 Ω
24 V PSU load ≤ 80 % rated

11. Troubleshooting Matrix

Common Faults and Remedies
Symptom Probable Cause Diagnostic Step Remedy
Fan does not start in Auto Weekly Timer not configured for current day Read LOGO! clock; check day mask in B016 Verify day mask is Mo–Su (or matching school-week days)
Fan runs at 0 Hz despite Auto Analog output not scaled Measure AQ with multimeter Check B007 multiplexer; confirm 0–1000 integer at its input
VFD shows Alarm 60 (External Interlock) Terminal 27 not wired or STO terminal 37 open Measure voltage at T27 and T37 with respect to terminal 12 Repair wiring; verify LOGO! Q2 contact closes; verify STO jumper or external 24 V
VFD trips on overcurrent (alarm 13) at start Ramp too short for high-inertia fan Read par 16-14 motor current at trip Increase par 3-41 / par 3-42 to 30 s or more
LOGO! clock loses time after power-off Backup battery flat Open the battery compartment and measure voltage Replace CR2032 cell; expect 5 years backup
Smoke test does not stop fan Detector wired NO instead of NC, or I4 not used Trace wiring; check LOGO! program online monitor Re-wire NC; add inversion on I4 input in program
Motor direction reversed on first run Two phases swapped at motor terminals Stop; swap any two of U, V, W at the motor box Verify direction matches arrow on fan housing
AQ reads 0 V even with Auto active Analog Ramp block is held at start Inspect B025 inputs in online test Check the enable input; ensure not held by ESD logic

12. Engineering References and Standards to Verify Against

Although the student project is not a certified installation, the following standards documents are worth a one-line look so the design choices are not arbitrary:

  • EN 12101-3: Smoke and heat control systems — Part 3: Specification for powered smoke and heat exhaust ventilators.
  • NFPA 502: Standard for road tunnels, bridges, and other limited access highways.
  • EU Directive 2004/54/EC: Minimum safety requirements for tunnels in the Trans-European Road Network.
  • PIARC Road Tunnels Manual: Best-practice guidance from the World Road Association.

For the academic dimension of tunnel fire ventilation control, the review article in Tunnelling and Underground Space Technology — "On the problem of ventilation control in case of a tunnel fire event" provides the fire-engineering background. The Phoenix Contact tunnel ventilation reference architecture illustrates how the same control philosophy is implemented in industrial systems with redundant PLCs. The IEEE paper on Lévy-Flight-Dynamics optimisation for tunnel ventilator control shows where research on intelligent scheduling is heading.

How many digital inputs does the LOGO! 0BA7 base module provide?

The 0BA7 base has 8 digital inputs, of which I7 and I8 can be configured as 0–10 V analog inputs. With one DM8 extension the project gets another 8 digital inputs, easily enough for the stop, auto, manual, smoke detector, and four-level manual selector used in this tunnel project.

Which FC 302 parameter sets the analog input range for the LOGO! 0–10 V reference?

Set par 6-10 (Terminal 53 Low Voltage) to 0.07 V, par 6-11 to 10.0 V, par 6-14 to 0 Hz, and par 6-15 to 50 Hz. This maps 0 V → 0 Hz, 10 V → 50 Hz so the LOGO! output of 1.5 V gives 7.5 Hz, 4.5 V gives 22.5 Hz, 9.0 V gives 45 Hz, and 10 V gives 50 Hz.

Why does the project use a normally-closed smoke detector contact and a hardware STO?

NC contacts and the FC 302's STO input (terminal 37) are fail-safe: a broken wire, a flat battery in the detector, or a stuck relay will drop the contactor and remove torque from the motor. This is the standard architecture demanded by tunnel fire-safety design and is far safer than a software-only interlock.

What is the correct ramp time for a 1.5 kW tunnel jet fan controlled by the FC 302?

For a typical 1.5 kW axial or jet fan with a WK² of 0.05 to 0.2 kg·m², set par 3-41 (ramp-up) and par 3-42 (ramp-down) to 30 seconds. A 5-second ramp almost always trips the VFD on DC-link overcurrent during cold-start, while 30 seconds matches the LOGO! Analog Ramp and keeps the motor within thermal limits.

Can the LOGO! 0BA7 Weekly Timer handle a window that crosses midnight, such as 20:00 to 03:00?

Yes. Configure two separate cams in the same B016 Weekly Timer: Cam 1 ON at 20:00 Mon–Sun and Cam 2 OFF at 03:00 Mon–Sun. The block evaluates both cams and remains active between 20:00 and the next-day 03:00, which is exactly what the Level 1 night-base schedule requires.

Back to blog