![Omron SYSMAC 3G8F7-CLK12-E Скачать руководство пользователя страница 65](http://html1.mh-extra.com/html/omron/sysmac-3g8f7-clk12-e/sysmac-3g8f7-clk12-e_operation-manual_1633420065.webp)
4-1
Section
Library Functions
49
4-1-2 ClkClose()
Board Close
Opens the application interface and gets a CLK handle.
INT ClkClose( PCLKHANDLE hCLK );
Type
Variable name
Description
PCLKHANDLE
hCLK
The CLK handle obtained with
ClkOpen()
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().
If the application is ended without using ClkClose(), the address specified for
ClkOpen() cannot be used again. Always execute ClkClose() for all CLK handles
obtained with ClkOpen() before ending the application.
4-1-3 ClkSendFins()
FINS Message Send
Sends a FINS message.
INT ClkSendFins(PCLKHANDLE hCLK, PCLKHEADER pHeader, LPVOID
lpMessage, DWORD dwSize );
Type
Variable name
Description
PCLKHANDLE
hCLK
The CLK handle obtained with
ClkOpen()
PCLKHEADER
pHeader
Pointer to the header information
structure for the FINS message
LPVOID
lpMessage
Pointer to the send buffer for the FINS
message
DWORD
dwSize
Size of FINS message send buffer
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 header information struc-
ture.
Store the FINS message from the command code (MRC) on in the FINS mes-
sage send buffer.
The function will end in an error if a FINS message send buffer size of less than 2
bytes is specified in the argument. (Detailed error information =
ERR_SEND_BUFFER_SIZE: Send message size error)
4-1-4 ClkRecvFins()
FINS Message Receive
Receives a FINS message.
INT ClkRecvFins(PCLKHANDLE hCLK, PCLKHEADER pHeader, LPVOID
lpMessage, DWORD dwSize, DWORD dwTimeLimit );
Type
Variable name
Description
PCLKHANDLE
hCLK
The CLK handle obtained with
ClkOpen()
PCLKHEADER
pHeader
Pointer to the header information
structure for the FINS message
LPVOID
lpMessage
Pointer to the receive buffer for the
FINS message
DWORD
dwSize
Size of FINS message receive buffer
DWORD
dwTimeLimit
Reception wait time (unit: ms)
Function
Call Format
Arguments
Return Value
Description
Function
Call Format
Arguments
Return Value
Description
Function
Call Format
Arguments
Содержание 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: ......