Rules / module-disabled
An I/O module excluded from polling and forgotten
The module has "exclude from polling" set. The controller does not poll it: inputs are not updated and outputs are not set. The flag is set during commissioning and never cleared.
Severity: Critical
Rule id: module-disabled
Module excluded from polling
This rule only runs on CODESYS .export files: PLCopenXML does not contain these settings.
What the rule checks
The module carries the "exclude from polling" flag. The controller does not poll it at all: inputs are not refreshed, outputs are not driven, and every linked variable keeps the value it had when polling stopped. The flag is usually set during commissioning to silence a missing-module error and then never cleared, and a whole cabinet of signals is quietly dead while the program works with stale values and never complains.
What it does to the plant
A whole cabinet of signals is silently dead while the program runs on stale values without complaint.
Example
DEVICE MV210_202 Disable_module = TRUE
DEVICE MV210_202 Disable_module = FALSE
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
- Clear the "exclude from polling" flag if the cabinet is assembled and the module is in place.
- If the module is physically absent, delete it from the device tree together with its bindings: a described but disabled module leaves variables in the program that nobody refreshes.
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