Overview
Selecting a controller for a bottling plant is a typical mid-range automation task: moderate I/O density, a real-time fill section, two fieldbus segments (Profibus DP to the bottle washer and to the pick-and-place robot), and a long service life that demands headroom for future expansion. Siemens SIMATIC S7-1500 fits this profile because it combines a fast backplane, integrated Profinet, a Profibus option through a communication module, and the same module catalog as the ET 200MP distributed I/O family. The goal of this reference is to translate the stated plant requirements - 120 digital inputs, six 4-20 mA analog inputs, 38 relay-type outputs, eight high-speed transistor outputs, two 4-20 mA analog outputs, a Profibus port, and a 25 ms maximum fill-section response - into a concrete bill of materials using catalog modules, the TIA Selection Tool, and the official S7-1500 documentation set.
System Requirements Summary
Compile the I/O and performance list in one place before opening any configurator. This avoids module-counting errors and gives a fixed target to verify against.
| Signal type | Count | Specification | Notes |
|---|---|---|---|
| Digital inputs (DI) | 120 | 24 V DC, standard | Bulk of the I/O count; drives the DI module count |
| Analog inputs (AI) | 6 | 4-20 mA current loop | Pressure, level, flow, weight, etc. |
| Digital outputs - relay | 38 | 2 A / 230 V AC or 24 V DC | Field-side valves, contactors, lamps |
| Digital outputs - high-speed | 8 | 24 V DC transistor, > 1 kHz | Fill nozzle actuation, indexing |
| Analog outputs (AO) | 2 | 4-20 mA | Speed reference, proportional valve |
| Fieldbus | 1 segment | Profibus DP master | To bottle wash PLC and pick-and-place robot PLC |
| Cycle budget | < 25 ms | Fill section end-to-end | Input scan + logic + output update |
| Program size | ~2 500 instructions | ST or LAD/FBD | Comfortably handled by mid-range CPU |
Convert channel counts into module counts at this stage:
- DI: 120 channels / 32 channels per SM 521 = 4 modules of 32 channels (no spares needed), or 8 modules of 16 channels if 24 V DC group isolation requires finer granularity.
- AI: 6 channels / 8 channels per SM 531 = 1 module (2 spare), or 2 modules of 4 channels for galvanic isolation per signal.
- DO relay: addressed in the output-strategy section - 38 transistor outputs + 38 panel relays, using 3 modules of 16 DO (46 channels, 8 spare).
- DO high-speed: 8 channels fits a single SM 522 high-speed module with 8 or 16 outputs.
- AO: 2 channels / 4 channels per SM 532 = 1 module (2 spare), or 2 modules of 2 channels.
PLC Family Selection: S7-1500 vs S7-1200
The S7-1200 is positioned as a compact controller; its onboard DI/DO is 14/10 or 16/16 and the S7-1200 module catalog is the limiting factor when the application reaches 170+ channels. S7-1500 (and the related ET 200MP) scales to thousands of channels per station, integrates Profinet, and supports Profibus through a CM/CP module. For a plant of this size, S7-1500 is the correct family.
| Criterion | SIMATIC S7-1200 | SIMATIC S7-1500 |
|---|---|---|
| Onboard I/O | Up to 16 DI / 16 DO on CPU | Minimal onboard I/O; external SM only |
| Max SM modules per CPU | 1 CPU + 1 CM/CP + up to 8 SM (signal modules limited) | Up to 32 SM per S7-1500 station; ET 200MP supports up to 30 SM per station |
| Profibus support | CM 1243-5 (master) - limited DP-V0/V1 services | CM 1542-5 (master/slave), full DP-V1/V2 |
| Profinet | 1 or 2 PN ports depending on CPU | 2 or 3 PN ports, 1 Gbit option on higher-end CPUs |
| Bit instruction time | ~30 ns | ~10 ns on CPU 1515; down to ~1 ns on CPU 1518 |
| Typical use | Standalone machines, sub-100 I/O | Plant-level control, 200-20 000 I/O |
| Programming environment | TIA Portal | TIA Portal |
Reference the family overview on the official SIMATIC S7-1500 product page: SIMATIC S7-1500 - High-Performance Controller. For the S7-1200 catalog, see I/O modules on SiePortal.
CPU Sizing, Response Time, and Program Length
The cycle budget is the single most important performance constraint. For a 25 ms end-to-end response on the fill section, budget the budget across three contributors:
- Input update time (Profibus DP cycle for remote I/O + module conversion time)
- User program execution (OB1 + any cyclic or time-of-day OBs)
- Output update time (backplane write + actuator response)
A representative budget for an S7-1500 with one ET 200MP Profinet station and one CM 1542-5 Profibus segment:
| Contributor | Typical value | Source |
|---|---|---|
| ET 200MP Profinet update | 1-2 ms | Profinet IRT or RT with 1 ms send clock |
| SM 521 / SM 522 conversion | < 1 ms | Module manual (input delay, conversion time) |
| OB1 cycle for ~2 500 STL bit operations | < 1 ms | ~10 ns per bit op × 2 500 = 25 us + OB overhead |
| Cyclic interrupt OB35 (high-speed path) | 2-5 ms | Configure 5 ms period if needed |
| Profibus DP cycle to wash + robot | 5-10 ms | DP-V1 with 6 ms bus cycle |
| Output update + actuator | 1-3 ms | Module DO delay + relay/valve |
For the 25 ms requirement, run the high-speed fill logic in a hardware-interrupt OB (e.g. OB40) triggered by a sensor on the indexing conveyor, rather than polling in OB1. This decouples the fill response from the OB1 scan and bounds it to:
Fill response = sensor input delay (DI module) + OB40 execution + DO module output delay
With a CPU 1515-2 PN, the bit-instruction time is around 10 ns; 2 500 instructions is approximately 25 us of pure compute. The bottleneck is I/O and bus cycle time, not the CPU. A CPU 1515-2 PN is the natural choice. Step up to CPU 1516-3 PN/DP (or 1516-3 PN with a CM 1542-5 for Profibus) if future expansion, motion, or safety integration is anticipated.
I/O Module Selection Strategy
Use SIMATIC S7-1500 signal modules (SM 521, SM 522, SM 523) on the central rack, and identical SMs on ET 200MP stations. This gives a single spare-parts pool and a single module manual.
| Signal | Module family | Channel options | Recommended pick | Qty |
|---|---|---|---|---|
| 24 V DC DI | SM 521 | 16, 32, 64 channels | SM 521 DI 32 × 24 V DC, sourced/sinking, 0.05 ms input delay | 4 |
| 4-20 mA AI | SM 531 | 4, 8 channels | SM 531 AI 8 × U/I/RTD/TC, 16-bit, with channel-level diagnostics | 1 |
| 24 V DC DO transistor | SM 522 | 8, 16, 32 channels | SM 522 DO 16 × 24 V DC / 0.5 A, standard; one high-speed SM 522 DO 8 × 24 V DC / 0.5 A for the eight high-speed outputs | 3 + 1 |
| 4-20 mA AO | SM 532 | 4, 8 channels | SM 532 AO 4 × U/I, 16-bit | 1 |
Channel-density selection rules:
- Use 32-channel modules for bulk DI/DO to minimize rack width and cost per channel.
- Use 8-channel analog modules when the application requires per-channel galvanic isolation or specific diagnostics; 4-channel modules are justified only for high-density signal conditioning (RTD, TC).
- Match the module's input delay to the signal: a 0.05 ms input delay is fine for conveyor sensors; a 3 ms delay is acceptable for pushbuttons.
- Reserve 10-15% spare channels on every module for field changes. The 38 DO requirement fits a 16-channel module set with eight spares across three modules - enough for two added solenoid banks.
Distributed I/O with ET 200MP
For a bottling line, a single central rack is acceptable when the cabinet is one room. For a real plant, deploy ET 200MP Profinet stations near the fill, wash, and pack sections. Benefits:
- Drastically reduced home-run wiring (Profinet cable replaces hundreds of cores)
- Localized diagnostics - faults on one ET station do not halt the line if redundancy is in place
- Common spare parts - the same SM 521/522/531/532 modules work on the S7-1500 central rack and on ET 200MP
Topology sketch (inline SVG, simplified):
Use IM 155-5 PN ST (or HF for Profinet IRT) as the interface module. Configure update time of 1 ms on each ET 200MP station. For the SM 521/522/531/532 modules on ET 200MP, the same catalog numbers apply. See the installation section of the ET 200MP manual: Installing I/O modules.
Profibus Network Integration
The bottle-wash PLC and the pick-and-place robot PLC are Profibus DP slaves. The S7-1500 main PLC must therefore act as a Profibus DP master.
Two implementation paths:
- CPU with integrated DP port - S7-1516-3 PN/DP and S7-1518-4 PN/DP carry an onboard Profibus interface. Useful when the bus length is short and the DP master is co-located with the CPU. Verify the order code includes the "/DP" suffix.
- CM 1542-5 communication module - add a CM 1542-5 in the central rack. Supports DP-V0/V1/V2, 12 Mbit/s, up to 124 slaves, and is the standard approach when the CPU has no onboard DP port or when a second DP segment is needed.
Bus-parameter checklist:
- Bus cycle: 6 ms is a safe starting point for valve manifolds and small robot controllers. Drop to 2-3 ms only after confirming slave GSD file timing.
- Baud rate: 1.5 Mbit/s for cable lengths under 100 m, 500 kbit/s up to 400 m, 187.5 kbit/s up to 1000 m. Use Siemens Profibus cable (violet, 6XV1830-0EH10) and Profibus connectors with terminating resistor switched ON at both physical ends only.
- Diagnostics: enable DP slave diagnostics in the CM 1542-5 configuration to surface slave station failure, diagnostic interrupts, and module-level faults in the HMI alarm log.
Output Strategy: Transistor Outputs and External Relays
The requirements list 38 "relay type outputs". Two interpretations exist in the source material:
- Literal 38 relay contacts sourced from ROR/ROR-type modules, or
- 38 field outputs that ultimately drive relays or contactors
The recommended approach for S7-1500 is to treat both groups as transistor outputs driving external relays. Reasons:
- SM 522 relay modules (ROR) exist but are mechanically limited to 100 000-300 000 cycles, slow (~10 ms operate, ~5 ms release), and require derating when switching AC inductive loads.
- Transistor SM 522 outputs are solid-state, fast, and diagnostics-enabled (wire break, short circuit on most variants). Pair them with compact interface relays mounted on the DIN rail next to the module - Phoenix Contact PLC-OSC, Siemens 3RQ1, or equivalent.
- Stocking one SM 522 type is cheaper than stocking both a relay module and a transistor module.
- Wire-break and group-fault diagnostics on the SM 522 are visible to the HMI, dramatically reducing troubleshooting time on a plant floor.
Per-output wiring pattern (typical):
Total DO transistor count becomes 38 (general) + 8 (high-speed) = 46 DO channels. With three SM 522 modules of 16 channels you have 48 - 46 = 2 spares, and the eight high-speed outputs get their own SM 522 high-speed module so the 1 kHz+ pulse train is not constrained by the standard module's 100 Hz limitation.
Building the Configuration in TIA Selection Tool
The TIA Selection Tool is the official Siemens free configurator and the fastest path to a verified bill of materials. Use it before opening TIA Portal for programming.
- Open the TIA Selection Tool and create a new project. Add an S7-1500 station.
- Pick the CPU. Start with CPU 1515-2 PN (6ES7515-2AM02-0AB0 family). The tool warns if the I/O count exceeds the CPU's process-image size.
- Add the central rack SMs: 4 × SM 521 DI 32, 1 × SM 531 AI 8, 3 × SM 522 DO 16, 1 × SM 522 DO 8 high-speed, 1 × SM 532 AO 4.
- Add the CM 1542-5 to slot 1 of the communication module area (left of the CPU).
- Add ET 200MP Profinet stations. Reuse the same SM types per station. The tool enforces the 30 SM per ET 200MP limit and the 1 024 byte per Profinet slot limit.
- Add the PS 25W / PS 60W power supply sized for the sum of module backplane currents. Sum the typical current draw from each module's datasheet and add 25% margin.
- Export the configuration as a TIA Portal import file (.xml). Open in TIA Portal and verify all device and module firmware versions match the catalog.
Access the TIA Selection Tool from the Siemens support site. The exact installer URL changes with major releases; search "TIA Selection Tool" on Siemens Industry Online Support for the current build.
Safety, Verification, and Troubleshooting
For a bottling plant with operator-accessible guards, plan for an S7-1500F CPU and F-CPU-compatible failsafe I/O. Even if the first installation is non-safety, the F variant can be specified up front at near-zero cost premium and protects the line from later re-engineering.
Commissioning verification checklist:
- Power-on: PS 25W/60W output 24 V stable, CPU RUN/STOP LED green, all SMs reporting OK in the TIA Portal online diagnostics.
- Profibus DP: all slaves in cyclic data exchange, diagnostic buffer free of station-loss entries.
- Profinet: all ET 200MP stations in cyclic exchange, MRP ring closed if used.
- I/O loop check: force each DI/AO from the HMI and verify the corresponding DO/AI in the field.
- Timing check: trigger the fill sensor with a function generator or known cam and capture the OB40 execution time and the DO output time using a trace in TIA Portal. Confirm < 25 ms end-to-end.
- Fault injection: pull one Profibus connector, one Profinet cable, and one DO field wire; verify the HMI alarm and the program reaction.
Troubleshooting matrix (selected cases):
| Symptom | Likely cause | Action |
|---|---|---|
| SM 521 channel always OFF | Sensor sourcing vs sinking mismatch | Check wiring against SM 521 type (Type 1 / Type 3); verify PNP sensor on a PNP-type module |
| SM 522 channel always ON | Output short circuit, channel latched off | Read SF LED; clear fault in TIA Portal; verify load < 0.5 A continuous |
| Profibus slave flashing | Terminating resistors on at both ends, missing on inner nodes | Power down, set terminator ON at end nodes only |
| ET 200MP station lost | Profinet name not assigned, or duplicate IP | Assign station name from TIA Portal topology editor; verify IP uniqueness |
| OB1 scan time spikes to > 50 ms | Heavy string processing or file operations in OB1 | Move non-deterministic code to OB35 or a background OB; cap pointer arithmetic in ST |
| 4-20 mA AI reads -32768 / 7FFFh | Wire break, channel not configured, or sensor unpowered | Check wiring polarity; verify channel is enabled and configured for current; check sensor loop supply |
| High-speed DO not reaching the field | Using standard SM 522, not high-speed variant | Replace with high-speed SM 522 (8 DO, < 100 us output delay); verify the program is not in OB1 with 10 ms scan |
Frequently Asked Questions
How many signal modules can I attach to one S7-1500 CPU?
An S7-1500 central rack supports up to 32 signal modules (SM 521/522/531/532 plus F-SMs and technology modules), limited by the rack width (max 32 slots) and the per-station process-image size. Each ET 200MP station supports up to 30 SMs in addition to the IM 155-5 interface module. Always let the TIA Selection Tool enforce this - it rejects over-long racks automatically.
Do I need a Profibus port on the CPU, or is the CM 1542-5 enough?
The CM 1542-5 is sufficient when the CPU has no onboard DP port, or when a second DP segment is required. The CM 1542-5 supports DP-V0/V1/V2 as both master and slave. If the CPU is a S7-1516-3 PN/DP or higher with "/DP" in the order code, the onboard port can be used instead; recent firmware revisions of the 1516 may drop the DP port, so confirm against the current datasheet before ordering.
How do I meet the < 25 ms fill-section response time?
Use a hardware-interrupt OB (OB40) triggered by the indexing sensor rather than polling in OB1. With a CPU 1515-2 PN and a 0.05 ms SM 521 input delay, the OB40 path is typically 1-3 ms from input transition to DO update. Keep the OB40 code minimal and call a function block; never perform Profibus or Profinite acyclic reads from OB40.
Should I use SM 522 relay modules for the 38 relay-type outputs?
No. Use SM 522 transistor modules and mount compact interface relays (Phoenix PLC-OSC, Siemens 3RQ1) on the DIN rail. Transistor outputs give wire-break and short-circuit diagnostics, longer life, faster switching, and a single spare-parts pool. Reserve SM 522 ROR modules for very small counts (1-4) where an external relay is impractical.
What is the cheapest S7-1500 CPU that handles 170+ I/O and Profibus master?
CPU 1515-2 PN (no onboard DP) plus a CM 1542-5 is the most economical combination for 170 channels, a 2 500-instruction program, and a Profibus master role. Step up to CPU 1516-3 PN/DP only if you need the integrated Profibus port, larger program memory, or motion technology functions.
Why does the S7-1516 sometimes not have Profibus in the latest revision?
Siemens periodically drops legacy interfaces from new CPU revisions to free board space for faster Profinet and for security features. The change is visible in the order code: a CPU with "/DP" carries Profibus, while a "PN" or "PN/PN" variant does not. Always check the current MLFB and firmware release on SiePortal before placing an order.