Hi,
the project looks good so far but I of course can't tell you whether your addresses/offsets are OK or not.
What you could try additionally: There are two options to swap address and data bytes in general settings. They perform a byte-swap of data and/or address. In principle the byte order is fixed and specified for MODBUS but it seems there are some devices out there that do not use correct order (at least that's my understanding why these options are there).
So simply try to set these options for address and/or data and check if it works.
If that does not help: trace your raw data stream and contact the vendor directly, may be they can tell you what's wrong in your set-up.
Gesendet: Montag, 20. Januar 2014 um 07:59 Uhr
Von: "Mr Lam" <lamtranhn@gmail.com>
An: openapc@lists.fedorahosted.org
Betreff: Re: Example of Modbus TCP Master
Hi,
I have been doing as your instructions but get no success. Please see the my attached project. In this project I have tested with both Unit ID of 0 and 1 but all LC_Numeric_Display fields still display results of 0 (it should display results greater than 0 as I viewed with other Modbus Tool).
Can you suggest some other hints on this matter ?
I am looking forwards to your assistance.
Thanks.
_______________________________________________ openapc mailing list openapc@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/openapc