Selection guide
Which analog inputs an S7-1200 water monitoring system needs
Short answer
An S7-1200 CPU carries only two onboard analog inputs, both voltage-type, so a water monitoring system with four to six analog sensors needs SM 1231 signal modules sized one channel per transmitter: current-range channels for loop-powered instruments, voltage channels for the rest, 12-bit on voltage and 11-bit on current. The data leaves over the built-in PROFINET port through the web server's CSV pages, WinCC, or SIMATIC NET OPC - no Modbus or PROFIBUS unless a sensor itself speaks one.
On this page
Two onboard analog inputs cannot carry a water monitoring system with four to six sensors, so this selection is made at the signal module, not at the CPU: an S7-1200 with SM 1231 analog input modules, one channel per transmitter, ranges matched signal-type by signal-type. Loop-powered pH, conductivity and dissolved-oxygen transmitters go on current-range channels; a voltage-output instrument goes on the module's voltage range. Plan 12-bit resolution on voltage ranges and 11-bit on current ranges, read module accuracy separately, and take the data out over the CPU's built-in PROFINET port through the web server's CSV pages, WinCC, or SIMATIC NET OPC. Modbus and PROFIBUS drop out of the design unless one of the instruments itself speaks them. For monitoring-only duty the processor is not the constraint; channel count and signal type are.
What the CPU gives you before any module #
The compact CPUs of the S7-1200 line - the 1211C, 1212C and 1214C - carry two onboard analog inputs, and the part listings describe them as voltage inputs. That fails this job twice. On count: two channels cannot serve four to six transmitters. On type: a laboratory analyser with a current loop does not land on a voltage input at all, so the onboard channels are not a partial solution you can extend with clever wiring - they are simply the wrong interface for loop transmitters.
The onboard inputs report diagnostics through their data words. The CPU 1211C analog input specification in the S7-1200 system manual lists an overflow band of 11.760 to 11.852 V, reported as data words 32512 to 32767 above the nominal span; overrange and an opened loop each push a channel into that band, which is the subject of why an S7-1200 analog input shows 32767 on a wire break.
Match every transmitter to a module channel #
Build the channel list from the transmitter datasheets first, one row per instrument, then order modules until every row has a home. The SM 1231 analog input module - its order numbers carry the 6ES7 231 prefix - takes differential inputs, handles voltage or current, and the S7-1200 system manual lists its ranges as selectable in groups of 2 channels: ±10 V, ±5 V and ±2.5 V on the voltage side, 0 to 20 mA or 4 to 20 mA on the current side.
The group-of-2 rule has a planning consequence: same-type transmitters belong on adjacent channel pairs. Order the channels so the current loops occupy whole pairs; a pair split between a loop transmitter and a voltage instrument cannot be ranged correctly.
Respect what each range is for. The voltage range is a process-input interface for instruments that output voltage, not a general-purpose voltmeter, and a current output wired into a voltage-only input is the wrong interface - no scaling repairs it. Signal type decides compatibility before any wire is landed, the same reasoning that keeps a Pt100 off a 4-20 mA analog input module.
Count channels the way an I/O-list selection does: measure the need first, then buy to the list. Four loop transmitters fit one 4-channel SM 1231; the six-sensor build takes two 4-channel modules, or one 8-channel, and leaves two spare channels of the correct type. Never call a channel available until its signal type and electrical range match the transmitter landed on it. When sensors sit far from the panel, or the count outgrows the controller's local capacity, the same analog channels arrive as ET 200 distributed I/O over PROFINET.
The selection, requirement by requirement #
| Requirement | What the documentation answers | What you select |
|---|---|---|
| 4-20 mA transmitter (pH, conductivity, dissolved oxygen) | SM 1231 current range, 11-bit, ranges set in groups of 2 | One current channel per transmitter, loops on adjacent pairs |
| Voltage-output instrument | SM 1231 voltage range, 12-bit | One voltage channel per instrument |
| Level switch or run feedback | Onboard digital inputs on the CPU | CPU terminals, no module |
| Four to six analog sensors | At most two onboard channels | One 4-channel module for four sensors, two modules (8 channels) for six |
| Sensors remote from the panel | Expansion over the built-in network | ET 200 distributed I/O |
| Values on one or two computers | Built-in web server publishes current and historical data as CSV | Browser access, no extra software |
| Trends, alarms, stored history | WinCC runtime writes CSV files or a SQL database | WinCC at the viewing computer |
| Several software programs need the values | SIMATIC NET OPC serves them on a standard interface | OPC server on the data computer |
| An instrument offers only a serial port | RS-232 or RS-485 names the electrical layer, not the protocol | A communication module only if its manual documents the protocol |
Read the table against your own transmitter datasheets, top to bottom. Every row that ends without a matched channel or a named path is an order to place, not a software setting to find later.
What the resolution gives you in pH #
The analog-module documentation lists the converter at 12-bit resolution on the ±10 V range and 11-bit on the current range, and the CPU represents a full input span by the data word 27648 - 0-10 V digitized into 0-27648. Bits fix the smallest step the converter can express. Module accuracy, transmitter accuracy, calibration drift and wiring add error on top of that floor, and those figures come from the datasheets, not from the bit count.
Worked example: a pH transmitter ranged 0 to 14 pH, outputting 4-20 mA, landed on an SM 1231 current channel. An 11-bit converter produces 2048 codes, so 2047 intervals across the span:
(20 mA - 4 mA) / 2047 = 0.0078 mA per code
The transmitter maps 14 pH onto that span: 14 pH / 16 mA = 0.875 pH per mA. One code therefore moves the displayed reading by 0.0078 mA x 0.875 pH per mA = 0.007 pH. That 0.007 pH is the quantization floor, not the measurement error. On a voltage instrument the arithmetic keeps its shape: the ±10 V range spans 20 V across 4095 intervals at 12-bit, about 0.0049 V per code.
Scale each channel from raw counts to engineering units at the transmitter's calibrated lower and upper range values, and prove the scaling with an injected known current before trusting any trend. When a scaled reading bends or wanders across the span, the fault sits in scaling or wiring: we keep a page on troubleshooting non-linear 4-20 mA readings on an S7-1200 analog input, and the raw-count-to-engineering conversion itself is laid out in how PLC analog input and output modules convert signals.
Three data paths over one PROFINET port #
The CPU's built-in PROFINET port is an Ethernet connection, and it is the only network this design needs. PROFIBUS is a separate fieldbus that does not ride that port, and Modbus earns its place only when a connected device itself speaks it.
The built-in web server #
The CPU publishes current values and historical data as CSV on its own web pages, readable from any PC browser with no special client software. Choose this path when one or two computers need to watch the measurements and pull the files, and nothing more.
WinCC #
WinCC adds operator graphics, trends and alarm handling, and stores data in CSV files or a SQL database; the STEP 7 Basic engineering package already includes WinCC Basic for a panel. Choose the runtime when operators need screens, alarms and stored history rather than raw files.
SIMATIC NET OPC #
SIMATIC NET OPC exposes the PLC's values to other programs on a standardized interface, so existing laboratory analysis software can read the measurements without custom drivers. Choose it when several different programs must consume the same values, and treat the server, its tags and its licensing as part of the design. If that OPC server or the CSV historian runs on a computer in the cabinet beside the controller, an industrial mini PC is the host for it.
The decision for each build #
Four loop transmitters plus two discrete signals, watched from one computer: the CPU, one 4-channel SM 1231 ranged for current, discretes on the onboard digital inputs, data out through the web server. No Modbus, no PROFIBUS, no OPC, no runtime.
Six analog sensors of mixed output types, with trends and alarms wanted: two SM 1231 modules - current channels for the loops on adjacent pairs, voltage channels for the voltage instruments - and WinCC at the viewing computer writing CSV or SQL. Add SIMATIC NET OPC only when another program must read the same values.
More channels than the local capacity, or sensors spread across the building: keep the controller where it is and put the channels into ET 200 distributed I/O beside the sensors, over the same PROFINET port.
An instrument that exposes only a communications port: identify the exact protocol from its manual, then add the matching communication module - the electrical layer alone decides nothing.
One boundary covers all four cases: these are monitoring paths. The moment a pH or chlorine value starts driving a dosing pump or a valve, that loop is a control function with its own risk assessment and validation - keep it off this monitoring chain.
Questions asked
Is an S7-400 the better choice because it is the bigger, older family?
No. A larger or older family does not correct a channel-count, signal-type or resolution mismatch; those are properties of the signal modules, and selecting them follows the same transmitter-datasheet logic in any family. For a handful of laboratory signals the processor is idle at these update rates, so a bigger rack buys no extra measurement capability here. Select from the I/O schedule and the data-delivery requirement, not from the family name.
Does the resolution in bits tell me the measurement accuracy?
Bits set the converter's smallest expressible step; on a current channel carrying a transmitter ranged 0 to 14 pH, that step works out to about 0.007 pH, as the worked example shows. The module's stated accuracy, the transmitter's accuracy class, calibration drift and wiring each add error on top of that floor. Size the measurement from the datasheet error figures for the module and the transmitter together, never from the resolution alone.
Do the two digital inputs need their own module too?
No. The compact CPUs carry onboard digital inputs alongside their two onboard analog channels, so level-switch and run-feedback states land on the CPU terminals directly. Count them in the same I/O schedule as the analog channels, one row per device with its electrical type, so the module order covers the whole list rather than the analog signals alone.
One analyser only offers a serial port - does that force Modbus?
Only if its manual documents Modbus as the protocol on that port. RS-232 and RS-485 name the electrical layer, not the protocol, so a matching communication module settles the connector and wiring standard first, and the analyser's manual must also document a protocol the module speaks. If it does not, the analyser's analog output remains the cleaner path into a module channel.