INDUSTRIAL INSTRUMENTATIONMEASUREMENT / CALIBRATION / AUTOMATION
WESIVO IoT platform
WESIVO SELECTION GUIDE

From river stage to discharge: test the PLC rating table

Test table knots, interpolation and out-of-range behavior separately. A two-row example shows what a PLC test can verify before field discharge measurements are available.

Specify the input before the table

A radar transmitter can report the distance from its reference point to the water. A station rating usually expects stage above a defined gauge zero. A rising surface shortens radar distance but increases stage. Verify the datum, sign and units before using a discharge table. Store the original level or distance separately from the calculated flow.

A three-point acceptance test

For a bench test only, assume the approved test table pairs 1.00 m with 2.00 m³/s and 1.20 m with 3.00 m³/s. First inject each endpoint and check its exact output. Then inject 1.10 m. If the specified method is linear interpolation between these two rows, the result is 2.50 m³/s: the input is halfway through the interval. Do not use that expected result for a power-law rating or a table with another interpolation rule.

Also inject 1.25 m, beyond the example table. Agree beforehand whether the receiving system should flag the result as unavailable or use a separately authorised extension. A displayed zero could be mistaken for a dry channel; a held value needs a stale-data flag.

What the supplier signs off

Request the station ID, gauge zero, input and output units, table revision, effective time, valid interval and interpolation rule. Save the injected values, calculated results and quality flags beside that revision. These tests show that the PLC implemented the specified table. Only independent field discharge measurements paired with stage can test whether that table still represents the channel. The example is synthetic and is not a WESIVO accuracy or flow specification.

在查表之前验收输入量

雷达变送器可以输出参考点到水面的距离,而测站的关系表通常使用相对于水尺零点的水位。水面上升时,雷达距离变短,水位却增大。先核对高程基准、正负方向和单位,再接入流量换算。原始距离或水位应独立留存,不能只保存算出来的流量。

用三个输入值验算表内逻辑

仅作台架算例:假设约定的测试表有两行,1.00 m 对应 2.00 m³/s,1.20 m 对应 3.00 m³/s。先逐一输入两个端点,检查返回值是否准确命中表值;再输入 1.10 m。如果约定在这两行之间线性插值,输入正好位于中点,期望输出就是 2.50 m³/s。若采用幂函数或其他插值规则,则不能套用这个期望值。

再输入一个越界值,例如 1.25 m。验收前就应明确:标为超出有效范围,还是采用另行批准的延伸关系。直接报零可能被误认为河道断流;若保留最后有效值,就应同时标明数据已过时。

交付清单怎样写?

请提供测站编号、水尺零点、输入和输出单位、表的版本和生效时间、有效区间、插值规则;把测试输入、计算输出和对应的质量标志与该版本一并存档。这些记录验证的是 PLC 是否正确实现约定算法。要判断关系表是否仍适用于现场,还需将独立实测流量与同时刻的水位进行比对。以上数字为教学算例,不是 WESIVO 的流量或精度参数。

Discuss your application

Send your medium, operating conditions, connection, output, quantity and destination. WESIVO will review the configuration before quotation.

Related guides and categories

Sources and product documentation