Mitsubishi Electric MELSEC iQ-R Series Manual page 28

Intelligent function module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

CITL_EntryDedicatedInstFunc
This function registers a routine to be executed with the dedicated instruction (G(P).CEXECUTE).
■ Format
short CITL_EntryDedicatedInstFunc (CITL_CEXECUTEFUNCPTR pCEXECUTEFuncPtr)
■ Argument
Argument
pCEXECUTEFuncPtr
The data type of registered routine (pCEXECUTEFuncPtr) is defined by the header file (CITLFunc.h) as follows:
• void (*CITL_CEXECUTEFUNCPTR) (unsigned short* pusReqData, unsigned short* pusReqSize, unsigned short*
pusAnsData, unsigned short* pusAnsSize)
Argument
pusReqData
pusReqSize
pusAnsData
pusAnsSize
■ Description
• This function registers a routine to be executed in a C intelligent function module when executing the dedicated instruction
(G(P).CEXECUTE).
• The registered routine is operated on a task with the following settings.
Task priority: 100
Stack size: 40000 byte
Task option: VX_FP_TASK
• When NULL is specified to the registered routine (pCEXECUTEFuncPtr), the routine is deregistered.
• When CITL_EntryDedicatedInstFunc function is executed several times, the last registered routine will be in effect.
■ Return value
Return value
0 (0000H)
Other than 0 (0000H)
3 DETAILS OF FUNCTION
26
3.1 C Intelligent Function Module Dedicated Functions
Name
Registered routine
Name
Request data
Request data size
Response data
Response data size
Description
Normal
Error
For details on the error, refer to the following chapter.
Page 108 ERROR CODE LIST
Description
Specify the routine to be registered.
(The routine is deregistered by specifying NULL.)
Description
Receives the requested data specified by the dedicated instruction.
Receives the size of the requested data specified by the dedicated
instruction.
Returns the response data to the dedicated instruction.
Returns the size of the response data to the dedicated instruction.
IN/OUT
IN
IN/OUT
IN
IN
OUT
OUT

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec iq-r c

Table of Contents