1. Overview
The Siemens LOGO! 8 OBA6 generation — the third revision of the LOGO! 8 family — exposes a dedicated special function block for pushbutton decoding called the Comfort Switch (block number B011, German: Schalter (Komfort)). The block accepts a single Boolean trigger and resolves it into discrete short-press, long-press, and double-click events. With a few helper blocks you can drive two completely different load behaviors from a single dry contact, without writing custom edge-detection or timer logic.
The canonical use case that this article addresses is a "stairwell switch" pattern:
- Behavior A — short press (release inside the long-press window): the output latches; a second short press releases it.
- Behavior B — long press (hold ≥ T_long, e.g. 1.0 s): the output energizes and stays on for a fixed 5-minute off-delay, then drops out automatically.
Both behaviors share one pushbutton on one input; the LOGO! 8.3 OBA6 base module does the rest. The same pattern extends to double-click for a third behavior without changing the wiring.
This reference is built around the LOGO! 8.3 OBA6 hardware, LOGO!Soft Comfort V8.3, and the official LOGO! system manual. Where the documentation is ambiguous, the article shows the decision path instead of choosing silently.
2. Prerequisites
2.1 Hardware
| Item | Example part number | Notes |
|---|---|---|
| LOGO! 8.3 OBA6 base module, relay | 6ED1052-1MD08-0BA0 | 12/24 RCE; integrated Ethernet; microSD slot; relay outputs. |
| LOGO! 8.3 OBA6 base module, transistor | 6ED1052-1CC08-0BA0 | 24 CE; transistor outputs; I3–I6 are fast inputs. |
| LOGO! 8.3 OBA6 base module, 230 V | 6ED1052-1FB08-0BA0 | 230 RCE; eight 230 V AC digital inputs. |
| LOGO!Soft Comfort V8.3 or later | 6ED1058-0BA08-0YA1 | Engineering license for the OBA6 generation. |
| MicroSD card (optional) | 6ED1057-1AA01-0BA0 | Program transfer, firmware updates, data logging. |
| Pushbutton, N/O contact | user-supplied | Rated for the LOGO! input voltage domain. |
| Load protective device | user-supplied | Fuse or circuit breaker per the OBA6 system manual. |
Confirm that the engineering workstation can run LOGO!Soft Comfort V8.3 — Windows 10 (64-bit) or Windows 11. Older 32-bit installations of LOGO!Soft Comfort will not deploy to OBA6 hardware because the device description was reorganized at V8.2.
2.2 Software
Download the current build of LOGO!Soft Comfort from the official Siemens portal at siemens.com/logo-soft-comfort. The installer packages a Help system that contains the device-specific parameter ranges for the Comfort Switch; consult it when fine-tuning the long-press threshold. The Siemens Industry Online Support portal at support.industry.siemens.com hosts the LOGO! 8.3 system manual and the LOGO! application examples library, which includes a multi-function-button program that is functionally equivalent to the one built here.
2.3 Wiring topology
A single momentary N/O pushbutton lands on digital input I1. The LOGO! output Q1 drives the load (lamp, contactor coil, or relay). The schematic is identical across the relay and transistor OBA6 variants; only the load-side wiring differs.
3. The Comfort Switch (B011) in Detail
3.1 Function block footprint
| Pin | Role | Notes |
|---|---|---|
| TRG | Trigger input | Connect the pushbutton or any Boolean source here. |
| PAR | Optional parameter-pin access | Exposes the configured parameters to a LOGO! TD display or web server for runtime adjustment. |
| Q1 | Momentary output | HIGH while TRG is HIGH; drops on release. |
| Q2 | Short-press output | Toggles state on every short press (rising edge that ends before T_long). |
| Q3 | Long-press output | Latches HIGH once TRG has been HIGH for at least the long-press threshold. |
| Q4 | Double-click output | One-scan pulse when two short presses occur inside the configured window. |
The exact output naming is taken from the LOGO! system manual; older LOGO!Soft Comfort builds displayed only Q1/Q2 and exposed the long-press event on Q2 in a different way. If your installed version shows a different output set, open the block's tooltip and verify the I/O labels before wiring.
3.2 Configurable parameters
| Parameter | Default | Range | Increment | Meaning |
|---|---|---|---|---|
| Hold time (long-press threshold T_h) | 0.50 s | 0.05 s … 1.00 s (verify in installed help) | 0.05 s | Continuous TRG HIGH duration above which the event is classified as a long press. |
| Double-click window T_dc | 0.30 s | 0.10 s … 1.00 s (where exposed) | 0.10 s | Maximum gap between two short presses to register a double-click on Q4. |
3.3 Internal state machine
When TRG rises the block arms a long-press timer. If TRG falls before the timer elapses, the event is a short press and Q2 toggles. If TRG remains HIGH past T_h, the event is classified as a long press and Q3 latches. The double-click logic on Q4 is independent and is typically left unused for a two-behavior button, but it remains available for a future expansion (for example, adding a "reset everything" output).
4. Wiring the Pushbutton and Load
- Landing the supply: bring +24 V (or +12 V on the 12/24 RCE variant) to one side of the pushbutton contact. On the 230 V OBA6, use the dedicated 230 V input rail; the input conditioning network is different and the same firmware handles both.
- Signal return: connect the other side of the contact to I1 on the LOGO! base module.
- Reference: land the supply return on the M terminal of the LOGO! (negative of the input supply). On 230 V variants the reference is the L2 (neutral) rail.
- Output: connect Q1 to the load through the appropriate protective device — fuse or circuit breaker per the OBA6 system manual, plus an RC snubber or flyback diode on inductive loads such as contactor coils or solenoids.
- Shielding: for runs longer than 30 m, use shielded cable with the shield landed at one end only, typically the LOGO! terminal side. Unshielded long runs in noisy panels can capacitively couple enough to register phantom long presses because the Comfort Switch is sensitive to a few milliseconds of input jitter.
5. Step-by-Step Program in LOGO!Soft Comfort V8.3
5.1 Place the blocks
- Open LOGO!Soft Comfort and create a new project. Select the OBA6 device family from the project setup wizard.
- Drag a Pushbutton (Comfort) block (B011) from the Special function catalog onto the workspace.
- Drop an Off-delay block (B04) next to it for the 5-minute timer.
- Drop a 2-input OR block (B07) to combine the two branches.
- Place an RS (SR) flip-flop (B03) for the latching branch.
- Connect I1 to the TRG pin of the Comfort Switch.
5.2 Wire Q2 to the latching branch
- Connect Q2 of the Comfort Switch to the S (set) input of the RS flip-flop.
- Use a one-shot (AND with edge detection on the rising edge of Q2) to drive the R (reset) input of the RS flip-flop. This ensures that each short press flips the state once, even if Q2 stays HIGH during the press duration.
- Route the Q1 output of the flip-flop to the upper input of the OR block.
5.3 Wire Q3 to the timed branch
- Connect Q3 of the Comfort Switch to the trigger input of the off-delay.
- Double-click the off-delay block and set TH = 300 s (5 minutes). Tick the retentivity box if you want the timer to survive a power cycle.
- Route the off-delay output to the lower input of the OR block.
5.4 Drive Q1 of the LOGO!
- Connect the OR block output to Q1 of the LOGO! base module.
- Run the on-screen simulation first: press F3 (or use Simulate → Run). Toggle the I1 checkbox to drive the input manually and watch the Q2/Q3 indicators on each block.
- Download to the controller via Ethernet or USB cable. The transfer dialog reports the version mismatch (if any) and the free memory on the base module.
5.5 Configure the long-press threshold
- Double-click the Comfort Switch block to open its properties.
- In the Hold time field, enter
1.0 sfor a 1-second long-press threshold. The increment is 0.05 s. - Click OK to apply and recompile.
The complete logic chain reads:
Q1 (load) = (Q2 latched through RS) OR (Q3 → off-delay TH = 300 s)
5.6 Timing diagram
6. Alternative: Discrete-Block Implementation
Older LOGO! generations (OBA0 through OBA4) and any third-party controller that does not expose the Comfort Switch can deliver the same behavior from a handful of standard function blocks. The recipe below works on every LOGO! 8 firmware and is the canonical back-port of the pattern.
6.1 Functional decomposition
- Short-press detector — edge-triggered one-shot on the rising edge of I1, gated by a window during which the input must fall before the long-press threshold elapses.
- Long-press detector — on-delay with T = 1.0 s, followed by a one-shot on the falling edge of I1.
- Latching — RS flip-flop set by the short-press one-shot, reset by the next short press (a single press toggles the flip-flop).
- Auto-off — off-delay started by the long-press detector's one-shot, configured to 300 s.
6.2 Block list
| Quantity | Block | Block number | Purpose |
|---|---|---|---|
| 2 | AND (edge) | B09 | One-shot on press release |
| 1 | On-delay | B02 | Long-press threshold |
| 1 | Off-delay | B04 | 5-minute auto-off |
| 1 | RS flip-flop | B03 | Latching branch |
| 1 | OR | B07 | Combine branches |
| 2 | AND | B08 | Gate the edge detectors |
This totals 7 blocks. The Comfort Switch approach uses 4. Use the discrete approach only if the project is being back-ported to pre-LOGO! 8.3 hardware or if the engineering environment lacks the special-function catalog.
7. Parameter Reference
| Block | Parameter | Value | Unit | Notes |
|---|---|---|---|---|
| Comfort Switch (B011) | Hold time T_h | 1.00 | s | Long-press threshold; configurable per application. |
| Off-delay (B04) | TH | 300 | s | 5-minute auto-off; retentive if the timer must survive power loss. |
| RS flip-flop (B03) | — | — | — | Set dominates / reset dominates per block properties. |
| On-delay (B02) | TH | 1.0 | s | Used only in the discrete implementation. |
| AND (edge) (B09) | — | — | — | Edge-triggered one-shot. |
8. Verification
8.1 Simulation checklist
- Press and release inside 1 s: the OR output toggles to the opposite of its previous state. The on-line monitor should show the RS flip-flop output transitioning and the Q2 indicator pulsing for one cycle.
- Hold ≥ 1 s, then release: the OR output energizes; the off-delay block counts down from 300; the OR output drops automatically at zero. Q3 should latch on the long press and stay latched until the off-delay expires.
- Hold, then short press before 5 min elapses: the long-press branch holds the output on; the off-delay continues counting. A subsequent short press flips the RS flip-flop and the output goes off immediately if reset is wired through a one-shot. If reset is wired as a level, the output will stay on while I1 is HIGH and drop when I1 falls.
8.2 On-device verification
- Power the LOGO! on. The display (if fitted) should read "LOGO!" and the run/stop LED should be green.
- Press the button briefly. Listen for the output relay to click; verify the lamp energizes.
- Press the button briefly a second time. The lamp should drop out.
- Hold the button ≥ 1 s. The lamp should energize; release; wait 5 minutes; the lamp should drop out.
- To shorten the verification window, temporarily set the off-delay TH to 10 s in LOGO!Soft Comfort, deploy, and re-test. Restore to 300 s after the test.
- Confirm that pressing during the 5-minute window does not extend the timer — the off-delay is one-shot; it must reach zero and re-trigger from a new long press.
9. Troubleshooting Matrix
| Symptom | Likely cause | Action |
|---|---|---|
| Short press latches but long press does nothing | Hold time parameter set to 0, or input does not stay HIGH long enough | Verify hold time ≥ 1 s; check that the pushbutton is electrically closed (no bouncing drop-outs); scope the input with LOGO!Soft Comfort's on-line monitor |
| Every press triggers the long-press branch | Mechanical contact bounce; hold time set too short; or input filter set to 0 ms | Increase hold time to 1.5 s; switch the input filter from 0.5 ms to 1.5 ms; add a 50 ms on-delay on I1 to debounce |
| Long press energizes the load but the 5-minute timer never elapses | Off-delay TH configured in minutes vs. seconds confusion; or retentivity preventing the drop | Verify TH is set to 300 s in the block's parameter table; toggle retentivity off temporarily to test; check that the off-delay TRG pin is wired to Q3 of the Comfort Switch, not to the OR output |
| Q1 never energizes | RS flip-flop reset input held HIGH by a stale I1; OR block inputs swapped | Add a one-shot on the reset path so the reset is a pulse, not a level; trace the signal path with the on-line monitor |
| Comfort Switch block missing from the catalog | Project opened on a pre-V8.3 LOGO!Soft Comfort | Reinstall LOGO!Soft Comfort V8.3; migrate the project; or use the discrete-block alternative in Section 6 |
| OBA6 controller does not accept the download | Firmware older than 8.3.x on the base module | Update the base module firmware via the microSD card; see the firmware notes on the Siemens Industry Online Support portal at support.industry.siemens.com |
| Light flickers during a long press | RS flip-flop toggling on Q2 chatter before Q3 latches | Insert a one-shot on the Q2 path so the set input receives a single pulse per press |
| Double-click on Q4 is not desired | Q4 left wired to a downstream block | Leave Q4 unconnected; the LOGO! will not consume the output if it is not in the netlist |
10. Specifications Relevant to This Application
- LOGO! 8.3 OBA6 cycle time: 0.04 ms per function block worst case; 0.6 µs minimum cycle for a small program. The Comfort Switch and the off-delay together do not push a typical cycle past 10 ms even with 200 blocks.
- Input filter: 0.5 ms default, configurable to 1.5 ms or no filtering in the LOGO!Soft Comfort input properties. Use the 1.5 ms filter for mechanical pushbuttons to suppress contact bounce.
- Output ratings (relay OBA6): 8 A continuous per relay, 200,000 cycles at full load, 500,000 cycles at half load. Refer to the OBA6 system manual, section "Relay outputs", for the derating curve above 55 °C ambient.
- Memory budget: the Comfort Switch consumes approximately 12 function-block memory units (FBMs). A small project including 4 blocks and 200 lines of ladder fits comfortably inside the 8,500 FBM budget of the OBA6.
- Ethernet / web server: OBA6 modules ship with the integrated web server enabled by default on port 80. The Comfort Switch's PAR pin can be exposed to the web server for runtime adjustment of the hold time without re-downloading the project.
- Real-time clock: the OBA6 carries a buffered real-time clock that can be used to log long-press events to the microSD card with a 1 s resolution. The clock's drift is ±2 s/day at 25 °C, so time-stamped logging is acceptable for diagnostics but not for tariff-metering applications.
11. Field Commissioning Notes
11.1 Debounce
Mechanical pushbuttons on a 24 V supply typically bounce 1–5 ms. The default LOGO! input filter (0.5 ms) is borderline; switch to 1.5 ms if you observe double-clicks in the Q2 branch or premature trips of the long-press branch.
11.2 Cable length
Cable runs longer than 30 m on the digital input should use shielded cable to keep capacitive coupling from registering phantom long presses. The OBA6 manual quotes 100 m maximum for unshielded, but the Comfort Switch is sensitive enough that 30 m of unshielded cable in a noisy panel can produce erratic behavior.
11.3 Retentivity
Decide explicitly whether the 5-minute timer should be retentive. For a stairwell or corridor light that must time out even after a power loss, mark the off-delay retentive. For a process signal that should restart counting on power-up, leave it non-retentive.
11.4 Display feedback
On the OBA6 onboard display, place a message text that shows "Light ON — 4:32 remaining" so the operator can see the off-delay counting down. The Comfort Switch's Q3 output can be tied directly to the message-text enable pin. The same message can be exposed through the integrated web server to a phone or tablet on the same network.
11.5 Safety
11.6 Commissioning sequence
- Power the LOGO! with the load disconnected; verify the program downloads and the run LED is green.
- Use the on-line monitor in LOGO!Soft Comfort to verify Q2 toggles and Q3 latches on a 1 s press.
- Reconnect the load; verify the relay click and the lamp state with a meter.
- Set the off-delay to 10 s; verify the timing; restore to 300 s.
- Document the program on the microSD card; save the project archive to a version-controlled directory.
12. Related Siemens Resources
- Siemens LOGO! product page — overview, family comparison, current-generation ordering data.
- LOGO!Soft Comfort download — current engineering software; required version V8.3 or later for OBA6.
- Siemens Industry Online Support — system manual, application examples, and firmware notes for the LOGO! 8.3 / OBA6 generation.
- Siemens Automation portal — manuals, FAQs, and the LOGO! Application Examples library.
FAQ
What is the LOGO! Comfort Switch and where is it in LOGO!Soft Comfort?
The Comfort Switch (block number B011) is a special function block in the "Special" folder of LOGO!Soft Comfort, listed as "Pushbutton (Comfort)" / "Schalter (Komfort)". It takes a single trigger input and provides separate outputs for short press, long press, and double-click, eliminating the need to build edge-detection logic from Boolean primitives.
How do I set the long-press threshold on the LOGO! 8 OBA6?
Open the Comfort Switch block's properties dialog in LOGO!Soft Comfort V8.3 and set the hold time (long-press threshold). The default is 0.5 s; for the multi-function-button pattern, configure 1.0 s. The increment is 0.05 s. The exact maximum is shown in the block's in-tool help — refer to the LOGO! system manual on the Siemens Industry Online Support portal for the canonical value.
Can the same button control the load both as a toggle and as a 5-minute timer on LOGO! 8.3?
Yes. Wire Q2 of the Comfort Switch into an RS flip-flop for the toggle (latch) branch, and Q3 of the Comfort Switch into an off-delay block (TH = 300 s) for the timed branch. OR the two branches together and connect to Q1. Short presses toggle; long presses energize the load with a 5-minute auto-off.
Does the Comfort Switch work on older LOGO! generations like OBA0–OBA4?
The Comfort Switch is supported on all OBA variants of the LOGO! 8 generation. It is not available on LOGO! 6 or LOGO! 7. For older generations or controllers without this block, build the same behavior from standard function blocks: AND (edge) for the short press, on-delay for the long press, RS flip-flop for latching, and off-delay for the 5-minute timer.
Why does my LOGO! 8 OBA6 register every press as a long press?
Mechanical contact bounce on the pushbutton is the most common cause. The Comfort Switch needs a clean, continuous HIGH for the long-press threshold to fire; a bounce that drops below the input filter threshold resets the timer. Open the input's properties in LOGO!Soft Comfort and switch the input filter from 0.5 ms to 1.5 ms, or increase the long-press hold time to 1.5 s to ride out the bounce.