Mitsubishi Electric MELSEC iQ-R Motion Module Programming Manual

Type
Programming Manual
MELSEC iQ-R Programming Manual
(Motion Control Function Blocks)
-RD78G4
-RD78G8
-RD78G16
-RD78G32
-RD78G64
-RD78GHV
-RD78GHW
1
SAFETY PRECAUTIONS
(Read these precautions before using this product.)
Before using MELSEC iQ-R series programmable controllers, please read the manuals for the product and the relevant
manuals introduced in those manuals carefully, and pay full attention to safety to handle the product correctly.
Make sure that the end users read this manual and then keep the manual in a safe place for future reference.
INTRODUCTION
Thank you for purchasing the Mitsubishi Electric MELSEC iQ-R series programmable controllers.
This manual describes the Motion control function blocks, variables, and creation methods required for programming with the
Motion module.
Before using this product, please read this manual and the relevant manuals carefully and develop familiarity with the
functions and performance of the MELSEC iQ-R series programmable controller to handle the product correctly.
When applying the program examples provided in this manual to an actual system, ensure the applicability and confirm that it
will not cause system control problems.
Please make sure that the end users read this manual.
Relevant products
RD78G4, RD78G8, RD78G16, RD78G32, RD78G64, RD78GHV, RD78GHW
Symbols used in this manual are shown below.
Underlined variables (AxisName
, etc.): Variables defined by users
2
CONTENTS
SAFETY PRECAUTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
INTRODUCTION. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
RELEVANT MANUALS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
TERMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5
GENERIC TERMS AND ABBREVIATIONS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7
CHAPTER 1 MOTION CONTROL FB OVERVIEW 8
1.1 Motion Control FBs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
How to use Motion control FBs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Operation of this function for each system status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Motion control FB types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Motion control types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Error processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Units used in control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
I/O variables used in Motion control FBs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
1.2 Motion Control FB Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Ladder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
FBD/LD (Function block diagram/ladder) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
ST (Structured text) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
CHAPTER 2 VARIABLES AND MOTION CONTROL FB 19
2.1 List of Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Axis variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Axes group variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
System variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Other structure variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
2.2 List of Enumerators. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
ENUM enumerators. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
2.3 List of Motion Control FBs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Management FBs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Operation FBs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
Standard FBs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
CHAPTER 3 MOTION CONTROL FB 82
3.1 Management FBs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
MC_GroupEnable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
MC_GroupDisable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
MC_Power. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
MC_SetPosition. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
MCv_SetTorqueLimit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
MC_SetOverride . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
MC_ReadParameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
MC_WriteParameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
MC_Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
MC_GroupReset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
MC_TouchProbe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
MC_AbortTrigger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
3
CONTENTS
MC_CamTableSelect. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
MCv_ChangeCycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
MCv_AllPower . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
MC_GroupSetOverride . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
MCv_MotionErrorReset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
3.2 Operation FBs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
MC_Home . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
MC_Stop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183
MC_GroupStop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
MC_MoveAbsolute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193
MC_MoveRelative . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
MCv_Jog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213
MC_MoveVelocity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222
MC_TorqueControl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
MCv_SpeedControl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
MCv_MoveLinearInterpolateAbsolute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
MCv_MoveLinearInterpolateRelative . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
MCv_MoveCircularInterpolateAbsolute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278
MCv_MoveCircularInterpolateRelative . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296
MC_CamIn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315
MC_GearIn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334
MC_CombineAxes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 344
MCv_BacklashCompensationFilter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 356
MCv_SmoothingFilter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 369
MCv_DirectionFilter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 378
MCv_SpeedLimitFilter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 386
3.3 Standard FBs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 394
MCv_ReadProfileData. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 394
MCv_WriteProfileData . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 403
CHAPTER 4 MOTION MODULE PROGRAMS 412
4.1 Motion Module Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 412
Execution of programs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 413
Label initialization function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 419
4.2 Motion Module Program Creation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 420
Program creation procedure for ST programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 420
Creation procedure for programs using the public label function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 444
Registering the Motion module FB library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 454
Data transfers using the Motion module buffer memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 459
APPENDICES 460
Appendix 1 FBD/LD Sample Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 460
Settings in GX Works3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 460
Settings in Motion Control Setting Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 475
Appendix 2 ST Sample Program. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 478
Settings in GX Works3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 478
Settings in Motion Control Setting Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 482
REVISIONS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .496
WARRANTY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .497
TRADEMARKS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .498
4
RELEVANT MANUALS
For programs, refer to the following.
MELSEC iQ-R Programming Manual (Program Design)
e-Manual refers to the Mitsubishi Electric FA electronic book manuals that can be browsed using a dedicated
tool.
e-Manual has the following features:
Required information can be cross-searched in multiple manuals.
Other manuals can be accessed from the links in the manual.
The hardware specifications of each part can be found from the product figures.
Pages that users often browse can be bookmarked.
Sample programs can be copied to an engineering tool.
Manual name [manual number] Description Available form
MELSEC iQ-R Programming Manual (Motion Control Function
Blocks)
[IB-0300533ENG] (This manual)
Motion control function blocks, variables, and programming Print book
e-Manual
PDF
MELSEC iQ-R Motion Module User’s Manual (Startup)
[IB-0300406ENG]
Specifications, procedures before operation, system
configuration, and wiring of the Motion module
Print book
e-Manual
PDF
MELSEC iQ-R Motion Module User’s Manual (Application)
[IB-0300411ENG]
Functions, I/O signals, variables, labels, programming, and
troubleshooting of the Motion module
Print book
e-Manual
PDF
MELSEC iQ-R Motion Module User’s Manual (Network)
[IB-0300426ENG]
Functions, parameter settings, troubleshooting, and buffer
memory of CC-Link IE TSN
Print book
e-Manual
PDF
MELSEC iQ-R Programming Manual (Motion Module Instructions,
Standard Functions/Function Blocks)
[IB-0300431ENG]
Instructions for the Motion module and standard functions/
function blocks
Print book
e-Manual
PDF
Motion Module Quick Start Guide
[L03191ENG]
Describes system startup, parameter settings, and programming
methods for first-time users of the Motion module
e-Manual
PDF
MELSEC iQ-R Programming Manual (Program Design)
[SH-081265ENG]
Program specifications (ladder, ST, FBD/LD, and SFC programs) e-Manual
PDF
GX Works3 Operating Manual
[SH-081215ENG]
System configuration, parameter settings, and online operations
of GX Works3
e-Manual
PDF
5
TERMS
Unless otherwise specified, the terms shown below have the following meanings when they appear in this manual.
Term Description
Aborting, Buffered, Blending Various modes of the buffer mode
Actual position An address obtained by rounding the position address returned by a slave device by a ring buffer. It is affected by a
current position change.
Actual velocity A value obtained by converting the actual value from the slave device on the real axis into the technical units of the axis
Axes group variable An AXES_GROUP type variable instance including parameters and data related to the axis
Axis variable An AXIS_*type variable instance including parameters and data related to the axis
Axis A target to carry out the Motion control
Buffering When a Motion control FB enters the standby status in multiple start
Buffering FB A Motion control FB that is performed in multiple start and waits for execution (Busy is TRUE)
Buffer memory A memory in an intelligent function module, where data (such as setting values and monitoring values) are stored
Buffer mode Another term for multiple start
Commanded position A command position address that is specified in the operation FB
Commanded velocity Set velocity that is specifed in the operation FB
Continuous update Continuously reflecting input values to the control while the ContinuousUpdate input of the Motion control FB is TRUE.
Cumulative current position A command position address that is not rounded by a ring counter. It is affected by a current position change.
Cyclic transmission A function by which data are periodically exchanged among stations on the same network using a slave label
Dedicated instruction An instruction for using functions of the module
Device Various memory data in a module. There are devices handled in each bit and in each word.
Disconnection A process of stopping data link if a data link error occurs
Execute Setting the Execute/Enable input for the Motion control FB to TRUE
Feed machine position A commanded position address that is not rounded by the ring counter. It is based on the home position, and it is not
affected by a current position change.
Global label A label that is enabled for all program data when creating multiple program data in the project. The global label in the
Motion system can be made public as the module label (global label) in the control CPU module.
GX Works3 The product name of the software package for the MELSEC programmable controllers
Hardware reboot Turning ON the power of the system again or resetting
Input variable An input argument of FB
Intelligent function module A module that has functions other than input and output, such as an A/D converter module and D/A converter module
Jerk Chronological change ratio of the acceleration or the deceleration
Label A variable used for a program.
Link device A device in a module on CC-Link IE
Link refresh Automatic data transfer between a link device of the Motion module and a device in a CPU module
Management FB A Motion control FB that takes an axis or an axes group for the argument and does not change the axis status or the
axes status by execution
Module label A label that represents one of the memory areas (I/O signals and buffer memory areas) specific to each module in a
given character string. GX Works automatically generates this label, which can be used as a global label in the CPU
module.
Motion area Software that performs the Motion control in the Motion module
Motion control station A station that updates a link device in the Motion module
Motion control FB An FB that is related to the Motion control. Its name starts with MC_ or MCv_.
Motion module Another term for the RD78G(H)
Motion synchronization station A station that performs the synchronous communication among Motion control stations
MR-J5-G MR-J5-_G_(-RJ) servo amplifier
MR-J5W-G MR-J5W_-_G servo amplifier
MR Configurator2 The product name of servo setup software
Multiple axes interpolation control Control in which multiple axes work such as linear interpolation and circular interpolation. Axes to be cooperated by an
axes group are specified.
Multiple start Executing another Motion control FB to the same axis while a Motion control FB is executed
Network area Software that performs the network control in the Motion module
Next FB A Motion control FB that is multiple started while an axis or an axes group are operated
Object Various data of a slave device compatible with CANopen
6
Operation FB A Motion control FB that takes an axis or an axes group for the argument and changes the axis status or the axes status
by execution
Output variable An output argument of FB
Previous FB The Motion control FB previous to the buffering FB (If only one FB is performing buffering, it indicates the FB being
executed)
RD78G Another term for the MELSEC iQ-R series Motion module (compatible with CC-Link IE TSN)
RD78GH
Real axis An axis that is linked with a slave axis on the network
Real drive axis An axis that is linked with a slave device which supports CC-Link IE TSN compatible with csp/csv/cst mode (sequential
command) of the CiA402 drive profile
Real encoder axis An axis that generates a commanded position from the current position of the encoder connected with a slave device. It
is used for the master axis of the single axis synchronous control.
Return A process of restarting data link when a station recovers from an error
Retrigger Starting up the Execute input again while executing an FB to a Motion control FB that has the Execute input
RWr A remote register of the link device. Word data input from a slave station to the master station (For some areas in a local
station, data are input in the opposite direction)
RWw A remote register of the link device. Word data output from the master station to a slave station (For some areas in a
local station, data are output in the opposite direction)
RX Remote input of the link device. Bit data input from a slave station to the master station (For some areas in a local station,
data are input in the opposite direction)
RY Remote output of the link device. Bit data output from the master station to a slave station (For some areas in a local
station, data are output in the opposite direction)
Safety communications A function to exchange safety data between safety stations on the same network
Set position A commanded position address rounded by the ring counter. It is affected by a current position change.
Set velocity A current control value that is generated by Motion operation.
Single axis synchronization A control to output the position information (command) of Slave (slave axis) 1-axis that is synchronized with Master
(master axis)
Software reboot Resetting only Motion area and network area with a hardware reboot
Standard FB A Motion control FB that does not take an axis or an axes group for the argument
Standard station A station other than a Motion syncronization station
Start Executing an operation FB for the first time to an axis or an axes group
Switching speed The set velocity of the Motion control FB in execution when specifying Aborting
The set velocity when the Motion control FB in execution reached the target position when specifying Blending
System basic cycle A basic cycle of fixed cycle processing such as Motion operation processing
System start Carrying out an initialization processing of the Motion Module by power ON or a reboot of the system
Target position A commanded position address that is specified in the operation FB
Transient transmission A function that communicates data unperiodically among nodes (stations) on the network.
A function used to send messages to the target station when requested by a link dedicated instruction or the engineering
tool.
Communication is available with stations on another network via relay station or gateway.
Virtual axis An axis that is not linked with a slave device on the network
Virtual encoder axis An axis that generates command position from a variable. It is used for the master axis of the single axis synchronous
control.
Virtual drive axis A virtual axis that can generate a command virtually
Virtual link axis An axis that connects FBs and transmits a command in the single axis synchronous control
Term Description
7
GENERIC TERMS AND ABBREVIATIONS
Unless otherwise specified, the generic terms and abbreviations shown below have the following meanings when they appear
in this manual.
Term Description
CC-Link IE A generic term for the following.
CC-Link IE TSN
CC-Link IE Controller Network (MELSEC iQ-R CC-Link IE Controller Network User’s Manual (Application))
CC-Link IE Field Network (MELSEC iQ-R CC-Link IE Field Network User’s Manual (Application))
CPU module The abbreviation for the MELSEC iQ-R series CPU module
csp The abbreviation for cyclic synchronous position mode (One of the control modes for the driver side)
cst The abbreviation for cyclic synchronous torque mode (One of the control modes for the driver side)
csv The abbreviation for cyclic synchronous velocity mode (One of the control modes for the driver side)
ct The abbreviation for continuous operation to torque control mode (One of the control modes for the driver side)
GOT A generic term for Mitsubishi Electric Graphic Operation Terminal GOT1000 and GOT2000 series
hm The abbreviation for homing mode (One of the control modes for the driver side)
MCFB The abbreviation for the Motion Control FB
MR-J5(W)-G A generic term for MR-J5-_G_(-RJ)/MR-J5W_-_G servo amplifier
PDO A communication object of CANopen (Process Data Object)
RAS The abbreviation for Reliability, Availability, and Serviceability. This term refers to usability of automated equipment.
RD78G(H) A generic term for RD78G_, RD78GH_ (high performance version)
SDO A communication object of CANopen (Service Data Object)
SLMP A generic term for SeamLess Message Protocol. This protocol is used to access an SLMP-compatible device from an
external device (such as a personal computer or HMI (Human Machine Interface)) or an SLMP-compatible module (such
as the Ethernet-equipped module or modules on CCLink IE TSN).
Calculation profile A generic term for waveform data used for each control
Engineering tool A generic term for GX Works3 and MR Configurator2
Slave station A generic term for a local station and remote station on CC-Link IE TSN
Software A generic term for a firmware which configures the Motion system. It consists of add-ons, baseSystem software, and
boot software.
Data link Cyclic transmission and transient transmission
Drive unit A generic term for motor drive devices such as a servo amplifier
Motion system A generic term for software that performs the motion control and the network control
Reboot A generic term for hardware reboot and software reboot
8
1 MOTION CONTROL FB OVERVIEW
1.1 Motion Control FBs
1 MOTION CONTROL FB OVERVIEW
This section describes how to use Motion control FBs and the common specifications.
The Motion control FBs that can be used in the Motion system include FBs established by PLCopen
. The basic
specifications of I/O signals follow the PLCopen
Motion control FBs.
1.1 Motion Control FBs
This section describes the Motion control FBs.
How to use Motion control FBs
The procedure for using Motion control FBs is described below.
1. Create the Motion control FB instance (global label or local label) using the engineering tool.
2. Create a program which sets the I/O argument for the Motion control FB instance.
3. The control will be executed when Execute command (Execute) or Enable (Enable) of the Motion control FB is set to
TRUE.
When one Motion control FB instance is being executed (including during buffering), the instance cannot be
executed on multiple axes by changing the axis input (AXIS_REF input or AXES_GROUP_REF input). The
axis input of the Motion control FB can only be changed when an instance is not being executed. When the
axis input is changed while an instance is being executed, a warning will occur and the change will be ignored.
Therefore, ensure that the number of Motion control FB instances created is equal to the number of axes
being controlled at the same time.
Operation of this function for each system status
Motion control FBs can only be executed during RUN.
: Possible, : Not possible
System status Operation availability
STOP
RUN
Moderate error
Major error
1 MOTION CONTROL FB OVERVIEW
1.1 Motion Control FBs
9
1
Motion control FB types
Motion control FBs are classified according the operation details and the execution method.
Management FBs/Operation FBs/Standard FBs
Motion control FBs are classified into the following types according to the operation details.
Execute command (Execute) type/Enable (Enable) type
Some Motion control FBs are executed with Execute command (Execute), while others are executed with Enable (Enable).
Type Operation details
Management FB A Motion control FB that takes an axis or an axes group for the argument and does not change the axis status or the
axes group status by execution. (There are some exceptions.)
In most cases, a management FB can execute multiple instances to an axis or an axes group at the same time.
Operation FB A Motion control FB that takes an axis or an axes group for the argument and changes the axis status or the axes group
status by execution.
In most cases, an operation FB can be executed to only one axis or axes group. However, some FBs can be executed
at the same time.
In most cases, the axis status or the axes group status will not be changed even if an management FB is executed while
an operation FB is being executed. However, some FBs can cause a specific state transition.
Standard FB A Motion control FB that does not take an axis or axes group for the argument.
A standard FB can execute multiple instances at the same time. Since it is not related to the axis, it does not affect
either operation FBs or management FBs.
Type Execute command (Execute) type Enable (Enable) type Other types
Management FB MC_GroupEnable (Axes Group Enabled)
MC_GroupDisable (Axes Group Disabled)
MC_SetPosition (Current Position Change)
MCv_SetTorqueLimit (Torque Limit Value)
MC_WriteParameter (Parameter Write)
MC_Reset (Axis Error Reset)
MC_GroupReset (Axes Group Error Reset)
MC_TouchProbe (Touch Probe Enabled)
MC_AbortTrigger (Touch Probe Disabled)
MC_CamTableSelect (Cam Table Selection)
MCv_ChangeCycle (Current Value Change per
Cycle)
MCv_MotionErrorReset (Motion Error Reset)
MC_Power (Operation Available)
MC_SetOverride (Override Value Setting)
MC_ReadParameter (Parameter Read)
MCv_AllPower (All Axes Operation Available)
MC_GroupSetOverride (Axes Group Override
Value Setting)
Operation FB MC_Home (OPR)
MC_Stop (Forced Stop)
MC_GroupStop (Group Forced Stop)
MC_MoveAbsolute (Absolute Value Positioning)
MC_MoveRelative (Relative Value Positioning)
MC_MoveVelocity (Speed Control)
MC_TorqueControl (Torque Control)
MCv_SpeedControl (Speed Control (Including
Position Loop))
MCv_MoveLinearInterpolateAbsolute (Absolute
Value Linear Interpolation Control)
MCv_MoveLinearInterpolateRelative (Relative
Value Linear Interpolation Control)
MCv_MoveCircularInterpolateAbsolute (Absolute
Value Circular Interpolation Control)
MCv_MoveCircularInterpolateRelative (Relative
Value Circular Interpolation Control)
MC_CamIn (Cam Operation Start)
MC_GearIn (Gear Operation Start)
MC_CombineAxes (Addition/Subtraction
Positioning)
MCv_BacklashCompensationFilter (Backlash
Compensation)
MCv_SmoothingFilter (Smoothing Filter)
MCv_DirectionFilter (Moving Direction Restriction
Filter)
MCv_SpeedLimitFilter (Speed Limit Filter)
MCv_Jog (JOG)
Standard FB MCv_ReadProfileData (Profile Read)
MCv_WriteProfileData (Profile Write)

10
1 MOTION CONTROL FB OVERVIEW
1.1 Motion Control FBs
The basic operation of each Motion control FB by Execute command (Execute command) and Enable (Enable) is shown
below. Note that some Motion control FBs have different specifications.
Basic operation of Execute command (Execute) type Motion control FBs
Execute command (Execute) type FBs read the input parameters at the rising edge of Execute command (Execute) and
then start operation. Once operation is started, the operation will be continued until it is completed even if Execute
command (Execute) is set to FALSE.
When operation is started, only one output variable among Executing (Busy), Execution completion (Done), Error (Error),
and Abortion of execution (CommandAborted) becomes TRUE.
Execution completion (Done), Error (Error), Error code (ErrorID), and Abortion of execution (CommandAborted) are reset at
the falling edge of Execute command (Execute). Executing (Busy) and Controlling (Active) are not affected.
When changing the input parameter during operation, the change is reflected at restart (retrigger) of Execute command
(Execute) or by continuous update using Continuous update (ContinuousUpdate).
Analyzing (AxisName
.Md.Analyzing/AxesGroupName.Md.Analyzing) becomes TRUE from the rising edge of Executing
(Busy), and Analyzing (AxisName.Md.Analyzing/AxesGroupName.Md.Analyzing) becomes FALSE after starting the
operation.
When Execute command (Execute) is used in pulse, Execution completion (Done) becomes TRUE for one cycle only.
The timing chart for Execute command (Execute) type Motion control FBs is shown below.
When the FB is normal
Error
ErrorID
CommandAborted
Active
Busy
AxisName.Md.Analyzing
(AxesGroupName.Md.Analyzing)
Done
Execute
0
Position
Start at rising edge
Becomes TRUE for one cycle only when
Execute command (Execute) is FALSE
1 MOTION CONTROL FB OVERVIEW
1.1 Motion Control FBs
11
1
When the I/O variables are abnormal
When the input variables are abnormal
*1 The following operation is carried out when the termination condtion of the FB (Execute command (Execute) is FALSE) is met.
For FBs not related to the axis or FBs which do not stop with decelerating, Error (Error) becomes TRUE for one cycle only and Error code (ErrorID) is
output.
For FBs that need to perform a deceleration stop, Error (Error) becomes TRUE until the stop with decelerating and Error code (ErrorID) is maintained. At
stop completion of the axis, Error (Error) becomes FALSE and Error code (Error ID) is cleared.
Error
ErrorID
CommandAborted
Active
Busy
Done
Execute
00
Position
AxisName.Md.Analyzing
(AxesGroupName.Md.Analyzing)
Error code
Remove the cause of the error and restart
Cleared at falling edge of Execute command (Execute)
Error
ErrorID
CommandAborted
Active
Busy
AxisName.Md.Analyzing
(AxesGroupName.Md.Analyzing)
Done
Execute
000
Remove the cause of the error and restart
Set to FALSE before error occurs
Error code
Output for one cycle only
*1
12
1 MOTION CONTROL FB OVERVIEW
1.1 Motion Control FBs
Basic operation of Enable (Enable) type Motion control FBs
Enable (Enable) type Motion control FBs are continuously executed while Enable (Enable) is TRUE.
Output value valid (Valid) indicates that the output is a valid value. After Output value valid (Valid) becomes FALSE, each
output does not change.
Only one output variable among Output value valid (Valid)/Enabled (Enabled)/Executing (Busy), Error (Error), and Abortion
of execution (CommandAborted) becomes TRUE.
Analyzing (AxisName
.Md.Analyzing/AxesGroupName.Md.Analyzing) becomes TRUE from the rising edge of Executing
(Busy), and Analyzing (AxisName.Md.Analyzing/AxesGroupName.Md.Analyzing) becomes FALSE after starting the
operation.
The timing chart for Enable (Enable) type Motion control FBs is shown below.
When the FB is normal
When the I/O variables are abnormal
When the input variables are abnormal
Error
ErrorID
Valid
Busy
Enable
0
AxisName.Md.Analyzing
(AxesGroupName.Md.Analyzing)
Start at rising edge
Error
ErrorID
Valid
Busy
Enable
00
AxisName.Md.Analyzing
(AxesGroupName.Md.Analyzing)
Error code
Remove the cause of the error and restart
Cleared at the falling edge of Enable (Enable)
Start at rising edge
Error
ErrorID
Valid
Busy
Enable
00
AxisName.Md.Analyzing
(AxesGroupName.Md.Analyzing)
Error code
Remove the cause of the error and restart
Cleared at the falling edge of Enable (Enable)
Start at rising edge
1 MOTION CONTROL FB OVERVIEW
1.1 Motion Control FBs
13
1
Motion control types
The following types of axis and axes group control can be executed by operation type Motion control FBs.
Error processing
If an error occurs while the Motion control FB is executed, Error (Error) becomes TRUE and the error code is output to Error
code (ErrorID). If using an axis, Axis status (AxisName
.Md.AxisStatus) transits to "1: Stopping on error (ErrorStop)" at this
time. If using an axes group, Axes group status (AxesGroupName
.Md.GroupStatus) transits to "1: Stopping on error
(GroupErrorStop)" at this time.
When the axis status of an available axis transits to the "1: Stopping on error (ErrorStop)" status, all buffering FBs are aborted.
Error (Error) of the aborted FBs becomes TRUE.
After that, an error reset needs to be executed to start the axis or axes group.
For how to check errors of the axis or axes group and how to reset the error, refer to the following.
MELSEC iQ-R Motion Module User’s Manual (Application)
One of the following values is output to Error code (ErrorID). (The value output depends on the control.) Note
that warning codes are not output.
Axis error code (AxisName
.Md.ErrorID)
Axes group error code (AxesGroupName
.Md.ErrorID)
Latest Motion system error code (System.Md.ErrorID)
Units used in control
Units for the position, velocity, acceleration/deceleration, and jerk that are used in the Motion system follow the technical units
of the axis to be used.
The following types exist for the control values, such as the position and the velocity, that are used in the Motion system.
For details of the axis technical units and control values related to the position and the velocity, refer to the following.
MELSEC iQ-R Motion Module User’s Manual (Application)
Large
classification
Middle
classification
Small
classification
Description
Axis control Single axis control Postioning control Control in which Axis status (AxisName.Md.AxisStatus) is set to "5: During positioning
operation (DiscreteMotion)" and the axis is moved to the target position.
Continuous control Control in which Axis status (AxisName
.Md.AxisStatus) is set to "6: During continuous
operation (ContinuousMotion)" and continuous control is performed for the axis.
Synchronous
control
Control which has Master axis (Master) and Slave axis (Slave) as I/O variables and
performs synchronous control for the axis with the Axis status (AxisName
.Md.AxisStatus)
of Slave axis (Slave) set to "7: During synchronous operation (SynchronizedMotion)".
Homing control Control in which Axis status (AxisName
.Md.AxisStatus) is set to "3: During home position
return (Homing)" and continuous control is performed for the axis.
Axes group control Multiple axes
control
Positioning control Control in which Axes group status (AxisGroupName
.Md.GroupStatus) is set to "5:
Operating (GroupMoving)" and the axis is moved to the target position.
Type Description
Commanded value A value (target value) based on an input to the Motion control FB.
(Commanded position and commanded velocity, etc.)
Set value The current control value that is generated by Motion operation.
(Set position and set velocity, etc.)
Actual value A value obtained by converting the actual value received from the slave device by the real axis into the technical unit
of the axis.
(Actual position and actual velocity, etc.)
14
1 MOTION CONTROL FB OVERVIEW
1.1 Motion Control FBs
I/O variables used in Motion control FBs
This section describes the I/O variables used in Motion control FBs.
For Motion control FBs, the I/O variables, input variables, and output variables must be defined.
I/O variables
Variables such as Axis information (Axis) and Axes group info (AxesGroup) that set the axis and axes group of the driver to be
controlled.
Produce and initialize the axis and axes groups using the Axis setting (Page 430 Axis) and Axes group setting (Page
440 Axes group) in the engineering tool.
The set axis and set axes group are assigned as an axis variable or an axes group variable in the global label data.
For details of the axis and axes groups, refer to the following.
MELSEC iQ-R Motion Module User’s Manual (Application)
Input variables
These variables set operation conditions such as the target position and the commanded velocity.
Output variables
These variables output the FB status, driver status, whether there is an error, etc.
Classes
The following shows the classes of the I/O variables, input variables, and output variables.
Data types
Variables are classified into different types based on their bit length, processing method, value range, etc.
For details of data types, refer to the following.
Page 20 Data types
[About variable arrays]
Arrays must be set for certain variables.
Arrays are expressed after the data type with an element enclosed in "[ ]" marks.
When setting a label, set the range of the element shown within the "[ ]" marks. An error will occur during
conversion of the program if the range set does not match the range of the element.
Arrays are set in "Data Type Selection" inside the global label or local label area of the engineering tool. For
details, refer to the following.
Page 443 Registering labels
<Example>
For data type "LREAL[0..15]"
Set [16] as the element.
Variable Class
I/O variable VAR_IN_OUT
Input variable VAR_INPUT
Output variable VAR_OUTPUT
1 MOTION CONTROL FB OVERVIEW
1.1 Motion Control FBs
15
1
Omission of input arguments
When omitting FB inputs, the default value that is defined for each FB is applied. For details of the default values, refer to the
section for the Motion control FB to be used.
When omitting the input for the velocity, etc. in the multiple start FB, the input value of the previous FB is carried over.
Refresh timing of inputs/outputs
Each argument of the FB is refreshed at the call timing of the FB. To control the input/output of the FB synchronizing with the
operation cycle, call the FB from a fixed cycle program whose cycle is the same as the operation cycle.
Specification of I/O No.
When using a Motion control FB on the CPU module side, the I/O No. of the target Motion module must be set in the I/O
variables that are used in the Motion control FB (example: I/O No. (AxisName
.AxisRef.StartIO)).
When setting the I/O No. on the CPU module side, AXIS_REF of the axis variables or axes group variables
(AxisName
.AxisRef for axis variables and AxesGroupName.AxesGroupRef for axes group variables) that were made public
are used as Motion module labels.
The members (Axis No. (AxisNo), Axes group No. (GroupNo), I/O No. (StartIO)) in AXIS_REF of the axis variables and axes
group variables already have the I/O No. specified, so the I/O No. can be set without designation by just setting the axis label.
When setting the I/O No., using the Axis information (AxisName
.AxisRef) label to perform the setting is recommended. In
addition, any Axis information (AxisName
.AxisRef) label can be set if the label is made public as a Motion module label.
Ex.
When the label for Axis 1 (Axis0001) of the Motion module (I/O No: 0010) is used and MCv_AllPower (All Axes Operation
Available) is executed from the CPU module side
*1 When using a label that was made public on the CPU module side, set the label with "Module name + Start I/O No." input at the start of
the label.
*2 Information for the following members is included in the Axis information (AxisName
.AxisRef) label.
*3 The start I/O number is the first 3 digits when expressed in 4-digit hexadecimal.
When using Motion control FBs on the Motion module side, the I/O No. does not need to be set in the I/O variable (example:
I/O No. (AxisName.AxisRef.StartIO)). (It is ignored if set.)
Name Setting value Label name
Axis No. 1 Axis0001.AxisRef.AxisNo
Start I/O No. H001
*3
Axis0001.AxisRef.StartIO
MCv_AllPower
Axis :DUTDUT: Axis
B: Enable
B: ServoON
Busy :B
Error :B
ErrorID :UW
PowerON
AIIServoON
RD78_0010.Axis0001.AxisRef
*1
RD78_0010.Axis0001.AxisRef
Axis information label
*2
I/O No.
Module name
16
1 MOTION CONTROL FB OVERVIEW
1.1 Motion Control FBs
Precautions
I/O arguments of the Motion control FB are refreshed at the call timing of the FB, but the cycle that the control is actually
executed in differs depending on the FB. For example, operation FBs perform the control at the operation cycle regardless
of the FB call task (normal/fixed cycle). For details, refer to the section for the FB to be used.
The FB imports input values when Execution command (Execute) or Enable (Enable) is set to TRUE. Therefore, set input
values before setting Execution command (Execute) and Enable (Enable) to TRUE. In addition, when changing multiple
input arguments by a retrigger/continuous update of the FB, change them by the same task as the FB call task to match the
import timing of each argument.
When changing Execution command (Execute) to FALSE after it has been set to TRUE, wait until after Executing (Busy)
has changed to the TRUE status before setting Execution command (Execute) to FALSE.
The Motion control function uses real number data (floating-point data) for the axis current position and the command target
position, etc. Therefore, it may include a truncation error. For example, when repeatedly executing positioning in relative
position specification, such as with MC_MoveRelative (Relative Value Positioning), the truncation error may cumulate
between the set position and the specified movement value. If the truncation error is a problem, execute positioning in
absolute position specification, such as with MC_MoveAbsolute (Absolute Value Positioning). In addition, the truncation
error that occurs in the real number data processing within the function can be suppressed by setting real number type
parameters related to the Motion control function so that there is no number after the decimal point.
For details of the real number data (floating-point data) used in Motion control FBs, refer to the following.
MELSEC iQ-R Programming Manual (Motion Module Instructions, Standard Functions/Function Blocks)
Ex.
When using Setting A
In the following example, if the truncation error is a problem when using Setting A, Setting B becomes a change candidate.
Setting item Setting detail
Setting A Setting B
Position command unit [mm] [m]
Ring counter upper limit value 100.3[mm] 100300[m]
Ring counter lower limit value -100.7[mm] -100700[m]
The minimum scale of the target position/movement
amount specified by FB input
0.05[mm] 50[m]
1 MOTION CONTROL FB OVERVIEW
1.2 Motion Control FB Configuration
17
1
1.2 Motion Control FB Configuration
This section describes how to create a program using Motion control FBs.
The programming languages that can be used to create a program using Motion control FBs on the CPU module side or
Motion module side are shown below.
: Can be created, : Cannot be created
To use labels registered to the Motion module when creating a program on the CPU module side, said labels
must be made public to the CPU module by using the public label function. For details, refer to the following.
Page 444 Creation procedure for programs using the public label function
Ladder
In the ladder language, the Motion control FB is arranged as follows.
Ex.
If MC_Power (Operation Available)
Programming language CPU module side Motion module side
Ladder 
Function block diagram/ladder (FBD/LD) 
Structured text (ST) 
Name Description
Instance name The instance name assigned to each FB.
The instance name can be changed.
I/O variable These variables set axis variable names such as Axis information (Axis) and Axes group information (AxesGroup), or
those for the driver to be controlled.
Input variable These variables set operation conditions such as the target position and the commanded velocity.
The setting of these variables can be omitted. When omitted, the default value is used.
Output variable These variables output the FB status and driver status.
Data type Displays the data type of I/O variables, input variables, and output variables.
For details of the data type of I/O variables, input variables, and output variables, refer to the following.
Page 20 Data types
Axis : DUTDUT : Axis
Status : BB : Enable
ReadyStatus : BB : ServoON
Busy : B
Error : B
ErrorID : UW
MC_Power_1 (MC_Power)
Operation Available
I/O variable
Data typeData type
PowerON
Axis1_ServoON
RD78_0000.Axis0001.AxisRef
Axis1_ErrorID
Axis1_Error
Axis1_Status
Omitted
Omitted
Input variable
Instance name
Output variable
Can be omitted.
18
1 MOTION CONTROL FB OVERVIEW
1.2 Motion Control FB Configuration
FBD/LD (Function block diagram/ladder)
In the FBD/LD language, the Motion control FB is arranged as follows.
Ex.
If MC_Power (Operation Available)
ST (Structured text)
In the ST language, the Motion control FB is arranged as follows.
Ex.
If MC_Power (Operation Available)
Name Description
Instance name The instance name assigned to each FB.
The instance name can be changed.
I/O variable These variables set axis variable names such as Axis information (Axis) and Axes group information (AxesGroup), or
those for the driver to be controlled.
Input variable These variables set operation conditions such as the target position and the commanded velocity.
The setting of these variables can be omitted. When omitted, the default value is used.
Output variable These variables output the FB status and driver status.
Name Description
Instance name The instance name assigned to each FB.
The instance name can be changed.
I/O variable These variables set axis variable names such as Axis information (Axis) and Axes group information (AxesGroup), or
those for the driver to be controlled.
Input variable These variables set operation conditions such as the target position and the commanded velocity.
The setting of these variables can be omitted. When omitted, the default value is used.
Output variable These variables output the FB status and driver status.
MC_Power
Axis
MC_Power_1
StatusEnable
ReadyStatusServoON
Busy
Error
ErrorID
Input variable Output variable
Instance name
PowerON
Axis1_Status
Omitted
Omitted
Axis1_Error
Axis1_ErrorID
I/O variable
RD78_0000.Axis0001.AxisRef
Axis1_ServoON
Can be omitted.
Instance name
MC_Power_1(
Axis:= Axis0001.AxisRef ,
Enable:= PowerON ,
ServoON:= Axis1_ServoON ,
Status=> Axis1_Status ,
ReadyStatus=>
Busy=>
Error=> Axis1_Error ,
ErrorID=> Axis1_ErrorID
);
I/O variable
Input variable
Output variable
Unused lines can be omitted.
Omitted
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146
  • Page 147 147
  • Page 148 148
  • Page 149 149
  • Page 150 150
  • Page 151 151
  • Page 152 152
  • Page 153 153
  • Page 154 154
  • Page 155 155
  • Page 156 156
  • Page 157 157
  • Page 158 158
  • Page 159 159
  • Page 160 160
  • Page 161 161
  • Page 162 162
  • Page 163 163
  • Page 164 164
  • Page 165 165
  • Page 166 166
  • Page 167 167
  • Page 168 168
  • Page 169 169
  • Page 170 170
  • Page 171 171
  • Page 172 172
  • Page 173 173
  • Page 174 174
  • Page 175 175
  • Page 176 176
  • Page 177 177
  • Page 178 178
  • Page 179 179
  • Page 180 180
  • Page 181 181
  • Page 182 182
  • Page 183 183
  • Page 184 184
  • Page 185 185
  • Page 186 186
  • Page 187 187
  • Page 188 188
  • Page 189 189
  • Page 190 190
  • Page 191 191
  • Page 192 192
  • Page 193 193
  • Page 194 194
  • Page 195 195
  • Page 196 196
  • Page 197 197
  • Page 198 198
  • Page 199 199
  • Page 200 200
  • Page 201 201
  • Page 202 202
  • Page 203 203
  • Page 204 204
  • Page 205 205
  • Page 206 206
  • Page 207 207
  • Page 208 208
  • Page 209 209
  • Page 210 210
  • Page 211 211
  • Page 212 212
  • Page 213 213
  • Page 214 214
  • Page 215 215
  • Page 216 216
  • Page 217 217
  • Page 218 218
  • Page 219 219
  • Page 220 220
  • Page 221 221
  • Page 222 222
  • Page 223 223
  • Page 224 224
  • Page 225 225
  • Page 226 226
  • Page 227 227
  • Page 228 228
  • Page 229 229
  • Page 230 230
  • Page 231 231
  • Page 232 232
  • Page 233 233
  • Page 234 234
  • Page 235 235
  • Page 236 236
  • Page 237 237
  • Page 238 238
  • Page 239 239
  • Page 240 240
  • Page 241 241
  • Page 242 242
  • Page 243 243
  • Page 244 244
  • Page 245 245
  • Page 246 246
  • Page 247 247
  • Page 248 248
  • Page 249 249
  • Page 250 250
  • Page 251 251
  • Page 252 252
  • Page 253 253
  • Page 254 254
  • Page 255 255
  • Page 256 256
  • Page 257 257
  • Page 258 258
  • Page 259 259
  • Page 260 260
  • Page 261 261
  • Page 262 262
  • Page 263 263
  • Page 264 264
  • Page 265 265
  • Page 266 266
  • Page 267 267
  • Page 268 268
  • Page 269 269
  • Page 270 270
  • Page 271 271
  • Page 272 272
  • Page 273 273
  • Page 274 274
  • Page 275 275
  • Page 276 276
  • Page 277 277
  • Page 278 278
  • Page 279 279
  • Page 280 280
  • Page 281 281
  • Page 282 282
  • Page 283 283
  • Page 284 284
  • Page 285 285
  • Page 286 286
  • Page 287 287
  • Page 288 288
  • Page 289 289
  • Page 290 290
  • Page 291 291
  • Page 292 292
  • Page 293 293
  • Page 294 294
  • Page 295 295
  • Page 296 296
  • Page 297 297
  • Page 298 298
  • Page 299 299
  • Page 300 300
  • Page 301 301
  • Page 302 302
  • Page 303 303
  • Page 304 304
  • Page 305 305
  • Page 306 306
  • Page 307 307
  • Page 308 308
  • Page 309 309
  • Page 310 310
  • Page 311 311
  • Page 312 312
  • Page 313 313
  • Page 314 314
  • Page 315 315
  • Page 316 316
  • Page 317 317
  • Page 318 318
  • Page 319 319
  • Page 320 320
  • Page 321 321
  • Page 322 322
  • Page 323 323
  • Page 324 324
  • Page 325 325
  • Page 326 326
  • Page 327 327
  • Page 328 328
  • Page 329 329
  • Page 330 330
  • Page 331 331
  • Page 332 332
  • Page 333 333
  • Page 334 334
  • Page 335 335
  • Page 336 336
  • Page 337 337
  • Page 338 338
  • Page 339 339
  • Page 340 340
  • Page 341 341
  • Page 342 342
  • Page 343 343
  • Page 344 344
  • Page 345 345
  • Page 346 346
  • Page 347 347
  • Page 348 348
  • Page 349 349
  • Page 350 350
  • Page 351 351
  • Page 352 352
  • Page 353 353
  • Page 354 354
  • Page 355 355
  • Page 356 356
  • Page 357 357
  • Page 358 358
  • Page 359 359
  • Page 360 360
  • Page 361 361
  • Page 362 362
  • Page 363 363
  • Page 364 364
  • Page 365 365
  • Page 366 366
  • Page 367 367
  • Page 368 368
  • Page 369 369
  • Page 370 370
  • Page 371 371
  • Page 372 372
  • Page 373 373
  • Page 374 374
  • Page 375 375
  • Page 376 376
  • Page 377 377
  • Page 378 378
  • Page 379 379
  • Page 380 380
  • Page 381 381
  • Page 382 382
  • Page 383 383
  • Page 384 384
  • Page 385 385
  • Page 386 386
  • Page 387 387
  • Page 388 388
  • Page 389 389
  • Page 390 390
  • Page 391 391
  • Page 392 392
  • Page 393 393
  • Page 394 394
  • Page 395 395
  • Page 396 396
  • Page 397 397
  • Page 398 398
  • Page 399 399
  • Page 400 400
  • Page 401 401
  • Page 402 402
  • Page 403 403
  • Page 404 404
  • Page 405 405
  • Page 406 406
  • Page 407 407
  • Page 408 408
  • Page 409 409
  • Page 410 410
  • Page 411 411
  • Page 412 412
  • Page 413 413
  • Page 414 414
  • Page 415 415
  • Page 416 416
  • Page 417 417
  • Page 418 418
  • Page 419 419
  • Page 420 420
  • Page 421 421
  • Page 422 422
  • Page 423 423
  • Page 424 424
  • Page 425 425
  • Page 426 426
  • Page 427 427
  • Page 428 428
  • Page 429 429
  • Page 430 430
  • Page 431 431
  • Page 432 432
  • Page 433 433
  • Page 434 434
  • Page 435 435
  • Page 436 436
  • Page 437 437
  • Page 438 438
  • Page 439 439
  • Page 440 440
  • Page 441 441
  • Page 442 442
  • Page 443 443
  • Page 444 444
  • Page 445 445
  • Page 446 446
  • Page 447 447
  • Page 448 448
  • Page 449 449
  • Page 450 450
  • Page 451 451
  • Page 452 452
  • Page 453 453
  • Page 454 454
  • Page 455 455
  • Page 456 456
  • Page 457 457
  • Page 458 458
  • Page 459 459
  • Page 460 460
  • Page 461 461
  • Page 462 462
  • Page 463 463
  • Page 464 464
  • Page 465 465
  • Page 466 466
  • Page 467 467
  • Page 468 468
  • Page 469 469
  • Page 470 470
  • Page 471 471
  • Page 472 472
  • Page 473 473
  • Page 474 474
  • Page 475 475
  • Page 476 476
  • Page 477 477
  • Page 478 478
  • Page 479 479
  • Page 480 480
  • Page 481 481
  • Page 482 482
  • Page 483 483
  • Page 484 484
  • Page 485 485
  • Page 486 486
  • Page 487 487
  • Page 488 488
  • Page 489 489
  • Page 490 490
  • Page 491 491
  • Page 492 492
  • Page 493 493
  • Page 494 494
  • Page 495 495
  • Page 496 496
  • Page 497 497
  • Page 498 498
  • Page 499 499
  • Page 500 500
  • Page 501 501
  • Page 502 502

Mitsubishi Electric MELSEC iQ-R Motion Module Programming Manual

Type
Programming Manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI