Mitsubishi Electric MELSEC iQ-R C Programming Manual page 65

Melsec iq-r series programmable controller
Hide thumbs Also See for MELSEC iQ-R C:
Table of Contents

Advertisement

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
Argument
Name
pREFENDFuncPtr
Registered routine
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
Argument
Name
usGroupNo
Group No.
• Return value
Return value
Description
0 (0000H)
Normal
■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
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
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following chapter.
Page 174 ERROR CODE LIST
Description
Specify a routine to be registered.
(The routine is deregistered by specifying NULL.)
Description
Specify the group number of slave stations whose link scan is completed.
*1
where the CC-Link IE Field Network Basic function operates. Do not perform
3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
IN/OUT
3
IN
IN/OUT
OUT
63

Advertisement

Table of Contents
loading

Table of Contents