1790
24 C INTELLIGENT FUNCTION MODULE INSTRUCTIONS
24.1 User Function Execution Instruction
■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.
• 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.
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.
Error code
((s1)+1)
Description
1000H to 3FFFH MELSEC iQ-R C Intelligent Function Module User's Manual (Application)