-
Platform information:
- Hardware: virtualbox, Wago 750-881, digital output 750-1504
- OS: Linux Mint 19
- Java Runtime Environment: openjdk-8-jre
- openHAB version: 2.4
-
Issue of the topic:
No write on the output is taken into account, it seems it’s read only. On the modbus log, I can see a message is sent. When I set the output with an another system (Calaos), the state of the output is updated in habpanel.
The solution autoupdate=“false” doesn’t work.
Thanks for your help. -
Configurations:
- Things configuration:
Bridge modbus:tcp:wago [ host="192.168.1.33", port=502, id=1 ] {
Bridge poller coils [ start=512, length=16, refresh=5000, type="coil" ] {
Thing data do0 [ readStart="512", readValueType="bit", writeStart="512", writeValueType="bit", writeType="coil" ]
Thing data do1 [ readStart="513", readValueType="bit", writeStart="513", writeValueType="bit", writeType="coil" ]
Thing data do2 [ readStart="514", readValueType="bit", writeStart="514", writeValueType="bit", writeType="coil" ]
Thing data do3 [ readStart="515", readValueType="bit", writeStart="515", writeValueType="bit", writeType="coil" ]
Thing data do4 [ readStart="516", readValueType="bit", writeStart="516", writeValueType="bit", writeType="coil" ]
Thing data do5 [ readStart="517", readValueType="bit", writeStart="517", writeValueType="bit", writeType="coil" ]
Thing data do6 [ readStart="518", readValueType="bit", writeStart="518", writeValueType="bit", writeType="coil" ]
Thing data do7 [ readStart="519", readValueType="bit", writeStart="519", writeValueType="bit", writeType="coil" ]
Thing data do8 [ readStart="520", readValueType="bit", writeStart="520", writeValueType="bit", writeType="coil" ]
Thing data do9 [ readStart="521", readValueType="bit", writeStart="521", writeValueType="bit", writeType="coil" ]
Thing data do10 [ readStart="522", readValueType="bit", writeStart="522", writeValueType="bit", writeType="coil" ]
Thing data do11 [ readStart="523", readValueType="bit", writeStart="523", writeValueType="bit", writeType="coil" ]
Thing data do12 [ readStart="524", readValueType="bit", writeStart="524", writeValueType="bit", writeType="coil" ]
Thing data do13 [ readStart="525", readValueType="bit", writeStart="525", writeValueType="bit", writeType="coil" ]
Thing data do14 [ readStart="526", readValueType="bit", writeStart="526", writeValueType="bit", writeType="coil" ]
Thing data do15 [ readStart="527", readValueType="bit", writeStart="527", writeValueType="bit", writeType="coil" ]
}
}
- Items configuration:
Switch WO_4_01 "Digital Output index 0 [%d]" (Wago_output_4) { channel="modbus:data:wago:coils:do0:switch" }
Switch WO_4_02 "Digital Output index 1 [%d]" (Wago_output_4) { channel="modbus:data:wago:coils:do1:switch" }
Switch WO_4_03 "Digital Output index 2 [%d]" (Wago_output_4) { channel="modbus:data:wago:coils:do2:switch" }
Switch WO_4_04 "Digital Output index 3 [%d]" (Wago_output_4) { channel="modbus:data:wago:coils:do3:switch" }
Switch WO_4_05 "Digital Output index 4 [%d]" (Wago_output_4) { channel="modbus:data:wago:coils:do4:switch" }
Switch WO_4_06 "Digital Output index 5 [%d]" (Wago_output_4) { channel="modbus:data:wago:coils:do5:switch" }
Switch WO_4_07 "Digital Output index 6 [%d]" (Wago_output_4) { channel="modbus:data:wago:coils:do6:switch" }
Switch WO_4_08 "Digital Output index 7 [%d]" (Wago_output_4) { channel="modbus:data:wago:coils:do7:switch" }
Switch WO_4_09 "Digital Output index 8 [%d]" (Wago_output_4) { channel="modbus:data:wago:coils:do8:switch" }
Switch WO_4_10 "Digital Output index 9 [%d]" (Wago_output_4) { channel="modbus:data:wago:coils:do9:switch" }
Switch WO_4_11 "Digital Output index 10 [%d]" (Wago_output_4) { channel="modbus:data:wago:coils:do10:switch" }
Switch WO_4_12 "Digital Output index 11 [%d]" (Wago_output_4) { channel="modbus:data:wago:coils:do11:switch" }
Switch WO_4_13 "Digital Output index 12 [%d]" (Wago_output_4) { channel="modbus:data:wago:coils:do12:switch" }
Switch WO_4_14 "Digital Output index 13 [%d]" (Wago_output_4) { channel="modbus:data:wago:coils:do13:switch" }
Switch WO_4_15 "Digital Output index 14 [%d]" (Wago_output_4) { channel="modbus:data:wago:coils:do14:switch" }
Switch WO_4_16 "Digital Output index 15 [%d]" (Wago_output_4) { channel="modbus:data:wago:coils:do15:switch" }
- Logs modbus:
2019-07-31 14:32:21.598 [DEBUG] [rt.modbus.internal.ModbusManagerImpl] - Scheduling one-off write task BasicWriteTask@521e6645[request=BasicModbusWriteCoilRequestBlueprint@4445e674[slaveId=1,reference=522,functionCode=WRITE_COIL,bits=SingleBitArray(bit=1),maxTries=3],endpoint=ModbusTCPSlaveEndpoint@4b5a371c[address=192.168.1.33,port=502],callback=org.openhab.binding.modbus.internal.handler.ModbusDataThingHandler@77857b0f]
2019-07-31 14:32:21.599 [DEBUG] [rt.modbus.internal.ModbusManagerImpl] - Will now execute one-off write task BasicWriteTask@521e6645[request=BasicModbusWriteCoilRequestBlueprint@4445e674[slaveId=1,reference=522,functionCode=WRITE_COIL,bits=SingleBitArray(bit=1),maxTries=3],endpoint=ModbusTCPSlaveEndpoint@4b5a371c[address=192.168.1.33,port=502],callback=org.openhab.binding.modbus.internal.handler.ModbusDataThingHandler@77857b0f], waited in thread pool for 1
2019-07-31 14:32:21.600 [DEBUG] [wimpi.modbus.net.TCPMasterConnection] - connect()
2019-07-31 14:32:21.661 [DEBUG] [ernal.handler.ModbusDataThingHandler] - Successful write, matching request BasicModbusWriteCoilRequestBlueprint@4445e674[slaveId=1,reference=522,functionCode=WRITE_COIL,bits=SingleBitArray(bit=1),maxTries=3]
2019-07-31 14:32:21.663 [DEBUG] [rt.modbus.internal.ModbusManagerImpl] - Modbus operation ended, timing info: {total: 64 ms, connection: 24, transaction=39, callback=1} [operation ID 5f64aac3-b23d-42c8-ad8d-00c420627481]