National Instruments NI-Motion manual

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305

Go to page of

A good user manual

The rules should oblige the seller to give the purchaser an operating instrucion of National Instruments NI-Motion, along with an item. The lack of an instruction or false information given to customer shall constitute grounds to apply for a complaint because of nonconformity of goods with the contract. In accordance with the law, a customer can receive an instruction in non-paper form; lately graphic and electronic forms of the manuals, as well as instructional videos have been majorly used. A necessary precondition for this is the unmistakable, legible character of an instruction.

What is an instruction?

The term originates from the Latin word „instructio”, which means organizing. Therefore, in an instruction of National Instruments NI-Motion one could find a process description. An instruction's purpose is to teach, to ease the start-up and an item's use or performance of certain activities. An instruction is a compilation of information about an item/a service, it is a clue.

Unfortunately, only a few customers devote their time to read an instruction of National Instruments NI-Motion. A good user manual introduces us to a number of additional functionalities of the purchased item, and also helps us to avoid the formation of most of the defects.

What should a perfect user manual contain?

First and foremost, an user manual of National Instruments NI-Motion should contain:
- informations concerning technical data of National Instruments NI-Motion
- name of the manufacturer and a year of construction of the National Instruments NI-Motion item
- rules of operation, control and maintenance of the National Instruments NI-Motion item
- safety signs and mark certificates which confirm compatibility with appropriate standards

Why don't we read the manuals?

Usually it results from the lack of time and certainty about functionalities of purchased items. Unfortunately, networking and start-up of National Instruments NI-Motion alone are not enough. An instruction contains a number of clues concerning respective functionalities, safety rules, maintenance methods (what means should be used), eventual defects of National Instruments NI-Motion, and methods of problem resolution. Eventually, when one still can't find the answer to his problems, he will be directed to the National Instruments service. Lately animated manuals and instructional videos are quite popular among customers. These kinds of user manuals are effective; they assure that a customer will familiarize himself with the whole material, and won't skip complicated, technical information of National Instruments NI-Motion.

Why one should read the manuals?

It is mostly in the manuals where we will find the details concerning construction and possibility of the National Instruments NI-Motion item, and its use of respective accessory, as well as information concerning all the functions and facilities.

After a successful purchase of an item one should find a moment and get to know with every part of an instruction. Currently the manuals are carefully prearranged and translated, so they could be fully understood by its users. The manuals will serve as an informational aid.

Table of contents for the manual

  • Page 1

    Motion Control NI-Motion TM User Manual NI-Motion User Manual November 2005 371242B-01[...]

  • Page 2

    support Worldwide Technical Support and Product Info rmation ni.com National Instruments Corporate H[...]

  • Page 3

    Important Information Warranty The media on which you receive Natio nal In struments software are w[...]

  • Page 4

    © National Instruments Corpor ation v NI-Motion User Manual Contents About This Manual Conventio[...]

  • Page 5

    Contents NI-Motion User Manual vi ni.com P ART III Programming with NI-Motion Chapter 4 What You[...]

  • Page 6

    Contents © National Instruments Corpor ation vii NI-Motion User Manual Chapter 6 Arc Moves Circu[...]

  • Page 7

    Contents NI-Motion User Manual viii ni.com Chapter 10 Electronic Gearing and Camming Gearing .....[...]

  • Page 8

    Contents © National Instruments Corpor ation ix NI-Motion User Manual Modulo Breakpoints (NI 733[...]

  • Page 9

    Contents NI-Motion User Manual x ni.com C/C++ Code ....... .............. .............. ........[...]

  • Page 10

    Contents © National Instruments Corpor ation xi NI-Motion User Manual Blending Straig ht-Line Mo[...]

  • Page 11

    © National Instruments Corporat ion xiii NI-Motion User Manual About This Manual This manual pro[...]

  • Page 12

    About This Manual NI-Motion User Manual xiv ni.com italic Italic text denotes variables, emphasis,[...]

  • Page 13

    About This Manual © National Instruments Corpor ation xv NI-Motion User Manual • NI De velope[...]

  • Page 14

    © National Instruments Corpor ation I-1 NI-Motion User Manual Part I Introduction This user manu[...]

  • Page 15

    © National Instruments Corpor ation 1-1 NI-Motion User Manual 1 Introduction to NI-Motion About [...]

  • Page 16

    Chapter 1 Introduction to NI-Motion NI-Motion User Manual 1-2 ni.com Software and Hardware Inter[...]

  • Page 17

    Chapter 1 Introduction to NI-Motion © National Instruments Corpor ation 1-3 NI-Motion User Manua[...]

  • Page 18

    Chapter 1 Introduction to NI-Motion NI-Motion User Manual 1-4 ni.com Figure 1-2 illustrates the [...]

  • Page 19

    Chapter 1 Introduction to NI-Motion © National Instruments Corpor ation 1-5 NI-Motion User Manua[...]

  • Page 20

    Chapter 1 Introduction to NI-Motion NI-Motion User Manual 1-6 ni.com Figure 1-5 illustrates the [...]

  • Page 21

    Chapter 1 Introduction to NI-Motion © National Instruments Corpor ation 1-7 NI-Motion User Manua[...]

  • Page 22

    Chapter 1 Introduction to NI-Motion NI-Motion User Manual 1-8 ni.com Figure 1-6. NI SoftMotion [...]

  • Page 23

    Chapter 1 Introduction to NI-Motion © National Instruments Corpor ation 1-9 NI-Motion User Manua[...]

  • Page 24

    © National Instruments Corpor ation 2-1 NI-Motion User Manual 2 Creating NI-Motion Applications [...]

  • Page 25

    Chapter 2 Creating NI-Motion Applications NI-Motion User Manual 2-2 ni.com Figure 2-1. Generic S[...]

  • Page 26

    Chapter 2 Creating NI-Motion Applications © National Instruments Corpor ation 2-3 NI-Motion Use[...]

  • Page 27

    Chapter 2 Creating NI-Motion Applications NI-Motion User Manual 2-4 ni.com Note If you are using [...]

  • Page 28

    © National Instruments Corporat ion II-1 NI-Motion User Manual Part II Configuring Motion Contro[...]

  • Page 29

    © National Instruments Corpor ation 3-1 NI-Motion User Manual 3 T uning Ser vo Systems When your[...]

  • Page 30

    Chapter 3 T uning Servo Systems NI-Motion User Manual 3-2 ni.com A properly tuned servo system ex[...]

  • Page 31

    Chapter 3 T uning Servo Systems © National Instruments Corpor ation 3-3 NI-Motion User Manual F[...]

  • Page 32

    Chapter 3 T uning Servo Systems NI-Motion User Manual 3-4 ni.com PID Loop Descriptions The follow[...]

  • Page 33

    Chapter 3 T uning Servo Systems © National Instruments Corpor ation 3-5 NI-Motion User Manual K[...]

  • Page 34

    Chapter 3 T uning Servo Systems NI-Motion User Manual 3-6 ni.com V elocity feedforward is an open[...]

  • Page 35

    Chapter 3 T uning Servo Systems © National Instruments Corpor ation 3-7 NI-Motion User Manual G[...]

  • Page 36

    Chapter 3 T uning Servo Systems NI-Motion User Manual 3-8 ni.com Figure 3-3. Dual Loop Feedback [...]

  • Page 37

    Chapter 3 T uning Servo Systems © National Instruments Corpor ation 3-9 NI-Motion User Manual V[...]

  • Page 38

    Chapter 3 T uning Servo Systems NI-Motion User Manual 3-10 ni.com Figure 3-6. Alternate Dual-Loo[...]

  • Page 39

    Chapter 3 T uning Servo Systems © National Instruments Corporat ion 3-11 NI-Motion User Manual [...]

  • Page 40

    © National Instruments Corporat ion III-1 NI-Motion User Manual Part III Programming with NI-Mot[...]

  • Page 41

    Part III Programming with NI-Motion NI-Motion User Manual III-2 ni.com • Synchronization • T[...]

  • Page 42

    © National Instruments Corpor ation 4-1 NI-Motion User Manual 4 What Y ou Need to Know about Mo[...]

  • Page 43

    Chapter 4 What Y ou N eed to Know about Moves NI-Motion User Manual 4-2 ni.com Figure 4-1. T rap[...]

  • Page 44

    Chapter 4 What You Need to Know about Moves © National Instruments Corpor ation 4-3 NI-Motion U[...]

  • Page 45

    Chapter 4 What Y ou N eed to Know about Moves NI-Motion User Manual 4-4 ni.com grouping axes into[...]

  • Page 46

    Chapter 4 What You Need to Know about Moves © National Instruments Corpor ation 4-5 NI-Motion U[...]

  • Page 47

    Chapter 4 What Y ou N eed to Know about Moves NI-Motion User Manual 4-6 ni.com Y ou can calculate[...]

  • Page 48

    Chapter 4 What You Need to Know about Moves © National Instruments Corpor ation 4-7 NI-Motion U[...]

  • Page 49

    Chapter 4 What Y ou N eed to Know about Moves NI-Motion User Manual 4-8 ni.com Y ou can calculate[...]

  • Page 50

    Chapter 4 What You Need to Know about Moves © National Instruments Corpor ation 4-9 NI-Motion U[...]

  • Page 51

    Chapter 4 What Y ou N eed to Know about Moves NI-Motion User Manual 4-10 ni.com Y ou can calculat[...]

  • Page 52

    Chapter 4 What You Need to Know about Moves © National Instruments Corporat ion 4-11 NI-Motion [...]

  • Page 53

    Chapter 4 What Y ou N eed to Know about Moves NI-Motion User Manual 4-12 ni.com Note If the dista[...]

  • Page 54

    Chapter 4 What You Need to Know about Moves © National Instruments Corporat ion 4-13 NI-Motion [...]

  • Page 55

    Chapter 4 What Y ou N eed to Know about Moves NI-Motion User Manual 4-14 ni.com T iming Loops Nat[...]

  • Page 56

    © National Instruments Corpor ation 5-1 NI-Motion User Manual 5 Straight-Line Moves A straight-l[...]

  • Page 57

    Chapter 5 St raight-Line Moves NI-Motion User Manual 5-2 ni.com The start position is always the [...]

  • Page 58

    Chapter 5 Straight-Line Moves © National Instruments Corpor ation 5-3 NI-Motion User Manual Fig[...]

  • Page 59

    Chapter 5 St raight-Line Moves NI-Motion User Manual 5-4 ni.com Figure 5-3. 2D Straight-Line Mov[...]

  • Page 60

    Chapter 5 Straight-Line Moves © National Instruments Corpor ation 5-5 NI-Motion User Manual C/C[...]

  • Page 61

    Chapter 5 St raight-Line Moves NI-Motion User Manual 5-6 ni.com err = flex_load_scurve_time (boar[...]

  • Page 62

    Chapter 5 Straight-Line Moves © National Instruments Corpor ation 5-7 NI-Motion User Manual // [...]

  • Page 63

    Chapter 5 St raight-Line Moves NI-Motion User Manual 5-8 ni.com // Configure a 2D vector space co[...]

  • Page 64

    Chapter 5 Straight-Line Moves © National Instruments Corpor ation 5-9 NI-Motion User Manual Che[...]

  • Page 65

    Chapter 5 St raight-Line Moves NI-Motion User Manual 5-10 ni.com flex_read_csr_rtn (boardID,&[...]

  • Page 66

    Chapter 5 Straight-Line Moves © National Instruments Corporat ion 5-11 NI-Motion User Manual Al[...]

  • Page 67

    Chapter 5 St raight-Line Moves NI-Motion User Manual 5-12 ni.com Loading a second v elocity and e[...]

  • Page 68

    Chapter 5 Straight-Line Moves © National Instruments Corporat ion 5-13 NI-Motion User Manual La[...]

  • Page 69

    Chapter 5 St raight-Line Moves NI-Motion User Manual 5-14 ni.com i32 errorCode;// Error code // [...]

  • Page 70

    Chapter 5 Straight-Line Moves © National Instruments Corporat ion 5-15 NI-Motion User Manual do[...]

  • Page 71

    Chapter 5 St raight-Line Moves NI-Motion User Manual 5-16 ni.com CheckError; // Read the communic[...]

  • Page 72

    Chapter 5 Straight-Line Moves © National Instruments Corporat ion 5-17 NI-Motion User Manual fl[...]

  • Page 73

    Chapter 5 St raight-Line Moves NI-Motion User Manual 5-18 ni.com Algorithm Figure 5-7 is a generi[...]

  • Page 74

    Chapter 5 Straight-Line Moves © National Instruments Corporat ion 5-19 NI-Motion User Manual La[...]

  • Page 75

    Chapter 5 St raight-Line Moves NI-Motion User Manual 5-20 ni.com C/C++ Code The following example[...]

  • Page 76

    Chapter 5 Straight-Line Moves © National Instruments Corporat ion 5-21 NI-Motion User Manual //[...]

  • Page 77

    Chapter 5 St raight-Line Moves NI-Motion User Manual 5-22 ni.com } while (!(axisStatus) &&am[...]

  • Page 78

    Chapter 5 Straight-Line Moves © National Instruments Corporat ion 5-23 NI-Motion User Manual er[...]

  • Page 79

    © National Instruments Corpor ation 6-1 NI-Motion User Manual 6 Arc Moves An arc move causes a c[...]

  • Page 80

    Chapter 6 Arc Moves NI-Motion User Manual 6-2 ni.com T o mov e axes in a circular arc, th e motio[...]

  • Page 81

    Chapter 6 Arc Moves © National Instruments Corpor ation 6-3 NI-Motion User Manual Figure 6-3. [...]

  • Page 82

    Chapter 6 Arc Moves NI-Motion User Manual 6-4 ni.com LabVIEW Code Figure 6-5. Cir cular Ar c Mov[...]

  • Page 83

    Chapter 6 Arc Moves © National Instruments Corpor ation 6-5 NI-Motion User Manual u16 commandID[...]

  • Page 84

    Chapter 6 Arc Moves NI-Motion User Manual 6-6 ni.com err = flex_check_move_complete_status (board[...]

  • Page 85

    Chapter 6 Arc Moves © National Instruments Corpor ation 6-7 NI-Motion User Manual flex_read_err[...]

  • Page 86

    Chapter 6 Arc Moves NI-Motion User Manual 6-8 ni.com Figure 6-7. Changing Y aw by Rotating the Z[...]

  • Page 87

    Chapter 6 Arc Moves © National Instruments Corpor ation 6-9 NI-Motion User Manual Algorithm Fig[...]

  • Page 88

    Chapter 6 Arc Moves NI-Motion User Manual 6-10 ni.com LabVIEW Code Figure 6-9. Spherical Ar c Mo[...]

  • Page 89

    Chapter 6 Arc Moves © National Instruments Corporat ion 6-11 NI-Motion User Manual ////////////[...]

  • Page 90

    Chapter 6 Arc Moves NI-Motion User Manual 6-12 ni.com // Check the follo wing error/axis off sta[...]

  • Page 91

    Chapter 6 Arc Moves © National Instruments Corporat ion 6-13 NI-Motion User Manual // Get the c[...]

  • Page 92

    Chapter 6 Arc Moves NI-Motion User Manual 6-14 ni.com Algorithm Figure 6-11. Helical Arc Algorit[...]

  • Page 93

    Chapter 6 Arc Moves © National Instruments Corporat ion 6-15 NI-Motion User Manual LabVIEW Code[...]

  • Page 94

    Chapter 6 Arc Moves NI-Motion User Manual 6-16 ni.com // Set the board ID boardID = 1; // Set th[...]

  • Page 95

    Chapter 6 Arc Moves © National Instruments Corporat ion 6-17 NI-Motion User Manual err = flex_r[...]

  • Page 96

    Chapter 6 Arc Moves NI-Motion User Manual 6-18 ni.com flex_read_error_msg_rtn (boardID,&com m[...]

  • Page 97

    © National Instruments Corpor ation 7-1 NI-Motion User Manual 7 Contoured Moves A contoured move[...]

  • Page 98

    Chapter 7 Contoure d Moves NI-Motion User Manual 7-2 ni.com The difference between absolute conto[...]

  • Page 99

    Chapter 7 Contoured Moves © National Instruments Corpor ation 7-3 NI-Motion User Manual Contou[...]

  • Page 100

    Chapter 7 Contoure d Moves NI-Motion User Manual 7-4 ni.com All contoured mo v es are relati v e,[...]

  • Page 101

    Chapter 7 Contoured Moves © National Instruments Corpor ation 7-5 NI-Motion User Manual LabVIE[...]

  • Page 102

    Chapter 7 Contoure d Moves NI-Motion User Manual 7-6 ni.com Figure 7-6. Co ntoured Move T rue Ca[...]

  • Page 103

    Chapter 7 Contoured Moves © National Instruments Corpor ation 7-7 NI-Motion User Manual i32 * [...]

  • Page 104

    Chapter 7 Contoure d Moves NI-Motion User Manual 7-8 ni.com for (i=0;i<bufferSize;i++){ downl[...]

  • Page 105

    Chapter 7 Contoured Moves © National Instruments Corpor ation 7-9 NI-Motion User Manual CheckE[...]

  • Page 106

    Chapter 7 Contoure d Moves NI-Motion User Manual 7-10 ni.com // Free the buffer allocated on the[...]

  • Page 107

    © National Instruments Corpor ation 8-1 NI-Motion User Manual 8 Reference Moves Use reference mo[...]

  • Page 108

    Chapter 8 R eference Moves NI-Motion User Manual 8-2 ni.com Reference Move Algorithm Figure 8-1. [...]

  • Page 109

    Chapter 8 Reference Moves © National Instruments Corpor ation 8-3 NI-Motion User Manual LabVIEW[...]

  • Page 110

    Chapter 8 R eference Moves NI-Motion User Manual 8-4 ni.com // Variables for modal error handling[...]

  • Page 111

    Chapter 8 Reference Moves © National Instruments Corpor ation 8-5 NI-Motion User Manual // Wait[...]

  • Page 112

    Chapter 8 R eference Moves NI-Motion User Manual 8-6 ni.com //////////////////////////////////// [...]

  • Page 113

    © National Instruments Corpor ation 9-1 NI-Motion User Manual 9 Blending Moves Use blending move[...]

  • Page 114

    Chapter 9 Blending Moves NI-Motion User Manual 9-2 ni.com There are three ways you can star t th[...]

  • Page 115

    Chapter 9 Blending Moves © National Instruments Corpor ation 9-3 NI-Motion User Manual Blend af[...]

  • Page 116

    Chapter 9 Blending Moves NI-Motion User Manual 9-4 ni.com Blend after Delay You can blend two mov[...]

  • Page 117

    Chapter 9 Blending Moves © National Instruments Corpor ation 9-5 NI-Motion User Manual Blending[...]

  • Page 118

    Chapter 9 Blending Moves NI-Motion User Manual 9-6 ni.com LabVIEW Code Figure 9-6. Blended Strai[...]

  • Page 119

    Chapter 9 Blending Moves © National Instruments Corpor ation 9-7 NI-Motion User Manual C/C++ Co[...]

  • Page 120

    Chapter 9 Blending Moves NI-Motion User Manual 9-8 ni.com err = flex_set_op_mode (boardID, vector[...]

  • Page 121

    Chapter 9 Blending Moves © National Instruments Corpor ation 9-9 NI-Motion User Manual { err = [...]

  • Page 122

    Chapter 9 Blending Moves NI-Motion User Manual 9-10 ni.com NIMC_AXIS_OFF_BIT)); // Exit on move [...]

  • Page 123

    © National Instruments Corporat ion 10-1 NI-Motion User Manual 10 Electronic Gearing and Cammin[...]

  • Page 124

    Chapter 10 Electronic Gearing and Camming NI-Motion User Manual 10-2 ni.com Algorithm Figure 10-[...]

  • Page 125

    Chapter 10 Electronic Gearing and Camming © National Instruments Corporat ion 10-3 NI-Motion Use[...]

  • Page 126

    Chapter 10 Electronic Gearing and Camming NI-Motion User Manual 10-4 ni.com Changing a gear rati[...]

  • Page 127

    Chapter 10 Electronic Gearing and Camming © National Instruments Corporat ion 10-5 NI-Motion Use[...]

  • Page 128

    Chapter 10 Electronic Gearing and Camming NI-Motion User Manual 10-6 ni.com // Set the board ID [...]

  • Page 129

    Chapter 10 Electronic Gearing and Camming © National Instruments Corporat ion 10-7 NI-Motion Use[...]

  • Page 130

    Chapter 10 Electronic Gearing and Camming NI-Motion User Manual 10-8 ni.com Camming Electronic c[...]

  • Page 131

    Chapter 10 Electronic Gearing and Camming © National Instruments Corporat ion 10-9 NI-Motion Use[...]

  • Page 132

    Chapter 10 Electronic Gearing and Camming NI-Motion User Manual 10-10 ni.com Figure 10-7. Weldi[...]

  • Page 133

    Chapter 10 Electronic Gearing and Camming © National Instruments Corporat ion 10-11 NI-Motio n U[...]

  • Page 134

    Chapter 10 Electronic Gearing and Camming NI-Motion User Manual 10-12 ni.com Camming T able When[...]

  • Page 135

    Chapter 10 Electronic Gearing and Camming © National Instruments Corporat ion 10-13 NI-Motio n U[...]

  • Page 136

    Chapter 10 Electronic Gearing and Camming NI-Motion User Manual 10-14 ni.com Each ro w of data d[...]

  • Page 137

    Chapter 10 Electronic Gearing and Camming © National Instruments Corporat ion 10-15 NI-Motio n U[...]

  • Page 138

    Chapter 10 Electronic Gearing and Camming NI-Motion User Manual 10-16 ni.com Figure 10-15 sho ws[...]

  • Page 139

    Chapter 10 Electronic Gearing and Camming © National Instruments Corporat ion 10-17 NI-Motio n U[...]

  • Page 140

    Chapter 10 Electronic Gearing and Camming NI-Motion User Manual 10-18 ni.com Figure 10-17. Camm[...]

  • Page 141

    Chapter 10 Electronic Gearing and Camming © National Instruments Corporat ion 10-19 NI-Motio n U[...]

  • Page 142

    Chapter 10 Electronic Gearing and Camming NI-Motion User Manual 10-20 ni.com u8 slaveAxis = 1;[...]

  • Page 143

    Chapter 10 Electronic Gearing and Camming © National Instruments Corporat ion 10-21 NI-Motio n U[...]

  • Page 144

    Chapter 10 Electronic Gearing and Camming NI-Motion User Manual 10-22 ni.com flex_read_error_msg[...]

  • Page 145

    © National Instruments Corporat ion 11-1 NI-Motion User Manual 11 Acquiring T ime-Sampled Posit[...]

  • Page 146

    Chapter 11 Acquiring Time-Samp led Position and Velocity Data NI-Motion User Manual 11-2 ni.com [...]

  • Page 147

    Chapter 11 Acquiring Time-Sampled Position and Velocity Data © National Instruments Corporat ion [...]

  • Page 148

    Chapter 11 Acquiring Time-Samp led Position and Velocity Data NI-Motion User Manual 11-4 ni.com [...]

  • Page 149

    Chapter 11 Acquiring Time-Sampled Position and Velocity Data © National Instruments Corporat ion [...]

  • Page 150

    Chapter 11 Acquiring Time-Samp led Position and Velocity Data NI-Motion User Manual 11-6 ni.com [...]

  • Page 151

    © National Instruments Corporat ion 12-1 NI-Motion User Manual 12 Synchronization You can synchr[...]

  • Page 152

    Chapter 12 Synchronization NI-Motion User Manual 12-2 ni.com T able 12-1 shows the a v ailability[...]

  • Page 153

    Chapter 12 Synchronization © National Instruments Corporat ion 12-3 NI-Motion User Manual Note [...]

  • Page 154

    Chapter 12 Synchronization NI-Motion User Manual 12-4 ni.com Buffered Breakpoint Algorithm Figure[...]

  • Page 155

    Chapter 12 Synchronization © National Instruments Corporat ion 12-5 NI-Motion User Manual LabVI[...]

  • Page 156

    Chapter 12 Synchronization NI-Motion User Manual 12-6 ni.com // Buffer resources i32 breakpointP[...]

  • Page 157

    Chapter 12 Synchronization © National Instruments Corporat ion 12-7 NI-Motion User Manual } whi[...]

  • Page 158

    Chapter 12 Synchronization NI-Motion User Manual 12-8 ni.com Single Position Breakpoints Single p[...]

  • Page 159

    Chapter 12 Synchronization © National Instruments Corporat ion 12-9 NI-Motion User Manual LabVI[...]

  • Page 160

    Chapter 12 Synchronization NI-Motion User Manual 12-10 ni.com Refer to Figure 12-5 for an example[...]

  • Page 161

    Chapter 12 Synchronization © National Instruments Corporat ion 12-11 NI-Motio n User Manual ///[...]

  • Page 162

    Chapter 12 Synchronization NI-Motion User Manual 12-12 ni.com } Sleep (10); // Check every 10 ms [...]

  • Page 163

    Chapter 12 Synchronization © National Instruments Corporat ion 12-13 NI-Motio n User Manual bre[...]

  • Page 164

    Chapter 12 Synchronization NI-Motion User Manual 12-14 ni.com LabVIEW Code In this example, a bre[...]

  • Page 165

    Chapter 12 Synchronization © National Instruments Corporat ion 12-15 NI-Motio n User Manual // [...]

  • Page 166

    Chapter 12 Synchronization NI-Motion User Manual 12-16 ni.com return ;// Exit the Application //[...]

  • Page 167

    Chapter 12 Synchronization © National Instruments Corporat ion 12-17 NI-Motio n User Manual Per[...]

  • Page 168

    Chapter 12 Synchronization NI-Motion User Manual 12-18 ni.com LabVIEW Code Figure 12-10. Periodi[...]

  • Page 169

    Chapter 12 Synchronization © National Instruments Corporat ion 12-19 NI-Motio n User Manual //V[...]

  • Page 170

    Chapter 12 Synchronization NI-Motion User Manual 12-20 ni.com CheckError; printf("n");[...]

  • Page 171

    Chapter 12 Synchronization © National Instruments Corporat ion 12-21 NI-Motio n User Manual nim[...]

  • Page 172

    Chapter 12 Synchronization NI-Motion User Manual 12-22 ni.com Figure 12-11. Breakpoint Modulus o[...]

  • Page 173

    Chapter 12 Synchronization © National Instruments Corporat ion 12-23 NI-Motio n User Manual Mod[...]

  • Page 174

    Chapter 12 Synchronization NI-Motion User Manual 12-24 ni.com LabVIEW Code Figure 12-14. Modulo [...]

  • Page 175

    Chapter 12 Synchronization © National Instruments Corporat ion 12-25 NI-Motio n User Manual C/C[...]

  • Page 176

    Chapter 12 Synchronization NI-Motion User Manual 12-26 ni.com err = flex_enable_breakpoint (board[...]

  • Page 177

    Chapter 12 Synchronization © National Instruments Corporat ion 12-27 NI-Motio n User Manual nim[...]

  • Page 178

    Chapter 12 Synchronization NI-Motion User Manual 12-28 ni.com Buffered High-Speed Capture Algorit[...]

  • Page 179

    Chapter 12 Synchronization © National Instruments Corporat ion 12-29 NI-Motio n User Manual Lab[...]

  • Page 180

    Chapter 12 Synchronization NI-Motion User Manual 12-30 ni.com u32 pointsDone;// Indicates the num[...]

  • Page 181

    Chapter 12 Synchronization © National Instruments Corporat ion 12-31 NI-Motio n User Manual if [...]

  • Page 182

    Chapter 12 Synchronization NI-Motion User Manual 12-32 ni.com CheckError; return ;// Exit the App[...]

  • Page 183

    Chapter 12 Synchronization © National Instruments Corporat ion 12-33 NI-Motio n User Manual Hig[...]

  • Page 184

    Chapter 12 Synchronization NI-Motion User Manual 12-34 ni.com LabVIEW Code Figure 12-19. High-Sp[...]

  • Page 185

    Chapter 12 Synchronization © National Instruments Corporat ion 12-35 NI-Motio n User Manual Fig[...]

  • Page 186

    Chapter 12 Synchronization NI-Motion User Manual 12-36 ni.com axis = NIMC_AXIS1; ////////////////[...]

  • Page 187

    Chapter 12 Synchronization © National Instruments Corporat ion 12-37 NI-Motio n User Manual // [...]

  • Page 188

    Chapter 12 Synchronization NI-Motion User Manual 12-38 ni.com Y ou also can create a software tri[...]

  • Page 189

    Chapter 12 Synchronization © National Instruments Corporat ion 12-39 NI-Motio n User Manual Pos[...]

  • Page 190

    Chapter 12 Synchronization NI-Motion User Manual 12-40 ni.com High-Speed Capture Input Using RTSI[...]

  • Page 191

    © National Instruments Corporat ion 13-1 NI-Motion User Manual 13 T orque Control To maintain co[...]

  • Page 192

    Chapter 13 T orque Control NI-Motion User Manual 13-2 ni.com T uning the control loop with a for[...]

  • Page 193

    Chapter 13 T orque Control © National Instruments Corporat ion 13-3 NI-Motion User Manual T orq[...]

  • Page 194

    Chapter 13 T orque Control NI-Motion User Manual 13-4 ni.com LabVIEW Code Figure 13-3. T orque C[...]

  • Page 195

    Chapter 13 T orque Control © National Instruments Corporat ion 13-5 NI-Motion User Manual C/C++[...]

  • Page 196

    Chapter 13 T orque Control NI-Motion User Manual 13-6 ni.com err = flex_load_acceleration (boardI[...]

  • Page 197

    Chapter 13 T orque Control © National Instruments Corporat ion 13-7 NI-Motion User Manual } } w[...]

  • Page 198

    Chapter 13 T orque Control NI-Motion User Manual 13-8 ni.com Monitoring Force You can use this se[...]

  • Page 199

    Chapter 13 T orque Control © National Instruments Corporat ion 13-9 NI-Motion User Manual T orq[...]

  • Page 200

    Chapter 13 T orque Control NI-Motion User Manual 13-10 ni.com LabVIEW Code Figure 13-6. T orque [...]

  • Page 201

    Chapter 13 T orque Control © National Instruments Corporat ion 13-11 NI-Motio n User Manual C/C[...]

  • Page 202

    Chapter 13 T orque Control NI-Motion User Manual 13-12 ni.com err = flex_load_acceleration (board[...]

  • Page 203

    Chapter 13 T orque Control © National Instruments Corporat ion 13-13 NI-Motio n User Manual } S[...]

  • Page 204

    Chapter 13 T orque Control NI-Motion User Manual 13-14 ni.com Speed Control Based on Analog V alu[...]

  • Page 205

    Chapter 13 T orque Control © National Instruments Corporat ion 13-15 NI-Motio n User Manual Lab[...]

  • Page 206

    Chapter 13 T orque Control NI-Motion User Manual 13-16 ni.com C/C++ Code The following example co[...]

  • Page 207

    Chapter 13 T orque Control © National Instruments Corporat ion 13-17 NI-Motio n User Manual // [...]

  • Page 208

    Chapter 13 T orque Control NI-Motion User Manual 13-18 ni.com Sleep (50); // Check every 50 ms }[...]

  • Page 209

    © National Instruments Corporat ion 14-1 NI-Motion User Manual 14 Onboard Programs This chapter [...]

  • Page 210

    Chapter 14 Onboard Programs NI-Motion User Manual 14-2 ni.com Using Onboard Programs with NI 73 x[...]

  • Page 211

    Chapter 14 Onboard Programs © National Instruments Corporat ion 14-3 NI-Motion User Manual Figu[...]

  • Page 212

    Chapter 14 Onboard Programs NI-Motion User Manual 14-4 ni.com Figure 14-2. Writing Onbo ard Prog[...]

  • Page 213

    Chapter 14 Onboard Programs © National Instruments Corporat ion 14-5 NI-Motion User Manual LabV[...]

  • Page 214

    Chapter 14 Onboard Programs NI-Motion User Manual 14-6 ni.com C/C++ Code The following example co[...]

  • Page 215

    Chapter 14 Onboard Programs © National Instruments Corporat ion 14-7 NI-Motion User Manual err [...]

  • Page 216

    Chapter 14 Onboard Programs NI-Motion User Manual 14-8 ni.com Running, Stopping, and Pausing Onbo[...]

  • Page 217

    Chapter 14 Onboard Programs © National Instruments Corporat ion 14-9 NI-Motion User Manual Y ou[...]

  • Page 218

    Chapter 14 Onboard Programs NI-Motion User Manual 14-10 ni.com Figure 14-5. Executing Onboard Pr[...]

  • Page 219

    Chapter 14 Onboard Programs © National Instruments Corporat ion 14-11 NI-Motio n User Manual On[...]

  • Page 220

    Chapter 14 Onboard Programs NI-Motion User Manual 14-12 ni.com LabVIEW Code Figure 14-7. On boar[...]

  • Page 221

    Chapter 14 Onboard Programs © National Instruments Corporat ion 14-13 NI-Motio n User Manual //[...]

  • Page 222

    Chapter 14 Onboard Programs NI-Motion User Manual 14-14 ni.com CheckError; return ;// Exit the Ap[...]

  • Page 223

    Chapter 14 Onboard Programs © National Instruments Corporat ion 14-15 NI-Motio n User Manual Al[...]

  • Page 224

    Chapter 14 Onboard Programs NI-Motion User Manual 14-16 ni.com LabVIEW Code Figure 14-9. Updatin[...]

  • Page 225

    Chapter 14 Onboard Programs © National Instruments Corporat ion 14-17 NI-Motio n User Manual C/[...]

  • Page 226

    Chapter 14 Onboard Programs NI-Motion User Manual 14-18 ni.com err = flex_read_adc16 (boardID, NI[...]

  • Page 227

    Chapter 14 Onboard Programs © National Instruments Corporat ion 14-19 NI-Motio n User Manual //[...]

  • Page 228

    Chapter 14 Onboard Programs NI-Motion User Manual 14-20 ni.com Onboard Program Algorithm Figure [...]

  • Page 229

    Chapter 14 Onboard Programs © National Instruments Corporat ion 14-21 NI-Motio n User Manual La[...]

  • Page 230

    Chapter 14 Onboard Programs NI-Motion User Manual 14-22 ni.com C/C++ Code The following example c[...]

  • Page 231

    Chapter 14 Onboard Programs © National Instruments Corporat ion 14-23 NI-Motio n User Manual er[...]

  • Page 232

    Chapter 14 Onboard Programs NI-Motion User Manual 14-24 ni.com // Read the communication status r[...]

  • Page 233

    Chapter 14 Onboard Programs © National Instruments Corporat ion 14-25 NI-Motio n User Manual Fi[...]

  • Page 234

    Chapter 14 Onboard Programs NI-Motion User Manual 14-26 ni.com Buffers are created from a dynamic[...]

  • Page 235

    Chapter 14 Onboard Programs © National Instruments Corporat ion 14-27 NI-Motio n User Manual Fi[...]

  • Page 236

    Chapter 14 Onboard Programs NI-Motion User Manual 14-28 ni.com LabVIEW Code This example moves ax[...]

  • Page 237

    Chapter 14 Onboard Programs © National Instruments Corporat ion 14-29 NI-Motio n User Manual Fi[...]

  • Page 238

    Chapter 14 Onboard Programs NI-Motion User Manual 14-30 ni.com C/C++ Code The following example c[...]

  • Page 239

    Chapter 14 Onboard Programs © National Instruments Corporat ion 14-31 NI-Motio n User Manual er[...]

  • Page 240

    Chapter 14 Onboard Programs NI-Motion User Manual 14-32 ni.com err = flex_jump_on_event (boardID,[...]

  • Page 241

    Chapter 14 Onboard Programs © National Instruments Corporat ion 14-33 NI-Motio n User Manual er[...]

  • Page 242

    Chapter 14 Onboard Programs NI-Motion User Manual 14-34 ni.com Onboard Subroutines You can create[...]

  • Page 243

    Chapter 14 Onboard Programs © National Instruments Corporat ion 14-35 NI-Motio n User Manual La[...]

  • Page 244

    Chapter 14 Onboard Programs NI-Motion User Manual 14-36 ni.com Figure 14-21 shows the subroutine [...]

  • Page 245

    Chapter 14 Onboard Programs © National Instruments Corporat ion 14-37 NI-Motio n User Manual Fi[...]

  • Page 246

    Chapter 14 Onboard Programs NI-Motion User Manual 14-38 ni.com C/C++ Code The following example c[...]

  • Page 247

    Chapter 14 Onboard Programs © National Instruments Corporat ion 14-39 NI-Motio n User Manual er[...]

  • Page 248

    Chapter 14 Onboard Programs NI-Motion User Manual 14-40 ni.com CheckError; // Wait for move to co[...]

  • Page 249

    Chapter 14 Onboard Programs © National Instruments Corporat ion 14-41 NI-Motio n User Manual //[...]

  • Page 250

    Chapter 14 Onboard Programs NI-Motion User Manual 14-42 ni.com Automatically Starting Onboard Pro[...]

  • Page 251

    © National Instruments Corporat ion IV-1 NI-Motion User Manual Part IV Creating Applications Usi[...]

  • Page 252

    © National Instruments Corporat ion 15-1 NI-Motion User Manual 15 Scanning The goal of the scann[...]

  • Page 253

    Chapter 15 Scanning NI-Motion User Manual 15-2 ni.com Raster Scanning Using St raight Lines Algor[...]

  • Page 254

    Chapter 15 Scanning © National Instruments Corporat ion 15-3 NI-Motion User Manual LabVIEW Code[...]

  • Page 255

    Chapter 15 Scanning NI-Motion User Manual 15-4 ni.com C/C++ Code The following example code is no[...]

  • Page 256

    Chapter 15 Scanning © National Instruments Corporat ion 15-5 NI-Motion User Manual // Set the d[...]

  • Page 257

    Chapter 15 Scanning NI-Motion User Manual 15-6 ni.com // Read the communication status regis ter [...]

  • Page 258

    Chapter 15 Scanning © National Instruments Corporat ion 15-7 NI-Motion User Manual Blending Str[...]

  • Page 259

    Chapter 15 Scanning NI-Motion User Manual 15-8 ni.com Raster Scanning Using Blen ded Straight Lin[...]

  • Page 260

    Chapter 15 Scanning © National Instruments Corporat ion 15-9 NI-Motion User Manual LabVIEW Code[...]

  • Page 261

    Chapter 15 Scanning NI-Motion User Manual 15-10 ni.com C/C++ Code The following example code is n[...]

  • Page 262

    Chapter 15 Scanning © National Instruments Corporat ion 15-11 NI-Motio n User Manual // Set the[...]

  • Page 263

    Chapter 15 Scanning NI-Motion User Manual 15-12 ni.com CheckError; } else { // Check the blend c[...]

  • Page 264

    Chapter 15 Scanning © National Instruments Corporat ion 15-13 NI-Motio n User Manual return ;//[...]

  • Page 265

    Chapter 15 Scanning NI-Motion User Manual 15-14 ni.com Figure 15-7. User -Defined Scannin g Path[...]

  • Page 266

    Chapter 15 Scanning © National Instruments Corporat ion 15-15 NI-Motio n User Manual User -Defi[...]

  • Page 267

    Chapter 15 Scanning NI-Motion User Manual 15-16 ni.com LabVIEW Code Figure 15-9. Scan ning Using[...]

  • Page 268

    Chapter 15 Scanning © National Instruments Corporat ion 15-17 NI-Motio n User Manual C/C++ Code[...]

  • Page 269

    Chapter 15 Scanning NI-Motion User Manual 15-18 ni.com vectorSpace = NIMC_VECTOR_SPACE1; // Confi[...]

  • Page 270

    Chapter 15 Scanning © National Instruments Corporat ion 15-19 NI-Motio n User Manual if (backlo[...]

  • Page 271

    Chapter 15 Scanning NI-Motion User Manual 15-20 ni.com err = flex_read_axis_status_rtn (boardID, [...]

  • Page 272

    © National Instruments Corporat ion 16-1 NI-Motion User Manual 16 Rotating Knife The purpose of [...]

  • Page 273

    Chapter 16 Rotating Knife NI-Motion User Manual 16-2 ni.com Figure 16-1. Rotating Knife A Syn[...]

  • Page 274

    Chapter 16 Rotating Knife © National Instruments Corporat ion 16-3 NI-Motion User Manual Algor[...]

  • Page 275

    Chapter 16 Rotating Knife NI-Motion User Manual 16-4 ni.com LabVIEW Code Figure 16-3. Rotating [...]

  • Page 276

    Chapter 16 Rotating Knife © National Instruments Corporat ion 16-5 NI-Motion User Manual Figur[...]

  • Page 277

    Chapter 16 Rotating Knife NI-Motion User Manual 16-6 ni.com // Set the axis number slaveAxis = [...]

  • Page 278

    Chapter 16 Rotating Knife © National Instruments Corporat ion 16-7 NI-Motion User Manual { // [...]

  • Page 279

    Chapter 16 Rotating Knife NI-Motion User Manual 16-8 ni.com err = flex_start (boardID, slaveAxis[...]

  • Page 280

    © National Instruments Corpor ation A-1 NI-Motion User Manual A Sinusoidal Commutation for Brus[...]

  • Page 281

    Appendix A Sinusoidal Commutation fo r Brushless Servo Motion Control NI-Motion User Manual A- 2 [...]

  • Page 282

    Appendix A Sinusoi dal Commutation for Brushless Ser vo Motion Control © National Instruments Co[...]

  • Page 283

    © National Instruments Corpor ation B-1 NI-Motion User Manual B Initializing the Controller Pro[...]

  • Page 284

    Appendix B Initializing the Controller Programmatically NI-Motion User Manual B- 2 ni.com 10. C[...]

  • Page 285

    © National Instruments Corpor ation C-1 NI-Motion User Manual C Using the Motion Controller with[...]

  • Page 286

    Appendix C Using the Motion Controller with the LabVIEW Real-Time Module NI-Motion User Manual C-[...]

  • Page 287

    Appendix C Using the Motion Controller wi th the LabVIEW Real-Tim e Module © National Instruments [...]

  • Page 288

    © National Instruments Corpor ation D-1 NI-Motion User Manual D T echnical Support and Professi[...]

  • Page 289

    © National Instruments Corpor ation G-1 NI-Motion User Manual Glossar y A A/D analog-to-digita[...]

  • Page 290

    Glossary NI-Motion User Manual G-2 ni.com binary Number system with a base of 2. buf fer T empor[...]

  • Page 291

    Glossary © National Instruments Corpor ation G-3 NI-Motion User Manual E encoder Dev ice that t[...]

  • Page 292

    Glossary NI-Motion User Manual G-4 ni.com home switch (input) Phy sic al po siti on d eter mine [...]

  • Page 293

    Glossary © National Instruments Corpor ation G-5 NI-Motion User Manual M m meters MCS Move Comp[...]

  • Page 294

    Glossary NI-Motion User Manual G-6 ni.com P PCI peripheral component interconnect— a high-perfo[...]

  • Page 295

    Glossary © National Instruments Corpor ation G-7 NI-Motion User Manual RPM rev olutions per min[...]

  • Page 296

    Glossary NI-Motion User Manual G-8 ni.com V Vv o l t s velocity mode Move the axis continuously [...]

  • Page 297

    © National Instruments Corpor ation I-1 NI-Motion User Manual Index A absolute contouring, 7-4 a[...]

  • Page 298

    Index NI-Motion User Manual I-2 ni.com blending moves, 9-1 branching onboard programs algorithm, 1[...]

  • Page 299

    Index © National Instruments Corpor ation I-3 NI-Motion User Manual direct set, A-2 documentatio[...]

  • Page 300

    Index NI-Motion User Manual I-4 ni.com control loop, 3-2 acceleration feedforward, 3-6 deri vati [...]

  • Page 301

    Index © National Instruments Corpor ation I-5 NI-Motion User Manual spherical, 6-7 algorithm, 6-[...]

  • Page 302

    Index NI-Motion User Manual I-6 ni.com onboard program s, 14-2 algorithm, 14-4 automatically star[...]

  • Page 303

    Index © National Instruments Corpor ation I-7 NI-Motion User Manual LabVIEW code, 16 -4 solution[...]

  • Page 304

    Index NI-Motion User Manual I-8 ni.com LabVIEW code, 5-13 straight-line moves, 4-1, 5-1 subroutine[...]

  • Page 305

    Index © National Instruments Corpor ation I-9 NI-Motion User Manual trajectory parameters accele[...]