+1 for "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." sounds logical and understandable to me.

Luk

Christofer Dutz <christofer.d...@c-ware.de> schrieb am So., 22. Sept. 2024,
14:38:

> 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
>
>
>

Reply via email to