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
VAR_GLOBAL rValvePos : REAL;END_VARDEVICE MU210_403 Output1.OutputValue -> GVL.rValvePos Output1.OutputType = 0
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
- Set the output signal type on the channel (4…20 mA or 0…10 V) to match what the actuator accepts.
- If the output is unused, drop the variable binding so the project does not keep a command that goes nowhere.
Upload a PLCopen XML or CODESYS .export file: the report is free and the code is not stored.
The same linter without uploading a file: command line and GitHub Action.
Related rules
2026-11-26