PDF
AuboStudio SDK  0.6.3
arcs::aubo_scope::AnalogIo Class Reference

AnalogIo This interface provides support for analog I/Os. More...

#include <analog_io.h>

Inheritance diagram for arcs::aubo_scope::AnalogIo:
Collaboration diagram for arcs::aubo_scope::AnalogIo:

Public Member Functions

 AnalogIo (AnalogIo &f)
 AnalogIo (AnalogIo &&f)
 ~AnalogIo ()
double getMinRangeValue ()
double getMaxRangeValue ()
bool isCurrent ()
bool isVoltage ()
bool setValue (double value)
 Set analog I/O output signal.
double getValue ()
 Returns the last reading of the I/O.
Public Member Functions inherited from arcs::aubo_scope::Io
 Io (Io &f)
 Io (Io &&f)
virtual ~Io ()
std::string getDisplayName () const
 Returns the user defined name of the IO in the currently selected installation.
std::string getDefaultName () const
 Returns the robot default name of the I/O.
std::string getValueStr () const
 Returns the current reading of the I/O as a string.
IoType getType () const
 Returns the I/O type.
InterfaceType getInterfaceType () const
 Returns the interface type this I/O belongs to.
int getAction () const
 Returns the action number of the I/O.
bool isInput () const
 Returns true if I/O supports reading of values and false otherwise.
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.
size_t hashCode ()

Private Member Functions

 AnalogIo ()

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 , PROFINET , ETHERNET_IP
}
Protected Member Functions inherited from arcs::aubo_scope::Io
 Io ()

Detailed Description

AnalogIo This interface provides support for analog I/Os.

Definition at line 20 of file analog_io.h.

Constructor & Destructor Documentation

◆ AnalogIo() [1/3]

arcs::aubo_scope::AnalogIo::AnalogIo ( AnalogIo & f)

References AnalogIo().

Referenced by AnalogIo(), and AnalogIo().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AnalogIo() [2/3]

arcs::aubo_scope::AnalogIo::AnalogIo ( AnalogIo && f)

References AnalogIo().

Here is the call graph for this function:

◆ ~AnalogIo()

arcs::aubo_scope::AnalogIo::~AnalogIo ( )

◆ AnalogIo() [3/3]

arcs::aubo_scope::AnalogIo::AnalogIo ( )
private

Member Function Documentation

◆ getMaxRangeValue()

double arcs::aubo_scope::AnalogIo::getMaxRangeValue ( )

◆ getMinRangeValue()

double arcs::aubo_scope::AnalogIo::getMinRangeValue ( )

◆ getValue()

double arcs::aubo_scope::AnalogIo::getValue ( )

Returns the last reading of the I/O.

Returns
Returns the last reading of the I/O.

◆ isCurrent()

bool arcs::aubo_scope::AnalogIo::isCurrent ( )

◆ isVoltage()

bool arcs::aubo_scope::AnalogIo::isVoltage ( )

◆ setValue()

bool arcs::aubo_scope::AnalogIo::setValue ( double value)

Set analog I/O output signal.

Notice the I/O must be an output I/O.

Parameters
valueThe analog value to be set.
Returns
true if the analog signal was set, false if the signal was not set, e.g. because the controller was not running.

◆ DataSwitch

friend class DataSwitch
friend

Definition at line 63 of file analog_io.h.

References DataSwitch.

Referenced by DataSwitch.

Member Data Documentation

◆ d_

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

Definition at line 65 of file analog_io.h.


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