I-8124W DeviceNet Master API functions User’s Manual (V 1.6) 2021/10/04
92
4.3.43 I8124_ReadInputArea (Advanced Option)
Description:
This function read the bulk data from the input area memory. Users
can use this function to read all the input data quickly. It provides
effective method to read the bulk data in one command. If the users
need to read the input data of all slave devices, they need to call the
“I8124_ReadInputData” for each slave device in general. By calling the
advanced
function “I8124_ReadInputArea”, the whole input data would
be read once in this function call. Please refer to the section 3.7 for more
description.
Syntax:
DWORD I8124_ReadInputArea (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 input area memory.
DataLen:
[input] The length in byte which the users want to read.
DataArray:
[output] The data pointer of the obtained data from the input
area memory.
Return:
Please refer to the section 4.2 for the return code.
Example: