Detecting Powered-Off Siemens LOGO! 8.FS4 Modules Over Ethernet

David Krause14 min read
Industrial NetworkingSiemensTechnical Reference
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

Detecting Powered-Off Siemens LOGO! 8.FS4 Modules Over Ethernet

A Siemens LOGO! 8.FS4 controller receiving network inputs (NI) from a peer that has been de-energized will hold those NI in their last logical state indefinitely. This reference explains why, and how to build deterministic power-loss detection using life bits, watchdog timers, and diagnostic inputs inside LOGO!Soft Comfort.

1. Problem Definition

A common architecture in small-machine automation uses one Siemens LOGO! 8.FS4 as a supervisory "master" with three or more remote LOGO! 8.FS4 stations reporting digital status via Ethernet. The local master drives a KTP400 HMI from the SIMATIC HMI portfolio that must indicate to the operator whether each remote station is healthy or has been turned off.

The symptom that breaks naive logic is this: as soon as the remote LOGO! 8.FS4 loses 24 VDC, the corresponding NI on the master (which was previously reading the state of a remote NQ output through the LOGO!-to-LOGO! connection) stays at its last value. There is no automatic zero, no transition to FALSE, no timeout flag; the bit simply freezes.

This is documented behavior of the LOGO! 8 network stack: when a TCP connection terminates unexpectedly, the receiver places no forced default on its NI memory. Forcing the master to interpret "last value held" as "remote is alive" produces a dangerous false-positive, especially when the value indicates a healthy state.

2. LOGO! 8.FS4 Network I/O Background

The LOGO! 8.FS4 family (order prefix 6ED1052-...) integrates a 10/100 Mbit/s Ethernet interface supporting S7-compatible communication, Modbus TCP, and LOGO!-to-LOGO! peer messaging. Refer to the Siemens Industry Online Support portal for the LOGO! 8 system manual (entry ID 109741041) and the LOGO! product page at siemens.com/logo.

Direction Symbol Max per connection Address range
Network output (local to remote) NQ 8 bits NQ1 ... NQ8 (per connection)
Network input (remote to local) NI 8 bits NI1 ... NI64 (global pool, 8 per active connection)
Network analog output NAQ 8 words NAQ1 ... NAQ8
Network analog input NAI 8 words NAI1 ... NAI64

On each Ethernet connection (up to 8 simultaneous connections per LOGO! 8.FS4), the master's NQ1..NQ8 are written into the peer's NI1..NI8 of the corresponding connection. The physical transport is a TCP keep-alive socket opened by LOGO!Soft Comfort configuration. There is no application-level heartbeat in the default NQ/NI mapping, which is precisely why a power-down on the transmitter produces the frozen-NI symptom.

3. Why Network Inputs Hold Last State

The LOGO! 8 system manual states that on connection loss the receiver treats the NI memory as undefined or frozen at last value rather than forcing it to zero. Three underlying causes combine:

  1. No application-level handshake. NQ/NI are mapped bit-for-bit into the periodic update; the receiver cannot distinguish "remote is sending zeros" from "remote is offline."
  2. No TCP RST on hardware power-down. When 24 VDC is removed, the LOGO! Ethernet PHY collapses without sending FIN/RST. The master's socket enters a long timeout window during which NI registers stay populated.
  3. LOGO! scan semantics. The NI register is treated as a memory location that is overwritten only when fresh data arrives. With no data arriving, the memory location is preserved.
Engineering implication: never use NI as a "remote is alive" indicator without an explicit heartbeat mechanism. Treat NQ to NI mapping strictly as data, not as a presence signal.

4. Solution Architecture: Three Detection Methods

Three field-proven techniques detect a powered-down remote. Each can be implemented in pure LOGO! ladder or FBD without external hardware.

4.1 Method A - Pulsed Output plus Watchdog Timer

This is the method that resolves the original problem statement. It is the most universally applicable because it works on any LOGO! 8 (and even LOGO! 7 with Ethernet) regardless of firmware micro-version, and requires no special configuration toggle.

  1. On each remote LOGO!, configure an unused digital output or a flag-driven NQ that toggles every ~500 ms (a clock-pulse generator, base 1 s, On/Off 0.5 s/0.5 s).
  2. Map this toggling NQ into the corresponding NI on the local master.
  3. On the local master, route that NI into an On-delay timer with a preset of 2 s.
  4. The timer output stays TRUE while the toggle is arriving within 2 s; it goes FALSE the moment the remote stops updating, because the NI stops changing.

Why it works: when the remote loses power, the NI on the master freezes at its last value (either 0 or 1). Either way it stops changing, so the 2-second no-change timer expires and the output goes FALSE, giving you a deterministic "remote OFF" flag.

4.2 Method B - Life Bit

LOGO! 8.FS4 supports a dedicated Life bit per Ethernet connection. In LOGO!Soft Comfort's network configuration dialog, each connection entry exposes a "Life bit" checkbox. When enabled, the LOGO! appends a single toggling bit to the periodic update that the peer can monitor separately from the user NQ/NI bits.

On the local master, the Life bit of connection N is exposed as a special marker flag (labeled Network error / Life bit connection N in the special-marker picker). When the peer is alive, this flag toggles at the configured period (typically 1 s). When the peer drops, the flag freezes, exactly the same latch problem as NQ/NI. The difference is that you have a designated, named flag for the purpose, simplifying documentation.

The Life bit is the Siemens-recommended path when the firmware supports it (LOGO! 8.FS4 onward). It avoids "stealing" one of your 8 NQ bits for heartbeat purposes.

4.3 Method C - Connection Diagnostic Input

LOGO! 8.FS4 exposes a per-connection diagnostic input. In LOGO!Soft Comfort, drag a Network input block onto the diagram; selecting "Diagnostic input" in the dialog returns one bit per configured connection that asserts on link-down and connection-error conditions detected by the LOGO! firmware (TCP timeout, ARP failure).

The diagnostic input is the fastest indicator; it asserts within one TCP keep-alive interval (typically 5-10 s) of the remote going dark. The downside is that it cannot always identify which peer is down if multiple connections share error handling. In practice, dedicating one connection per remote and one diagnostic input per connection gives you the per-peer granularity you need.

Topology: LOGO! 8.FS4 Master plus 3 Remotes Industrial Switch (SCALANCE XC-100) LOGO! 8.FS4 Master + KTP400 HMI VM bits for status Remote #1 LOGO! 8.FS4 192.168.0.11 Remote #2 LOGO! 8.FS4 192.168.0.12 Remote #3 LOGO! 8.FS4 .0.13 Heartbeat NQ toggles at 500 ms (Method A) Watchdog: On-delay 2.0 s on NI (master)

5. Network Topology Comparison

Topology Configuration effort Power-off detection Comments
Master / Slave (LOGO! to LOGO! server) Low Not built-in; requires Method A, B, or C on top Easiest to commission but hardest to diagnose
Master / Master (each peer serves its own data) Medium Same; detection is per-connection via Method A, B, or C Recommended for the scenario in this article
Client / Server (Modbus TCP or S7 client) Higher Built into the client block (status word) Requires explicit polling block; more code

For the described installation (one KTP400 HMI plus three remote LOGO! 8.FS4 plus one supervisory master), the cleanest design is master-master with one Ethernet connection per remote, each connection carrying:

  • Up to 7 user NQ/NI bits for actual I/O
  • 1 dedicated NQ bit reserved as heartbeat (Method A), or
  • The Life bit feature enabled (Method B), or
  • A diagnostic input added to the NI list (Method C)

6. Implementation: Watchdog Timer with Pulsed Output

6.1 Remote LOGO! Program (FBD excerpt)

  1. Insert a Clock generator (German: Taktgeber) block, block number B001.
  2. Set Base = 1 s, On time = 0.5 s, Off time = 0.5 s. Output Q toggles every 500 ms.
  3. Assign output B001 to Network output NQ1 of the Ethernet connection to the master.
[B001 Clock Generator]   Base=1s  On=0.5s  Off=0.5s
        |
        v
    [NQ1  conn=Master]

6.2 Local Master LOGO! Program

  1. Insert a Network input block, address NI1 from remote #1.
  2. Insert an On-delay (German: Einschaltverzögerung) timer block B010, preset 2 s.
  3. Wire NI1 to B010 input Tr. B010 output Q becomes Remote1_OK.
  4. Repeat for remote #2 (NI2 to B011, 2 s preset, Remote2_OK) and remote #3 (NI3 to B012, Remote3_OK).
  5. Wire Remote1_OK, Remote2_OK, Remote3_OK to three VM bits that are bound to the KTP400 HMI tags, e.g. VM0.0, VM0.1, VM0.2.
NI1 (Remote#1) ---[B010 On-Delay 2.0s Tr]--- Q -> Remote1_OK
NI2 (Remote#2) ---[B011 On-Delay 2.0s Tr]--- Q -> Remote2_OK
NI3 (Remote#3) ---[B012 On-Delay 2.0s Tr]--- Q -> Remote3_OK

Remote1_OK, Remote2_OK, Remote3_OK  --> VM mapping for HMI

6.3 Why 2 seconds?

The on-delay timer must be longer than the period between two heartbeat edges (1 s for a 50/50 toggle) but short enough that operators perceive the loss promptly. A practical rule:

T_watchdog > 2 * T_period
T_watchdog < 0.1 * T_operator_response_expectation

For a 500 ms heartbeat (1 s period), 2 s gives one full missed cycle plus 1 s of margin. The master LOGO! 8 cycle time is typically 8-20 ms, so timer resolution is not a concern.

Watchdog Timing: Heartbeat vs Remote_OK 1s 2s 3s 4s 5s 6s remote powered off Heartbeat NI Watchdog ET Remote_OK

7. Implementation: Life Bit and Diagnostic Input Methods

7.1 Enable Life Bit (Method B)

  1. In LOGO!Soft Comfort, open Tools > Ethernet Connections.
  2. Select the connection to the remote LOGO!.
  3. Tick Use life bit. The Life bit toggle period defaults to 1 s and is editable.
  4. Click OK. Transfer the program to the master.

The Life bit of connection N is available as a special marker. In the FBD editor, drag a Special marker block and select Network error / Life bit connection N from the drop-down. The flag toggles while the remote is alive and freezes when it drops. Wire it into the same on-delay watchdog as in section 6.

Note: the Life bit is a special marker, not an NI bit. It cannot be used as a regular data input. Its purpose is strictly presence monitoring.

7.2 Add a Diagnostic Input (Method C)

  1. In LOGO!Soft Comfort, place a new Network input block on the diagram.
  2. In the dialog, tick "Diagnostic input" and choose the connection number.
  3. The block output Q asserts when the LOGO! detects a TCP-level error on that connection.
  4. OR the diagnostic input with the watchdog output to differentiate "power off" (watchdog drops, diagnostic asserts after keep-alive timeout) from "cable pull" (diagnostic asserts quickly).

8. LOGO!Soft Comfort V8.x Configuration

Item Setting
LOGO!Soft Comfort version V8.2 or later (required for FS4 features)
Master IP 192.168.0.10 / 24 (example)
Remote #1 IP 192.168.0.11 / 24
Remote #2 IP 192.168.0.12 / 24
Remote #3 IP 192.168.0.13 / 24
Ethernet connections per remote 1
NQ bits per connection (data plus heartbeat) up to 8 (recommend 7 data + 1 heartbeat)
Watchdog timeout 2.0 s
TCP keep-alive interval Default (about 5 s)

Always reserve a static IP for each LOGO! via the LOGO! on-board menu (or via DHCP reservation on the switch). Do not rely on DHCP fallback in an industrial cell; an APIPA address on a remote produces silent failure.

9. KTP400 HMI Integration

The KTP400 Basic (part number 6AV2123-2DB03-0AX0) from the SIMATIC HMI family reads the master's VM area. Configure the master's Remote1_OK through Remote3_OK flags into a contiguous VM range and bind each bit to a "station online" indicator on the KTP400 screen.

In WinCC (the configuration software for the KTP400), add an IO field or a graphic IO field per station showing a green/red bar driven by the corresponding VM bit. Refresh cycle can be 1 s; the watchdog already filters faster events.

HMI tag Source Meaning
Station1_Status VM0.0 TRUE = remote #1 OK
Station2_Status VM0.1 TRUE = remote #2 OK
Station3_Status VM0.2 TRUE = remote #3 OK
Station1_Diag VM0.3 TRUE = remote #1 TCP error (cable pulled)
Station2_Diag VM0.4 TRUE = remote #2 TCP error
Station3_Diag VM0.5 TRUE = remote #3 TCP error

10. Verification and Commissioning Procedure

  1. Power all three remote LOGO! 8.FS4 stations. Confirm Remote1_OK, Remote2_OK, Remote3_OK are all TRUE on the KTP400.
  2. De-energize remote #1 (open the 24 VDC breaker). Wait 3 s. Confirm Remote1_OK on the HMI turns FALSE; confirm Remote2_OK and Remote3_OK remain TRUE.
  3. Re-energize remote #1. Confirm Remote1_OK returns to TRUE within 3 s (one heartbeat period plus one watchdog timeout).
  4. Repeat for remote #2 and remote #3.
  5. Pull the Ethernet cable from a remote while it remains powered. Confirm the corresponding OK flag drops within ~10 s (TCP keep-alive window) instead of 3 s; this validates that the diagnostic input (Method C) is also wired correctly, giving you a different alarm message ("link loss") versus "power loss."
  6. With all stations healthy, disconnect the master from the HMI and read the VM mapping via LOGO!Soft Comfort online mode. Verify each OK flag is TRUE.
  7. Stress test by toggling 24 VDC rapidly (1 s on, 1 s off) for 10 cycles; verify the watchdog reports the outage but does not latch FALSE after recovery.

11. Troubleshooting Matrix

Symptom on HMI Likely root cause Diagnostic step Fix
OK flag stays FALSE on a healthy remote Heartbeat NQ not toggling on remote Online-monitor the remote LOGO! with LOGO!Soft Comfort, inspect Clock generator output Verify clock generator base/on/off; verify NQ mapping under Tools > Ethernet Connections
OK flag never goes FALSE even when remote is off Watchdog on-delay not wired or preset too long Online-monitor the master, inspect the on-delay's Tr input and ET timing Reduce preset to 2.0 s; confirm Tr is fed from the NI mapped to the heartbeat NQ
OK flag chatters every few seconds on a healthy remote Heartbeat period greater than watchdog timeout Read ET of on-delay block Either increase watchdog to 2x heartbeat period or reduce heartbeat period to 250 ms
OK flag asserts immediately on power-up before heartbeat starts Timer preset = 0 or timer bypassed Inspect block parameters in LOGO!Soft Comfort Set preset at least 1.0 s; ensure NI feeds Tr (not R for reset)
All OK flags drop simultaneously Switch or cabling fault upstream Check link LEDs on switch; ping each LOGO! from a laptop on the same subnet Replace switch or cable; verify 24 VDC at each LOGO!
Diagnostic input never asserts on cable pull Diagnostic input not selected in NI dialog Right-click NI block, verify "Diagnostic input" is checked Reconfigure; transfer to master
OK flag and diagnostic input toggle at the same time Heartbeat wired to wrong NI bit Inspect NQ/NI mapping table in Tools > Ethernet Connections Re-map heartbeat to a dedicated NQ slot; remove Life bit and diagnostic input if redundant

12. Safety and Best-Practice Notes

  • Treat any "remote is alive" signal as advisory, not as a safety interlock. LOGO! 8.FS4 is not a fail-safe controller; for SIL-rated applications, use a S7-1200F or S7-1500F with PROFIsafe.
  • Use a managed industrial switch (SCALANCE XC-100 or XC-200) with port-level link monitoring so the master can detect cable pulls even when the remote stays powered.
  • Document the watchdog timeout on the electrical drawing; operators must know how long a station can be dark before the HMI flags it.
  • Reserve one NQ bit per connection for heartbeat. Never overload this bit with real I/O.
  • When scaling beyond three remotes, consider an S7-1200 as the supervisory controller; LOGO! 8 tops out at 8 simultaneous Ethernet connections and the FBD program size becomes hard to maintain.
  • Prefer Method B (Life bit) over Method A (stolen NQ) when the firmware supports it; it leaves all 8 user NQ bits free for I/O.
  • Combine Method A or B with Method C so the operator can distinguish "station power removed" from "network cable disconnected."

FAQ

Why do my LOGO! 8.FS4 network inputs stay at their last value when the remote is powered off?

LOGO! 8.FS4 does not force NI to zero on TCP timeout; the receiver's NI memory is only overwritten when fresh NQ data arrives. When the remote loses power, no FIN/RST is sent and the NI freezes at its last value. Implement a dedicated heartbeat (NQ toggling) or enable the Life bit to detect the loss.

What is the simplest way to detect a powered-off LOGO! on Ethernet?

Configure a clock generator on the remote that toggles a dedicated NQ bit every 500 ms, map it to an NI on the master, and feed that NI into an on-delay timer with a 2.0 s preset. The timer output is TRUE only while the heartbeat is being received.

What is a LOGO! 8 Life bit?

The Life bit is a dedicated, per-connection toggling flag that the master monitors as a special marker. Enable it under Tools > Ethernet Connections in LOGO!Soft Comfort. It is the firmware-supported alternative to dedicating a user NQ bit as a heartbeat.

Can I distinguish "remote powered off" from "Ethernet cable pulled"?

Yes. The watchdog method (Method A or B) reacts within about 2 s and indicates a power-loss OR link-down event. A diagnostic input (Method C) reacts to TCP timeout only, typically 5-10 s. Routing both into separate HMI messages gives the operator two distinct alarms.

How many Ethernet connections can a single LOGO! 8.FS4 maintain?

LOGO! 8.FS4 supports up to 8 simultaneous Ethernet connections. With one connection per remote, the architecture described here scales to 8 supervisory peers before you need a higher-tier controller.

Back to blog