Ccpu_Entrycciefblinkscanendfunc - Mitsubishi Electric MELIPC MI5000 Series Programming Manual

Vxworks
Hide thumbs Also See for MELIPC MI5000 Series:
Table of Contents

Advertisement

CCPU_EntryCCIEFBLinkScanEndFunc

Registers a routine to be called when a link scan of CC-Link IE Field Network Basic is completed.
Format
short CCPU_EntryCCIEFBLinkScanEndFunc(CCPU_SCANENDFUNCPTR pEndFuncPtr)
Argument
Argument
pEndFuncPtr
The data type of the registered routine (pEndFuncPtr) is defined in the header file "CCPUFunc.h" as follows.
■Format
void(*CCPU_SCANENDFUNCPTR) (unsigned short usGroupNo)
■Argument
Argument
usGroupNo
Description
• Registers a routine to be called when a link scan of CC-Link IE Field Network Basic is completed.
• When the link scan of any group is completed, the registered routine is executed.
• 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.
• When this function is executed several times, the last registered routine will be in effect.
• The registered routine operates on the task that operates on CC-Link IE Field Network Basic. Do not carry out processes
that take time as they may affect the link scan time. Run processes that take time using another user task. The effect on the
link scan time can be checked by the maximum link scan time of the buffer memory.
The settings of the tasks to be run by the registered routine are as follows.
Priority: 48
Stack size: 4096 bytes are available for the registered routine
Task option: VX_FP_TASK
Precautions
Do not register routines to run the following functions.
• CCPU_ChangeCCIEFBCycPrm
• CCPU_RestoreDefaultCCIEFBCycPrm
Return value
Return value
0(0000H)
-331(FEB5H)
For details on error codes, refer to the following section.
Page 116 Function error codes
3 DETAILS OF FUNCTIONS
30
3.1 C Controller Module Dedicated Functions
Name
Registered routine
Name
Group No.
Description
Normal
CC-Link IE Field Network Basic parameter unset
Description
Specify a routine to be registered.
(The routine is deregistered by specifying NULL.)
Description
The group number whose link scan is completed is specified.
IN/OUT
IN
IN/OUT
OUT

Advertisement

Table of Contents
loading

Table of Contents