YASKAWA MP2600iec User manual

Type
User manual
MotionWorks IEC
PLCopenPlus Function Blocks for
Motion Control - 2013-04-12
iii
Table Of Contents
Overview .................................................................................... 1
Introduction ............................................................................. 1
The State Diagram .................................................................... 3
Error Handling .......................................................................... 6
Function block interface ............................................................. 8
Data Types ................................................................................ 29
Data Types ............................................................................. 29
Data Type: AXIS_REF ............................................................... 30
Data Type: CONTINUOUS_REF .................................................. 32
Data Type: INPUT_REF ............................................................. 34
Data Type: OUTPUT_REF .......................................................... 36
Data Type: PATTERN_REF ......................................................... 38
Data Type: PrmStruct .............................................................. 39
Data Type: RTC_STRUCT .......................................................... 40
Data Type: TRIGGER_REF ......................................................... 41
Data Type: Y_DISENGAGE_DATA ............................................... 43
Data Type: Y_ENGAGE_DATA .................................................... 44
Data Type: Y_MS_CAM_STRUCT ................................................ 45
iv
Enumerated Types ...................................................................... 47
Function Block List ...................................................................... 49
Function Block List ................................................................... 49
Function Blocks for Motion Control ................................................ 61
MC_AbortTrigger ..................................................................... 61
MC_FinishHoming .................................................................... 65
MC_GearIn ............................................................................. 68
MC_GearInPos ......................................................................... 74
MC_GearOut ........................................................................... 83
MC_MoveAbsolute .................................................................... 86
MC_MoveRelative..................................................................... 92
MC_MoveSuperImposed ........................................................... 97
MC_MoveVelocity ................................................................... 109
MC_Power ............................................................................. 114
MC_ReadActualPosition ........................................................... 121
MC_ReadActualTorque ............................................................ 123
MC_ReadActualVelocity .......................................................... 126
MC_ReadAxisError ................................................................. 128
MC_ReadBoolParameter.......................................................... 132
v
MC_ReadParameter ................................................................ 135
MC_ReadStatus ..................................................................... 138
MC_Reset ............................................................................. 142
MC_SetPosition...................................................................... 146
MC_StepLimitSwitch ............................................................... 150
MC_StepRefPulse ................................................................... 155
MC_Stop ............................................................................... 160
MC_TorqueControl ................................................................. 165
MC_TouchProbe ..................................................................... 176
MC_WriteBoolParameter ......................................................... 185
MC_WriteParameter ............................................................... 188
Y_CamFileSelect .................................................................... 191
Y_CamIn .............................................................................. 197
Y_CamOut ............................................................................ 210
Y_CamScale .......................................................................... 215
Y_CamShift ........................................................................... 220
Y_CamStructSelect ................................................................ 227
Y_ClearAlarms ....................................................................... 231
Y_DirectControl ..................................................................... 233
vi
Y_HoldPosition ...................................................................... 239
Y_ProbeContinuous ................................................................ 242
Y_ReadAlarm ........................................................................ 248
Y_ReadCamTable ................................................................... 250
Y_ReadDriveParameter ........................................................... 254
Y_ReadMultipleParameters ...................................................... 258
Y_ReadStringParameter .......................................................... 261
Y_RebootController ................................................................ 264
Y_ReleaseCamTable ............................................................... 266
Y_ResetAbsoluteEncoder ......................................................... 268
Y_ResetMechatrolink .............................................................. 273
Y_SetRTC ............................................................................. 276
Y_SlaveOffset ........................................................................ 278
Y_VerifyParameters ................................................................ 285
Y_WriteCamTable .................................................................. 290
Y_WriteDriveParameter .......................................................... 293
Y_WriteParameters ................................................................ 297
Controller AlarmID List .............................................................. 301
Function Block ErrorID List ........................................................ 333
vii
Axis Parameter List ................................................................... 341
High Speed Output ................................................................... 349
Timing Diagram ........................................................................ 350
Camming ................................................................................. 353
Camming Introduction ............................................................ 353
CamState ............................................................................. 353
Cam Masters ......................................................................... 355
Master Cycle ......................................................................... 355
Camming Function Blocks ....................................................... 356
Creating a Cam Table ............................................................. 357
Externally Created Cam Data .................................................. 358
Transferring Cam Files to an MPiec Controller ............................ 359
User File Storage ................................................................... 362
Configuring FileName Input for Y_CamFileSelect ........................ 363
Internally Created Cam Data ................................................... 365
Cam Table Types ................................................................... 367
On-The-Fly Adjustments ......................................................... 368
Camming Block Diagram ......................................................... 369
Engage / Disengage Window ................................................... 370
viii
Cam Transitions Matrix ........................................................... 371
Motion Details .......................................................................... 375
Acceleration/Deceleration Limits .............................................. 375
Position Limits ....................................................................... 377
Velocity Limits ....................................................................... 379
Moving Average Filter (S-Curve) .............................................. 380
Determining When Motion is Complete ..................................... 383
External Encoder Block Diagram .............................................. 385
Commanded Position Output ................................................... 386
Command Filtering (MPiec with MECHATROLINK interface) .......... 387
Command Filtering (MP2600iec - Dual Port RAM interface) .......... 388
PLCopenPlus Function Blocks for Motion Control 2013-04-13 1
Overview
This document contains instructions for using the PLCopenPlus and
YMotion firmware library function blocks integrated in the MPiec Series
Controllers.
Introduction
This manual is adopted from the PLCopen for motion control specification
at www.plcopen.org, and includes additional information for functionality
with Yaskawa and other components.
Each function block is listed in alphabetical order, and is also linked to the
feature or function from the software environment. A comprehensive list
of axis parameters and error codes is at the back of the manual. A subset
of specific errors that each function block may generate is included under
each function block description.
The other main concepts covered in this manual are the Motion State
Diagram, and documentation concerning the Data Types supplied with the
PLCopenPlus Firmware Library.
The Firmware Library is the set of all PLCopen function blocks, plus
Yaskawa specific functions. The firmware library is called PLCopen Plus,
and is automatically loaded when a new project is created.
Model
The PLCopenPlus Function Block (FB) library is designed for the purpose of
controlling axes via the language elements consistent with those defined in
the IEC 61131-3 standard. It provides a set of command oriented function
PLCopenPlus Function Blocks for Motion Control 2013-04-13 2
blocks that have a reference to the axis, e.g. the abstract data type ‘Axis’,
which offers flexibility, ease of use and reusability.
PLCopenPlus Function Blocks for Motion Control 2013-04-13 3
The State Diagram
The state diagram shown defines the behavior of the axis at a high level
when motion control function blocks are "simultaneously" activated. This
combination of motion profiles is useful in building a more complicated
profile or to treat exceptions within a program.
The basic rule is that motion commands are always taken sequentially.
These commands act on the axis' state diagram. The axis is always in one
of the following defined states:
Standstill (no movement)
Homing (movement to reference position)
Discrete Motion (movement towards target position)
Continuous Motion (jogging)
Synchronized Motion (synchronized movement of master and slave)
Stopping (axis is stopped)
ErrorStop (axis error occurred)
Any motion command is a transition that changes the state of the axis and,
as a consequence, modifies the way the current motion is computed. A
normal procedure would start in Standstill. In this state, the power can be
switched on per axis (via the Power command). Also, one can access the
Homing state (via the issue of the Home command per axis), which after
normal completion returns to Standstill. From here, one can transfer an
axis to either Discrete Motion or Continuous Motion. Via the Stopping state,
one can return to Standstill. ErrorStop is a state to which the axis
transfers in case of an error. Via a Reset command, one can return to
Standstill, from which the machine can be moved to an operational state
again. Please note that the states define the functionality of the Function
Blocks.
PLCopenPlus Function Blocks for Motion Control 2013-04-13 4
The diagram is focused on the states of a single axis. The multiple axis
function blocks such as MC_CamIn and MC_GearIn change the state
whereas these axis can have specific states.
Connecting a slave axis to a master axis has no influence on the master
axis.
PLCopenPlus Function Blocks for Motion Control 2013-04-13 5
PLCopenPlus Function Blocks for Motion Control 2013-04-13 6
Error Handling
All access to the drive/motion control is via Function Blocks. Internally
these Function Blocks provide basic error checking on the input data.
If the device itself has an error, it can be read using the MC_ReadAxisError
block.
PLCopenPlus Function Blocks for Motion Control 2013-04-13 7
PLCopenPlus Function Blocks for Motion Control 2013-04-13 8
Function block interface
General rules
The following table provides general rules about the interface of the Motion
Control function blocks.
Rule applies to
Rule
Output exclusivity
When 'Execute' is true, the outputs ‘Busy’,
‘Done’, ‘Error’, and ‘CommandAborted’ are
mutually exclusive.
Output status
The 'Done', 'InGear', 'InSync', 'InVelocity',
'Error', 'ErrorID' and 'CommandAborted' outputs
are reset with the falling edge of
'Execute'. However, the falling edge of 'Execute'
does not stop or even influence the execution of
the actual FB. The corresponding outputs are
set for at least one cycle if the situation occurs,
even if execute was reset before the FB
completed. If an instance of a FB receives a
new 'Execute' before it finishes (as a series of
commands on the same instance), the FB won’t
return any feedback, like ‘Done’ or
‘CommandAborted’, for the previous action.
Input parameters The parameters are read at the rising edge of
the 'Execute' input. To modify any parameter, it
is necessary to change the input parameter(s)
and trigger the 'Execute' again.
Missing input
parameters
According to IEC 61131-3, if any parameter of a
function block input is missing (“open”) then the
PLCopenPlus Function Blocks for Motion Control 2013-04-13 9
value from the previous invocation of this
instance will be used. In the first invocation the
default value is applied.
Position versus
distance
'Position' is a value defined within a coordinate
system. 'Distance' is a relative measure, the
difference between two positions.
Sign rules
The 'Velocity', 'Acceleration', 'Deceleration' and
'Jerk' are always positive values. 'Position' and
'Distance' can be positive or negative.
Error Handling
Behavior
All blocks have two outputs, which deal with
errors that can occur while executing that
Function Block. These outputs are defined as
follow:
Error: Rising edge of 'Error' indicates that an
error occurred during the execution of the
Function Block.
ErrorID: Error number - see the Error Code List
at the end of the manual.
'Done', 'InVelocity', 'InGear', and 'InSync'
indicate successful completion, so these signals
are logically exclusive to “Error”.
Types of errors:
• Function Block Error (e.g. parameters out of
range, state machine violation attempted)
• Communication Error
• Amplifier/Axis Error
Instance errors do not always result in an axis
error (forcing the axis to 'StandStill'). The error
outputs of the relevant FB are reset with falling
PLCopenPlus Function Blocks for Motion Control 2013-04-13 10
edge of 'Execute'.
Behavior of Done
output
The “Done” output (as well as 'InGear',
'InSync', ..) is set when the commanded action
has been completed successfully. With multiple
Function Blocks working on the same axis in a
sequence, the following applies:
When one movement on an axis is interrupted
with another movement on the same axis
without having reached the final goal, 'Done' of
the first FB will not be set.
Behavior of
CommandAborted
output
'CommandAborted' is set when a commanded
motion is interrupted by another motion
command. The reset-behavior of
'CommandAborted' is like that of 'Done'. When
'CommandAborted' occurs, the other output-
signals such as 'InVelocity' are reset.
Inputs exceeding
application limits
If a FB is commanded with parameters which
result in a violation of application limits, the
instance of the FB generates an error. The
consequences of this error for the axis are
application specific and thus should be handled
by the application program.
Behavior of Busy
output
'Busy' output indicates that the FB is not
finished. 'Busy' is SET at the rising edge of
'Execute' and RESET when one of the outputs
'Done', 'Aborted', or 'Error' is set. It is
recommended that this FB should be kept in the
active loop of the application program for at
least as long as ‘Busy’ is true, because the
PLCopenPlus Function Blocks for Motion Control 2013-04-13 11
outputs may still change. For one axis, several
Function Blocks might be busy, but only one can
be active at a time. Exceptions are
'MC_SuperImposed' and 'MC_Phasing', where
more than one FB related to one axis can be
active.
Output ‘Active
The 'Active' output is available on Function
Blocks with buffering capabilities. This output is
set at the moment the function block takes
control of the axis. For unbuffered mode the
outputs “Active” and “Busy” can have the same
value.
Enable and Valid
Status
The 'Enable' input is coupled to a 'Valid' output.
'Enable' is level sensitive, and 'Valid' shows that
a valid set of outputs is available at the FB. The
'Valid' output is TRUE as long as a valid output
value is available and the 'Enable' input is
TRUE. The relevant output values are refreshed
while the input 'Enable' is TRUE. If there is a FB
error, the output is not valid (“Valid” set to
FALSE). When the error condition disappears,
the values will reappear and 'Valid' output will
be set again.
PLCopenPlus Function Blocks for Motion Control 2013-04-13 12
The behavior of the “Execute” / “Done” style FBs is as follows:
Why the command input is edge sensitive
The “Execute” input always triggers the function with its rising edge. New
input values may be commanded during execution of a previous command
because the inputs are only read once. The 'Done' output can be used to
trigger the next part of the movement. The example given below is
intended to explain the behavior of the Function Block execution.
  • 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

YASKAWA MP2600iec User manual

Type
User manual

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

Finding information in a document is now easier with AI