ADLINK Technology PXI-8164 User manual

Type
User manual

This manual is also suitable for

Advance Technologies; Automate the World.
Manual Rev. 2.00
Revision Date: August 25, 2006
Part No: 50-11124-1050
PCI-8164/MPC-8164/PXI-8164
Advanced 4-Axis Servo/Stepper
Motion Control Card
User’s Manual
Copyright 2006 ADLINK TECHNOLOGY INC.
All Rights Reserved.
The information in this document is subject to change without prior
notice in order to improve reliability, design, and function and does
not represent a commitment on the part of the manufacturer.
In no event will the manufacturer be liable for direct, indirect, spe-
cial, incidental, or consequential damages arising out of the use or
inability to use the product or documentation, even if advised of
the possibility of such damages.
This document contains proprietary information protected by copy-
right. All rights are reserved. No part of this manual may be repro-
duced by any mechanical, electronic, or other means in any form
without prior written permission of the manufacturer.
Trademarks
NuDAQ, NuIPC, DAQBench are registered trademarks of ADLINK
TECHNOLOGY INC.
Product names mentioned herein are used for identification pur-
poses only and may be trademarks and/or registered trademarks
of their respective companies.
Getting service from ADLINK
Customer satisfaction is top priority for ADLINK TECHNOLOGY
INC. Please contact us should you require any service or assis-
tance.
ADLINK TECHNOLOGY INC.
Web Site: http://www.adlinktech.com
Sales & Service: [email protected]
TEL: +886-2-82265877
FAX: +886-2-82265717
Address: 9F, No. 166, Jian Yi Road, Chungho City,
Taipei, 235 Taiwan
Email or fax this completed service form for prompt and satisfac-
tory service.
Company Information
Company/Organization
Contact Person
E-mail Address
Address
Country
TEL FAX:
Web Site
Product Information
Product Model
Environment
OS:
M/B: CPU:
Chipset: BIOS:
Please give a detailed description of the problem(s):
Table of Contents i
Table of Contents
Table of Contents..................................................................... i
List of Tables.......................................................................... vi
List of Figures ....................................................................... vii
1 Introduction ........................................................................ 1
1.1 Features............................................................................... 6
PCI-8164 ........................................................................ 6
MPC-8164 ....................................................................... 8
PXI-8164 ......................................................................... 9
1.2 Specifications..................................................................... 11
1.3 Software support................................................................ 14
Programming library ..................................................... 14
Motion Creator .............................................................. 14
2 Installation ........................................................................ 15
2.1 Package contents .............................................................. 16
2.2 PCI-8164 layout ................................................................. 17
2.3 MPC-8164 layout ............................................................... 18
2.4 PXI-8164 layout ................................................................. 19
2.5 PCI-8164/PXI-8164 hardware installation.......................... 20
Hardware configuration ................................................. 20
PCI slot selection .......................................................... 20
Installing the PCI-8164 card ......................................... 20
Installing the PXI-8164 card .......................................... 21
2.6 MPC-8164 hardware installation........................................ 22
Hardware configuration ................................................. 22
2.7 Driver installation ............................................................... 24
2.8 CN1 pin assignments: External Power Input
(PCI-8164 only) ....................................................... 25
2.9 CN3 pin assignments: Manual Pulse Input
(PCI-8164 only) ....................................................... 26
2.10 J4 pin assignments: Manual Pulse Input
(PXI-8164 only)........................................................ 27
2.11 CN3 pin assignments: General Purpose DIO
(MPC-8164 only) ..................................................... 28
2.12 J3 pin assignments: Isolated DIO
ii Table of Contents
(PXI-8164 only)........................................................ 29
2.13 CN2 pin assignments: Main Connector ............................. 30
2.14 CN4 pin assignments: Simultaneous Start/Stop
(PCI-8164 only)........................................................ 32
2.15 CN5 pin assignment: TTL Output (PCI-8164 only) ............ 33
2.16 Jumper setting for pulse output (PCI-8164 only) ............... 34
2.17 Switch setting for EL Logic................................................. 35
2.18 CN3 pin assignment: General Purpose DI/DO ports
(MPC-8164 only)...................................................... 36
2.19 S2 card ID switch setting (PXI-8164 only) ......................... 37
3 Signal Connections .......................................................... 39
3.1 Pulse Output Signals OUT and DIR................................... 40
3.2 Encoder Feedback Signals EA, EB and EZ....................... 43
3.3 Origin Signal ORG ............................................................. 46
3.4 End-Limit Signals PEL and MEL........................................ 47
3.5 Ramping-down and PCS ................................................... 48
3.6 In-position Signal INP ........................................................ 49
3.7 Alarm Signal ALM .............................................................. 50
3.8 Deviation Counter Clear Signal ERC ................................. 51
3.9 General-purpose Signal SVON.......................................... 52
3.10 General-purpose Signal RDY ............................................ 53
3.11 Position compare output pin: CMP .................................... 54
3.12 Position latch input pin: LTC .............................................. 55
3.13 Pulser Input Signals PA and PB (PCI-8164 only) .............. 56
3.14 Simultaneously Start/Stop Signals STA and STP
(PCI-8164 only)........................................................ 57
3.15 General Purpose TTL Output (PCI-8164 only) .................. 59
3.16 Termination board.............................................................. 60
3.17 General Purpose DIO (MPC-8164/PXI-8164 only) ............ 61
Isolated input channels ................................................. 62
Isolated output channels ............................................... 62
Example of input connection ......................................... 63
Example of output connections ..................................... 64
4 Operation Theory .............................................................. 65
4.1 Motion Control Modes........................................................ 66
Pulse Command Output ............................................... 67
Velocity mode motion ................................................... 71
Trapezoidal motion ....................................................... 72
Table of Contents iii
S-curve profile motion ................................................... 75
Linear interpolation for 2-4 axes ................................... 77
Circular interpolation for 2 axes .................................... 82
Circular interpolation with Acc/Dec time ....................... 84
Relationship between velocity and acceleration time ... 85
Continuous motion ........................................................ 88
Home Return Mode ...................................................... 95
Home Search Mode .................................................... 103
Manual Pulser Mode (PCI-8164 Only) ........................ 104
Synchronous starting modes ...................................... 105
4.2 The motor driver interface................................................ 107
INP .............................................................................. 107
ALM ............................................................................ 109
ERC ............................................................................ 110
SVON and RDY .......................................................... 111
4.3 The limit switch interface and I/O status .......................... 112
SD/PCS ...................................................................... 112
EL ............................................................................... 114
ORG ........................................................................... 115
4.4 Counters .......................................................................... 116
Command position counter ......................................... 116
Feedback position counter .......................................... 117
Position error counter ................................................. 119
General purpose counter ............................................ 120
Target position recorder .............................................. 122
4.5 Multiple PCI-8164 Card Operation (PCI-8164 Only)........ 123
4.6 Change position or speed on the fly ................................ 124
Change speed on the fly ............................................. 124
Change position on the fly .......................................... 129
4.7 Position compare and Latch ............................................ 132
Comparators of the 8164 ............................................ 132
Position compare with trigger output .......................... 134
Position Latch ............................................................. 138
4.8 Hardware backlash compensator and
vibration suppression............................................. 139
4.9 Software Limit Function ................................................... 140
4.10 Interrupt Control............................................................... 141
4.11 PXI Trigger Bus (PXI-8164 only) ..................................... 147
5 Motion Creator................................................................ 149
iv Table of Contents
5.1 Execute Motion Creator ................................................... 150
5.2 Notes on Motion Creator.................................................. 151
5.3 Using Motion Creator....................................................... 152
Main Menu .................................................................. 152
Interface I/O Configuration Menu ................................ 152
Pulse I/O and Interrupt Configuration Menu ............... 155
Operation menu: ......................................................... 156
6 Function Library.............................................................. 163
6.1 List of Functions............................................................... 163
6.2 C/C++ Programming Library ............................................ 174
6.3 Initialization ...................................................................... 175
6.4 Pulse Input/Output Configuration..................................... 179
6.5 Velocity mode motion....................................................... 182
6.6 Single Axis Position Mode ............................................... 186
6.7 Linear Interpolated Motion ............................................... 193
6.8 Circular Interpolation Motion ............................................ 201
6.9 Home Return Mode.......................................................... 211
6.10 Manual Pulser Motion ...................................................... 214
6.11 Motion Status................................................................... 218
6.12 Motion Interface I/O ......................................................... 220
6.13 Motion I/O Monitoring....................................................... 224
6.14 Interrupt Control ............................................................... 226
6.15 Position Control and Counters......................................... 234
@ Return Code ........................................................... 238
6.16 Position Compare and Latch............................................ 239
6.17 Continuous motion........................................................... 249
6.18 Multiple Axes Simultaneous Operation ............................ 251
6.19 General-purposed TTL output (PCI-8164 Only)............... 257
6.20 General-purposed DIO (MPC-8164/PXI-8164 only) ........ 259
6.21 Card ID (PXI-8164 Only).................................................. 261
6.22 PXI Trigger Bus (PXI-8164 Only)..................................... 262
7 Connection Example ...................................................... 265
7.1 General Wiring Description.............................................. 265
7.2 Connection Example with Servo Driver ........................... 267
7.3 Wiring with DIN-814M ...................................................... 270
PIN Assignments: ....................................................... 271
Signal Connections ..................................................... 274
Mechanical Dimensions: ............................................. 275
Table of Contents v
7.4 Wiring with DIN-814P ...................................................... 276
Mechanical Dimensions: ............................................. 277
PIN Assignment: ......................................................... 278
How to wire ................................................................. 280
7.5 Wiring with DIN-814PA .................................................... 281
Wiring Example: .......................................................... 283
Mechanical Dimensions: ............................................. 285
PIN Assignment: ......................................................... 286
7.6 Wiring with DIN-814M-J3A .............................................. 288
PIN Assignment: ......................................................... 289
7.7 Wiring with DIN-814Y ...................................................... 292
PIN Assignment: ......................................................... 293
8 Appendix......................................................................... 295
8.1 Color code of CN3 Cable (MPC-8164 Only).................... 295
Warranty Policy................................................................... 297
vi List of Tables
List of Tables
Table 2-1: GEME hardware configuration ................................ 22
Table 2-2: Base Addresses ...................................................... 22
List of Figures vii
List of Figures
Figure 1-1: PCI-8164 block diagram ............................................ 2
Figure 1-2: MPC-8164 block diagram .......................................... 3
Figure 1-3: PXI-8164 block diagram ............................................ 4
Figure 1-4: Application building flow chart ................................... 5
Figure 2-1: PCI-8164 PCB layout .............................................. 17
Figure 2-2: PCI-8164 face plate................................................. 17
Figure 2-3: MPC-8164 PCB layout ............................................ 18
Figure 2-4: MPC-8164 face plate............................................... 18
Figure 2-5: PXI-8164 layout and front panel .............................. 19
Figure 7-1: System Integration with PCI-8164 ......................... 266
Figure 7-2: Connection of PCI-8164 with Panasonic Driver .... 268
Figure 7-3: Connection of PCI-8164 with SANYO Driver......... 269
Introduction 1
1 Introduction
The PCI-/MPC-/PXI-8164 is an advanced 4-axis motion controller
card that generates high frequency pulses (6.55 MHz) to drive
stepper or servomotors, and provides a 2-axis circular interpola-
tion, 4-axis linear interpolation, or continuous interpolation for con-
tinual velocity. The PCI-/MPC-/PXI-8164 also changes position
and/or speed on the fly with a single axis operation.
Multiple PCI-/MPC-/PXI-8164 cards may be installed in one sys-
tem. Incremental encoder interface on all four axes provide the
ability to correct positioning errors generated by inaccurate
mechanical transmissions. With the aid of an onboard FIFO, the
PCI-/MPC-/PXI-8164 also performs precise and extremely fast
position comparison and trigger functions without compromising
CPU resources. In addition, a mechanical sensor interface, a
servo motor interface, and general-purposed I/O signals are pro-
vided for easy system integration.
The following figures show the functional block diagrams of the
8164 card in PCI, MPC, and PXI interfaces. The PCI-/MPC-/PXI-
8164 uses one ASIC (PCL6045) to perform all 4 axes motion con-
trols. The motion control functions include linear and S-curve
acceleration/deceleration, circular interpolation between two axes,
linear interpolation between 2-4 axes, continuous motion position-
ing, and more than 13 home return modes. All these functions and
complex computations are performed internally by the ASIC, thus
minimizing CPU usage and eliminating real-time issues.
2Introduction
Figure 1-1: PCI-8164 block diagram
Introduction 3
The MPC-8164 is an advanced 4-axis motion controller card with
a PC104 interface. All features and specification are leveraged
with the PCI-8164, except for some differences in the user I/O
interfaces. Figure 1-2 shows the MPC-8164 card block diagram.
Figure 1-2: MPC-8164 block diagram
4Introduction
The PXI-8164 is an advanced 4-axis motion controller card with a
PXI interface. All features and specification are the same with the
PCI-8164, except for some differences in the user I/O interfaces.
Figure 1-3 shows the PXI-8164 the block diagram.
Figure 1-3: PXI-8164 block diagram
Introduction 5
Motion Creator is a Windows-based application development soft-
ware package that comes with the card. Motion Creator is useful
for debugging a motion control system during the design phase of
a project. An on-screen display lists all installed axes information
and the card’s I/O signal status.
DOS and Windows programming libraries for C++ and Visual
Basic are included together with some sample programs to illus-
trate the operations of these functions.
Figure 1-4 illustrates a flow chart of application development using
the contents of this manual. Refer to the related chapters for
details.
Figure 1-4: Application building flow chart
6Introduction
1.1 Features
1.1.1 PCI-8164
X 32-bit PCI bus, Plug and Play
X 4 axes of step and direction pulse output for controlling
stepping or servomotor
X 6.55 MPPS maximum output frequency
X OUT/DIR, CW/CCW pulse output options
X Programmable acceleration and deceleration time for all
modes
X Trapezoidal and S-curve velocity profiles for all modes
X Any 2 of 4 axes circular interpolation
X Any 2-4 of 4 axes linear interpolation
X Continuous interpolation for contour following motion
X Change position and speed on the fly
X Change speed by condition comparing
X 13 home return modes with auto searching
X Hardware backlash compensator and vibration suppression
X 2 software end-limits for each axis
X 28-bit up/down counter for incremental encoder feedback
X Home switch, index signal (EZ), positive, and negative end
limit switches interface on all axes
X 2-axis high speed position latch input
X 2-axis position compare trigger output with 4k FIFO auto-
loading
X 2500V
rms
isolated digital input and output signals
X Programmable interrupt sources
X Simultaneous start/stop motion on multiple axes
X Manual pulser input interface (A small steering device that gen-
erates pulses when turned)
X Software supports a maximum of up to 12 PCI-8164 cards
(48 axes) operation in one system
X Compact, half-sized PCB
Introduction 7
X Includes Motion Creator, a Microsoft Windows-based appli-
cation development software
X Libraries and utilities support DOS, Windows
®
9X/NT/2000/
XP, and Linux
8Introduction
1.1.2 MPC-8164
X 16-bit PC104 bus
X 4 axes of step and direction pulse output for controlling
stepping or servomotor
X 6.55 MPPS maximum output frequency
X OUT/DIR, CW/CCW pulse output options
X Programmable acceleration and deceleration time for all
modes
X Trapezoidal and S-curve velocity profiles for all modes
X Any 2 of 4 axes circular interpolation
X Any 2-4 of 4 axes linear interpolation
X Continuous interpolation for contour following motion
X Change position and speed on the fly
X Change speed by comparator condition
X 13 home return modes with auto searching
X Hardware backlash compensator and vibration suppression
X 2 Software end-limits for each axis
X 28-bit up/down counter for incremental encoder feedback
X Home switch, index signal (EZ), positive, and negative end
limit switches interface on all axes
X 2-axis high speed position latch input
X 2-axis position compare trigger output with 4k FIFO auto-
loading
X 2500
Vrms
isolated digital input and output signals
X Programmable interrupt sources
X 8 channels of general purpose photo-isolated digital inputs
X 8 channels of general purpose open collector digital outputs
X Software supports a maximum of up to 4 MPC-8164 cards
(16 axes) operation in one system
X Includes Motion Creator, a Microsoft Windows-based appli-
cation development software
X Libraries and utilities support DOS, Windows
®
98/NT/2000/
XP, and Windows
®
XP/NT Embedded
X Libraries for Linux and Windows
®
CE systems
  • 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

ADLINK Technology PXI-8164 User manual

Type
User manual
This manual is also suitable for

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

Finding information in a document is now easier with AI