Ccpu_Entrylinkscanendfunc - Mitsubishi Electric MELIPC MI5000 Series Programming Manual

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

Advertisement

CCPU_EntryLinkScanEndFunc

Registers a routine to be called when a link scan of CC-Link IE Field Network is completed.
Format
short CCPU_EntryLinkScanEndFunc(unsigned short usIoNo, CCPU_FUNCPTR pFuncPtr)
Argument
Argument
Name
usIoNo
Module position
*1
pFuncPtr
Registered routine
*1 The data type is defined as a void type in the include file "CCPUFunc.h".
Description
• Registers a routine to be called when a link scan of CC-Link IE Field Network is completed.
• When this function is executed several times, the last registered routine will be in effect.
• The registered routine is operated by the interrupt service.
• Do not carry out processes in which blocks are generated or processes in which the CPU is occupied for a long time during
routines to be registered. Run processes in which the CPU is occupied for a long time using another user task.
Precautions
• The registered routine is not executed while the operating system is in the interrupt-disabled state.
• For processing a routine to be registered in the registered routine (pFuncPtr), note the following:
A routine to be registered must not have an argument. (Do not pass an argument from an interrupt.)
When registering a routine, observe the considerations on the interrupt service routine (ISR).
Register minimal processing of a routine so that the processing time is as short as possible.
Only the C Controller module dedicated function (for ISR) can be used for a routine to be registered. Do not use any other
function. (An error of a function to be registered is not checked.)
Warning
If a routine that does not observe the considerations on interrupt service routine (ISR) is registered, the operating system will
be out of control.
Make sure to use the routine after carefully verifying the operation and performance.
Return value
Return value
0(0000H)
-28632(9028H)
For details on error codes, refer to the following section.
Page 116 Function error codes
Description
Specify 0x03E0.
Specify a routine to be registered.
(The routine is deregistered by specifying NULL.)
Description
Normal
Module position specification error
3 DETAILS OF FUNCTIONS
3.1 C Controller Module Dedicated Functions
3
IN/OUT
IN
IN
31

Advertisement

Table of Contents
loading

Table of Contents