17#ifndef _MBTCPMaster_H_
18#define _MBTCPMaster_H_
25#include "MBExchange.h"
26#include "modbus/ModbusTCPMaster.h"
269 const std::string& prefix =
"mbtcp" );
273 static std::shared_ptr<MBTCPMaster>
init_mbmaster(
int argc,
const char*
const* argv,
275 const std::string& prefix =
"mbtcp" );
277 static void help_print(
int argc,
const char*
const* argv );
283 virtual std::shared_ptr<ModbusClient> initMB(
bool reopen =
false )
override;
285 virtual bool reconfigure(
const std::shared_ptr<uniset::UniXML>& xml,
const std::shared_ptr<uniset::MBConfig>& mbconf )
override;
292 bool force_disconnect;
297 std::shared_ptr<ModbusTCPMaster> mbtcp;
301 std::unique_ptr<ThreadCreator<MBTCPMaster>> pollThread;
Definition MBExchange.h:58
Definition MBTCPMaster.h:266
static std::shared_ptr< MBTCPMaster > init_mbmaster(int argc, const char *const *argv, uniset::ObjectId shmID, const std::shared_ptr< SharedMemory > &ic=nullptr, const std::string &prefix="mbtcp")
Definition MBTCPMaster.cc:210
virtual bool deactivateObject() override
Деактивация объекта (переопределяется для необходимых действий при завершении работы)
Definition MBTCPMaster.cc:184
Definition MessageType.h:171
Definition Calibration.h:27
long ObjectId
Definition UniSetTypes_i.idl:30
Definition UniSetTypes_i.idl:65