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

DigitalIo This interface provides support for digital I/Os. More...

#include <digital_io.h>

Inheritance diagram for arcs::aubo_scope::DigitalIo:
Collaboration diagram for arcs::aubo_scope::DigitalIo:

Public Member Functions

 DigitalIo (DigitalIo &f)
 DigitalIo (DigitalIo &&f)
 ~DigitalIo ()
bool setValue (bool high)
 Set digital I/O output signal.
bool 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

 DigitalIo ()

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

DigitalIo This interface provides support for digital I/Os.

Definition at line 20 of file digital_io.h.

Constructor & Destructor Documentation

◆ DigitalIo() [1/3]

arcs::aubo_scope::DigitalIo::DigitalIo ( DigitalIo & f)

References DigitalIo().

Referenced by DigitalIo(), and DigitalIo().

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

◆ DigitalIo() [2/3]

arcs::aubo_scope::DigitalIo::DigitalIo ( DigitalIo && f)

References DigitalIo().

Here is the call graph for this function:

◆ ~DigitalIo()

arcs::aubo_scope::DigitalIo::~DigitalIo ( )

◆ DigitalIo() [3/3]

arcs::aubo_scope::DigitalIo::DigitalIo ( )
private

Member Function Documentation

◆ getValue()

bool arcs::aubo_scope::DigitalIo::getValue ( )

Returns the last reading of the I/O.

Returns
Returns the last reading of the I/O.

◆ setValue()

bool arcs::aubo_scope::DigitalIo::setValue ( bool high)

Set digital I/O output signal.

Note that the I/O must be an output I/O.

Parameters
highthe digital value to be set.
Returns
true if the digital 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 57 of file digital_io.h.

References DataSwitch.

Referenced by DataSwitch.

Member Data Documentation

◆ d_

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

Definition at line 59 of file digital_io.h.


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