AuboStudio SDK  0.6.3
arcs::aubo_scope::ModbusIo类 参考

\chinese Modbus IO 接口 此接口提供对 MODBUS I/O 的支持。 \endchinese \english ModbusIo This interface provides support for MODBUS I/Os. 更多...

#include <modbus_io.h>

类 arcs::aubo_scope::ModbusIo 继承关系图:
arcs::aubo_scope::ModbusIo 的协作图:

Public 成员函数

 ModbusIo (ModbusIo &f)
 ModbusIo (ModbusIo &&f)
 ~ModbusIo ()
std::string getIpAddress ()
 \chinese 获取此MODBUS I/O的IP地址
std::string getSignalAddress ()
 \chinese 获取此MODBUS I/O的信号地址
bool isSlave ()
 \chinese 判断此MODBUS I/O是否为从站
bool setValue (int value)
 \chinese 设置MODBUS信号的整数值。
int getValue ()
 \chinese 获取MODBUS信号的整数值。
Public 成员函数 继承自 arcs::aubo_scope::Io
 Io (Io &f)
 Io (Io &&f)
virtual ~Io ()
std::string getDisplayName () const
 \chinese 获取当前安装中I/O的用户自定义名称
std::string getDefaultName () const
 \chinese 获取I/O的机器人默认名称
std::string getValueStr () const
 \chinese 获取I/O的当前读数值(字符串形式)
IoType getType () const
 \chinese 获取I/O类型
InterfaceType getInterfaceType () const
 \chinese 获取此I/O所属的接口类型
int getAction () const
 \chinese 获取I/O的动作编号
bool isInput () const
 \chinese 判断I/O是否支持读取值
bool isResolvable () const
 \chinese 某些I/O(如MODBUS I/O和模拟工具输入)在某些情况下可能不可用。此方法用于判断 I/O是否可用。
size_t hashCode ()

Private 成员函数

 ModbusIo ()

Private 属性

void * d_ { nullptr }

友元

class DataSwitch

额外继承的成员函数

Public 类型 继承自 arcs::aubo_scope::Io
enum  IoType : int {
  DIGITAL , ANALOG , INTEGER , BOOLEAN ,
  DOUBLE
}
enum  InterfaceType : int {
  STANDARD , TOOL , CONFIGURABLE , LINKIO ,
  MODBUS , GENERAL_PURPOSE , PROFINET , ETHERNET_IP
}
Protected 成员函数 继承自 arcs::aubo_scope::Io
 Io ()

详细描述

\chinese Modbus IO 接口 此接口提供对 MODBUS I/O 的支持。 \endchinese \english ModbusIo This interface provides support for MODBUS I/Os.

\endenglish

在文件 modbus_io.h21 行定义.

构造及析构函数说明

◆ ModbusIo() [1/3]

arcs::aubo_scope::ModbusIo::ModbusIo ( ModbusIo & f)

引用了 ModbusIo().

被这些函数引用 ModbusIo() , 以及 ModbusIo().

函数调用图:
这是这个函数的调用关系图:

◆ ModbusIo() [2/3]

arcs::aubo_scope::ModbusIo::ModbusIo ( ModbusIo && f)

引用了 ModbusIo().

函数调用图:

◆ ~ModbusIo()

arcs::aubo_scope::ModbusIo::~ModbusIo ( )

◆ ModbusIo() [3/3]

arcs::aubo_scope::ModbusIo::ModbusIo ( )
private

成员函数说明

◆ getIpAddress()

std::string arcs::aubo_scope::ModbusIo::getIpAddress ( )

\chinese 获取此MODBUS I/O的IP地址

返回
IP地址。 \endchinese \english Returns the IP address for this MODBUS I/O.
Get the IP address for this MODBUS I/O. \endenglish

◆ getSignalAddress()

std::string arcs::aubo_scope::ModbusIo::getSignalAddress ( )

\chinese 获取此MODBUS I/O的信号地址

返回
信号地址。 \endchinese \english Returns the signal address for this MODBUS I/O.
the signal address for this MODBUS I/O. \endenglish

◆ getValue()

int arcs::aubo_scope::ModbusIo::getValue ( )

\chinese 获取MODBUS信号的整数值。

返回
MODBUS信号的整数值。 \endchinese \english Returns the integer value of the MODBUS signal.
the integer value of the MODBUS signal. \endenglish

◆ isSlave()

bool arcs::aubo_scope::ModbusIo::isSlave ( )

\chinese 判断此MODBUS I/O是否为从站

返回
是否为从站。 \endchinese \english Returns whether this MODBUS I/O is a slave.
Get the is slave for this MODBUS I/O. \endenglish

◆ setValue()

bool arcs::aubo_scope::ModbusIo::setValue ( int value)

\chinese 设置MODBUS信号的整数值。

参数
value要设置的整数值。
返回
信号下发成功返回true,否则返回false。 \endchinese \english Set MODBUS signal to an integer value.
参数
valueSet MODBUS signal to an integer value.
返回
true if the MODBUS signal was sent down to the controller, and false if the signal was not sent down. \endenglish

◆ DataSwitch

friend class DataSwitch
friend

在文件 modbus_io.h97 行定义.

引用了 DataSwitch.

被这些函数引用 DataSwitch.

类成员变量说明

◆ d_

void* arcs::aubo_scope::ModbusIo::d_ { nullptr }
private

在文件 modbus_io.h99 行定义.


该类的文档由以下文件生成: