52
Using the C Library
Section 3-2
3. To used Windows-based messages to determine if a FINS message has
been received, use the ClkSetMessageOnArrival and ClkSetThreadMes-
sageOnArrival functions to register the Windows-based messages to be
used for notification. When not using Windows-based messages, check
periodically for FINS messages using ClkRecvFins.
For details on various methods for making programs, refer to the following
resources.
• Information on using the C library:
• Details on C library functions:
SECTION 4 C Language Function Refer-
ence
• Support Software:
Controller Link Support Software Operation Manual
(W369)
3-2
Using the C Library
The Microsoft Visual C++ library functions for the Controller Link Support
Board are provided in the following file.
The library contains the following functions.
Functions
Fine name
Contents
CLK_LIB.LIB
Microsoft Visual C++ Ver. 6.0 (Service Pack 3) import library file
Function name
Name
Function
Page
ClkOpen
Board Open
Opens the application interface and gets a
CLK handle.
ClkClose
Board Close
Closes the application interface and
releases the CLK handle.
ClkSendFins
FINS Message Send
Sends a FINS message.
ClkRecvFins
FINS Message Receive
Receives a FINS message.
ClkWriteDatalink
Data Link Data Write
Writes data to a data link area.
ClkReadDatalink
Data Link Data Read
Reads data from a data link area.
ClkGetNetworkStatus
Network Status Read
Reads the network status.
ClkGetRingStatus
Optical Ring Status Read
Reads the optical ring status.
ClkSetMessageOnArrival
FINS Message Reception
Notification Registration to
Window
Makes settings to notify the specified win-
dow with a Windows message when a
FINS message is received.
ClkSetThreadMessageOnArrival
FINS Message Reception
Notification Registration to
Thread
Makes settings to notify the specified
thread with a Windows message when a
FINS message is received.
ClkClearMessageOnArrival
FINS Message Reception
Notification Clear
Clears windows message notification
when a FINS message is received.
ClkGetLastError
Detailed Error Information
Acquire
Gets an error code generated when a
CLK library function is used.
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: ......