Mitsubishi Electric MELSEC iQ-R C Series Programming Manual page 221

Controller module
Table of Contents

Advertisement

MCFBExecute::SetExecute
This function sets I/O variables and input variables of an Execute-type MCFB in a motion module.
Format
short MCFBExecute::SetExecute(bool Execute)
Argument
Argument
Name
Execute
Execution command
Description
• This function operates differently when executing it at the first time or from the second time onwards in the same instance.
Item
First time
Second time or after
After executing the MCFB, execute the MCFB::RefreshLabels function repeatedly until the MCFB processing is completed
and make sure to check values of I/O variables, output variables, and public variables.
For operational specifications for executing an Execute-type MCFB, refer to the following:
(MELSEC iQ-R Motion Module User's Manual (Application))
• After executing the MCFBExecute::SetExecute function, execute the MCFB with the MCFB::RefreshLabels function in the
same instance. Executing the MCFBExecute::SetExecute function continuously for multiple times causes 'refresh not
executed error.'
However, for the initial execution of the MCFBExecute::SetExecute function, I/O variables and input variables must be set
before executing the MCFB. Therefore, as long as a motion module is refreshed, the MCFBExecute::SetExecute function
will be completed normally even if it is executed continuously after the initial execution. After the normal completion of the
function, values specified for the I/O variables and input variables are set, and the MCFB is executed with the set variables
at the next execution of the MCFB::RefreshLabels function.
• When executing the MCFBExecute::SetExecute function immediately after the MCFB::RefreshLabels function is executed
in the same instance, the 'refresh not executed error' occurs depending on the refresh timing of a motion module.
To change I/O variables and input variables, change the variables after the appropriate time passes from the execution of
the MCFB::RefreshLabels function in accordance with a system.
• When the 'refresh not executed error' occurs, the member variable values of I/O variables and input variables at when the
MCFBExecute::SetExecute function is successfully executed last time will be enabled.
• The 'input/output number specification error' occurs if the input/output number of an instance is changed from the one
specified at the first execution of the MCFBExecute::SetExecute function and that function is executed in the same
instance.
Precautions
To change I/O variables and input variables set in a motion module, the variables need to be set again after executing an
MCFB with the MCFB::RefreshLabels function.
Description
Specify a value to be set for Execute, which is an input variable of an Execute-type
MCFB.
Description
Creates an internal instance for sending/receiving data to/from a motion module. After creating the instance, the
function sets I/O variables and input variables in a motion module and executes an MCFB.
Since the C Controller module communicates with a motion module when creating the instance, an error occurs if the
'ready' signal of the motion module does not turn ON. (Page 62 Considerations for executing MCFBs)
Sets I/O variables and input variables in a motion module.
The MCFB is executed at the execution of the MCFB::RefreshLabels function.
3 DETAILS OF FUNCTION
3.4 Motion Module Dedicated Class
3
IN/OUT
IN
219

Advertisement

Table of Contents
loading

Table of Contents