![Omron SYSMAC 3G8F7-CLK12-E Operation Manual Download Page 67](http://html1.mh-extra.com/html/omron/sysmac-3g8f7-clk12-e/sysmac-3g8f7-clk12-e_operation-manual_1633420067.webp)
4-1
Section
Library Functions
51
The function will end in an error if a memory name specified in the argument
does not exist. (Detailed error information = ERR_NO_MEM_TYPE: No such
memory)
4-1-6 ClkReadDatalink()
Data Link Data Read
Reads data from a data link area.
INT ClkReadDatalink(PCLKHANDLE hCLK, PEMCLKADDRESS pEmAd-
dress, LPWORD lpReadData, DWORD dwSize);
Type
Variable name
Description
PCLKHANDLE
hCLK
The CLK handle obtained with
ClkOpen()
PEMCLKADDRESS
pEmAddress
Pointer to the starting address
structure for reading data
LPWORD
lpWriteData
Pointer to the buffer to store the read
data
DWORD
dwSize
Read data size (unit: words)
CLK_SUCCESS is returned if the function ends normally.
CLK_ERROR is returned if the function ends in an error. Detailed error informa-
tion can be obtained using ClkGetLastError().
Refer to Structure Descriptions for information on the starting address structure
for reading data.
The function will end in an error if 0 is specified for the read data size specified as
the argument. (Detailed error information = ERR_READ_BUFFER_SIZE: Read
data size error)
The function will end in an error if access is requested to 3 or more different
memory areas for one CLK handle. (Detailed error information =
ERR_MEMORY_AREA: Multiple memory area specification error)
The function will end in an error if a memory name specified in the argument
does not exist. (Detailed error information = ERR_NO_MEM_TYPE: No such
memory)
4-1-7 ClkGetNetworkStatus()
Network Status Read
Reads the network status.
INT ClkGetNetworkStatus(PCLKHANDLE hCLK, BYTE byNet, PNSTBUFFER
pBuffer);
Type
Variable name
Description
PCLKHANDLE
hCLK
The CLK handle obtained with
ClkOpen()
BYTE
byNet
Network address of the Broad to read
network status
PNSTBUFFER
pBuffer
Pointer to the buffer structure to store
the read data
CLK_SUCCESS is returned if the function ends normally.
CLK_ERROR is returned if the function ends in an error. Detailed error informa-
tion can be obtained using ClkGetLastError().
Refer to Structure Descriptions for information on the read data structure.
Function
Call Format
Arguments
Return Value
Description
Function
Call Format
Arguments
Return Value
Description