![background image](http://html.mh-extra.com/html/omron/sysmac-3g8f7-clk12-ev1/sysmac-3g8f7-clk12-ev1_operation-manual_1633421082.webp)
62
Library Functions
Section 4-1
Description
Both ClkSetMessageOnArrival and ClkSetThreadMessageOnArrival cannot
be registered at the same time.
The function will end in an error if a null pointer is specified for the window
handle specified as the argument. (Detailed error information =
ERR_WINDOWHANDLE_PARA: Window handle error)
The function will end in an error if an illegal value is specified for the window
handle specified as the argument. (Detailed error information = 67: Illegal win-
dow handle)
The function will end in an error if the message specified in the argument is
over 0x7FFF. (Detailed error information = ERR_MESSAGE_PARA: Mes-
sage type error)
The function will end in an error if a message has already been registered for
FINS message reception. (Detailed error information = 69: Duplicated mes-
sage registration error)
4-1-10 ClkSetThreadMessageOnArrival()
FINS Message Reception Notification Registration to Thread
Function
Makes settings to notify the specified thread with a Windows message when a
FINS message is received.
Call Format
INT ClkSetThreadMessageOnArrival(PCLKHANDLE hCLK, DWORD
dwThreadId, UINT uMsg);
Return Value
CLK_SUCCESS is returned if the function ends normally.
CLK_ERROR is returned if the function ends in an error. Detailed error infor-
mation can be obtained using ClkGetLastError().
Description
Both ClkSetMessageOnArrival and ClkSetThreadMessageOnArrival cannot
be registered at the same time.
The function will end in an error if a null pointer is specified for the window
handle specified as the argument. (Detailed error information =
ERR_WINDOWHANDLE_PARA: Window handle error)
The function will end in an error if an illegal value is specified for the window
handle specified as the argument. (Detailed error information = 67: Illegal win-
dow handle)
The function will end in an error if the message specified in the argument is
over 0x7FFF. (Detailed error information = ERR_MESSAGE_PARA: Mes-
sage type error)
The function will end in an error if a message has already been registered for
FINS message reception. (Detailed error information = 69: Duplicated mes-
sage registration error)
Type
Variable name
Description
PCLKHANDLE
hCLK
The CLK handle obtained with ClkO-
pen()
DWORD
dwThreadId
Thread ID to receive event notification
UINT
uMsg
Message to use for notification
(WM_USER to 0x7FFF)
Arguments
Summary of Contents for SYSMAC 3G8F7-CLK12-EV1
Page 2: ......
Page 4: ...iv ...
Page 20: ...xx Conformance to EC Directives 6 ...
Page 48: ...28 Applications Precautions Section 1 4 Example CX Programmer Response Timeout Setting ...
Page 68: ...48 Backup Power Supply Wiring Optical Ring Systems Only Section 2 4 ...
Page 74: ...54 Using the C Library Section 3 2 ...
Page 110: ...90 Changing the Data Link Tables with Active Data Links Section 5 5 ...
Page 187: ......