Using The C Library - Omron SYSMAC 3G8F7-CLK13-E Operation Manual

Controller link support boards for pci bus
Table of Contents

Advertisement

Using the C Library

3-2
Using the C Library
Functions
Function name
ClkOpen
ClkClose
ClkSendFins
ClkRecvFins
ClkWriteDatalink
ClkReadDatalink
ClkGetNetworkStatus
ClkGetRingStatus
ClkSetMessageOnArrival
ClkSetThreadMessageOnArrival
ClkClearMessageOnArrival
ClkGetLastError
52
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: 3-2 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)
The Microsoft Visual C++ library functions for the Controller Link Support
Board are provided in the following file.
Fine name
CLK_LIB.LIB
Microsoft Visual C++ Ver. 6.0 (Service Pack 3) import library file
The library contains the following functions.
Name
Board Open
Board Close
FINS Message Send
FINS Message Receive
Data Link Data Write
Data Link Data Read
Network Status Read
Optical Ring Status Read
FINS Message Reception
Notification Registration to
Window
FINS Message Reception
Notification Registration to
Thread
FINS Message Reception
Notification Clear
Detailed Error Information
Acquire
Contents
Function
Opens the application interface and gets a
CLK handle.
Closes the application interface and
releases the CLK handle.
Sends a FINS message.
Receives a FINS message.
Writes data to a data link area.
Reads data from a data link area.
Reads the network status.
Reads the optical ring status.
Makes settings to notify the specified win-
dow with a Windows message when a
FINS message is received.
Makes settings to notify the specified
thread with a Windows message when a
FINS message is received.
Clears windows message notification
when a FINS message is received.
Gets an error code generated when a
CLK library function is used.
Section 3-2
Page
56
57
57
58
59
59
60
61
61
62
63
63

Advertisement

Table of Contents
loading

Table of Contents