Hi all, I have been working a bit on streamlining the return results from our drivers to be a bit more consistent. Now I noticed that there is quite a huge difference between INVALID_ADDRESS and NOT_FOUND.
Most drivers return an INVALID_ADDRESS if for example a symbolic address is used, and this does not exist on the PLC. However the address IS valid, it’s just that the PLC can’t find a resource with that given name. Similar with S7, if I specify a block number that does not exist or a byte offset that exceeds the size of the block. I think we should probably return INVALID_ADDRESS if the address is syntactically invalid and NOT_FOUND, if the address is formally correct, but the resource could not be found. What do you think? Chris