The code you posted is reading register 4001 on slave ID 2. There are different
conventions as to addressing registers, sometimes the 4XXX is not used, and
sometimes the register is 1 less than published.
Also verify you really want slave ID 2. Usually you want 0 or 1.
If you want address 1
: Mittwoch, 12. August 2020 um 14:05
An: "dev@plc4x.apache.org"
Cc: Christofer Dutz , Julian Feinauer
Betreff: Re: Error Reading Modbus TCP Meter
@Adam
I want to read data from register address 40101 with start address 101 and
float data type.
But I couldn't get what you wanted
@Adam
I want to read data from register address 40101 with start address 101 and
float data type.
But I couldn't get what you wanted to convey with this comment *-instead of
register “4001” try “1”, and of that doesn’t work try “0”. *
Can you please elaborate.
On Wed, Aug 12, 2020 at 5:16 PM A
Instead of register “4001” try “1”, and of that doesn’t work try “0”.
Regards Adam
> On Aug 12, 2020, at 5:59 AM, Syed Kefayath
> wrote:
>
> Hi Everyone,
>
> I am using a plc4x modbus driver to read data from a modbus device but i am
> left with an exception. But while reading data from the
Hi Everyone,
I am using a plc4x modbus driver to read data from a modbus device but i am
left with an exception. But while reading data from the ModbusPal virtual
device I am getting the output. The java code and the error message is
given below.
I need help from this community to complete my POC