QTModbus
-
Hello everyone,
I am trying to use encapsulated interface transport inside my modbus slave (based od mobus server example).
I have to use 0x2b function code wich is listed in documentation but it seems that there is no way to get it in QModbusServer Class.
Signal dataWritten is only supporting default modbus registers and coils (doc).
Could anyone please point in the right direction how to solve this?
Kind regards!
-
look for
(QModbusDataUnit::DiscreteInputs == 1) in your slot connected to the dataWritten signalIt "looks like" modbus function 2 is mapped to register type 1 for purposes of reading the data.
-
@Kent-Dorfman said in QTModbus:
look for
(QModbusDataUnit::DiscreteInputs == 1) in your slot connected to the dataWritten signalIt "looks like" modbus function 2 is mapped to register type 1 for purposes of reading the data.
Thank you for reply, but where does it "look like" it is mapped to 0x2b function code .
Do you mean 0x2 or 0x2b , I am talking about 0x2b which is encapsulated interface transport. -
my bad. thought it said 0x02. I would "non-authoritatively" state that function 0x2b is probably not directly supported in the QtModbus module.