Phase 3 PR 51 -- DL260 X-input FC02 discrete-input mapping end-to-end test #50
Reference in New Issue
Block a user
Delete Branch "phase-3-pr51-dl205-xinput"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Stacked on PR 50. Integration test verifying the X-input mapping (octal X-address → Modbus DI) end-to-end against the dl205.json pymodbus profile. Seeds cell 1 with value=9 so X20 octal (=DI 16) reads ON and X21 octal (=DI 17) reads OFF — proves the helper routes to the right bit AND that unpopulated X-inputs return zero rather than an exception per DL260 firmware behavior.
Uses X20 instead of X0 because X0-X15 share cell 0 with the V0 register-zero quirk marker under shared-blocks semantics; X20 lands at cell 1 which is free.
Validation
Test plan