I-8124W DeviceNet Master API functions User’s Manual (V 1.6) 2021/10/04
73
4.3.25 I8124_SetAttribute
4.3.25 I8124_SetAttribute
Description:
The met
hod is used to set the attribute of the specific device’s
instance. Before calling this function, you must start the device. After
calling this function, you should execute the “I8124_IsSetAttributeOK” to
check the response message returned from the remote slave device.
This old function will be removed in the future. Please use the new
function which is “I8124_SetAttributeW”.
Syntax:
DWORD I8124_SetAttribute (BYTE cSlot, BYTE DesMACID,
BYTE ClassID, BYTE InstanceID,
BYTE AttributeID, WORD DataLen,
BYTE *DATA)
Parameter:
cSlot:
[input] The slot number which the I-8124W is plugged in.
DestMACID:
[input] The remote slave device’s MAC ID (0~63)
ClassID:
[input] The remote slave device’s ClassID(
BYTE
)
InstanceID:
[input] The remote slave device’s InstanceID(
BYTE
)
AttributeID:
[input] The remote slave device’s AttributeID
DataLen:
[input] The length of the attribute value (in byte).
DATA:
[input] The attribute value that the users want to send.
Return:
Please refer to the chapter 4.2 for the function return code.