Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 1792

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

Advertisement

■Program example
The following shows an example of a program that receives response data from D20 after the request data is set from D10 to
D12.
Precautions
• Before executing the G(P).CEXECUTE instruction, the user function must be registered using the C intelligent function
module dedicated function (CITL_EntryDedicatedInstFunc). If the user function is unregistered, a 'user function
unregistered error' (1800H) will be returned. In addition, 1 user function can be executed by the G(P).CEXECUTE
instruction. If you want to run multiple functions, prepare the data for identifying functions in request data, then call the
functions distinctly using the conditional branches in user function.
• The G(P).CEXECUTE instruction cannot be executed additionally while another G(P).CEXECUTE instruction is being
executed. (If attempted, the instruction is not processed.)
• The local device and the file register for each program are not available for setting data.
• Operand must be specified even when request data and response data are not required.
Operation error
Error code
Description
((s1)+1)
 MELSEC iQ-R C Intelligent Function Module User's Manual (Application)
1000H to 3FFFH
When the instruction completes with an error, the completion status indication device (d2)+1 turns on and an error code is
stored in the completion status (s1)+1.
24 C INTELLIGENT FUNCTION MODULE INSTRUCTIONS
1790
24.1 User Function Execution Instruction

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents