[Bug]: Modbus: Write coil wrong
leewatt opened this issue · comments
What happened?
Follow the the steps as described at Playing around with Apache PLC4X with a virtual Modbus PLC:
...
builder.addItem("value-1", "coil:1", true);
builder.addItem("value-2", "coil:3[4]", true, false, true, true);
PlcWriteResponse response = writeRequest.execute().get();
...
It returns:
15:00:35.863 [nioEventLoopGroup-2-1] DEBUG org.apache.plc4x.java.spi.codegen.fields.FieldReaderEnum - reading field exceptionCode
Error[value-1]: INVALID_DATA
Error[value-2]: INVALID_DATA
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