4-1
Section
Library Functions
50
The size of the FINS message that was receive is returned as the number of by-
tes 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().
The number of receive bytes in the return value is for all bytes starting from the
command code (MCR) in the FINS message.
Refer to Structure Descriptions for information on the header information struc-
ture.
The FINS message from the command code (MRC) on will be stored in the FINS
message receive buffer.
The function will end in an error if a FINS message receive buffer size of less
than 2 bytes is specified in the argument. (Detailed error information =
ERR_RECV_BUFFER_SIZE: Receive message size error)
The function will end in an error if a message reception area cannot be obtained
because of insufficient memory. (Detailed error information =
ERR_NO_MEMORY: Memory acquisition error)
The function will end in an error if the reception wait time is set to 0 and a FINS
message has not yet been received. (Detailed error information = 63: No receive
data)
The function will end in an error if the reception wait time elapses without receiv-
ing a FINS message. (Detailed error information = 39: Receive timeout)
The function will end in an error if the received FINS message is larger than the
reception buffer size. The portion of the FINS message that fits will be stored in
the reception buffer. (Detailed error information = ERR_MSG_SIZE_OVER: Re-
ceive buffer size error)
4-1-5 ClkWriteDatalink()
Data Link Data Write
Writes data to a data link area.
INT ClkWriteDatalink(PCLKHANDLE hCLK, PEMCLKADDRESS pEmAd-
dress, LPWORD lpWriteData, DWORD dwSize);
Type
Variable name
Description
PCLKHANDLE
hCLK
The CLK handle obtained with
ClkOpen()
PEMCLKADDRESS
pEmAddress
Pointer to the starting address
structure for writing data
LPWORD
lpWriteData
Pointer to the buffer to store the write
data
DWORD
dwSize
Write 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 writing data.
The function will end in an error if a data size of 0 is specified for write data size
specified as the argument. (Detailed error information = ERR_WRITE_BUFF-
ER_SIZE: Write 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)
Return Value
Description
Function
Call Format
Arguments
Return Value
Description
Содержание SYSMAC 3G8F7-CLK12-E
Страница 2: ......
Страница 4: ......
Страница 6: ......
Страница 10: ......
Страница 16: ......
Страница 30: ...1 2 Section Specifications and Configurations 14 1 2 5 Dimensions Wired Model 3G8F7 CLK21 E Unit mm ...
Страница 36: ......
Страница 56: ......
Страница 62: ......
Страница 78: ......
Страница 94: ......
Страница 128: ......
Страница 140: ......
Страница 158: ......