free quality report for PLCopenXML exports

Rules / channel-output-off

An analog module output is mapped but no signal type is selected

The program writes the variable, the value reaches the channel and stops there: the DAC produces neither 4-20 mA nor 0-10 V.

Severity: Critical Rule id: channel-output-off Module output left unconfigured

This rule only runs on CODESYS .export files: PLCopenXML does not contain these settings.

What the rule checks

A module output is bound to a variable, but no output signal type is selected. The program writes to the variable, the value reaches the channel and stops there: the DAC produces neither 4…20 mA nor 0…10 V. From the outside it looks like a faulty actuator: the valve does not move, the drive does not respond, while the program is correct.

What it does to the plant

It looks like a faulty actuator: the valve does not move while the program is correct.

Example

Bad: the rule fires
VAR_GLOBAL    rValvePos : REAL;END_VARDEVICE MU210_403    Output1.OutputValue -> GVL.rValvePos    Output1.OutputType = 0
Fixed: the rule is silent
VAR_GLOBAL    rValvePos : REAL;END_VARDEVICE MU210_403    Output1.OutputValue -> GVL.rValvePos    Output1.OutputType = 2

Both listings are run through the linter by an automated test: the rule fires on the first and stays silent on the second.

How to fix

  1. Set the output signal type on the channel (4…20 mA or 0…10 V) to match what the actuator accepts.
  2. If the output is unused, drop the variable binding so the project does not keep a command that goes nowhere.
Check your project

Upload a PLCopen XML or CODESYS .export file: the report is free and the code is not stored.

Local version on GitHub →

The same linter without uploading a file: command line and GitHub Action.

Related rules

2026-11-26

Processing happens in memory, and the uploaded code is not stored. The tool advises; code changes are up to the engineer (see what the linter can't see). What happens to your code → · Rule reference · Your code & privacy · Industry benchmark · Feedback · GitHub