|
@ -9,6 +9,8 @@ |
|
|
#include "ServoException.h" |
|
|
#include "ServoException.h" |
|
|
#include "ModbusConfig.h" |
|
|
#include "ModbusConfig.h" |
|
|
|
|
|
|
|
|
|
|
|
#include "ExpConfig.h" |
|
|
|
|
|
|
|
|
class QModbusClient; |
|
|
class QModbusClient; |
|
|
class QModbusReply; |
|
|
class QModbusReply; |
|
|
|
|
|
|
|
@ -42,10 +44,12 @@ public slots: |
|
|
|
|
|
|
|
|
void connectToDevice(ModbusConfig modbusConfig); |
|
|
void connectToDevice(ModbusConfig modbusConfig); |
|
|
void connectionStateChanged(QModbusDevice::State state); |
|
|
void connectionStateChanged(QModbusDevice::State state); |
|
|
QBitArray getCoil(int startAddress, quint16 readSize); |
|
|
|
|
|
|
|
|
QBitArray getCoil(int startAddress, quint16 readSize, ExpConfig& expConfig); |
|
|
QBitArray getInputCoil(int startAddress, quint16 readSize); |
|
|
QBitArray getInputCoil(int startAddress, quint16 readSize); |
|
|
QVector<quint16> getHoldingRegister(int startAddress, quint16 readSize); |
|
|
QVector<quint16> getHoldingRegister(int startAddress, quint16 readSize); |
|
|
QVector<quint16> getInputRegister(int startAddress, quint16 readSize); |
|
|
QVector<quint16> getInputRegister(int startAddress, quint16 readSize); |
|
|
|
|
|
|
|
|
void setSingleCoil(int startAddress, bool coilFlag); |
|
|
void setSingleCoil(int startAddress, bool coilFlag); |
|
|
void setMultipleCoil(int startAddress, quint16 writeSize, QBitArray coilFlags); |
|
|
void setMultipleCoil(int startAddress, quint16 writeSize, QBitArray coilFlags); |
|
|
void setSingleRegister(int startAddress, quint16 registerValue); |
|
|
void setSingleRegister(int startAddress, quint16 registerValue); |
|
|