54 namespace simple_message
56 namespace io_ctrl_reply
83 return "Illegal address for read: outside permitted range on this controller, " 86 return "Illegal address for write: outside permitted range on this controller, " 89 return "Illegal value for the type of IO element addressed " 92 return "The MotoPlus function MpReadIO returned -1. No further information is available " 95 return "The MotoPlus function MpWriteIO returned -1. No further information is available ";
118 LOG_COMM(
"Executing WriteSingleIOReply load");
120 if (!buffer->
load(this->result_code_))
122 LOG_ERROR(
"Failed to load WriteSingleIOReply result_code");
126 LOG_COMM(
"WriteSingleIOReply data successfully loaded");
132 LOG_COMM(
"Executing WriteSingleIOReply unload");
134 if (!buffer->
unload(this->result_code_))
136 LOG_ERROR(
"Failed to unload WriteSingleIOReply result_code");
140 LOG_COMM(
"WriteSingleIOReply data successfully unloaded");
Class encapsulated write single io reply data. These messages are sent by the FS100 controller in res...
void setResultCode(industrial::shared_types::shared_int result_code)
Sets the result code.
bool load(industrial::byte_array::ByteArray *buffer)
bool operator==(WriteSingleIOReply &rhs)
== operator implementation
industrial::shared_types::shared_int result_code_
The result code.
WriteSingleIOReplyResultCode
WriteSingleIOReply(void)
Default constructor.
#define LOG_COMM(format,...)
bool load(industrial::shared_types::shared_bool value)
bool unload(industrial::byte_array::ByteArray *buffer)
#define LOG_ERROR(format,...)
void init()
Initializes a empty motion control reply.
industrial::shared_types::shared_int getResultCode() const
Returns the result code.
Enumeration of Write Single IO reply result codes.
std::string getResultString() const
bool unload(industrial::shared_types::shared_bool &value)
void copyFrom(WriteSingleIOReply &src)
Copies the passed in value.
~WriteSingleIOReply(void)
Destructor.