4 - 11
4.3 CC-Link Module Access Function
4.3.1 Block guarantee of cyclic data per station
4
FUNCTIONS
(4) How to write cyclic data (buffer memory)
Cyclic data can be written to the buffer memory with the functionality of the block
guarantee of cyclic data per station as described below.
If any other method is used, cyclic data per station are not be guaranteed.
1) With the CC-Link utility, make setting to enable the Block guarantee of
cyclic data per station. ( Section 9.3.5)
2) Select either of the following.
(a) Automatically refreshing cyclic data
1) Execute the QBF_ToBuf function with "automatic" specified for "The link
refreshing method of the CC-Link link" of the third argument (ulOffset).
2) In the timing of the next link scan, data are refreshed.
Table4.5 Writing cyclic data (buffer memory)
Method Description
Reference
section
Automatic cyclic data
refresh method
Only by executing the QBF_ToBuf function, data are written
and automatically refreshed (at the next link scan).
(a)
Manual cyclic data
refresh method
Data are written in advance with the QBF_ToBuf function, and
then manually refreshed by executing the
QBF_RefreshLinkDevice function.
(b)
Figure 4.6 Write operation
Buffer memory
Link scan
C Controller module CC-Link module
Refresh
Link scan
Refresh request
1)
2
)
QBF_ToBuf function (Auto)
Writing data
User program