54 namespace simple_message
56 namespace io_ctrl_reply
84 return "Illegal address for read: outside permitted range on this controller, " 87 return "Illegal address for write: outside permitted range on this controller, " 90 return "Illegal value for the type of IO element addressed " 93 return "The MotoPlus function MpReadIO returned -1. No further information is available " 96 return "The MotoPlus function MpWriteIO returned -1. No further information is available ";
121 LOG_COMM(
"Executing ReadSingleIOReply load");
123 if (!buffer->
load(this->value_))
125 LOG_ERROR(
"Failed to load ReadSingleIOReply value");
129 if (!buffer->
load(this->result_code_))
131 LOG_ERROR(
"Failed to load ReadSingleIOReply result_code");
135 LOG_COMM(
"ReadSingleIOReply data successfully loaded");
141 LOG_COMM(
"Executing ReadSingleIOReply unload");
143 if (!buffer->
unload(this->result_code_))
145 LOG_ERROR(
"Failed to unload ReadSingleIOReply result_code");
149 if (!buffer->
unload(this->value_))
151 LOG_ERROR(
"Failed to unload ReadSingleIOReply value");
155 LOG_COMM(
"ReadSingleIOReply data successfully unloaded");
industrial::shared_types::shared_int getResultCode() const
Returns the result code.
void init()
Initializes a empty motion control reply.
industrial::shared_types::shared_int getValue() const
Returns the value.
bool unload(industrial::byte_array::ByteArray *buffer)
#define LOG_COMM(format,...)
bool load(industrial::shared_types::shared_bool value)
industrial::shared_types::shared_int result_code_
The result code.
Class encapsulated read single io reply data. These messages are sent by the FS100 controller in resp...
#define LOG_ERROR(format,...)
bool operator==(ReadSingleIOReply &rhs)
== operator implementation
industrial::shared_types::shared_int value_
The value.
void copyFrom(ReadSingleIOReply &src)
Copies the passed in value.
ReadSingleIOReply(void)
Default constructor.
Enumeration of Read Single IO reply result codes.
std::string getResultString() const
~ReadSingleIOReply(void)
Destructor.
ReadSingleIOReplyResultCode
bool unload(industrial::shared_types::shared_bool &value)
void setValue(industrial::shared_types::shared_int value)
Sets value.
void setResultCode(industrial::shared_types::shared_int result_code)
Sets the result code.
bool load(industrial::byte_array::ByteArray *buffer)