EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 1791

Mitsubishi Electric MELSEC iQ-R Series
2110 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
END0 0 END0ENDEND 0 END0
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

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals