3-1
Section
Basic Flow
42
3-1
Basic Flow
This section describes the basic procedural flow in creating the applications
(user programs) necessary to use the Controller Link Support Board data link
function and the message service function. Create the applications according to
the flowcharts in this section.
The following explanations assume that the driver and C library have already
been installed. If they have not been, refer to Controller Link Support Board
Installation Guide (W388) before proceeding.
3-1-1 Data Link Procedure
The basic procedure for using data links is outlined in the following flowchart.
Writing data
link tables
Data link tables not yet written
(no DATALINK.DAT file)
Data link tables
already written
START
Write the data link tables
using the Support Software.
Transfer the data link tables to the
other nodes using the Support
Software. (Data link tables
transferred to the Board will be
recorded in the Board’s EEPROM.)
Initialization
Sending/receiv-
ing data link data
Ending
Open the application interface using
the ClkOpen function.
Read and write data link data using
the ClkRadDatalink and ClkWrite-
Datalink functions.
Close the application interface using
the ClkClose function.
The network participation
status and data link oper-
ating status can be read
using the ClkGetNetwork-
Status function.
Note
1. Repeat the process to read/write data link data as often as required by the
application.
2. Data links can be started and stopped from other nodes, by sending FINS
commands from Support Software, by using PC software switches, or by
sending a FINS command from the application using the ClkSendFins func-
tion.
3. Information on errors that occur in using the C library can be read using the
CkGetLastError function.
For details on various methods for making programs, refer to the following re-
sources.
•
Information on using the C library: 3-2 Using the C Library
•
Details on C library functions: Section 4 C Language Function Reference
•
Support Software: Controller Link Support Software Operation Manual
(W369)