I-8124W DeviceNet Master API functions User’s Manual (V 1.6) 2021/10/04
96
4.3.45 I8124_ReadbackOutputArea (Advanced Option)
Description:
This function reads the bulk data from the output area memory. It
dose not change the output data located in the output area memory.
Users can use this function to read back a large amount of the output
data, but the data may be different with the real output statuses of the
DeviceNet slaves. It provides effective method to read bulk data in one
command. If the users need to read back the output data of all slave
devices, they need to call the
“I8124_ReadbackOutputData” for each
slave
device
in
general.
By
calling
the
advanced
function
“I8124_ReadbackOutputArea”, the whole output data would be wrote
once in this function call. Please refer to the section 3.7 for more
description.
Syntax:
DWORD I8124_ReadbackOutputArea (BYTE cSlot,
WORD Offset,
WORD DataLen,
BYTE *DataArray)
Parameter:
cSlot:
[input] The slot number which the I-8124W is plugged in.
Offset:
[input] The offset of the output area memory.
DataLen:
[input] The length in byte which the users want to read.
DataArray:
[output] The data pointer pointed the observed data form the
output area memory.
Return:
Please refer to the section 4.2 for the return code.
Example: