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

Controller module
Table of Contents

Advertisement

MCFBEnable::SetEnable
This function sets I/O variables and input variables of an Enable-type MCFB in a motion module.
Format
short MCFBEnable::SetEnable(bool Enable)
Argument
Argument
Name
Enable
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 Enable-type MCFB, refer to the following:
(MELSEC iQ-R Motion Module User's Manual (Application))
• After executing the MCFBEnable::SetEnable function, execute the MCFB with the MCFB::RefreshLabels function in the
same instance. Executing the MCFBEnable::SetEnable function continuously for multiple times causes 'refresh not
executed error.'
However, for the initial execution of the MCFBEnable::SetEnable function, I/O variables and input variables must be set
before executing the MCFB. Therefore, as long as a motion module is refreshed, the MCFBEnable::SetEnable 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 MCFBEnable::SetEnable 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
MCFBEnable::SetEnable 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 MCFBEnable::SetEnable function and that function is executed in the same instance.
• The MCv_Jog::SetEnable function is not supported in the MCv_Jog class. Use the MCv_Jog:: SetEnableJog function.
Executing the MCv_Jog::SetEnable function in the MCv_Jog class causes 'unsupported function execution error.'
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 Enable, which is an input variable of an Enable-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
221

Advertisement

Table of Contents
loading

Table of Contents