free quality report for PLCopenXML exports

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

Bad: the rule fires
DEVICE MV210_202    Disable_module = TRUE
Fixed: the rule is silent
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

  1. Clear the "exclude from polling" flag if the cabinet is assembled and the module is in place.
  2. 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.
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