E45-403 · Communication and Bus · Communication Module · ★★
The master reads a holding register address that is undefined on the slave; the slave returns an illegal data address exception code
[Mechanism] The master's requested address falls outside the slave's register map, so the slave responds per protocol with an illegal data address exception.
[Calculation] The master reads 400101 while the slave maps only up to 400100; it returns exception code 02 and the request fails.
[Design Deficiency] The master and slave register maps were not aligned and checked.
① Map alignment: check the master and slave register tables against each other → prevent out-of-range access
② Boundary validation: have the master validate the address range before sending → intercept early
③ Exception tolerance: have the master handle exception codes without aborting → fault tolerance
④ Document sync: use a single register manual version for master and slave → prevent mismatch
⑤ Safe default: return a safe default value for out-of-range access → no crash
⑥ Map review: check every address at completion → early correction
⑦ Out-of-range verification: sweep all addresses and test the response → data confirmation
⑧ Selection standardization: write register mapping into the interface spec → control at the source
GB/T 19582.1-2008 Modbus protocol-based industrial automation network specification