Intent-Code Divergence
Medium
- Confidence
- 97% confidence
- Finding
- The document explicitly says active-low/NC signals should be normalized so that 'TRUE = OK', but the sample code assigns raw addresses directly without inversion. In PLC safety/interlock logic, this can silently reverse the meaning of E-stop or overload inputs, causing unsafe permissives, blocked trips, or misleading status during commissioning and maintenance.
