3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
63
3
CCPU_EntryCCIEFBRefEndFunc
This function registers a routine to be called when the link scan of CC-Link IE Field Network Basic is completed.
■
Format
short CCPU_EntryCCIEFBRefEndFunc (CCPU_REFENDFUNCPTR pREFENDFuncPtr)
■
Argument
The data type of the registered routine (pREFENDFuncPtr) is defined in the header file 'CCPUFunc.h' as follows.
• Format
short (*CCPU_REFENDFUNCPTR) (unsigned short usGroupNo)
• Argument
• Return value
■
Description
• This function registers a routine to be called when the link scan of CC-Link IE Field Network Basic is completed.
• Only one routine is executed at once. After the link scan of another group is completed during the execution of a routine,
the module waits for the execution of the next routine until the current routine is completed.
• If the CCPU_EntryCCIEFBRefEndFunc function is executed once or more, the most recently registered routine will be
valid.
• The registered routine operates on the task
*1
where the CC-Link IE Field Network Basic function operates. Do not perform
processing which causes a block or long processing which occupies a CPU because these processings can affect link scan
time. Execute a long processing which occupies a CPU for a long time on another task.
The affect on link scan time can be checked with a maximum link scan time of a buffer memory.
• Do not call the CCPU_ChangeCCIEFBCycPrm function or CCPU_RestoreDefaultCCIEFBCycPrm function in the routine to
be registered. Otherwise, the registered routine is not returned and therefore the link scan of the target group stops.
*1 The registered routine operates on the following task.
Task priority: 48
Stack size: 4096 byte
Task option: VX_FP_TASK
■
Return value
Argument
Name
Description
IN/OUT
pREFENDFuncPtr
Registered routine
Specify a routine to be registered.
(The routine is deregistered by specifying NULL.)
IN
Argument
Name
Description
IN/OUT
usGroupNo
Group No.
Specify the group number of slave stations whose link scan is completed.
OUT
Return value
Description
0 (0000H)
Normal
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following chapter.
Summary of Contents for MELSEC iQ-R C
Page 1: ...MELSEC iQ R C Controller Module Programming Manual ...
Page 2: ......
Page 201: ...I 199 MEMO ...
Page 203: ...I 201 MEMO ...
Page 207: ......