IMDTouchKnowledge BaseShop main store

Selection guide

Pulse Versus 4-20 mA Flow Measurement for a Small PLC Retrofit

HMI and touchscreens Published 8 min read

Short answer

Use a pulse-output flow meter into the MicroLogix 1200's built-in high-speed counter for the 180-300 mL batch volumes and compute V = N/K in the PLC; use a 4-20 mA transmitter into a 1762-IF4 only for live flow rate. Continuous tank inventory needs a level measurement, not a fill-line total. The PanelView 300 displays only the value the PLC computes.

On this page
  1. Decide what the display must show
  2. The three signal routes at a glance
  3. The pulse route: V = N/K and the resolution rule
  4. The 4-20 mA route: rate is proportional, volume is integrated
  5. The Modbus route: the meter totals, the PLC reads
  6. Match the meter to the chemical before ordering
  7. Build the retrofit on the bench
  8. Verify the total before anyone trusts the display
  9. Questions asked

For a six-tank chemical dispenser filling 180 to 300 mL per tank, buy a pulse-output flow meter and count it on the MicroLogix 1200's built-in high-speed-counter input: volume is V = N/K, the total lives in the PLC, and the PanelView 300 displays it. Wire a 4-20 mA transmitter into a 1762-IF4 analog input only when the display must also show live flow rate, because a rate signal has to be integrated to become a volume, and integration turns every small offset into accumulated error. Continuous tank inventory is neither signal: a fill-line total only counts what entered through one pipe. Fix the requirement — rate, batch total, or inventory — before ordering anything, because the meter body, the wiring, and the program all follow from that one choice.

Decide what the display must show #

"Actual volume" is one of three different values, and each wants different hardware:

  • Flow rate: the volume passing the sensor each instant, as an amount over time. A 4-20 mA transmitter is the direct fit.
  • Batch total: the volume delivered during one fill. A pulse output into a high-speed counter is the direct fit.
  • Tank inventory: the volume sitting in the vessel. Neither signal gives it alone; a fill total tracks additions only, so inventory needs a level measurement per tank, or a material balance that subtracts every outlet, drain, and manual addition.

The request behind this retrofit is the amount delivered per automatic fill on batches of 180 to 300 mL, which is batch total. That makes the pulse route the primary architecture and the analog loop optional. If the real requirement is how much is in the tank right now, that is six small level-sensing jobs, not a flow meter configuration.

The three signal routes at a glance #

Signal route Measures directly Input used PLC must compute Resolution set by Failure signature Right choice when
Pulse output A fixed volume per pulse High-speed-counter input Divide the count by the K-factor The pulse value, from K in pulses per litre Silence — a dead meter looks like zero flow The display must show dispensed volume or a batch total
4-20 mA transmitter Instantaneous rate Analog input such as the 1762-IF4 Scale current to rate, then integrate over time Meter accuracy at the real operating flow Reads below 4 mA on a broken loop — a detectable fault The display must show live rate, or the loop feeds control
Modbus meter with internal totalizer Rate and total, computed in the meter Serial or Ethernet port Read registers, convert units The meter's own totalizer Status and fault registers, per its map A high-end meter already totals and no pulse or analog wiring is wanted

The pulse route: V = N/K and the resolution rule #

The K-factor is the meter's calibration constant: how many pulses it produces for each litre of volume, documented with each meter. Total volume is V = N/K, with N the counted pulses, or V = N multiplied by the volume of one pulse.

Worked example, illustrative values:

  • A meter with K = 1000 pulses/L makes one pulse worth 1 mL, since 1 L is 1000 mL.
  • A 300 mL fill produces N = V × K = 0.300 L × 1000 pulses/L = 300 pulses.
  • An 180 mL fill produces 180 pulses, so one missed pulse is 1 mL, or 0.56% of that fill.
  • A coarse meter with K = 100 pulses/L makes one pulse worth 10 mL. An 180 mL fill is then 18 pulses, and ±1 pulse is ±10 mL — ±5.6% of the fill.

Decision from those inputs: if the allowed error is ±1 mL per fill, the pulse value must be no larger than 1 mL, so K must be at least 1000 pulses/L. Scale that rule to the tolerance you actually set.

Frequency is not the constraint at these flows. At an example maximum dispense of 100 mL/min, K = 1000 pulses/L gives 0.100 L/min × 1000 pulses/L = 100 pulses/min, about 1.7 Hz. What bites is pulse width: set the meter's minimum pulse width beside the counter input's documented count specification, and use the high-speed input rather than a normal scanned one, which can miss short pulses and read low while everything else looks right. Keep the K-factor in an editable PLC value with its units recorded, not buried in a program constant. The counter setup — mode, input response, reset — has the same shape on every platform; a walkthrough of configuring a high-speed counter for an encoder input shows the pattern on another controller.

Because a failed pulse meter and zero flow both look like silence, keep independent evidence in the sequence — the fill command running, or the level switches — so the program can tell "no flow" from "no signal".

The 4-20 mA route: rate is proportional, volume is integrated #

A 4-20 mA output maps flow onto a current loop: 4 mA is the bottom of the configured range, 20 mA the top. Rate is Q = Q_min + (I − 4 mA) × (Q_max − Q_min) ÷ 16 mA.

Example, range 0 to 100 mL/min:

  • 100 mL/min spans 16 mA, so 1 mA is worth 100 ÷ 16 = 6.25 mL/min.
  • At I = 12 mA: Q = 0 + (12 − 4) × 6.25 = 50 mL/min.
  • Integrating on a 1.0 s time base adds ΔV = 50 × 1.0 ÷ 60 = 0.83 mL per update.
  • A 300 mL fill at 50 mL/min takes 300 ÷ 50 = 6.0 minutes.

Now the reason this route loses totals. A 0.1 mA input offset is 0.625 mL/min, and integrated across a 6.0-minute fill it adds 3.75 mL — 1.25% of a 300 mL batch — even with the line blocked, if the integrator keeps running. So run the integration in a timed interrupt or fixed-cycle task, never once per scan; clamp or reject rates below the meter's stated minimum flow; and gate the integrator on the fill command. The loop does give a fault channel the pulse output lacks: 4 to 20 mA is the valid signal range, so 0 mA from a broken wire or a failed transmitter is a flaggable fault rather than zero flow. The trade in one line: the pulse count inherits only missed pulses, while the integrated total inherits every offset.

The Modbus route: the meter totals, the PLC reads #

Higher-end mass meters compute flow and total in their own electronics and serve both over Modbus, with no input card in the PLC. Before choosing this route, confirm the physical layer, the protocol and the register map against the controller's communication port or card. Totals usually arrive as floating-point values, and displaying them follows the same word-order rules as displaying a PLC real value over Modbus on an HMI.

Match the meter to the chemical before ordering #

The signal choice does not pick the meter body. Write this down per chemical before contacting a supplier: name and concentration; wetted-material compatibility from the maker's chemical-compatibility data; viscosity; conductivity if the sensing principle depends on it — electromagnetic meters need a conductive liquid, and many solvents are not; density if you will convert mass to volume; temperature; line pressure; tube size; minimum and maximum flow at the real operating point; and allowable pressure drop.

Demand the basis of every accuracy figure: percent of reading, of span, or of full scale. A percent-of-full-scale figure on a wide-range meter can exceed the whole batch tolerance at a 180 mL dispense, so a number without its basis is not a selection input. Then look past the valve: dribble, siphoning, trapped liquid and the run between meter and tank all make the tank receive a different volume than the meter measured. Mount the meter close to the discharge point.

Build the retrofit on the bench #

  • Reconstruct the sequence from the uploaded program and the wiring: which float switch starts and stops each fill, which output operates each valve or pump, and every interlock. Document it before replacing the controller.
  • Carry three separate PLC values: instantaneous rate, current batch total, and a retained lifetime total. One register serving all three guarantees they corrupt each other at reset.
  • Reset the batch total on a deliberate cycle transition before flow starts, never on a float-switch change — switch bounce or a manual operation mid-fill erases the result.
  • Scale in the PLC and hand the PanelView 300 finished engineering units in mL; the arithmetic is the same job as how to scale a PLC integer into an HMI display value, and rescaling at the display only hides a PLC or meter configuration error.
  • Keep the existing float switches wired as independent fill-stop and overfill inputs: a flow total cannot detect an overfilled tank, a leaking valve, a blocked line, or liquid arriving by another path.

Verify the total before anyone trusts the display #

Test each chemical path at the normal and at the minimum dispense rate against a traceable reference: collect the dispense and measure volume directly, or weigh it and divide by the liquid's density at that temperature. A constant ratio between collected and displayed volume points at the K-factor or the scaling; a shortfall that grows with delivered volume points at missed pulses or dribble. Only when those checks pass does the number on the PanelView 300 become the measurement management asked for — until then it is only a display.

Questions asked

Can the PanelView 300 do the totalizing instead of the PLC?

No. The display shows values the controller provides, and any math running in the display stops when the display or its link goes down, silently missing volume while the machine keeps dispensing. Count pulses and integrate rate in the MicroLogix 1200, hold the totals in retained registers there, and give the PanelView 300 a finished engineering-unit value to show.

How fine a K-factor do fills of 180 to 300 mL need?

Set the pulse value no larger than the allowed per-fill error. At ±1 mL you need at least 1000 pulses per litre, which makes one pulse 1 mL and a full batch 180 to 300 pulses. Also confirm the meter's minimum flow rate: below it a pulse output can stop entirely, so a meter sized for a much larger line may read zero through your whole dispense.

The displayed total runs low while the rate looks right. Where did the volume go?

Three usual places. Short pulses missed by a normal scanned input — move the signal to the high-speed-counter input and compare the meter's minimum pulse width with that input's documented count specification. Dribble or siphoning after the valve closes — mount the meter close to the discharge. A mid-fill reset from float-switch bounce — reset only on a deliberate cycle transition before flow starts.

Can the flow meter replace the float level switches?

Not for protection. A fill total cannot detect an overfilled tank, a leaking valve, a blocked line, or liquid arriving by another path, and a failed pulse meter simply goes silent. Keep the switches wired as independent stop and overfill inputs, and take them out only after the metered total has passed a documented verification against collected volume on every chemical path.

What if the real requirement is continuous tank volume rather than dispensed volume?

Then measure level, not fill-line flow: a level transmitter on each of the six vessels, or a material balance that subtracts every outlet, drain, and manual addition. A fill-line total is valid as inventory only while nothing leaves the tank unmeasured. With 180 to 300 mL working volumes, check that the level sensor's usable span and resolution actually fit that small range.

Keep reading

  • How-to

    Connecting One HMI to Two PLCs With Independent Modes

    Yes. Configure one HMI device connection per PLC and bind each tag to its own controller; inside each PLC, run master-mode program A on bit M0 and slave-mode program B on bit M1, kept mutually exclusive. Set communication supervision per connection so the separated panel raises no alarm, and the HMI controls both PLCs whenever the panels are joined.

    HMI and touchscreens

  • How-to

    How to Disable a Remote HMI Display Through PLC Control

    Put the interlock in the PLC, not the panel. Read each panel's current screen through Remote Display Number, force display 21 through Replace Display Number while the disable bit is latched, and on release write the stored number back, hold one second, then write 0 so the panel never reports it is being controlled remotely.

    HMI and touchscreens

  • How-to

    How to Create and Export GX Works3 Labels for a C-More HMI

    Define the name as a global label in the GX Works3 label editor and give it a device target such as Y5; typing the name on a coil only creates an untargeted entry. Export the global label CSV, then hand-map each row into the C-More tag import template, because the two CSV schemas do not match. Separately, confirm the C-More Mitsubishi driver covers the FX5 before trusting any serial retry.

    HMI and touchscreens