IMDHMIControls LibraryShop main store

How-to

Test PLC analog output scaling in three layers

Controllers and I/O Published 6 min read By IMDHMI controls team

Short answer

Do not judge the loop by voltage alone. Test it in three layers: the HMI psig command to the PLC integer, the PLC integer to the voltage output, and the regulator volts to delivered pressure. A correct full-scale measurement proves the electrical stage only; pressure feedback proves the rest.

On this page
  1. Define the expected scaling before you measure
  2. Test layer one: HMI psig to PLC integer
  3. Test layer two: PLC integer to output voltage
  4. Worked example: 0-75 psig command on the voltage loop
  5. Test layer three: regulator volts to delivered pressure
  6. Add pressure feedback where the process needs it
  7. Questions asked

Measuring the right voltage at the regulator proves one layer only. A voltage loop has three layers: the HMI pressure command to the PLC engineering value, the PLC value to the analog output voltage, and the regulator voltage to delivered pressure. Test them in that order, because a fault in layer one makes every later measurement meaningless, and a correct layer-two reading tells you nothing about what the machine actually receives. This procedure assumes a linear loop: 0 to 75 psig commanded at the HMI, represented in the PLC as an INT from 0 to 100, and delivered as 0 to 10 V to an electrically piloted pressure regulator.

Define the expected scaling before you measure #

Write down what each layer should produce before touching a meter. For the loop in this procedure:

  • HMI command: 0 to 75 psig, entered in engineering units.
  • PLC representation: an INT from 0 to 100. This span is an application design choice, not a requirement of the output module; the module itself converts whatever digital value the program gives it into the configured signal type, as the module user manuals describe.
  • Output signal: full-scale voltage at the regulator input terminals.
  • Regulator setpoint: zero volts at its configured minimum, full scale at its configured maximum, which you set to 75 psig.

The mapping from psig to the PLC integer is PLC_INT = HMI_psig * 100 / 75, and the mapping from the integer to volts is V = PLC_INT * 10 / 100. Note where rounding happens: 25 and 50 psig do not land on exact integers, so the program's rounding rule decides the volts. If you are working through the equivalent setup on another platform, the same three-layer thinking applies to the AC500 analog output scaling article, and the input side of a feedback loop is checked separately, as in Click PLC analog input scaling.

Test layer one: HMI psig to PLC integer #

  1. Put the process in a safe state and follow your site's approved procedure before forcing or overriding any value.
  2. Enter 0, 25, 50 and 75 psig at the HMI and watch the PLC integer the program hands to the output instruction.
  3. Expect 0, 33, 67 and 100. If you see the raw HMI value, the raw integer span, or a number off by a constant, the HMI-to-PLC scaling is wrong; fix it here before going further.

Endpoint checks (0 and 75) confirm zero and span. The mid-points (25 and 50) are what expose a slope error, a rounding error, or a swapped scaling pair, so do not skip them.

Test layer two: PLC integer to output voltage #

  1. Disconnect or bypass the regulator's response if a live pressure change would be unsafe, then write the PLC integer directly from 0 through 100 in steps of 10, independent of the HMI.
  2. Measure the output at the regulator input terminals with a multimeter. Each step of 10 must produce exactly 1 V: 0 V at an integer of 0, 3.3 V at 33, 6.7 V at 67, full scale at 100.
  3. Restore the normal command path and repeat the four HMI points from layer one, confirming that the voltages now follow the HMI end to end.

If the integer is right but the voltage is not, look at the output channel configuration: signal type (voltage versus current), the module's scale or range settings, and the raw-versus-engineered value the instruction expects. A reading stuck at one level regardless of command is a wiring or channel fault, similar in kind to the ground-fault failure described in the analog output signal isolator article.

Worked example: 0-75 psig command on the voltage loop #

Inputs:

  • HMI range: 0 to 75 psig, from the application design in this procedure.
  • PLC integer span: 0 to 100, the chosen INT representation.
  • Output span: 0 to 10 V, the regulator's input signal type.
  • Regulator maximum setpoint: 75 psig, configured at the device.

Rule: the pressure maps linearly to the integer, and the integer maps linearly to volts, so each intermediate value is a proportional cross-multiplication.

Arithmetic for a 25 psig command:

  • Integer: 25 psig × 100 ÷ 75 = 33.33, which rounds to 33.
  • Voltage: 33 × 10 ÷ 100 = 3.3 V.
  • Delivered pressure at 3.3 V with the regulator configured 0 to 10 V across 0 to 75 psig: 3.3 ÷ 10 × 75 psig = 24.75 psig, about a quarter-psig low from the rounding of 33.33 to 33.

Arithmetic for 50 psig: 50 × 100 ÷ 75 = 66.67, rounds to 67; 67 × 10 ÷ 100 = 6.7 V; 6.7 ÷ 10 × 75 = 50.25 psig, about a quarter-psig high.

Result: the expected meter readings at the regulator terminals are 3.3 V for a 25 psig command and 6.7 V for 50 psig, with delivered pressures within about 0.25 psig of command.

Decision: if the measured voltage matches the expected value to within the meter's tolerance and the output's stated accuracy, layer two passes; the residual quarter-psig offset is rounding, not a scaling fault, and is acceptable unless the process tolerates less. If the voltage is wrong, correct layer two. Never tighten the PLC scaling to chase a rounding offset; change the integer span or rounding rule instead.

Test layer three: regulator volts to delivered pressure #

  1. Power the regulator and set its minimum and maximum pressure points so that zero volts corresponds to the configured minimum and full scale corresponds to 75 psig, per the regulator's configuration settings.
  2. Command 0, 25, 50 and 75 psig and read the actual delivered pressure on a calibrated gauge.
  3. Compare the reading to the worked-example values: about 0, 24.75, 50.25 and 75 psig. Decide whether any endpoint error or nonlinearity is acceptable for the process; a regulator that tracks volts but misses psig has a calibration or configuration fault, not a PLC fault.

If voltage is correct but pressure is not, work on the regulator configuration or its pressure response. Do not change the PLC voltage scaling to compensate; that only hides the fault in a different layer.

Add pressure feedback where the process needs it #

Command voltage alone cannot confirm that pressure was established or held. Connect the regulator's monitor output to a PLC analog input, scale that input on its own, and alarm on divergence between actual pressure and commanded setpoint. This closes the loop in operation, not just during the test.

One safety note: forcing outputs or overriding setpoints drives real pressure. Use your site's approved test procedure, keep personnel clear of anything the regulator pressurizes, and never defeat an existing relief or overpressure protection to make a measurement easier.

Questions asked

How do I test a 0-10 V PLC analog output with a multimeter?

Force or write the PLC output value from 0 through 100 in steps of 10 and measure the regulator input terminals. With the 0-to-100 integer mapped to 0-to-10 V, each step of 10 should raise the reading by exactly 1 V, from 0 V at a value of 0 to 10 V at 100. A missed or stepped step points at the output channel or its configuration, not at the HMI scaling.

What voltage should 25 psig and 50 psig produce on a 0-75 psig loop?

With linear scaling from 0 to 75 psig down to the voltage span, a 25 psig command maps to an integer of 33 after rounding, which is 3.3 V at the regulator input. A 50 psig command maps to 67, which is 6.7 V. Measure at those mid-points too, because endpoint checks alone cannot expose slope or rounding errors.

Does a correct 10 V reading prove the pressure scaling is right?

No. A correct full-scale sweep proves only the electrical stage between the PLC output and the regulator terminals. The regulator can still be misconfigured between volts and psig, or unable to hold the commanded pressure against the actual load. Read the delivered pressure at 0, 25, 50 and 75 psig commands to close the loop.

Why add pressure feedback to an analog output loop?

A voltage command cannot confirm that pressure was established or maintained. Connecting the regulator's monitor signal to an analog input lets the PLC compare actual pressure with the commanded setpoint and raise a loss-of-pressure alarm when the two diverge. The input needs its own scaling checked, separately from the output stage.

Keep reading

  • How-to

    Output 8 mA and 4 mA from an S7-200 EM232 output with MOV_W

    On the EM232 current output, 0 to 20 mA maps onto a 0 to 32000 data word, so the 8 mA run command is MOV_W 12800 to AQW0 and the 4 mA stop command is MOV_W 6400. Hold one sequence state that I0.0 sets and I0.1 clears, drive the motor from that state, and let it pick which word is written so two sensors never fight over the output.

    Controllers and I/O

  • Troubleshooting

    Fixing 4-20 mA scaling on a Quantum AVI030 analog input

    On the Quantum AVI030 analog input, the raw range follows the channel resolution: 12-bit reports 0-4095 counts and 16-bit maps 4-20 mA to 6400-32000 counts. Neither 0-64000 nor a mismatched 0-4095 will scale or hold; set the block's raw limits to match the configured resolution and verify with 4, 12 and 20 mA test currents.

    Controllers and I/O

  • Troubleshooting

    FX5U thermocouple readings need a dedicated TC input

    A Type K thermocouple on the FX5U built-in analog input cannot yield usable temperature: the voltage channel's count step is worth about 61 °C of Type K signal, and a reading near 200,000 means the program is reading the wrong operand or width, not temperature. Verify the raw 0–4,000 count path, then move the thermocouple to a dedicated input adapter with cold-junction compensation and read degrees directly.

    Controllers and I/O