apache / plc4x

PLC4X The Industrial IoT adapter

Home Page:https://plc4x.apache.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: write a value to coil by modbus-tcp,respons:INVALID_DATA

anganing opened this issue · comments

What happened?

hello,
I use ModbusPal and Modbus Slave as a Slave.

when I write a coil value(true or 1) to slave, response code is all INVALID_DATA.

addtionally, read coil all no problem.

hear is my code:

image
image
image

any advice?

Respectfully.

Version

v0.10.0

Programming Languages

  • plc4j
  • plc4go
  • plc4c
  • plc4net

Protocols

  • AB-Ethernet
  • ADS /AMS
  • BACnet/IP
  • CANopen
  • DeltaV
  • DF1
  • EtherNet/IP
  • Firmata
  • KNXnet/IP
  • Modbus
  • OPC-UA
  • S7

I was able to replicate this using version 0.10.

It is fixed in the latest version 0.11 snapshot.

Did you set ModbusPal to Holding registers? If i set to Holding registers i have this error. If set Coils correctly it is ok.
image

I was able to replicate this using version 0.10.

It is fixed in the latest version 0.11 snapshot.

oh,thanks