Programming Siemens LOGO! Weekly Timers for Workshop Shift Bells
A Siemens LOGO! 8 logic module is well suited to drive a workshop sounder on a recurring shift schedule because the controller ships with an integrated real-time clock and a Weekly Timer function block that supports up to three on/off cams per instance with one-minute resolution. This reference walks through hardware selection, output wiring, ladder-logic construction in LOGO! Soft Comfort, pulse-width handling for a fixed 60-second bell, and the RTC battery and daylight-saving pitfalls that catch first-time installers.
1. Application Overview
The reference application drives an audible sounder at the start of work, lunch, mid-afternoon break, and end of day in a workshop with the following recurring pattern:
| Day | Bell 1 (Start) | Bell 2 (Lunch) | Bell 3 (Tea) | Bell 4 (End) |
|---|---|---|---|---|
| Mon - Thu | 07:00:00 - 07:01:00 | 12:00:00 - 12:01:00 | 15:00:00 - 15:01:00 | 18:00:00 - 18:01:00 |
| Fri | (project-defined) | (project-defined) | (project-defined) | (project-defined) |
| Sat | (project-defined) | (project-defined) | (project-defined) | (project-defined) |
| Sun | (project-defined) | (project-defined) | (project-defined) | (project-defined) |
Each bell event is a single 60-second pulse. A Weekly Timer cam directly keyed to the bell ON and OFF times is the most compact implementation; a separate pulse generator is required only if the bell duration must be variable from the LOGO! display or an attached HMI.
2. Prerequisites
- Siemens LOGO! 8 base module with relay or transistor outputs. Order codes:
6ED1052-1HB08-0BA2(230RCE),6ED1052-1MD08-0BA2(24RCE),6ED1052-2MD08-0BA2(24CE transistor), or6ED1052-1CC08-0BA2(12/24RCE). - LOGO! Soft Comfort V8.x or V9.x, downloadable from the Siemens LOGO! 8 system manual (ID 109751784).
- Ethernet (RJ45) or micro-USB programming cable compatible with the LOGO! base module.
- Workshop sounder or bell rated for the LOGO! output voltage and within the contact rating (see Section 5).
- Backup battery module (LOGO! Battery Card
6ED1057-1BA00-0AB0) if the application must survive a power outage longer than the integrated supercap retention window of about 80 hours (see Section 10).
3. Shift-Bell Schedule Specification
Before writing code, freeze the schedule. Each event is described by the tuple (Day mask, ON time, OFF time). The day mask is a 7-bit field where bit 0 = Monday through bit 6 = Sunday. The Weekly Timer cam resolution is one minute.
| Cam # | Day mask | ON time | OFF time | Function |
|---|---|---|---|---|
| 1 | Mo | Tu | We | Th | 07:00 | 07:01 | Start of shift |
| 2 | Mo | Tu | We | Th | 12:00 | 12:01 | Lunch start |
| 3 | Mo | Tu | We | Th | 15:00 | 15:01 | Tea break |
| 4 | Mo | Tu | We | Th | 18:00 | 18:01 | End of shift |
| 5 | Fr | (as scheduled) | (+1 min) | Friday bells |
| 6 | Sa | (as scheduled) | (+1 min) | Saturday bells |
| 7 | Su | (as scheduled) | (+1 min) | Sunday bells |
Cams 1-4 occupy two Weekly Timer instances (3 cams per FB), while Friday, Saturday, and Sunday each require their own instance. The full schedule therefore needs five Weekly Timer blocks - well within the program memory of any LOGO! 8 base module.
4. LOGO! Hardware Selection
Pick the base module to match the sounder voltage. The most common reference designs use the parts listed below; for full catalog reference see the LOGO! 8 system manual.
| Order code | Supply | Inputs | Outputs | Output rating | Typical sounder |
|---|---|---|---|---|---|
| 6ED1052-1MD08-0BA2 | 24 V DC | 8 x 24 V DC | 4 relay | 10 A / 250 V AC resistive | 24 V DC piezo buzzer via interposing relay |
| 6ED1052-1HB08-0BA2 | 115 / 230 V AC | 8 x 115/230 V AC | 4 relay | 10 A / 250 V AC resistive | 230 V AC mechanical bell |
| 6ED1052-2MD08-0BA2 | 24 V DC | 8 x 24 V DC | 4 transistor | 0.3 A / 24 V DC | Low-current 24 V DC sounder |
| 6ED1052-1CC08-0BA2 | 12 / 24 V DC | 8 x 12/24 V DC | 4 relay | 10 A / 250 V AC resistive | Mobile or battery plant |
The relay variants handle the majority of 110 V AC and 230 V AC industrial bells directly. The transistor variants are reserved for 24 V DC sounders drawing under 300 mA continuous. If the sounder inrush exceeds the LOGO! contact rating (electromechanical bells commonly pull 1.5 - 2 A inrush at 230 V AC), wire an interposing contactor sized to the sounder and let the LOGO! relay only switch the contactor coil.
Reserve one digital input (for example I1) as a manual-override pushbutton on the operator panel and another as a silence/reset input. These are not required by the original specification but are good commissioning practice and allow on-demand bells and an emergency silence.
5. Wiring the Sounder to the LOGO! Output
Connect the sounder to Q1 of the LOGO! base module. The schematic below covers a 230 V AC bell on the 230RCE variant.
L (230 V AC) --- [F1 6 A] --- COM of Q1 relay contact --- Bell --- N
|
+--- LOGO! 230RCE L terminal
N (230 V AC) ----------- LOGO! 230RCE N terminal
PE --------------------- LOGO! 230RCE PE terminal and bell chassis
For a 24 V DC sounder on the 24RCE variant, wire as follows:
+24 V DC PSU (+) --- Bell (+) --- Q1 contact --- PSU (-)
|
LOGO! supply: +24 V --- 24 V terminal
0 V --- 0 V terminal
GND common between PSU and sounder required.
The 24 V DC sounder must share a common ground reference with the LOGO! supply, or the transistor output (if used) will not switch the sounder. Use a separate DC PSU for the sounder if the LOGO! internal 24 V sensor supply (max 200 mA on the 230RCE and 300 mA on the 24RCE) cannot deliver the required sounder current.
6. Weekly Timer Function Block
In LOGO! Soft Comfort the Weekly Timer is found in the Special Functions toolbox. Each block exposes three cams. Each cam has the following parameters:
| Parameter | Range | Description |
|---|---|---|
| Day mask | Mo Tu We Th Fr Sa Su checkboxes | Days the cam is active |
| ON time | 00:00 - 23:59 | Hour and minute the cam output goes high |
| OFF time | 00:00 - 23:59 | Hour and minute the cam output goes low |
| Output level | Hi / Lo | Polarity of the cam output during the active window |
Because the resolution is one minute, a 60-second bell is configured by entering ON = 07:00 and OFF = 07:01. Cross-midnight cams (where ON time is later than OFF time) span midnight and are supported natively by the firmware.
If the bell pulse width must be changed at runtime - for example a 'short bell' mode on Saturdays - the cam ON and OFF times can be written through the LOGO! display, the integrated Web Server (LOGO! 8.3 and later), or via Modbus/TCP from an attached HMI. The cam parameters map into the variable memory (VM) at offsets that depend on the block instance number assigned by LOGO! Soft Comfort.
7. Step-by-Step Programming in LOGO! Soft Comfort
- Launch LOGO! Soft Comfort V8.3 or V9.0. Create a new project and select the matching base module from the device catalog.
- Open Tools > Select Hardware and pick the 0BA8 or 0BA9 series base module. Verify the IP address of the LOGO! is reachable via Ethernet (default 192.168.0.10 with subnet 255.255.255.0; the LOGO! 0BA8 default gateway is 192.168.0.1).
- Drag five Weekly Timer function blocks onto the FBD canvas:
- WT1: Cam1 = Mo|Tu|We|Th, 07:00 - 07:01; Cam2 = Mo|Tu|We|Th, 12:00 - 12:01; Cam3 = Mo|Tu|We|Th, 15:00 - 15:01.
- WT2: Cam1 = Mo|Tu|We|Th, 18:00 - 18:01; Cam2 and Cam3 spare.
- WT3: Friday schedule (cams programmed per site timetable).
- WT4: Saturday schedule (cams programmed per site timetable).
- WT5: Sunday schedule (cams programmed per site timetable, if any).
- Wire each cam output through a multi-input OR block to digital output Q1. A four-input OR is sufficient for WT1 + WT2; chain additional OR blocks as needed to combine all five Weekly Timer instances.
- Assign a digital input (for example I1) as a manual bell trigger. Feed it through a Pulse Generator set to 60 seconds so the operator button produces the same one-minute tone. OR the pulse output with the Weekly Timer chain.
- Configure the LOGO! real-time clock via File > Properties > Time or via the on-board menu. Set the correct date, time, time zone, and DST rule (Auto DST, EU rule, US rule, or none).
- Save the program and use Tools > Transfer > PC -> LOGO! to download the program into the LOGO! flash memory. Online test mode does not persist the program across a power cycle.
8. Alternative: Weekly Timer with Pulse Generator for Variable Width
If the bell pulse width is variable, for example operator-adjustable between 5 s and 120 s, replace each cam's OFF time with a Pulse Generator:
[Weekly Timer Cam (1 min window)] -- [Pulse Generator edge-triggered, single-shot] -- [OR] -- Q1
Pulse time = 60 s (parameter VM)
The Weekly Timer becomes a one-minute trigger window and the Pulse Generator stretches the active state for the desired bell duration. Set the Pulse Generator to non-retriggerable (edge-triggered, single-shot) to avoid extension if the input stays high for longer than the pulse time. The pulse time can be parameterised at runtime by writing to the VM address that backs the Pulse Generator's TH (pulse time) input.
9. Alternative: Real-Time Clock Block with Comparator Cascade
For installations where the schedule changes frequently, or where hundreds of events must be supported, a different topology can be used:
LOGO! RTC block --[day-of-week BCD]--> Compare (B015) --> Q1
[hour BCD] --- Compare ---
[minute BCD] --- Compare ---
The RTC block provides the current hour, minute, second, and day-of-week as integer outputs. A cascade of compare blocks evaluates the day mask and time-of-day against the active schedule. This consumes more program memory than Weekly Timer cams and is harder to maintain, but it allows arbitrary schedules to be pushed from a higher-level SCADA or HMI via parameter VM writes without re-flashing the LOGO!.
10. Real-Time Clock, Battery Backup, and Daylight Saving
The LOGO! 8 has an internal supercapacitor that retains the RTC for approximately 80 hours after a power loss. For longer retention, install:
| Order code | Description | Rated retention |
|---|---|---|
| 6ED1057-1BA00-0AB0 | LOGO! Battery Card (CR2032) | ~2 years |
| LOGO! Power Battery 12 V / 6ED1057-1BA00-0BA0 | Battery holder with two CR2430 cells | ~5 years |
Without battery backup, an extended power outage causes the LOGO! to lose its RTC and time-stamped events. When power is restored the LOGO! clock starts from 00:00:00 on the date it boots, and shift bells will ring at the wrong times until the operator manually resets the clock through the on-board menu or the Web Server.
Daylight saving time: The Weekly Timer compares the on-board clock time (including any DST offset) to the configured ON and OFF times. If DST is enabled (EU rule or US rule), the clock shifts by one hour on the appropriate date. A bell scheduled at 07:00 will ring at 07:00 local time year-round, including across the DST transition. For installations where bell times must remain anchored to solar time (rare in industrial settings), disable DST and use two separate Weekly Timer instances - one for summer, one for winter.
11. Verification and Commissioning
- Connect the LOGO! to the programming PC, open the online monitor, and confirm each Weekly Timer block shows the correct cam state at the scheduled times.
- Force the LOGO! clock to 06:59:50 and watch Q1 transition at 07:00:00 and drop at 07:01:00. Repeat for 12:00, 15:00, and 18:00.
- Verify the sounder audibly rings for exactly 60 seconds. Use a stopwatch and listen for the tone to drop cleanly at the one-minute mark.
- Disconnect mains power for 10 minutes, reconnect, and confirm the LOGO! retained the RTC and the next scheduled bell rings at the correct time.
- Disconnect mains power for 90 hours or longer (more than the rated supercap retention), reconnect, and confirm the LOGO! did not lose its program but did lose the clock. Verify the operator notification (via the LOGO! display message text or a flag in the Web Server) that the clock needs to be reset.
- Force a power loss mid-bell (e.g. trip the breaker 30 seconds into the 12:00 bell). On power restore, the bell should not retrigger because the Weekly Timer cam is edge-of-time based and not retriggerable.
- Verify the manual pushbutton on I1 rings the bell for exactly 60 seconds regardless of schedule, and that pressing the silence input immediately drops Q1.
12. Troubleshooting Matrix
| Symptom | Likely cause | Remediation |
|---|---|---|
| Bell rings at wrong time | LOGO! clock not set, or DST rule mismatch | Set time via menu or Soft Comfort; verify DST setting matches the region |
| Bell does not ring at all | Cam day mask excludes today, or output Q1 not wired | Check online monitor for cam state; verify wiring to sounder |
| Bell rings continuously | Cam OFF time not set (default 00:00), or ON = OFF creating a 24-hour pulse | Set OFF time to ON + 1 min; verify each cam |
| Bell rings on wrong day | Day mask bits misaligned (firmware-dependent) | Refer to the LOGO! 8 manual for day mapping; correct in Soft Comfort |
| Bell retriggers repeatedly within 60 s | Pulse generator set to retriggerable | Set Pulse Generator to edge-triggered, non-retriggerable |
| Sounder contact welds or contactor fails | Sounder inrush exceeds LOGO! relay rating | Add interposing contactor; reduce load; verify AC-15 derating |
| LOGO! displays 'Clock not set' after power restore | Supercap discharged, no battery backup installed | Install LOGO! Battery Card 6ED1057-1BA00-0AB0 |
| Schedule changes lost after edit | Program not transferred to LOGO! flash | Use PC -> LOGO! transfer (not just online test mode) |
| Bell rings at random times | Noise on input I1 triggering manual pulse generator | Add input debounce; use I2 (24 V DC) instead of AC input; check wiring |
| Web Server cannot reach LOGO! | IP conflict or wrong subnet | Reset LOGO! IP via menu; verify PC subnet mask 255.255.255.0 |
13. Related Application Examples from Siemens
Siemens publishes an application note titled 'Bell systems for schools' in the LOGO! Application Examples collection, accessible via the Siemens Industry Online Support portal. The reference implementation uses two Weekly Timer blocks for weekday bells and two more for Saturday and Sunday bells, which maps directly to the workshop schedule in this article. Other useful examples in the same collection cover staircase lighting timers, parking-lot gate controllers, and irrigation controllers - all built around the same Weekly Timer and Pulse Generator primitives.
14. Standards and Compliance Notes
LOGO! 8 base modules carry CE, UL, and cULus listings and are rated for industrial environments per IEC 61131-2. Install per IEC 60204-1 (Safety of machinery - Electrical equipment of machines) and the local electrical code. The sounder circuit should be protected by an appropriately sized overcurrent device - typically a 6 A Type B MCB on a 230 V AC ring, or a 2 A DC fuse on a 24 V DC sounder circuit. De-energise the LOGO! supply and lock out the upstream disconnect before performing any wiring changes; the relay contacts can carry lethal voltage even when the LOGO! is in stop mode.
15. Output Sizing Worked Example
Consider a typical 110 dB industrial horn rated 24 V DC at 0.5 A continuous, with an inrush of 1.2 A for 20 ms. Two design cases apply:
| Case | Sounder type | Voltage | Current (continuous) | Inrush | LOGO! output choice |
|---|---|---|---|---|---|
| A | 230 V AC electromechanical bell | 230 V AC | 0.4 A | 1.5 A for 30 ms | LOGO! 230RCE relay Q1 direct, derated to 5 A continuous for AC-15 |
| B | 24 V DC piezo horn | 24 V DC | 0.5 A | 1.2 A for 20 ms | LOGO! 24RCE relay Q1 plus external 24 V DC contactor (e.g. Siemens 3RT2015) |
| C | 24 V DC low-power buzzer | 24 V DC | 30 mA | 50 mA | LOGO! 24CE transistor Q1 direct (0.3 A limit) |
For Case B the apparent power through the contactor coil is P = V x I = 24 x 0.05 = 1.2 W (a typical contactor pickup) and the LOGO! relay contact sees only the contactor coil inrush (around 0.1 A), well within the 10 A rating. For Case C the LOGO! transistor output can switch the buzzer directly provided the total 24 V sensor supply load (sounder plus sensor loads) stays under 0.3 A for the 24CE or 0.2 A for the 230RCE.
Which Siemens LOGO! base module is recommended for a 230 V AC workshop bell?
Use the LOGO! 230RCE (order code 6ED1052-1HB08-0BA2 or later). The four relay outputs are rated 10 A resistive at 250 V AC, sufficient for most electromechanical bells up to about 2 A inrush. For higher-inrush bells, switch an interposing contactor from the LOGO! relay rather than the bell directly.
Can I change the bell schedule without rewriting the program?
Yes. Each Weekly Timer cam's ON time, OFF time, and day mask are parameter VM addresses in the LOGO! memory map. Use the LOGO! display menu, the integrated Web Server (LOGO! 8.3 and later), or a Modbus/TCP write from an attached HMI to update the schedule without re-transferring the program.
How long does the LOGO! retain the real-time clock without power?
Approximately 80 hours with the integrated supercapacitor alone. For longer retention, install the LOGO! Battery Card (6ED1057-1BA00-0AB0, CR2032) which extends retention to about two years. Without backup, the clock resets to 00:00:00 on the boot date after an extended outage, and shift bells will ring at the wrong times until the operator resets the clock through the on-board menu.
Why does my bell ring for 60 s even though I set the cam for one minute?
The Weekly Timer cam resolution is one minute, so ON = 07:00 and OFF = 07:01 produces exactly one minute (60 seconds) of bell time. If you require a non-integer bell duration such as 45 s, use a Pulse Generator (edge-triggered, single-shot) triggered by a one-minute cam window and set the pulse time to 45 s via the TH parameter.
Does daylight saving time affect the bell schedule?
No. The Weekly Timer compares the local clock time (including any DST offset) to the configured ON and OFF times. A bell scheduled at 07:00 will ring at 07:00 local time year-round, including across the DST transition. If the workshop must ring at a fixed solar time (rare in industrial settings), disable DST and run two separate Weekly Timer instances - one for summer and one for winter.
Can I trigger the bell manually from a pushbutton without changing the program?
Yes. Wire a normally-open pushbutton to I1, route I1 through a Pulse Generator set to 60 seconds, and OR the pulse output with the Weekly Timer chain into Q1. The pushbutton will then produce a one-minute bell independent of the schedule, which is useful for testing and for ad-hoc announcements.