I have a question about the JAVA version. I can write a whole byte to the PLC, but that's not what I want. I want to write a single bit to the PLC. I see there is a function addBitVarToWriteRequest and I was trying to use this function, but it does not work.
Do u know how to write a single bit to PLC with the JAVA version libnodave?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have same problem that function addBitVarToWriteRequest did not work. I found that there is bug in function void addValue(byte[] values) inside PDU class. Line276 with code } else if (mem[data + 1] == 9) {
should be } else if (mem[data + 1] == 9 || mem[data + 1] == 3) {
Hope it helps
Last edit: vita 2016-08-31
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The JAVA version is now available for download.
Hi Thomas,
I have a question about the JAVA version. I can write a whole byte to the PLC, but that's not what I want. I want to write a single bit to the PLC. I see there is a function addBitVarToWriteRequest and I was trying to use this function, but it does not work.
Do u know how to write a single bit to PLC with the JAVA version libnodave?
Hi,
I have same problem that function addBitVarToWriteRequest did not work. I found that there is bug in function void addValue(byte[] values) inside PDU class. Line276 with code
} else if (mem[data + 1] == 9) {
should be
} else if (mem[data + 1] == 9 || mem[data + 1] == 3) {
Hope it helps
Last edit: vita 2016-08-31