AuboStudio SDK 0.6.3

函数
ModbusIo (Modbus I/O)

This interface provides support for MODBUS I/Os. 更多...

## 函数
std::string | arcs::aubo_scope::ModbusIo::getIpAddress ()
std::string | arcs::aubo_scope::ModbusIo::getSignalAddress ()
bool | arcs::aubo_scope::ModbusIo::isSlave ()
bool | arcs::aubo_scope::ModbusIo::setValue (int value)
int | arcs::aubo_scope::ModbusIo::getValue ()

## 详细描述

This interface provides support for MODBUS I/Os.

## 函数说明

## ◆ getIpAddress()

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

返回
  Get the IP address for this MODBUS I/O.

## ◆ getSignalAddress()

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

返回
  the signal address for this MODBUS I/O.

## ◆ getValue()

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

返回
  the integer value of the MODBUS signal. If the MODBUS signal is digital then `false` is represented by 0 and `true}` is represented by the value 1.

## ◆ isSlave()

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

返回
  Get the is slave for this MODBUS I/O.

## ◆ setValue()

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

参数

  value | Set MODBUS signal to an integer value. If the MODBUS signal is digital, then `false` is represented by 0 and `true` are represented by all numbers different from 0.

返回
  `true` if the MODBUS signal was sent down to the controller, and `false` if the signal was not sent down, e.g. because the controller was not running. Notice that the MODBUS signal must support writes, consult the Aubo MODBUS protocol.