#12 PLC Best Practices – Validate Inputs based on Physical Plausibility
Ensure operators can only input what’s practical or physically feasible in the process. Learn the PLC’s best rules.
Ensure operators can only input what’s practical or physically feasible in the process. Learn the PLC’s best rules.
Instrument the process in a way that allows for plausibility checks by cross-checking different measurements.
Assign designated register blocks for specific PLC functions in order to validate data and block unauthorized access to controller data.
PLC best practices – Validate indirections by poisoning array ends to catch fence-post errors.
HMI access to PLC variables can be restricted to a valid operational value range but further cross-checks in the PLC should be added.
Alarm the operator when input/output states occur that are physically not feasible. Validate and alert for paired inputs/outputs in PLC.
If timers and counters values are written to the PLC program, they should be validated by the programmable logic controller.
Use cryptographic hashes, or checksums to check PLC program integrity and raise an alarm when they change.
One of the best PLC best practices is to use PLC flags as integrity checks. Put counters on PLC error flags to capture any math problems.
Leave as much operational logic e.g., totalizing or integrating, as possible directly in the PLC. The HMI does not get enough capacity.