Mcv_Jog::setenablejog - Mitsubishi Electric MELSEC iQ-R C Series Programming Manual

Controller module
Table of Contents

Advertisement

MCv_Jog::SetEnableJog

This function sets I/O variables and input variables of an Enable-type MCv_Jog in a motion module.
Format
short MCv_Jog::SetEnableJog(bool JogForward, bool JogBackward)
Argument
Argument
Name
JogForward
Forward JOG command
JogBackward
Backward JOG command
Description
• This function sends a command for executing MCv_Jog. For operational specifications of MCv_Jog, refer to the following:
(MELSEC iQ-R Motion Module User's Manual (Application))
• 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 MCv_Jog::SetEnableJog function, execute the MCFB with the MCFB::RefreshLabels function in the
same instance. Executing the MCv_Jog::SetEnableJog function continuously for multiple times causes 'refresh not
executed error.'
However, for the initial execution of the MCv_Jog::SetEnableJog function, I/O variables and input variables must be set
before executing the MCFB. Therefore, as long as a motion module is refreshed, the MCv_Jog::SetEnableJog 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 MCv_Jog::SetEnableJog 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
MCv_Jog::SetEnableJog 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 MCv_Jog::SetEnableJog 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 in JogForward, which is the input variable of MCv_Jog of an
Enable-type MCFB.
Specify a value to be set in JogBackward, which is the input variable of MCv_Jog 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
IN
223

Advertisement

Table of Contents
loading

Table of Contents