uint32_t EI_API_CIP_setAttr_udint | ( | T * | pCipNode_p, |
uint16_t | classId_p, | ||
uint16_t | instanceId_p, | ||
uint16_t | attrId_p, | ||
ei_api_cip_edt_udint | attrValue_p | ||
) |
Set attribute of type UDINT
.
This function sets the attribute value of the CIP specified elementary data type UDINT
. If the operation is completed successfully, the function returns EI_API_CIP_eERR_OK, else an error code.
[in] | pCipNode_p | Pointer to the CIP node. |
[in] | classId_p | Class identifier. |
[in] | instanceId_p | Instance identifier. |
[in] | attrId_p | Attribute identifier. |
[in] | attrValue_p | The new attribute value. |
EI_API_CIP_eERR_OK | Success. |
EI_API_CIP_eERR_NODE_INVALID | CIP node is invalid, possibly EI_API_CIP_NODE_new() was not called. |
EI_API_CIP_eERR_CLASS_DOES_NOT_EXIST | Class does not exists in CIP node dictionary. |
EI_API_CIP_eERR_INSTANCE_DOES_NOT_EXIST | Instance does not exist in CIP node dictionary. |
EI_API_CIP_eERR_ATTRIBUTE_DOES_NOT_EXIST | Attribute does not exist in class or instance. |
EI_API_CIP_eERR_ATTRIBUTE_INVALID_VALUE | Invalid data pointer. |
EI_API_CIP_eERR_ATTRIBUTE_INVALID_TYPE | Attribute type is invalid. |
EI_API_CIP_eERR_ATTRIBUTE_UNKNOWN_STATE | Unknown state during attribute operation reached. |