24 C INTELLIGENT FUNCTION MODULE INSTRUCTIONS
24.1 User Function Execution Instruction
1789
24
Processing details
• The request data stored in the device specified by (s2) and later is handed over to the C intelligent function module
specified by (U), and the response data is stored in the device specified by (d1) and later. However, if the received
response data is larger than the allowed number of response data specified in (s1), only the allowed number of response
data will be stored and the remaining will be discarded.However, if the received response data is larger than the allowed
number of response data specified in (s1), only the allowed number of response data will be stored and the remaining will
be discarded. (Dedicated instruction will be completed successfully.) In this case, the response data length (d1) will be the
number of data actually stored.
• The completion status of the G(P).CEXECUTE instruction can be checked with the completion device (d2) and the
completion status indication device (d2)+1.
• The following figure shows how the G(P).CEXECUTE instruction operates during execution.
The user program runs in the following tasks settings.
• Task priority: 100
• Stack size: 40000 bytes
• Task option: VX_FP_TASK
• Completion device (d2)
This device turns on during END processing of the scan where the G(P).CEXECUTE instruction completes, and turns off during the next END processing.
• Completion status indication device (d2)+1
When completed successfully: The device remains off.
When completed with an error: The device turns on during END processing of the scan where the G(P).CEXECUTE instruction completes, and turns off during
the next END processing.
b0
b15
...
(s2)+0
(s2)+1
(d1)+0
(d1)+1
(CITL_EntryDedicatedInstFunc)
void USERFunc(
*ReqData,
*ReqSize,
*AnsData,
*AnsSize
)
{
xxxxx
xxxxx
xxxxx
xxxxx
return;
}
(G(P).CEXECUTE)
CPU module
Request data length
Request data
Response data length
Response data
Registering user function
/* Request data */
/* Request data length */
/* Response data*/
/* Response data length */
C intelligent function module
Executing user function
Completion status
END
0
0
END
0
END
END
0
END
0
OFF
OFF
OFF
OFF
ON
ON
Sequence scan
G(P).CEXECUTE instruction
Completion device (d2)
1 scan
Completion of
the instruction
Completed
successfully
Execution of
the instruction
Completion status
indication device (d2)+1
Completed
with an error
Summary of Contents for MELSEC iQ-R Series
Page 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Page 34: ...32 MEMO ...
Page 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Page 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Page 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Page 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Page 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Page 2109: ......