AuboCaps  0.6.0
arcs::aubo_scope::ModbusIo Class Reference

This interface provides support for MODBUS I/Os. More...

#include <modbus_io.h>

Inheritance diagram for arcs::aubo_scope::ModbusIo:
Collaboration diagram for arcs::aubo_scope::ModbusIo:

Public Member Functions

 ModbusIo (ModbusIo &f)
 
 ModbusIo (ModbusIo &&f)
 
 ~ModbusIo ()
 
std::string getIpAddress ()
 
std::string getSignalAddress ()
 
bool setValue (int value)
 
int getValue ()
 
- Public Member Functions inherited from arcs::aubo_scope::Io
 Io (Io &f)
 
 Io (Io &&f)
 
virtual ~Io ()
 
std::string getDisplayName () const
 
std::string getDefaultName () const
 
std::string getValueStr () const
 
IoType getType () const
 
InterfaceType getInterfaceType () const
 
bool isInput () const
 
bool isResolvable () const
 Some I/Os, such as MODBUS I/Os and analog Tool inputs, are in some situations not present in AuboScope or available for use. More...
 
size_t hashCode ()
 

Private Member Functions

 ModbusIo ()
 

Private Attributes

void * d_ { nullptr }
 

Friends

class DataSwitch
 

Additional Inherited Members

- Public Types inherited from arcs::aubo_scope::Io
enum  IoType : int {
  DIGITAL, ANALOG, INTEGER, BOOLEAN,
  DOUBLE
}
 
enum  InterfaceType : int {
  STANDARD, TOOL, CONFIGURABLE, LINKIO,
  MODBUS, GENERAL_PURPOSE
}
 
- Protected Member Functions inherited from arcs::aubo_scope::Io
 Io ()
 

Detailed Description

This interface provides support for MODBUS I/Os.

Definition at line 14 of file modbus_io.h.

Constructor & Destructor Documentation

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

Member Function Documentation

std::string arcs::aubo_scope::ModbusIo::getIpAddress ( )
Returns
Get the IP address for this MODBUS I/O.
std::string arcs::aubo_scope::ModbusIo::getSignalAddress ( )
Returns
the signal address for this MODBUS I/O.
int arcs::aubo_scope::ModbusIo::getValue ( )
Returns
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.
bool arcs::aubo_scope::ModbusIo::setValue ( int  value)
Parameters
valueSet 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.
Returns
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.

Friends And Related Function Documentation

friend class DataSwitch
friend

Definition at line 55 of file modbus_io.h.

Member Data Documentation

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

Definition at line 57 of file modbus_io.h.


The documentation for this class was generated from the following file: