Runnable simulator field guide
Pressure-scaling PLC scenario: test checklist
Direct answer
The learner can calculate the conversion, test known points, preserve quality separately and diagnose endpoint, data-type or loop faults.
Written for pLC and instrumentation learners converting a declared pressure-transmitter signal into engineering units and dependable alarm logic.

Scenario setup
Pressure lower and upper range, loop or voltage signal, raw endpoints, engineering unit, numeric type, resolution, quality, clamp and alarm boundaries.
I/O and state map
Known pressure through transmitter conversion, loop, input module, raw value, scaling expression, engineering tag, display and alarm evaluation.
Normal run
Lower, midpoint, upper and intermediate points scale monotonically within the declared tolerance and correct pressure unit.
Boundary run
Underrange, overrange, open loop, reversed endpoints, integer division, negative gauge value, noise, stale data and module substitution.
Injected fault
A reference, transmitter, wiring, module, raw endpoint, data type, equation, quality, display or alarm mismatch.
Target check
The implementation checked against current transmitter and module data with approved pressure and calibration procedures.
What is the formula for PLC pressure scaling?
Use the documented raw and engineering endpoints in a linear mapping: engineering low plus the raw fraction of span multiplied by engineering span.
Should a bad analog value be clamped into the valid pressure range?
Do not hide bad quality. A display may bound presentation, but logic should retain a separate fault or quality state for underrange, overrange and stale data.