Wrapper class around Motoman-specific io control commands. More...
#include <io_ctrl.h>
Public Member Functions | |
| bool | init (SmplMsgConnection *connection) |
| MotomanIoCtrl () | |
| Default constructor. More... | |
| bool | readSingleIO (industrial::shared_types::shared_int address, industrial::shared_types::shared_int &value, std::string &err_msg) |
| Reads a single IO point on the controller. More... | |
| bool | writeSingleIO (industrial::shared_types::shared_int address, industrial::shared_types::shared_int value, std::string &err_msg) |
| Writes to a single IO point on the controller. More... | |
Protected Member Functions | |
| bool | sendAndReceive (industrial::shared_types::shared_int address, ReadSingleIOReply &reply) |
| bool | sendAndReceive (industrial::shared_types::shared_int address, industrial::shared_types::shared_int value, WriteSingleIOReply &reply) |
Protected Attributes | |
| SmplMsgConnection * | connection_ |
|
inline |
| bool motoman::io_ctrl::MotomanIoCtrl::init | ( | SmplMsgConnection * | connection | ) |
Definition at line 62 of file io_ctrl.cpp.
| bool motoman::io_ctrl::MotomanIoCtrl::readSingleIO | ( | industrial::shared_types::shared_int | address, |
| industrial::shared_types::shared_int & | value, | ||
| std::string & | err_msg | ||
| ) |
Reads a single IO point on the controller.
Note: if reading was unsuccessful, the value of value is undefined.
| address | The address (index) of the IO point |
| value | [out] Will contain the value of the IO point |
| err_msg | [out] A descriptive error message in case of failure |
Definition at line 68 of file io_ctrl.cpp.
|
protected |
Definition at line 108 of file io_ctrl.cpp.
|
protected |
Definition at line 131 of file io_ctrl.cpp.
| bool motoman::io_ctrl::MotomanIoCtrl::writeSingleIO | ( | industrial::shared_types::shared_int | address, |
| industrial::shared_types::shared_int | value, | ||
| std::string & | err_msg | ||
| ) |
Writes to a single IO point on the controller.
| address | The address (index) of the IO point |
| value | The value to set the IO element to |
| err_msg | [out] A descriptive error message in case of failure |
Definition at line 89 of file io_ctrl.cpp.
|
protected |