Selection guide
Choose the input type that decides your 4-20 mA logger
Short answer
Choose the analog input before anything else: a current-range card or remote node reads the loop directly, while the voltage-only S7-1200 1214C onboard channels need a 500 Ω 0.1% shunt that turns the loop into 2-10 V and dissipates 0.2 W at full scale. One-second sampling with five-minute uploads then makes it store-and-forward logging: 300 samples per channel per batch, pushed by a gateway that owns the cellular link.
On this page
- Let the client's endpoint pick the platform
- Confirm the input measures current, not just voltage
- Convert outside the input with a shunt
- Example: shunt-sizing one loop for a voltage-only onboard input
- Make the logger store-and-forward
- Wire, scale and fault-mark each channel
- The decision for each case
- Questions asked
The input decides the logger, so choose it before the cloud side. A current-range analog input — a plug-in card, a signal board or a remote node — reads the loop directly; the voltage-only channels on an S7-1200 1214C cannot, so they need a current-range card or a 500 Ω precision shunt that turns the loop into 2-10 V. The client's data endpoint then fixes the protocol, and one-second sampling with five-minute uploads makes the job store-and-forward rather than streaming. Work through the checks below in that order and the platform picks itself.
Let the client's endpoint pick the platform #
Work backwards from where the data lands before touching the analog side. Ask what the client actually receives: analysis or SCADA software on site, their own server or SQL store, or a hosted portal drawing trend graphs. Analog input hardware exists for every platform, so the protocol list is what eliminates candidates.
| Client endpoint | Protocol to require | Who owns the upload |
|---|---|---|
| On-site SCADA or analysis software | PROFINET or OPC UA | The PLC serves the values; the logging software records them |
| The client's own server or SQL store | OPC UA, Modbus TCP or a custom TCP socket | The PLC or a gateway speaks the server's protocol |
| A hosted portal with trend graphs | The portal's cloud service over 4G | A cellular gateway owns the link, the buffering and the upload |
With a hosted portal, the gateway owns the 4G link and the PLC only scans its inputs and exposes them over Modbus or OPC UA. PROFINET rides on standard Ethernet and commissions quickly, but it only helps when the receiving end speaks it.
Confirm the input measures current, not just voltage #
An analog input is not automatically a current input. The known trap: the S7-1200 1214C offers two onboard analog inputs, and both are voltage-only, so a current loop landed on them reads nothing useful. Check the datasheet of the exact channels for a current range entry — 4-20 mA or 0-20 mA — before anything else.
| Option | Signal at the channel | Hardware added | Choose it when |
|---|---|---|---|
| Current-range analog card or signal board | The loop current, direct | One module in the rack or on the CPU | The onboard channels are voltage-only and a slot is free |
| Current-range remote I/O node | The loop current, direct | A remote node plus a network drop | The loops land away from the cabinet or the channel count will grow |
| Shunt resistor into a voltage channel | 2-10 V | One 500 Ω 0.1% resistor per loop | The existing voltage-only channels must be kept |
When the transmitters land away from the cabinet, the same current-versus-voltage question applies at the remote node, and the module trade-offs are covered in selecting multi-channel Modbus analog input remote I/O.
Convert outside the input with a shunt #
The loop current passing through a series resistor develops the voltage the channel reads: a shunt turns the loop into 2-10 V that a 0-10 V channel accepts, and the terminal-level wiring is shown in converting a current loop to voltage with one shunt resistor. Five constraints decide the part:
- Tolerance becomes gain error directly: use the precision class, 0.1%, never a 5% carbon part, and measure the installed value.
- Heat: size the part for the power it dissipates at full scale; the arithmetic is in the example below.
- Loop burden: the shunt adds its resistance to everything else in the loop, so check each transmitter's datasheet for minimum supply voltage against total loop resistance.
- HART: where the transmitter communicates over HART, the loop needs 230 Ω to 600 Ω of total resistance for the modem to signal, so count every resistance already present before adding the shunt.
- Substitute: when no single part is on the shelf, two 1000 Ω resistors in parallel make exactly half of one, a drop-in replacement.
Example: shunt-sizing one loop for a voltage-only onboard input #
Inputs, each with its source:
- Loop range: 4 mA at live zero and 20 mA at full scale, the transmitter's configured output for this job.
- Shunt resistance: 500 Ω, the value the current-loop conversion notes use.
- Channel: the CPU's onboard voltage input, spanning 0-10 V.
Rule: the voltage across the shunt is the loop current times the resistance (Ohm's law), and the heat in the part is the current squared times the resistance.
Arithmetic: V = I × R gives 0.004 A × 500 Ω = 2 V at live zero and 0.020 A × 500 Ω = 10 V at full scale, and P = I²R gives (0.020 A)² × 500 Ω = 0.2 W at full scale.
Result: the channel sees a 2-10 V span sitting inside its range, so one resistor per loop does the whole conversion.
Decision: specify a 0.1% part rated 0.5 W or more — at least twice the heat it dissipates — and scale the channel so live zero is the transmitter's lower range value and full scale its upper. If the transmitter's permitted loop burden cannot take the shunt on top of the resistance already in the loop, fit a current-range card instead of converting.
Make the logger store-and-forward #
Saving every second and uploading every five minutes is a batch job: 300 samples per channel per batch, 900 across the three loops in this case — pressure, temperature and the flowmeter. Timestamp every sample at the source, keep a local circular buffer, and delete a batch only after the upload is acknowledged. When the cellular link drops the buffer grows, and the next successful upload replays the backlog with its original timestamps; the batch-then-upload pattern is the one in configuring store-and-forward for satellite uploads.
Switching between 4G and Wi-Fi belongs in the gateway, not the control logic: a cellular-only gateway meets the requirement, and a dual-WAN router adds Wi-Fi failover if it is ever wanted. When the CPU has no store-and-forward of its own, run the logger on an industrial mini PC that reads the PLC over Modbus or OPC UA and owns the buffering and the upload.
Wire, scale and fault-mark each channel #
- Wire each loop-powered transmitter in series: 24 V supply positive, transmitter, analog input or shunt, supply negative, and confirm the supply against the transmitter's minimum operating voltage at the total loop resistance.
- Identify the flowmeter's output as active or passive from its order code and terminal diagram before landing it. A passive output is loop-powered and wires exactly like the transmitters; an active output sources its own current, so never add a second supply to that loop — the reading sits at 0 mA and the supply sinks. Land an active output on a channel set for an active source, or isolate it with a loop isolator.
- Set the channel type to current, or to voltage with the shunt, and scale to engineering units with EU = LRV + (I - 4 mA) / 16 mA × (URV - LRV), where LRV and URV are the range values configured in the transmitter. Take the raw-count mapping from the module manual rather than assuming it; the rate-and-offset arithmetic is worked in calculating SCL rate and offset for a 4-20 mA MicroLogix input.
- Mark any sample below 4 mA or above 20 mA as bad instead of logging it as a process value; the live-zero detection and its SCADA reporting are covered in detect a failed analog input channel and report it to SCADA.
- Verify with a multimeter in series at a known process condition, then drive 0, 50 and 100 % of range and check the scaled tag against the range values; across the shunt, confirm the two endpoint voltages from the example. Break the loop for the meter only while it is out of service or the controller tolerates the loss, because anything controlling on that signal reads the break as a transmitter failure.
- Disconnect one transmitter last: the channel must flag a fault and the logged sample must carry the bad mark.
The decision for each case #
- A current-range input is available, as a card, signal board or remote node: land the loops directly, with no resistor and no conversion.
- The voltage-only channels must be kept, as with the 1214C onboard pair: fit one shunt per loop, specified as in the example, and scale each channel for the converted voltage.
- The flowmeter turns out active rather than loop-powered: give it a channel set for an active source or a loop isolator, and keep the loop supply out of it.
- The client wants a hosted portal: a cellular gateway or the logger host chosen above owns the 4G link, the buffering and the store-and-forward uploads, while the PLC only scans and serves values over Modbus or OPC UA.
Questions asked
Does a HART transmitter still communicate through the shunt?
HART needs a total loop resistance between 230 Ω and 600 Ω for its modem to develop the signal, and 250 Ω is the usual burden. A shunt inside that window keeps a handheld communicator working, but add up every resistance already in the loop, including the input's internal burden, before fitting one.
How much buffer covers a day without a signal?
At one sample per second, a day holds 86,400 samples per channel, so the three channels in this job fill 259,200 records in 24 hours. Timestamp at the source and delete each batch only after the upload is acknowledged, and the backlog replays with its original times once the link returns.
Why is a 5% resistor good enough on the bench but not here?
The shunt's tolerance turns straight into gain error: a 5% carbon part can scale every logged reading by up to 5%, while a 0.1% part contributes 0.1%. Trend data a client checks against their own records is exactly where that error shows, so order the precision part and measure it before landing it.
Does converting waste part of the input's resolution?
Yes, slightly: the converted signal spans live zero to full scale inside a channel that also covers zero, so it uses four fifths of the converter's span. A native current input uses the whole span, which is one more reason to prefer a current-range card whenever a slot is free.