free quality report for PLCopenXML exports

Rules / implicit-check-disabled

A Check function exists in the project but is not active

The check function is in the project but not registered (the runtime never calls it), or a whole category (bounds, division, range, pointers) has no active check. Fix: recreate the object with the standard CODESYS dialog.

Severity: Warning Rule id: implicit-check-disabled Check present but not active

What the rule checks

A check function exists in the project but is not active: either not registered (no CheckFunction tag, so the runtime never calls it), or an entire category (bounds/division/range/pointers) has no active check.

What it does to the plant

Protection exists on paper only: errors in the uncovered category go through uncaught.

Example

Bad: the rule fires
<pou name="CheckDivReal" pouType="function">  <interface>    <returnType><REAL/></returnType>    <inputVars><variable name="divisor"><type><REAL/></type></variable></inputVars>  </interface>  <body>    <ST><xhtml xmlns="http://www.w3.org/1999/xhtml">IF divisor = 0 THEN  CheckDivReal := 1;ELSE  CheckDivReal := divisor;END_IF</xhtml></ST>  </body></pou>
Fixed: the rule is silent
<pou name="CheckDivReal" pouType="function">  <interface>    <returnType><REAL/></returnType>    <inputVars><variable name="divisor"><type><REAL/></type></variable></inputVars>  </interface>  <body>    <ST><xhtml xmlns="http://www.w3.org/1999/xhtml">IF divisor = 0 THEN  CheckDivReal := 1;ELSE  CheckDivReal := divisor;END_IF</xhtml></ST>    <addData><data name="cf"><CheckFunction>CheckDivReal32</CheckFunction></data></addData>  </body></pou><pou name="CheckBounds" pouType="function">  <interface>    <returnType><DINT/></returnType>    <inputVars>      <variable name="index"><type><DINT/></type></variable>      <variable name="lower"><type><DINT/></type></variable>      <variable name="upper"><type><DINT/></type></variable>    </inputVars>  </interface>  <body>    <ST><xhtml xmlns="http://www.w3.org/1999/xhtml">CheckBounds := LIMIT(lower, index, upper);</xhtml></ST>    <addData><data name="cf"><CheckFunction>CheckBounds</CheckFunction></data></addData>  </body></pou><pou name="CheckRangeSigned" pouType="function">  <interface>    <returnType><DINT/></returnType>    <inputVars>      <variable name="value"><type><DINT/></type></variable>      <variable name="lower"><type><DINT/></type></variable>      <variable name="upper"><type><DINT/></type></variable>    </inputVars>  </interface>  <body>    <ST><xhtml xmlns="http://www.w3.org/1999/xhtml">CheckRangeSigned := LIMIT(lower, value, upper);</xhtml></ST>    <addData><data name="cf"><CheckFunction>CheckRangeSigned</CheckFunction></data></addData>  </body></pou><pou name="CheckPointer" pouType="function">  <interface>    <returnType><DWORD/></returnType>    <inputVars><variable name="ptToTest"><type><DWORD/></type></variable></inputVars>  </interface>  <body>    <ST><xhtml xmlns="http://www.w3.org/1999/xhtml">CheckPointer := ptToTest;</xhtml></ST>    <addData><data name="cf"><CheckFunction>CheckPointer</CheckFunction></data></addData>  </body></pou>

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. Regenerate the POUs for Implicit Checks via the standard CODESYS dialog: that gives the check its CheckFunction registration so the runtime calls it.
  2. Add the missing category (bounds/division/range/pointer) via Add Object → POUs for Implicit Checks.
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

In-depth article

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