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

Controller module
Table of Contents

Advertisement

3.4
Motion Module Dedicated Class
This section shows the details of the motion module dedicated classes.
MCFB::RefreshLabels
This function executes an MCFB with I/O variables and input variables set in the MCFB setting function. After the execution, I/
O variables, input variables and public variables are refreshed.
Format
short MCFB::RefreshLabels(void)
Argument
None
Description
• This function executes an MCFB with I/O variables and input variables set in the MCFB setting function. After the
execution, the function acquires values of I/O variables, output variables, and public variables of the MCFB and passes the
values to member variables of each instruction class.
To execute an MCFB, check that the MCFB is in the executable status. If the MCFB is not in the executable status
(including the case when a motion module is not ready), an error may not be detected. (Page 62 Considerations for
executing MCFBs)
• For operational specifications for executing an MCFB, check the MCFB which corresponds to each instruction class.
(MELSEC iQ-R Motion Module User's Manual (Application))
• After the MCFB is executed, only the values of I/O variables, output variables, and public variables are updated.
• For I/O variables, output variables, and public variables that can be acquired, refer to the following:
(MELSEC iQ-R Motion Module User's Manual (Application))
• Output variables and public variables may not be updated depending on the operation timing of a motion module. After
executing the MCFB setting function, execute the MCFB::RefreshLabels function repeatedly and make sure to check
values of I/O variables, output variables, and public variables.
• If the MCFB setting function has never been executed, or the execution is not successful, the 'function not executed error'
will occur. Check that the MCFB setting function is completed normally and retry again.
Return value
Return value
0 (0000H)
Other than 0
3 DETAILS OF FUNCTION
218
3.4 Motion Module Dedicated Class
Description
Normal
Error
For details on the error, refer to the following:
Page 225 ERROR CODE LIST

Advertisement

Table of Contents
loading

Table of Contents