Wiki source code of 08 High-speed pulse output

Version 3.1 by Stone Wu on 2022/06/15 12:00

Show last authors
1 = {{id name="_Toc23711"/}}**ZRN/DZRN/Origin return** =
2
3 **ZRN/DZRN**
4
5 This instruction is to use the specified pulse speed and pulse output port to make the actuator move to the origin of action (DOG) when the PLC and the servo drive work together, until the origin signal meets the conditions.
6
7 -[ZRN/DZRN (s1) (s2) (s3) (d)]
8
9 **{{id name="OLE_LINK392"/}}Content, range and data type**
10
11 (% class="table-bordered" %)
12 |**Parameter**|(% style="width:392px" %)**Content**|(% style="width:155px" %)**Range**|(% style="width:236px" %)**Data type**|(% style="width:204px" %)**Data type (label)**
13 |(s1)|(% style="width:392px" %)The speed when the origin return starts|(% style="width:155px" %)(((
14 1 to 32767
15
16 1 to 200000
17 )))|(% style="width:236px" %)Signed BIN16/Signed BIN32|(% style="width:204px" %)ANY16_S/ANY32_S
18 |(s2)|(% style="width:392px" %)Crawl speed|(% style="width:155px" %)(((
19 1 to 32767
20
21 1 to 200000
22 )))|(% style="width:236px" %)Signed BIN16/Signed BIN32|(% style="width:204px" %)ANY16_S/ANY32_S
23 |(s3)|(% style="width:392px" %)The device number of the input number of the near-point signal (DOG) to be input.|(% style="width:155px" %)-|(% style="width:236px" %)Bit|(% style="width:204px" %)ANY_BOOL
24 |(d)|(% style="width:392px" %)The device number (Y) that outputs pulse|(% style="width:155px" %)-|(% style="width:236px" %)Bit|(% style="width:204px" %)ANY_BOOL
25
26 **Device used**
27
28 (% class="table-bordered" style="width:1049px" %)
29 |(% rowspan="2" %)**Instruction**|(% rowspan="2" style="width:133px" %)**Parameter**|(% colspan="14" style="width:617px" %)**Devices**|(% style="width:138px" %)**Offset modification**|(((
30 **Pulse**
31
32 **extension**
33 )))
34 |(% style="width:3px" %)**X**|**Y**|**M**|**S**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**K**|(% style="width:75px" %)**H**|(% style="width:138px" %)**[D]**|**XXP**
35 |(% rowspan="4" %)ZRN|(% style="width:133px" %)Parameter 1|(% style="width:3px" %) | | | |●|●|●|●|●|●|●|●|●|(% style="width:75px" %)●|(% style="width:138px" %)●|
36 |(% style="width:133px" %)Parameter 2|(% style="width:3px" %) | | | |●|●|●|●|●|●|●|●|●|(% style="width:75px" %)●|(% style="width:138px" %)●|
37 |(% style="width:133px" %)Parameter 3|(% style="width:3px" %)●|●|●|●| | | | | | | | | |(% style="width:75px" %) |(% style="width:138px" %) |
38 |(% style="width:133px" %)Parameter 4|(% style="width:3px" %) |●| | | | | | | | | | | |(% style="width:75px" %) |(% style="width:138px" %) |
39
40 **Features**
41
42 This instruction is to use the specified pulse speed and pulse output port to make the actuator move to the origin of action (DOG) when the PLC and the servo drive work together, until the origin signal meets the conditions.
43
44 .
45
46 (% style="text-align:center" %)
47 [[image:08_html_abde218848583ae7.gif||height="352" width="700" class="img-thumbnail"]]
48
49 • Specify the speed at the start of origin return in (s1). (It should be in the range of 1 to 200,000)
50
51 • Specify the crawling speed in (s2). (It should be in the range of 1 to 200,000)
52
53 • Specify the device number of the input number of the near-point signal (DOG) to be input in (s3).
54
55 • Specify the device that outputs pulses in (d). Only Y devices with positioning parameters could be specified.
56
57 • After the DOG contact signal of this instruction disappears, the pulse stops immediately.
58
59 • The pulse frequency could be modified during operation.
60
61 (% style="text-align:center" %)
62 [[image:1652679761818-564.png||height="409" width="800" class="img-thumbnail"]]
63
64 **{{id name="OLE_LINK84"/}}✎Note:**
65
66 {{id name="OLE_LINK85"/}}Please do not duplicate soft components used for other controls.
67
68 When designing the near-point DOG, please consider that there is enough time to be ON to fully decelerate to the crawl speed.
69
70 Please set the near-point DOG between the reverse limit 1 (LSR) and the forward limit 1 (LSF). When near-point DOG, reverse limit 1 (LSR), forward limit 1 (LSF) do not form the relationship shown in the figure below, the action may not be performed.
71
72 (% style="text-align:center" %)
73 [[image:08_html_e424715fa5809765.png||height="129" width="800" class="img-thumbnail"]]
74
75 Please make the crawling speed slow enough. Since it does not decelerate to stop, if the crawling speed is too fast, the stop position will shift due to inertia.
76
77 **Error code**
78
79 (% class="table-bordered" %)
80 |**Error code**|**Content**
81 |4084H|The data input in the application instruction (s1) and (s2) exceed the specified range
82 |4085H|The result output in the read application instruction (s1), (s2), (s3) and (d) exceed the device range
83 |4088H|The same pulse output axis (d) is used and has been started.
84
85 **Example**
86
87 (% style="text-align:center" %)
88 [[image:08_html_5398e9b5857a7283.png||height="366" width="700" class="img-thumbnail"]]
89
90 {{id name="OLE_LINK86"/}}Set Y1 as the output axis at a maximum speed of 200K, a offset speed of 500, and a acceleration/deceleration time of 100ms. Origin return is performed at the frequency of 200Khz, and it runs at a crawling speed after receiving the origin signal X0, and it stops after the X0 signal is reset.
91
92 = {{id name="_Toc17090"/}}**{{id name="_Toc4613"/}}{{id name="_Toc28244"/}}DSZR/DDSZR/Origin return** =
93
94 **{{id name="OLE_LINK390"/}}DSZR/DDSZR**
95
96 {{id name="OLE_LINK396"/}}The instruction is that when the PLC works with the servo drive, it uses the specified pulse speed and pulse output port and the specified direction axis to move the actuator to the origin of the action (DOG) until the origin signal meets the conditions.
97
98 -[DSZR/DDSZR (s1) (s2) (s3) (d)]
99
100 **Content, range and data type**
101
102 (% class="table-bordered" %)
103 |**Parameter**|(% style="width:457px" %)**Content**|(% style="width:124px" %)**Range**|(% style="width:226px" %)**Data type**|(% style="width:180px" %)**Data type (label)**
104 |(s1)|(% style="width:457px" %)The speed when the origin return starts|(% style="width:124px" %)(((
105 1 to 32767
106
107 1 to 200000
108 )))|(% style="width:226px" %)Signed BIN16/Signed BIN32|(% style="width:180px" %)ANY16_S/ANY32_S
109 |(s2)|(% style="width:457px" %)Crawling speed|(% style="width:124px" %)(((
110 1 to 32767
111
112 1 to 200000
113 )))|(% style="width:226px" %)Signed BIN16/Signed BIN32|(% style="width:180px" %)ANY16_S/ANY32_S
114 |(s3)|(% style="width:457px" %)The device number of the input number of the near-point signal (DOG) to be input.|(% style="width:124px" %)-|(% style="width:226px" %)Bit|(% style="width:180px" %)ANY_BOOL
115 |(d1)|(% style="width:457px" %)The device number (Y) that outputs pulse|(% style="width:124px" %)-|(% style="width:226px" %)Bit|(% style="width:180px" %)ANY_BOOL
116 |(d2)|(% style="width:457px" %){{id name="OLE_LINK393"/}}Operation direction output port or bit variable|(% style="width:124px" %) |(% style="width:226px" %) |(% style="width:180px" %)
117
118 **Device used**
119
120 (% class="table-bordered" style="width:1022px" %)
121 |(% rowspan="2" %)**Instruction**|(% rowspan="2" style="width:133.641px" %)**Parameter**|(% colspan="15" style="width:630.359px" %)**Devices**|(% style="width:128px" %)**Offset modification**|(((
122 **Pulse**
123
124 **extension**
125 )))
126 |(% style="width:1px" %)**X**|**Y**|**M**|**S**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**K**|(% style="width:76px" %)**H**|(% style="width:128px" %)**[D]**|**XXP**
127 |(% rowspan="5" %)DSZR|(% style="width:133.641px" %)Parameter 1|(% style="width:1px" %) | | | | |●|●|●|●|●|●|●|●|●|(% style="width:76px" %)●|(% style="width:128px" %)●|
128 |(% style="width:133.641px" %)Parameter 2|(% style="width:1px" %) | | | | |●|●|●|●|●|●|●|●|●|(% style="width:76px" %)●|(% style="width:128px" %)●|
129 |(% style="width:133.641px" %)Parameter 3|(% style="width:1px" %)●|●|●|●| | | | | | | | | | |(% style="width:76px" %) |(% style="width:128px" %) |
130 |(% style="width:133.641px" %)Parameter 4|(% style="width:1px" %) |●| | | | | | | | | | | | |(% style="width:76px" %) |(% style="width:128px" %) |
131 |(% style="width:133.641px" %)Parameter 5|(% style="width:1px" %) |●|●|●|●| | | | | | | | | |(% style="width:76px" %) |(% style="width:128px" %) |
132
133 **Features**
134
135 The instruction is that when the PLC works with the servo drive, it uses the specified pulse speed and pulse output port and the specified direction axis to move the actuator to the origin of the action (DOG) until the origin signal meets the conditions.
136
137 (% style="text-align:center" %)
138 [[image:08_html_abde218848583ae7.gif||height="403" width="800" class="img-thumbnail"]]
139
140 • Specify the speed at the start of origin return in (s1). (It should be in the range of 1 to 200000)
141
142 • Specify the crawling speed in (s2). (It should be in the range of 1 to 200000)
143
144 • Specify the device number of the input number of the near-point signal (DOG) to be input in (s3).
145
146 {{id name="OLE_LINK397"/}}• Specify the device that outputs pulses in (d1). Only Y devices with positioning parameters could be specified.
147
148 • Specify the bit device that specify the pulse output direction signal in (d2). Only the device specified in parameters and universal output could be specified.
149
150 • After the DOG contact signal of this instruction disappears, the pulse stops immediately.
151
152 • The pulse frequency could be modified during operation.{{id name="OLE_LINK398"/}}
153
154 (% style="text-align:center" %)
155 [[image:1652679890567-504.png||height="406" width="800" class="img-thumbnail"]]
156
157 **✎Note:**
158
159 Please do not duplicate soft components used for other controls.
160
161 When designing the near-point DOG, please consider that there is enough time to be ON to fully decelerate to the crawl speed.
162
163 Please set the near-point DOG between the reverse limit 1 (LSR) and the forward limit 1 (LSF). When near-point DOG, reverse limit 1 (LSR), forward limit 1 (LSF) do not form the relationship shown in the figure below, the action may not be performed.
164
165 {{id name="OLE_LINK399"/}}
166
167 (% style="text-align:center" %)
168 [[image:08_html_3152d1fc65e8de15.gif||height="128" width="900" class="img-thumbnail"]]
169
170 Please make the crawling speed slow enough. Since it does not decelerate to stop, if the crawling speed is too fast, the stop position will shift due to inertia.
171
172 **Error code**
173
174 (% class="table-bordered" %)
175 |**Error code**|**Content**
176 |4084H|The data input in the application instruction (s1) and (s2) exceed the specified range
177 |4085H|The result output in the read application instruction (s1), (s2), (s3), (d1) and (d2) exceed the device range
178 |4088H|The same pulse output axis (d1) is used and has been started.
179
180 **Example**
181
182 (% style="text-align:center" %)
183 [[image:08_html_dd08d39552c03bd6.png||class="img-thumbnail"]]
184
185 Set Y1 as the output axis and Y10 as the direction axis at a maximum speed of 200K, a offset speed of 500, and a acceleration/deceleration time of 100ms. Origin return is performed at the frequency of 200Khz, and it runs at a crawling speed after receiving the origin signal X0, and it stops after the X0 signal is reset.
186
187 = **{{id name="_Toc4674"/}}DVIT/DDVIT/16-bit data relative positioning** =
188
189 **DVIT/DDVIT**
190
191 This instruction outputs the specified number of pulses according to the specified port, frequency and running direction. When an interrupt signal is received, it will stop after sending the specified number of pulses.
192
193 -[DVIT/DDVIT (s1) (s2) (d1) (d2) (d3)]
194
195 **{{id name="OLE_LINK391"/}}Content, range and data type**
196
197 (% class="table-bordered" %)
198 |**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
199 |(s1)|Specify the number of output pulses|(((
200 -32768 to +32767
201
202 -2147483648 to 2147483647
203 )))|(((
204 Signed BIN16/
205
206 Signed BIN32
207 )))|ANY16_S/ANY32_S
208 |(s2)|Specify the frequency of output pulse|(((
209 1 to 32767
210
211 1 to 200000
212 )))|(((
213 Signed BIN16/
214
215 Signed BIN32
216 )))|ANY16_S/ANY32_S
217 |(d1)|Specify output pulse port|-|Bit|ANY_BOOL
218 |(d2)|Running direction output port or bit variable|-|Bit|ANY_BOOL
219 |(d3)|Interrupt signal|-|Bit|ANY_BOOL
220
221 **Device used**
222
223 (% class="table-bordered" %)
224 |(% rowspan="2" %)**Instruction**|(% rowspan="2" style="width:134.641px" %)**Parameter**|(% colspan="15" style="width:628.359px" %)**Devices**|(% style="width:129px" %)**Offset modification**|(((
225 **Pulse**
226
227 **extension**
228 )))
229 |(% style="width:1px" %)**X**|**Y**|**M**|**S**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**K**|(% style="width:75px" %)**H**|(% style="width:129px" %)**[D]**|**XXP**
230 |(% rowspan="5" %)DVIT|(% style="width:134.641px" %)Parameter 1|(% style="width:1px" %) | | | | |●|●|●|●|●|●|●|●|●|(% style="width:75px" %)●|(% style="width:129px" %)●|
231 |(% style="width:134.641px" %)Parameter 2|(% style="width:1px" %) | | | | |●|●|●|●|●|●|●|●|●|(% style="width:75px" %)●|(% style="width:129px" %)●|
232 |(% style="width:134.641px" %)Parameter 3|(% style="width:1px" %) |●| | | | | | | | | | | | |(% style="width:75px" %) |(% style="width:129px" %) |
233 |(% style="width:134.641px" %)Parameter 4|(% style="width:1px" %) |●|●|●|●| | | | | | | | | |(% style="width:75px" %) |(% style="width:129px" %) |
234 |(% style="width:134.641px" %)Parameter 5|(% style="width:1px" %)●| |●|●| | | | | | | | | | |(% style="width:75px" %) |(% style="width:129px" %) |
235
236 **Features**
237
238 This instruction uses relative drive to perform 1st gear positioning. The specified positioning address adopts incremental mode, and positioning is performed by specifying the moving direction and the moving amount (relative address) from the current position.
239
240 {{id name="OLE_LINK87"/}}• Specify the number of output pulses in (s1). (It should be in the range of -2,147,483,647 to +2,147,483,647)
241
242 • Specify the instruction speed of user units in (s2). (It should be in the range of 1 to 200,000)
243
244 • Specify the device that outputs pulses in (d1). Only Y devices with positioning parameters can be specified.
245
246 • Specify the bit device of the pulse output direction signal in (d2). Only the devices and general outputs specified in the parameters could be specified.
247
248 • Specify the bit device of the interrupt signal in (d3). Only the devices and general outputs specified in the parameters could be specified.
249
250 (% style="text-align:center" %)
251 [[image:08_html_5f96163eb153efdb.gif||height="428" width="800" class="img-thumbnail"]]
252
253 **✎Note:**
254
255 {{id name="OLE_LINK88"/}}Please do not duplicate device used for other controls.
256
257 If the positioning address (s1) is 0 when the instruction is started, it will end abnormally and report 4084H error.
258
259 Before the interrupt input signal 1 is detected, if the positioning address (s1) is changed to 0, the positioning operation will continue, and the pulse output will stop after the input interruption, and it will end normally.
260
261 After the interrupt input signal 1 is detected, when the positioning address (s1) is changed to 0, it will decelerate to a stop, reverse the output direction, and continue to operate until the positioning address of the interrupt is input, and end normally.
262
263 When the number of pulses is less than the number required for deceleration and stop, it stops immediately when the positioning address is reached.
264
265 **Error code**
266
267 (% class="table-bordered" %)
268 |**Error code**|**Content**
269 |4084H|The data input in the application instruction (s1) and (s2) exceed the specified range
270 |4085H|The result output in the read application instruction (s1), (s2), (d1), (d2) and (d3) exceed the device range
271 |4088H|The same pulse output axis (d1) is used and has been started.
272
273 **Example**
274
275 (% style="text-align:center" %)
276 [[image:08_html_5010ae7be265bf62.png||class="img-thumbnail"]]
277
278 Set Y0 as the output axis and Y1 as the direction axis with the maximum speed of 200K, the offset speed of 500, and the acceleration/deceleration time of 100ms, and run at a frequency of 200,000, and send 200,000 pulses after receiving the X0 signal.
279
280 (% style="text-align:center" %)
281 [[image:08_html_cbfdbddb08628e8c.gif||height="419" width="800" class="img-thumbnail"]]
282
283 = {{id name="_Toc22468"/}}**DRVI/DDRVI/Relative positioning** =
284
285 **DRVI/DDRVI**
286
287 Execute single-speed positioning instructions in relative drive mode. The method of specifying the movement distance from the current position with positive/negative signs is also called incremental (relative) drive mode.
288
289 -[DRVI/DDRVI (s1) (s2) (d1) (d2)]
290
291 **Content, range and data type**
292
293 (% class="table-bordered" %)
294 |**Parameter**|**Content**|**Range**|**Data type**|(((
295 **Data type**
296
297 **(label)**
298 )))
299 |(s1)|(((
300 Specify the number of output pulses
301
302 (relative address)
303 )))|(((
304 -32768 to 32767
305
306 -2147483648 to +2147483647
307 )))|(((
308 Signed BIN16/
309
310 Signed BIN32
311 )))|(((
312 ANY16_S/
313
314 ANY32_S
315 )))
316 |(s2)|Specify the frequency of output pulse|(((
317 1 to 32,767
318
319 1 to 200,000
320 )))|(((
321 Signed BIN16/
322
323 Signed BIN32
324 )))|(((
325 ANY16_S/
326
327 ANY32_S
328 )))
329 |(d1)|Specify the device number of output pulse|-|Bit|ANY_BOOL
330 |(d2)|Running direction output port or bit variable|-|Bit|ANY_BOOL
331
332 **Device used**
333
334 (% class="table-bordered" %)
335 |(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="14" %)**Devices**|**Offset modification**|(((
336 **Pulse**
337
338 **extension**
339 )))
340 |**Y**|**M**|**S**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**K**|**H**|**[D]**|**XXP**
341 |(% rowspan="4" %)DRVI|Parameter 1| | | | |●|●|●|●|●|●|●|●|●|●|●|
342 |Parameter 2| | | | |●|●|●|●|●|●|●|●|●|●|●|
343 |Parameter 3|●| | | | | | | | | | | | | | |
344 |Parameter 4|●|●|●|●| | | | | | | | | | | |
345
346 **Features**
347
348 This instruction uses incremental mode (specified by position of relative address) to perform single-speed positioning.
349
350 With the current stop position as the starting point, specify the movement direction and movement amount (relative address) for positioning.
351
352 (% style="text-align:center" %)
353 [[image:08_html_9e2927d44c64e0be.gif||height="323" width="800" class="img-thumbnail"]]
354
355 • Specify the positioning address of the user unit with a relative address in (s1). (It should be in the range of -2147483647 to +2147483647)
356
357 • Specify the instruction speed of user unit in (s2). (It should be in the range of 1 to 200,000)
358
359 • Specify the device that outputs pulses in (d1). Only Y devices with positioning parameters could be specified.
360
361 • Specify the bit device of the output direction signal in (d2). Only the devices and general outputs specified in the parameters could be specified.
362
363 • The pulse frequency and pulse position could be modified during the operation of this instruction.
364
365 (% style="text-align:center" %)
366 [[image:08_html_50efa4160b140701.gif||height="418" width="800" class="img-thumbnail"]]
367
368 **✎Note:**
369
370 Please do not duplicate device used for other controls.
371
372 **Error code**
373
374 (% class="table-bordered" %)
375 |**Error code**|**Content**
376 |4084H|The data input in the application instruction (s1) and (s2) exceed the specified range
377 |4085H|The result output in the read application instruction (s1), (s2), (d1) and (d2) exceed the device range
378 |4088H|The same pulse output axis (d1) is used and has been started.
379
380 **Example**
381
382 (% style="text-align:center" %)
383 [[image:08_html_df6686d0dd0322d.png||class="img-thumbnail"]]
384
385 {{id name="OLE_LINK91"/}}{{id name="OLE_LINK92"/}}Set Y0 as the output axis, and Y1 as the direction axis with the maximum speed in 200K, and the offset speed in 500, and the acceleration/deceleration time in 100ms. Send a high-speed pulse with acceleration and deceleration at a frequency of 200KHZ, and a pulse number of 200K.
386
387 = {{id name="_Toc23478"/}}**{{id name="_Toc19438"/}}{{id name="_Toc5660"/}}DRVA/DDRVA/Absolute positioning** =
388
389 **DRVA/DDRVA**
390
391 Execute single-speed positioning instructions in absolute drive mode. The method of specifying the movement distance from the origin (zero) is also called the absolute drive method.
392
393 -[DRVA/DDRVA (s1) (s2) (d1) (d2)]
394
395 **Content, range and data type**
396
397 (% class="table-bordered" %)
398 |**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
399 |(s1)|(((
400 Specify the number of output pulses
401
402 (absolute address)
403 )))|(((
404 -32768 to 32767
405
406 -2147483648 to 2147483647
407 )))|(((
408 Signed BIN16
409
410 Signed BIN32
411 )))|(((
412 ANY16_S
413
414 ANY32_S
415 )))
416 |(s2)|Specify the frequency of output pulse|(((
417 1 to 32767
418
419 1 to 200000
420 )))|(((
421 Signed BIN16
422
423 Signed BIN32
424 )))|(((
425 ANY16_S
426
427 ANY32_S
428 )))
429 |(d1)|Specify the device number of output pulse|-|Bit|ANY_BOOL
430 |(d2)|Running direction output port or bit variable|-|Bit|ANY_BOOL
431
432 **Device used**
433
434 (% class="table-bordered" %)
435 |(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="14" %)**Devices**|**Offset modification**|(((
436 **Pulse**
437
438 **extension**
439 )))
440 |**Y**|**M**|**S**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**K**|**H**|**[D]**|**XXP**
441 |(% rowspan="4" %)DRVA|Parameter 1| | | | |●|●|●|●|●|●|●|●|●|●|●|
442 |Parameter 2| | | | |●|●|●|●|●|●|●|●|●|●|●|
443 |Parameter 3|●| | | | | | | | | | | | | | |
444 |Parameter 4|●|●|●|●| | | | | | | | | | | |
445
446 **Features**
447
448 This instruction uses absolute drive to perform single-speed positioning. The specified positioning address adopts the absolute method, and the specified position (absolute address) is used for positioning based on the origin.
449
450 {{id name="OLE_LINK365"/}}
451
452 (% style="text-align:center" %)
453 [[image:08_html_7a3c30baa77024fb.gif||height="311" width="800" class="img-thumbnail"]]
454
455 • Specify the positioning address of user unit with a absolute address in (s1). (It should be in the range of -2,147,483,647 to +2,147,483,647)
456
457 • Specify the instruction speed of user unit in (s2). (It should be in the range of 1 to 200,000)
458
459 • Specify the device that outputs pulses in (d1). Only Y devices with positioning parameters could be specified.
460
461 • Specify the bit device of the output direction signal in (d2). Only the devices and general outputs specified in the parameters could be specified.
462
463 • The pulse frequency and pulse position could be modified during the operation of this instruction.
464
465 (% style="text-align:center" %)
466 [[image:08_html_620f348d2565adf2.gif||height="411" width="800" class="img-thumbnail"]]
467
468 **✎Note:**
469
470 Please do not duplicate device used for other controls.
471
472 **Error code**
473
474 (% class="table-bordered" %)
475 |**Error code**|**Content**
476 |4084H|The data input in the application instruction (s1) and (s2) exceed the specified range
477 |4085H|The result output in the read application instruction (s1), (s2), (d1) and (d2) exceed the device range
478 |4088H|The same pulse output axis (d1) is used and has been started.
479
480 **Example**
481
482 (% style="text-align:center" %)
483 [[image:08_html_ded99163cc1edb.png||class="img-thumbnail"]]
484
485 Set Y0 as the output axis, and Y1 as the direction axis with the maximum speed in 200K, and the offset speed in 500, and the acceleration/deceleration time in 100ms. Send a high-speed pulse with acceleration and deceleration at a frequency of 200KHZ, starting at the origin position and ending at 200,000
486
487 = {{id name="_Toc21291"/}}**{{id name="_Toc21950"/}}{{id name="_Toc10018"/}}PLSR/DPLSR/Pulse output with acceleration and deceleration** =
488
489 **PLSR/DPLSR**
490
491 Pulse output instruction with acceleration and deceleration function.
492
493 -[PLSR/DPLSR (s1) (s2) (s3) (d)]
494
495 **Content, range and data type**
496
497 (% class="table-bordered" %)
498 |**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
499 |(s1)|Specify the frequency of output pulse|(((
500 (1 to 32767)
501
502 (1 to +200000)
503 )))|(((
504 Signed BIN16/
505
506 Signed BIN32
507 )))|(((
508 ANY16_S/
509
510 ANY32_S
511 )))
512 |(s2)|Specify the number of output pulse|(((
513 (0 to 32767)
514
515 (0 to +2147483647)
516 )))|(((
517 Signed BIN16/
518
519 Signed BIN32
520 )))|(((
521 ANY16_S/
522
523 ANY32_S
524 )))
525 |(s3)|Save acceleration and deceleration time (ms) data|(((
526 (50 to 32000)
527
528 (0: No acceleration or deceleration)
529 )))|(((
530 Signed BIN16/
531
532 Signed BIN32
533 )))|(((
534 ANY16_S/
535
536 ANY32_S
537 )))
538 |(d)|The device number of output pulse|-|Bit|ANY_BOOL
539
540 **Device used**
541
542 (% class="table-bordered" %)
543 |(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="11" %)**Devices**|**Offset modification**|(((
544 **Pulse**
545
546 **extension**
547 )))
548 |**Y**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**K**|(% style="width:24px" %)**H**|**[D]**|**XXP**
549 |(% rowspan="4" %)PLSR|Parameter 1| |●|●|●|●|●|●|●|●|●|(% style="width:24px" %)●|●|
550 |Parameter 2| |●|●|●|●|●|●|●|●|●|(% style="width:24px" %)●|●|
551 |Parameter 3| |●|●|●|●|●|●|●|●|●|(% style="width:24px" %)●|●|
552 |Parameter 4|●| | | | | | | | | |(% style="width:24px" %) | |
553
554 **Features**
555
556 Pulse output instruction with acceleration and deceleration function.
557
558 • Specify the output instruction speed in (s1). (It should be in the range of 1 to 200,000)
559
560 • Specify the number of output pulses in (s2). (It should be in the range of 0 to +2,147,483,647)
561
562 • Specify the acceleration/deceleration time (ms) in (s3). (It should be in the range of 50 to 32,000. If set to 0, no acceleration or deceleration will be performed)
563
564 • Specify the device that outputs pulses in (d). Only output devices (Y) with positioning parameters could be specified.
565
566 (% style="text-align:center" %)
567 [[image:08_html_1b0fa8d702052193.gif||height="382" width="700" class="img-thumbnail"]]
568
569 **✎Note:**
570
571 {{id name="OLE_LINK99"/}}Please do not duplicate device used for other controls.
572
573 **Error code**
574
575 (% class="table-bordered" %)
576 |**Error code**|**Content**
577 |4084H|The data input in the application instruction (s1) and (s2) exceed the specified range
578 |4085H|The result output in the read application instruction (s1), (s2), (s3) and (d) exceed the device range
579 |4088H|The same pulse output axis (d) is used and has been started.
580
581 **Example**
582
583 (% style="text-align:center" %)
584 [[image:08_html_8ef5d10712e2f0f5.png||class="img-thumbnail"]]
585
586 Set Y0 as the output axis at a maximum speed of 200K, and a offset speed of 500, and a acceleration/deceleration time of 100ms. Send a high-speed pulse with acceleration and deceleration at a frequency of 200KHZ, a pulse number of 200K.
587
588 = {{id name="_Toc10313"/}}**{{id name="_Toc31417"/}}{{id name="_Toc9007"/}}PLSR2/Multi-speed positioning** =
589
590 **PLSR2**
591
592 The PLSR2 instruction sets parameters in the form of a table, and generates relative and absolute position pulse instructions according to the specified port, frequency, running direction and acceleration/deceleration time in segments, so that the servo actuator could make a given offset based on the current position.
593
594 -[PLSR2 (s) (d1) (d2)]
595
596 **Content, range and data type**
597
598 (% class="table-bordered" %)
599 |**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
600 |(s)|The parameter address is an area with Dn as the starting address|-|(((
601 Signed BIN16/
602
603 Signed BIN32
604 )))|(((
605 ANY16_S/
606
607 ANY32_S
608 )))
609 |(d1)|The device (Y) number of output pulse|-|Bit|ANY_BOOL
610 |(d2)|Running direction output port or bit variable|-|Bit|ANY_BOOL
611
612 **Device used**
613
614 (% class="table-bordered" %)
615 |(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="6" %)**Devices**|**Offset modification**|(((
616 **Pulse**
617
618 **extension**
619 )))
620 |**Y**|**M**|**S**|**D.b**|**D**|**R**|**[D]**|**XXP**
621 |(% rowspan="3" %)PLSR2|Parameter 1| | | | |●|●|●|
622 |Parameter 2|●| | | | | | |
623 |Parameter 3|●|●|●|●| | | |
624
625 **Features**
626
627 The PLSR2 instruction sets parameters in the form of a table, and generates relative and absolute position pulse instructions according to the specified port, frequency, running direction and acceleration/deceleration time in segments, so that the servo actuator could make a given offset based on the current position.
628
629 • Specify the parameter address in (s), which is an area with Dn as the starting address.
630
631 • Specify the device that outputs pulses in (d1). Only Y devices with positioning parameters could be specified.
632
633 • Specify the bit device of the output direction signal in (d2). Only the devices and general outputs specified in the parameters could be specified.
634
635 • During the operation of this instruction, only the pulse frequency and pulse position of the last segment could be modified. If the value exceeds the parameter range, it will stop with an error.
636
637 {{id name="OLE_LINK93"/}}• The number of pulse segments could not be modified while the instruction is running. If the number of segments is modified, the error will stop.
638
639 • When the instruction has a waiting condition or the reverse operation need to stop to restart, use the same start frequency and end frequency as the first segment.
640
641 Instruction parameter configuration table:
642
643 (% class="table-bordered" %)
644 |**Address offset (s)**|**Content**|**Instruction**
645 |(S) + 0|The number of pulse segments|(1-n)
646 |(S) + 1|Form identification|Reserved
647 |(S) + 2|(% rowspan="2" %){{id name="OLE_LINK95"/}}The first segment pulse frequency|(% rowspan="2" %)1HZ to 200,000HZ
648 |(S) + 3
649 |(S) + 4|(% rowspan="2" %)The number of pulses in the first segment|(% rowspan="2" %)None
650 |(S) + 5
651 |(S) + 6|The first segment waiting condition|(((
652 0: Pulse sending completed
653
654 1: Waiting time
655
656 2: Waiting signal (ON valid)
657
658 3: Waiting signal (OFF is effective)
659
660 4: Trigger signal (rising edge)
661
662 5: Trigger signal (falling edge)
663
664 (Use with [Waiting Condition] and [Waiting Register])
665 )))
666 |(S) + 7|The first segment waiting register type|(((
667 Correspondence between waiting conditions and waiting register types:
668
669 Pulse sending completed: none
670
671 Waiting time: =0: D register;
672
673 ~=1: constant;
674
675 Waiting signal: =0: X-bit register;
676
677 ~=1: M-bit register;
678
679 ~=2: S-bit register;
680
681 ~=3: Y-bit register;
682
683 Trigger signal: =0: X-bit register;
684
685 ~=1: M-bit register;
686
687 ~=2: S-bit register;
688
689 ~=3: Y-bit register
690 )))
691 |(S) + 8|(% rowspan="2" %)The first segment constant value/waiting register number|(% rowspan="2" %)None
692 |(S) + 9
693 |(S) + 10|The first segment operation mode|0: Relative mode; 1: Absolute mode
694 |(S) + 11|Reserved|Reserved
695 |...|...|...
696 |(S)+2+(n-1)*10|(% rowspan="2" %)The Nth segment pulse frequency|(% rowspan="2" %)1HZ to 200,000HZ
697 |(S)+3+(n-1)*10
698
699 **Parameter Description**
700
701 **(1) Number of pulse segments:**
702
703 (s) + 0 is used to set the number of pulse segments (single word), and the number of segments needs to be greater than 0 segment, Pay attention to whether the table range exceeds the maximum usable device value.
704
705 **(2) Form ID:**
706
707 (s) +1: reserved.
708
709 **(3) Pulse mode:**
710
711 {{id name="OLE_LINK96"/}}(s) +(n-1)*10+10 (single word) is the pulse mode of the nth segment. When it is set to 0, it is relative mode, that is, the number of pulses and the current position register are relative positions. When it is set to 1, it is absolute mode, that is, the pulse number and current position register are absolute positions.
712
713 **(4) Waiting conditions:**
714
715 (s) +(n-1)*10+6 (single word) is the waiting condition of the nth segment, (s) +(n-1)*10+7 (single word) is the waiting register type, (s) + (n-1)*10+8 (double word) is the waiting register number or constant value.
716
717 Waiting condition = 0 means no waiting condition, = 1 means waiting time, = 2 means waiting signal (high level), = 3 means waiting signal (low level), = 4 means trigger signal (rising edge)), = 5means trigger signal (falling edge).
718
719 The waiting condition is used in conjunction with the waiting register and the waiting register number/constant value.
720
721 1) No waiting conditions
722
723 When (s) +(n-1)*10+6=0, it is no waiting condition, that is, after the number of pulses set in this segment is executed, it will immediately jump to the pulse segment specified later.
724
725 {{id name="OLE_LINK97"/}}Example one: Three pulses are needed now. The pulse frequency of the first segment is 2,000Hz, and the number of pulses is 2,000; The pulse frequency of the second segment is 4,000Hz, and the number of pulses is 4,000; The pulse frequency of the third segment is 6,000 with no waiting conditions.
726
727 (% class="table-bordered" %)
728 |**The number of segments**|**Pulse frequency**|**The number of pulses**|**Waiting mode**|**Condition**
729 |1|20,000|20,000|No waiting conditions|K0
730 |2|40,000|40,000|No waiting conditions|K0
731 |3|60,000|60,000|No waiting conditions|K0
732
733 The ladder program parameter settings are as follows:
734
735 (% style="text-align:center" %)
736 [[image:08_html_ee55f00006990bc0.png||class="img-thumbnail"]]
737
738 The waveform diagram is as follows:
739
740 (% style="text-align:center" %)
741 [[image:08_html_3117922fe2a20cac.gif||height="387" width="700" class="img-thumbnail"]]
742
743 2) Waiting time
744
745 When (s) +(n-1)*10+6 =1, it is the waiting time. When (s) +(n-1)*10+7 =0, it is waiting D register, when =1, it is waiting constant.
746
747 After the pulse output of the current segment is completed, start timing. When the timing time is up, it will immediately jump to he specified pulse segment; the timing time could be constant or specified by register D, unit: ms (range: 1-65,535ms).
748
749 Example 2: Three pulses are needed now. The pulse frequency of the first segment is 20,000Hz, and the number of pulses is 20,000, and the waiting time is K100ms. The pulse frequency of the second segment is 40,000Hz, and the number of pulses is 40,000; and the waiting time is K100ms. The pulse frequency of the third segment is 60,000,and the number of pulses is 60,000 with no waiting conditions.
750
751 (% class="table-bordered" %)
752 |**The number of segments**|**Pulse frequency**|**The number of pulses**|**Waiting mode**|**Condition**
753 |1|20,000|20,000|waiting time|K100
754 |2|40,000|40,000|waiting time|D100
755 |3|60,000|60,000|No waiting conditions|K0
756
757 The ladder program parameter settings are as follows:
758
759 (% style="text-align:center" %)
760 [[image:08_html_b92ad02f284c9758.png||class="img-thumbnail"]]
761
762 The waveform diagram is as follows:
763
764 (% style="text-align:center" %)
765 [[image:08_html_6bc1d175fa4748a6.gif||height="372" width="700" class="img-thumbnail"]]
766
767 3) Waiting signal
768
769 When (s) +(n-1)*10+6=2, it is waiting signal high level (ON status). When (s) +(n-1)*10+6 =3, it is waiting signal low level ( OFF status). When (s) +(n-1)*10+7 =0, it means waiting for X signal, and =1 means waiting for M signal, =2 means waiting for S signal, =3 means waiting for Y signal.
770
771 Example 3: Three pulses are needed now. The pulse frequency of the first segment is 20,000Hz, and the number of pulses is 20,000, and the waiting signal is M2. The pulse frequency of the second segment is 40,000Hz, and the number of pulses is 40,000; and the waiting signal is X2. The pulse frequency of the third segment is 60,000,and the number of pulses is 60,000 with no waiting conditions.
772
773 (% class="table-bordered" %)
774 |**The number of segments**|**Pulse frequency**|**The number of pulses**|**Waiting mode**|**Condition**
775 |1|20,000|20,000|Waiting signal high level|M2
776 |2|40,000|40,000|Waiting signal low level|X2
777 |3|60,000|60,000|No waiting conditions|K0
778
779 The ladder program parameter settings are as follows:
780
781 (% style="text-align:center" %)
782 [[image:08_html_40a3785e48620a2d.png||class="img-thumbnail"]]
783
784 The waveform diagram is as follows:
785
786 If the signal is received in advance, it will not decelerate to stop, but directly accelerate/decelerate to the specified speed of the next segment. (X2 low level is received during operation)
787
788 (% style="text-align:center" %)
789 [[image:08_html_5599da81e80c2958.gif||height="413" width="700" class="img-thumbnail"]]
790
791 4)** **Trigger signal
792
793 When (s) +(n-1)*10+6 =4, it is the rising edge of trigger signal. When (s) +(n-1)*10+6 = 5, it is the falling edge of trigger signal.
794
795 (s) +(n-1)*10+7 =0 means waiting for X signal, =1 means waiting for M signal, =2 means waiting for S signal, =3 means waiting for Y signal.
796
797 After the current pulse segment starts to send pulses, if the external bit signal triggers operates (ON state) before the current number of pulses are sent, the next pulse is sent immediately. At the end of the pulse transmission of the current segment, if the signal is not triggered (OFF state), the next pulse will continue to be sent (that is, the configured pulse segment will be pulsed in a mode without waiting conditions. But if the current pulse is receiving a trigger signal during the process, it will directly accelerate and decelerate to the next pulse).
798
799 Example 4: Three pulses are needed now. The pulse frequency of the first segment is 20,000Hz, and the number of pulses is 20,000, and the waiting signal is M2. The pulse frequency of the second segment is 40,000Hz, and the number of pulses is 40,000; and the waiting signal is X2. The pulse frequency of the third segment is 60,000,and the number of pulses is 60,000 with no waiting conditions.
800
801 (% class="table-bordered" %)
802 |**The number of segments**|**Pulse frequency**|**The number of pulses**|**Waiting mode**|**Condition**
803 |1|20,000|20,000|Trigger signal rising edge|M2
804 |2|40,000|40,000|Trigger signal falling edge|X2
805 |3|60,000|60,000|No waiting conditions|K0
806
807 The ladder program parameter settings are as follows:
808
809 (% style="text-align:center" %)
810 [[image:08_html_333d8cff6d336d70.png||class="img-thumbnail"]]
811
812 The pulse waveform diagram is as follows:
813
814 (% style="text-align:center" %)
815 [[image:08_html_a84e97c5590c3f71.gif||height="371" width="700" class="img-thumbnail"]]
816
817 If a signal is received in the acceleration section (deceleration section), it will directly accelerate (decelerate) in the current section to the next pulse frequency.
818
819 **✎Note: **Please do not duplicate device used for other controls.
820
821 **Error code**
822
823 (% class="table-bordered" %)
824 |(% style="width:127px" %)**Error code**|(% style="width:954px" %)**Content**
825 |(% style="width:127px" %)4084H|(% style="width:954px" %)The table parameter input data that exceeds the specified range
826 |(% style="width:127px" %)4085H|(% style="width:954px" %)The table parameter with the first address in the read application instruction (s) exceeds the device range, and the output result of the read parameter (s), (d1) and (d2) exceeds the device range
827 |(% style="width:127px" %)4088H|(% style="width:954px" %)The same pulse output axis (d1) is used and has been started.
828
829 = {{id name="_Toc3904"/}}**{{id name="_Toc11943"/}}{{id name="_Toc18707"/}}PLSV/DPLSV/Variable speed operation** =
830
831 **PLSV/DPLSV**
832
833 {{id name="OLE_LINK100"/}}Output variable speed pulse instruction with rotation direction. This instruction could change the speed with acceleration and deceleration.
834
835 -[PLSV (s) (d1) (d2)]
836
837 **Content, range and data type**
838
839 (% class="table-bordered" %)
840 |**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
841 |(s)|Specify output pulse frequency|-|Signed BIN16/Signed BIN32|ANY16_S/ANY32_S
842 |(d1)|Specify the number of output pulse|-|Bit|ANY_BOOL
843 |(d2)|The device (Y) number of output pulse|-|Bit|ANY_BOOL
844
845 **Device used**
846
847 (% class="table-bordered" %)
848 |(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="14" %)**Devices**|**Offset modification**|(((
849 **Pulse**
850
851 **extension**
852 )))
853 |**Y**|**M**|**S**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**K**|**H**|**[D]**|**XXP**
854 |(% rowspan="3" %)PLSV|Parameter 1| | | | |●|●|●|●|●|●|●|●|●|●|●|
855 |Parameter 2|●| | | | | | | | | | | | | | |
856 |Parameter 3|●|●|●|●| | | | | | | | | | | |
857
858 **Features**
859
860 This instruction is used to output variable speed pulse with rotation direction output.
861
862 • Specify the instruction speed of user units in (s). (It should be in the range of -200,000 to 200,000. When it is 0, stop sending pulse)
863
864 • Specify the device that outputs pulses in (d1). Only Y devices with positioning parameters could be specified.
865
866 • Specify the bit device of the output direction signal in (d2). Only the devices and general outputs specified in the parameters could be specified.
867
868 • The pulse frequency could be modified while the instruction is running.
869
870 (% style="text-align:center" %)
871 [[image:08_html_2521cc1e50e799ab.gif||height="394" width="700" class="img-thumbnail"]]
872
873 **✎Note:**
874
875 {{id name="OLE_LINK101"/}}Please do not duplicate device used for other controls.
876
877 If the acceleration time is 0, no acceleration action will be performed, and the speed is changed to the instruction speed immediately.
878
879 If the deceleration time is 0, no deceleration action will be performed, and it will stop immediately when the drive contact is OFF.
880
881 **Error code**
882
883 (% class="table-bordered" %)
884 |**Error code**|**Content**
885 |4084H|The data input in the application instruction (s1) exceeds the specified range
886 |4085H|The result output in the read application instruction (s1), (d1) and (d2) exceed the device range
887 |4088H|The same pulse output axis (d1) is used and has been started.
888
889 **Example**
890
891 Set the highest frequency to 200,000K, the offset speed to 500, and the acceleration/deceleration time to 100ms.
892
893 (% style="text-align:center" %)
894 [[image:08_html_b4702eafb893fc63.png||class="img-thumbnail"]]
895
896 The sending pulse is as follows:
897
898 (% style="text-align:center" %)
899 [[image:08_html_ac71a602fee1445e.gif||height="387" width="700" class="img-thumbnail"]]
900
901 = {{id name="_Toc8609"/}}**{{id name="_Toc662"/}}{{id name="_Toc30652"/}}PLSY/DPLSY/Pulse output** =
902
903 **PLSY/DPLSY**
904
905 {{id name="OLE_LINK364"/}}The pulse specified in the instruction speed (s) is output from the device specified in the output (d) to the pulse specified pulse in the positioning address (n).
906
907 -[PLSY/DPLSY (s) (n) (d)]
908
909 **Content, range and data type**
910
911 (% class="table-bordered" %)
912 |**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
913 |(s)|Specify output pulse frequency|-|Signed BIN16/Signed BIN32|ANY16_S/ANY32_S
914 |(n)|Specify the number of output pulse|-|Bit|ANY_BOOL
915 |(d)|The device (Y) number of output pulse|-|Bit|ANY_BOOL
916
917 **Device used**
918
919 (% class="table-bordered" %)
920 |(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="11" %)**Devices**|**Offset modification**|(((
921 **Pulse**
922
923 **extension**
924 )))
925 |**Y**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**K**|**H**|**[D]**|**XXP**
926 |(% rowspan="3" %)PLSY|Parameter 1| |●|●|●|●|●|●|●|●|●|●|●|
927 |Parameter 2| |●|●|●|●|●|●|●|●|●|●|●|
928 |Parameter 3|●| | | | | | | | | | | |
929
930 **Features**
931
932 • The pulse specified in the instruction speed (s) is output from the device specified in the output (d) to the pulse specified pulse in the positioning address (n).
933
934 • Specify the instruction speed of user unit in (s). (It should be in the range of 1 to 200,000)
935
936 • Specify the positioning address of user unit with a relative address in (n). (It should be in the range of 0 to 2,147,483,647)
937
938 • Specify the device that outputs pulses in (d). Only Y devices with positioning parameters could be specified.
939
940 • The instruction pulse output has no acceleration/deceleration process.
941
942 (% style="text-align:center" %)
943 [[image:08_html_2c248b954bdddae3.gif||height="356" width="700" class="img-thumbnail"]]
944
945 **✎Note:**
946
947 Please do not duplicate device used for other controls. Since this instruction has no direction, the direction polarity is invalid, and it always increases with the current address.
948
949 When the reverse limit is used, it will act as the forward limit.
950
951 **Error code**
952
953 (% class="table-bordered" %)
954 |**Error code**|**Content**
955 |4084H|The data input in the application instruction (s) and (n) exceed the specified range
956 |4085H|The result output in the read application instruction (s), (n) and (d) exceed the device range
957 |4088H|The same pulse output axis (d) is used and has been started.
958
959 **Example**
960
961 **(1) Unlimited pulse output: positioning address (operand (n)) = 0**
962
963 (% style="text-align:center" %)
964 [[image:08_html_ba12be0aaf3caf40.png||class="img-thumbnail"]]
965
966 (% style="text-align:center" %)
967 [[image:08_html_97583e8621e6ae69.png||height="143" width="600" class="img-thumbnail"]]
968
969 **(2) Pulse output: positioning address (operand (n))> 0**
970
971
972 (% style="text-align:center" %)
973 [[image:08_html_87bd5854f06006b0.png]]
974
975 (% style="text-align:center" %)
976 [[image:08_html_97583e8621e6ae69.png||height="143" width="600" class="img-thumbnail"]]
977
978 = {{id name="_Toc10375"/}}**{{id name="_Toc17757"/}}PWM/BIN 16-bit pulse output** =
979
980 **PWM**
981
982 Output the ON time (16-bit data unit) specified in (s1) and the cycle pulse (16-bit data unit) specified in (s2) to the output destination specified in (d).
983
984 -[PWM (s1) (s2) (d)]
985
986 **Content, range and data type**
987
988 (% class="table-bordered" %)
989 |**Parameter**|(% style="width:702px" %)**Content**|(% style="width:183px" %)**Range**|**Data type**|**Data type (label)**
990 |(s1)|(% style="width:702px" %)The ON time or the device number storing the ON time|(% style="width:183px" %)0 to 32,767|Signed BIN16|ANY16_S
991 |(s2)|(% style="width:702px" %)Cycle or the device number storing the cycle|(% style="width:183px" %)1 to 32,767|Signed BIN16|ANY16_S
992 |(d)|(% style="width:702px" %)The channel number and device number that pulse outputs|(% style="width:183px" %)-|Bit|ANY_BOOL
993
994 **Device used**
995
996 (% class="table-bordered" %)
997 |(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="11" %)**Devices**|**Offset modification**|(((
998 **Pulse**
999
1000 **extension**
1001 )))
1002 |**Y**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**K**|**H**|**[D]**|**XXP**
1003 |(% rowspan="3" %)PWM|Parameter 1| |●|●|●|●|●|●|●|●|●|●|●|
1004 |Parameter 2| |●|●|●|●|●|●|●|●|●|●|●|
1005 |Parameter 3|●| | | | | | | | | | | |
1006
1007 **Features**
1008
1009 Normal mode
1010
1011 • Output the ON time specified in (s1) and the cycle pulse specified in (s2) to the output destination specified in (d).
1012
1013 (((
1014 • Specify the output pulse width in (s1). (The setting range is 0 to 32,767ms)
1015
1016 • Specify the output pulse period in (s2). (The setting range is 1 to 32,767ms)
1017
1018 • Specify the device that outputs pulses in (d). Only Y devices with positioning parameters can be specified.
1019
1020 • The pulse width and pulse period can be modified during pulse sending.
1021
1022 (% style="text-align:center" %)
1023 [[image:08_html_b54cf8e0b0b86ddb.png||height="195" width="600" class="img-thumbnail"]]
1024 )))
1025
1026 **✎Note:**
1027
1028 1. Please do not duplicate device used for other controls.
1029 1. Set pulse width and cycle time. Please set the value of pulse width (s1) and period (s2) as (s1)≤(s2).
1030 1. About pulse output: This instruction is executed in interrupt mode. When the instruction power flow is OFF, the output stops, and (s1) and (s2) could be modified when the PWM instruction is executed. If it is modified to an incorrect parameter, the sending of PWM pulse will be stopped.
1031
1032 **Related device**
1033
1034 (% class="table-bordered" %)
1035 |**Output shaft**|**Y0**|**Y1**|**Y2**|**Y3**|**Y4**|**Y5**|**Y6**|**Y7**
1036 |Percentage mode sign|SM897|SM957|SM1017|SM1077|SM1137|SM1197|SM1257|SM1317
1037
1038 **Error code**
1039
1040 (% class="table-bordered" %)
1041 |**Error code**|**Content**
1042 |4084H|The data input in the application instruction (s1) and (s2) exceed the specified range or (s1)>(s2)
1043 |4085H|The result output in the read application instruction (s1), (s2) and (d) exceed the device range
1044 |4088H|The same pulse output axis (d) is used and has been started.
1045
1046 **Example**
1047
1048 (% style="text-align:center" %)
1049 [[image:08_html_3ed5f1836c38d129.png||class="img-thumbnail"]]
1050
1051 The waveform diagram is shown as right.
1052
1053 (% style="text-align:center" %)
1054 [[image:08_html_f38f59f98fdc96c0.png||height="213" width="600" class="img-thumbnail"]]
1055
1056 = **PWM/PWM perimeter mode** =
1057
1058 **PWM**
1059
1060 The period parameter (s2), the average equal division is 1000 equal divisions, (s1) is the pulse duty ratio, and the setting of the millimetric ratio mode is used to output to the output target specified in (d).
1061
1062 -[PWM (s1) (s2) (d)]
1063
1064 **Content, range and data type**
1065
1066 (% class="table-bordered" %)
1067 |**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
1068 |(s1)|Set output pulse duty cycle|0 to 1000|Signed BIN16|ANY16_S
1069 |(s2)|Set pulse output cycle|1 to 32767|Signed BIN16|ANY16_S
1070 |(d)|Pulse output channel number, device number|-|Bit|ANY_BOOL
1071
1072 **Device used**
1073
1074 (% class="table-bordered" %)
1075 |(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="11" %)**Devices**|**Offset modification**|(((
1076 **Pulse**
1077
1078 **extension**
1079 )))
1080 |**Y**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**K**|**H**|**[D]**|**XXP**
1081 |(% rowspan="3" %)PWM|Parameter 1| |●|●|●|●|●|●|●|●|●|●|●|
1082 |Parameter 2| |●|●|●|●|●|●|●|●|●|●|●|
1083 |Parameter 3|●| | | | | | | | | | | |
1084
1085 **Features**
1086
1087 The period parameter (s2), the average equal division is 1000 equal divisions, (s1) is the pulse duty ratio, and the setting of the millimetric ratio mode is used to output to the output target specified in (d).
1088
1089 It is necessary to turn on the millimetric ratio mode of the PWM instruction, and the corresponding related device:
1090
1091 (% class="table-bordered" %)
1092 |**Output shaft**|**Y0**|**Y1**|**Y2**|**Y3**|**Y4**|**Y5**|**Y6**|**Y7**
1093 |Percentage Mode Sign|SM897|SM957|SM1017|SM1077|SM1137|SM1197|SM1257|SM1317
1094
1095 Specify the output pulse duty ratio in (s1). (The setting range is 0 to 1000)
1096
1097 Specify the output pulse period in (s2). (The setting range is 1 to 32,767ms)
1098
1099 Specify the device that outputs the pulse in (d). Only Y devices with positioning parameters can be specified.
1100
1101 The calculation formula is: t (ms) = T0 (ms) * K / 1000
1102
1103 High level time (ms) = set cycle time (ms) x duty cycle / 1000
1104
1105 Low level time (ms) = period (ms)-high level time (ms)
1106
1107 That is, the period is set to 100ms, if the duty cycle is set to 500, the output is high for 50ms and low for 50ms; if the duty cycle is set to 100, the output is high for 10ms and low for 90ms; If it is set to 900, the output will be high for 90ms and low for 10ms. The fractional part of the calculated pulse output time is output by rounding.
1108
1109 The period and duty cycle can be modified during pulse sending.
1110
1111 **✎Note:**
1112
1113 1. Please be careful not to overlap with other control devices.
1114 1. About pulse output
1115
1116 This instruction is executed in interrupt mode. When the instruction power flow is OFF, the output stops. (s1) and (s2) can be changed when the PWM instruction is executed. If it is modified to an incorrect parameter, the sending of PWM pulse will be stopped.
1117
1118 **Related device**
1119
1120 • Percentage mode flag
1121
1122 (% class="table-bordered" %)
1123 |**Output shaft**|**Y0**|**Y1**|**Y2**|**Y3**|**Y4**|**Y5**|**Y6**|**Y7**
1124 |Percentage Mode Sign|SM897|SM957|SM1017|SM1077|SM1137|SM1197|SM1257|SM1317
1125
1126 **Error code**
1127
1128 (% class="table-bordered" %)
1129 |**Error code**|**Content**
1130 |4084H|The data input in the application instruction (s1) and (s2) exceed the specified range
1131 |4085H|The result output in the read application instruction (s1), (s2) and (d) exceed the device range
1132 |4088H|The same pulse output axis (d) is used and has been started.
1133
1134 **Example**
1135
1136 The period is set to 100ms, if the duty cycle is set to 500, the output is high for 50ms and low for 50ms; if the duty cycle is set to 100, the output is high for 10ms and low for 90ms; duty cycle If it is set to 900, then the output is high for 90ms and low for 10ms;
1137
1138 (% style="text-align:center" %)
1139 [[image:08_html_ace0b444319fb8c4.png||class="img-thumbnail"]]
1140
1141 The waveform diagram is as follows, the period is 300ms, the duty cycle is 100, and the output is 30ms high level and 270ms low level:
1142
1143 (% style="text-align:center" %)
1144 [[image:08_html_13acf8747e8703ff.png||class="img-thumbnail"]]
1145
1146 = {{id name="_Toc26527"/}}**{{id name="_Toc9670"/}}{{id name="_Toc32423"/}}{{id name="_Toc27238"/}}G90G01 Absolute position line interpolation instruction** =
1147
1148 **G90G01**
1149
1150 Execute 2 axis/3 axis line interpolation instruction in absolute drive mode. The method of specifying the movement distance from the origin point(zero point) is also called absolute drive mode.
1151
1152 -[G90G01 (s1) (s2) (d1) (d2) ]
1153
1154 **{{id name="_Toc28329"/}}Content, range and data type**
1155
1156 (% class="table-bordered" %)
1157 |**Parameters**|**Content**|**Range**|**Data type**|**Data type tag**
1158 |(s1)|Specify the target position (absolute address)|-2147483648 to +2147483647|Signed BIN32|ANY32_S
1159 |(s2)|Specify the synthetic output frequency|1 to 141421|Signed BIN32|ANY32_S
1160 |(d1)|Device (Y) number of output pulse|Y0/Y2|Bit|ANY_BOOL
1161 |(d2)|Running direction output port or bit variable|-|Bit|ANY_BOOL
1162
1163 **{{id name="_Toc26897"/}}Device used**
1164
1165 (% class="table-bordered" %)
1166 |(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameters**|(% colspan="6" %)**Device**|(((
1167 **Offset**
1168
1169 **modification**
1170 )))|(((
1171 **Pulse**
1172
1173 **extension**
1174 )))
1175 |**Y**|**M**|**D**|**R**|**K**|**H**|**[D]**|**XXP**
1176 |(% rowspan="4" %)G90G01|Parameter 1| | |●|●| | | |
1177 |Parameter 2| | |●|●|●|●| |
1178 |Parameter 3|●| | | | | | |
1179 |Parameter 4|●|●| | | | | |
1180
1181 **{{id name="_Toc19729"/}}Features**
1182
1183 This instruction outputs pulses according to the specified port, frequency and running direction, and performs 2-axis/3-axis line interpolation, and servo actuator runs to the target position according to the line interpolation.
1184
1185 (% style="text-align:center" %)
1186 [[image:08_html_af156a7b9cc09d34.jpg||height="324" width="700" class="img-thumbnail"]]
1187
1188 * (s1) is the starting address, and occupies 6 consecutive addresses. s1 is the target position (absolute positioning) of X axis , s1+2 is the target position (absolute positioning) of Y axis, and s1+4 is the target position (absolute positioning) of Z axis. The range is -2147483648 to +2147483647.
1189
1190 * Specify the synthetic output frequency in (s2) . The range is 1 to 141421.
1191 * Specify the device of output pulse in (s2) ,only Y0/Y2 could be specified, and consecutive addresses (Y0, Y1, Y2, Y3) are occupied .
1192
1193 SM345: Set the mode of switching line interpolation. When SM345=0, it is two-axis line interpolation mode. When SM345=1, it is three-axis line interpolation mode.
1194
1195 If d1 specifies Y0 and SM345=0, Y0 and Y1 are occupied. If SM345=1, Y0, Y1 and Y2 are occupied;
1196
1197 If d1 specifies Y2 and SM345=0, Y2 and Y3 are occupied. If SM345=1, the software reports an error.
1198
1199 * {{id name="OLE_LINK6"/}}Specify the bit device of output direction signal in d2 and occupy 3 consecutive addresses, which indicate the directions of the X, Y, and Z axes in turn.
1200
1201 {{id name="_Toc28690"/}}
1202
1203 **✎Note: **
1204
1205 1. Please do not duplicate devices that used for other controls.
1206 1. When using interpolation instructions, the parameter settings (such as acceleration/deceleration time and other parameters) are subject to the starting axis specified by d1.
1207 1. Only trapezoidal acceleration and deceleration are supported.
1208 1. The actual synthetic frequency S (the minimum frequency value) is the lowest base frequency of the output synthetic frequency. The calculation modes are as follows:
1209
1210 (% style="text-align:center" %)
1211 [[image:08_html_6f6668df922f7274.gif||class="img-thumbnail"]]
1212
1213 (% style="text-align:center" %)
1214 [[image:08_html_6854958a7732277a.gif||class="img-thumbnail"]]
1215
1216 **{{id name="_Toc32765"/}}Error Codes**
1217
1218 (% class="table-bordered" %)
1219 |**Error Codes**|**Contents**
1220 |4084H|The data input in the application instruction (s1) and (s2) exceed the specified range
1221 |4085H|The result output in the read application instruction (s1), (s2), (d1) and (d2) exceed the device range
1222 |4088H|The same pulse output axis (d1) is used and has been started.
1223
1224 **{{id name="_Toc29603"/}}Example**
1225
1226 (% style="text-align:center" %)
1227 [[image:08_html_c30d92ae8a2303e1.png||class="img-thumbnail"]]
1228
1229 Set Y0 as the interpolation starting axis, Y5 as the direction starting axis, and the maximum speed is 2000, the offset speed is 500, and the acceleration/deceleration time is 500ms. Send a absolute position line interpolation output based on the original position which is with acceleration and deceleration, and the end position is X (Y0) axis 100, Y (Y1) axis 100, and the pulse synthesis frequency is 1000.
1230
1231 = {{id name="_Ref31771"/}}**{{id name="_Toc17391"/}}{{id name="_Toc10640"/}}{{id name="_Toc32642"/}}G91G01 Relative position line interpolation instruction** =
1232
1233 {{id name="OLE_LINK10"/}}{{id name="_Toc20742"/}}**G91G01**
1234
1235 Execute 2 axis/3 axis line interpolation instruction in relative drive mode. The method of specifying the movement distance from the current position is also called incremental(relative) drive mode.
1236
1237 -[G91G01 (s1) (s2) (d1) (d2) ]
1238
1239 **{{id name="_Toc28861"/}}Content, range and data type**
1240
1241 (% class="table-bordered" %)
1242 |**Parameters**|**Content**|**Range**|**Data type**|**Data type tag**
1243 |(s1)|{{id name="OLE_LINK8"/}}Specify the target position (relative address)|-2147483648 to 2147483647|Signed BIN32|ANY32_S
1244 |(s2)|Specify the synthetic output frequency|1 to 141421|Signed BIN32|ANY32_S
1245 |(d1)|Device (Y) number of output pulse|Y0/Y2|Bit|ANY_BOOL
1246 |(d2)|Running direction output port or bit variable|-|Bit|ANY_BOOL
1247
1248 **{{id name="_Toc14801"/}}Device used**
1249
1250 (% class="table-bordered" %)
1251 |(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameters**|(% colspan="6" %)**Device**|(((
1252 **Offset**
1253
1254 **modification**
1255 )))|(((
1256 **Pulse**
1257
1258 **extension**
1259 )))
1260 |**Y**|**M**|**D**|**R**|**K**|**H**|**[D]**|**XXP**
1261 |(% rowspan="4" %)G91G01|Parameter 1| | |●|●| | | |
1262 |Parameter 2| | |●|●|●|●| |
1263 |Parameter 3|●| | | | | | |
1264 |Parameter 4|●|●| | | | | |
1265
1266 **{{id name="_Toc11871"/}}Features**
1267
1268 This instruction outputs pulses according to the specified port, frequency and running direction, and performs 2-axis line interpolation, and servo actuator performs 2-axis line interpolation with a given offset based on the current position.
1269
1270 (% style="text-align:center" %)
1271 [[image:08_html_b587806f5f71987d.jpg||height="371" width="800" class="img-thumbnail"]]
1272
1273 * (s1) is the starting address, and occupies 6 consecutive addresses. s1 is the target position (relative positioning) of X axis , s1+2 is the target position (relative positioning) of Y axis, and s1+4 is the target position (relative positioning) of Z axis. The range is -2147483648 to +2147483647.
1274
1275 * Specify the synthetic output frequency in (s2) . The range is 1 to 141421.
1276 * Specify the device of output pulse in (s2), only Y0/Y2 could be specified, and consecutive addresses (Y0, Y1, Y2, Y3) are occupied .
1277
1278 SM345: Set the mode of switching line interpolation. When SM345=0, it is two-axis line interpolation mode. When SM345=1, it is three-axis line interpolation mode.
1279
1280 If d1 specifies Y0 and SM345=0, Y0 and Y1 are occupied. If SM345=1, Y0, Y1 and Y2 are occupied;
1281
1282 If d1 specifies Y2 and SM345=0, Y2 and Y3 are occupied. If SM345=1, the software reports an error.
1283
1284 * Specify the bit device of output direction signal in d2 and occupy 3 consecutive addresses, which indicate the directions of the X, Y, and Z axes in turn.
1285
1286 **{{id name="_Toc18437"/}}✎Note: **
1287
1288 1. Please do not duplicate device that used for other controls.
1289 1. When using interpolation instructions, the parameter settings (such as acceleration/deceleration time and other parameters) are subject to the starting axis specified by d1.
1290 1. Only trapezoidal acceleration and deceleration are supported.
1291 1. The actual synthetic frequency S (the minimum frequency value) is the lowest base frequency of the output synthetic frequency. The calculation modes are as follows:
1292
1293 (% style="text-align:center" %)
1294 [[image:08_html_6f6668df922f7274.gif||class="img-thumbnail"]]
1295
1296 (% style="text-align:center" %)
1297 [[image:08_html_6854958a7732277a.gif||class="img-thumbnail"]]
1298
1299 **{{id name="_Toc8461"/}}Error Codes**
1300
1301 (% class="table-bordered" %)
1302 |**Error Codes**|**Contents**
1303 |4084H|The data input in the application instruction (s1) and (s2) exceed the specified range
1304 |4085H|The result output in the read application instruction (s1), (s2), (d1) and (d2) exceed the device range
1305 |4088H|The same pulse output axis (d1) is used and has been started.
1306
1307 **{{id name="_Toc16441"/}}Example**
1308
1309 (% style="text-align:center" %)
1310 [[image:08_html_c30d92ae8a2303e1.png||class="img-thumbnail"]]
1311
1312 {{id name="_Toc26903"/}}Set Y0 as the interpolation starting axis, Y5 as the direction starting axis, and the maximum speed is 2000, and the offset speed is 500, and the acceleration/deceleration time is 500ms. Send a relative position line interpolation output based on the relative position which is with acceleration and deceleration , and the incremental position is X (Y0) axis 100, Y (Y1) axis 100, and the pulse synthesis frequency is 1000.
1313
1314 = {{id name="_Ref31781"/}}**{{id name="_Toc27199"/}}{{id name="_Toc11517"/}}{{id name="_Toc20314"/}}{{id name="OLE_LINK11"/}}G90G02 Absolute position clockwise circular interpolation instruction** =
1315
1316 **G90G02**
1317
1318 Execute 2 axis clockwise circular interpolation instruction in absolute drive mode. The method of specifying the movement distance from the origin point(zero point) is also called absolute drive mode.
1319
1320 -[G90G02 (s1) (s2) (s3) (d1) (d2) ]
1321
1322 **{{id name="_Toc22972"/}}Content, range and data type**
1323
1324 (% class="table-bordered" %)
1325 |**Parameters**|**Content**|**Range**|**Data type**|**Data type tag**
1326 |(s1)|Specify the target position (absolute address)|-2147483648 to 2147483647|Signed BIN32|ANY32_S
1327 |(s2)|Radius/Center mode|-|Signed BIN32|ANY32_S
1328 |(s3)|Specify the synthetic output frequency|1 to 100000|Signed BIN32|ANY32_S
1329 |(d1)|Device(Y) number for output pulse|Y0|Bit|ANY_BOOL
1330 |(d2)|Running direction output port or bit variable|-|Bit|ANY_BOOL
1331
1332 **{{id name="_Toc23094"/}}Soft components**
1333
1334 (% class="table-bordered" %)
1335 |(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameters**|(% colspan="6" %)**Device**|**Offset modification**|(((
1336 **Pulse**
1337
1338 **extension**
1339 )))
1340 |**Y**|**M**|**D**|**R**|**K**|**H**|**[D]**|**XXP**
1341 |(% rowspan="5" %)G90G02|Parameter 1| | |●|●| | | |
1342 |Parameter 2| | |●|●| | | |
1343 |Parameter 3| | |●|●|●|●| |
1344 |Parameter 4|●| | | | | | |
1345 |Parameter 5|●|●| | | | | |
1346
1347 **{{id name="_Toc25878"/}}Features**
1348
1349 {{id name="OLE_LINK12"/}}This instruction outputs pulses according to the specified port, frequency and running direction, and performs 2-axis clockwise circular interpolation, and servo actuator performs clockwise circular interpolation to run to the target position point.
1350
1351 (% style="text-align:center" %)
1352 [[image:08_html_ca40f9fe262dab7.jpg||height="482" width="800" class="img-thumbnail"]]
1353
1354 * (s1) is the starting address, and occupies 6 consecutive addresses. s1 is the target position (absolute positioning) of X axis , s1+2 is the target position (absolute positioning) of Y axis, and s1+4 is the target position (absolute positioning) of Z axis. The range is -2147483648 to +2147483647.
1355 * Specify radius or center mode in (s2), and occupy 4 consecutive addresses. The center coordinate of s2+0 is in the difference value of the number of pulse output of X axis relative to the current position, or the number of the pulse of radius R. The center coordinate of s2+2 is in the difference value of the number of pulse output of Y axis relative to the current position. When using radius, the value must be 0X7FFF FFFF. The range is 1 to 141421.
1356
1357 * Specify the synthetic output frequency in (s3) . The range is 1 to 100000.
1358 * Specify the device of output pulse in (d1), only Y0 could be specified, and consecutive addresses (Y0, Y1) are occupied .
1359
1360 * Specify the bit device of output direction signal in (d2), and occupy 2 consecutive addresses, which indicate the directions of the X and Y axes in turn.
1361
1362 **{{id name="_Toc7679"/}}✎Note**
1363
1364 1. {{id name="OLE_LINK16"/}}Please do not duplicate device that used for other controls.
1365 1. When using interpolation instruction, the parameter settings (such as acceleration/deceleration time and other parameters) are subject to the starting axis specified by d1.
1366 1. The maximum radius supported by circular interpolation is plus or minus 800,000 pulses, and the radius cannot be zero.
1367 1. {{id name="OLE_LINK19"/}}There are two modes for setting s2: IJ mode (circle center coordinate mode) and R mode (radius mode). When the value of s2+2 is set to 0x7FFF FFFF, it is R mode (radius mode), otherwise it is IJ mode (circle center coordinate mode).
1368 1. IJ mode: Regardless of absolute position interpolation or relative position interpolation, s2 is only expressed as the difference of the pulse output number between the coordinates of the center of the circle on the XY axis (Y0/Y1) relative to the current position, and both are in the offset value.
1369 1. R mode (radius mode): When the value of R is greater than 0, it indicates that it is an arc less than or equal to 180 degrees. When the value of R is less than 0, it indicates that it is an arc greater than or equal to 180 degrees. A full circle cannot be generated In R mode because there are infinite solutions.
1370 1. When s1 indicates the relative position of the target position, a reasonable target position needs to be set to ensure that the target arc path can be generated correctly. When s1+0=0 and s1+2=0, it means that a full circle is generated.
1371 1. When using the interpolation instruction, parameter settings (such as celebration/deceleration time and so on) are subject to the X axis (Y0);
1372 1. The actual synthetic frequency S (the lowest frequency value) is the lowest base frequency of the output synthetic frequency. The calculation modes are as follows:
1373
1374 (% style="text-align:center" %)
1375 [[image:08_html_6f6668df922f7274.gif||class="img-thumbnail"]]
1376
1377 (% style="text-align:center" %)
1378 [[image:08_html_6854958a7732277a.gif||class="img-thumbnail"]]
1379
1380 **Error Codes**
1381
1382 (% class="table-bordered" %)
1383 |(% style="width:134px" %)**Error Codes**|(% style="width:947px" %)**Contents**
1384 |(% style="width:134px" %)4084H|(% style="width:947px" %)The data input in the application instruction (s1) and (s2) exceed the specified range
1385 |(% style="width:134px" %)4085H|(% style="width:947px" %)The result output in the read application instruction (s1), (s2), (d1) and (d2) exceed the device range
1386 |(% style="width:134px" %)4088H|(% style="width:947px" %)The same pulse output axis (d1) is used and has been started.
1387 |(% style="width:134px" %)4F90H|(% style="width:947px" %)In radius mode, the radius is not in the range.
1388 |(% style="width:134px" %)4F92H|(% style="width:947px" %)In center/radius mode, the error of quadrant calculation is caused by the large deviation between the set coordinate of the end point and the theoretical end point of circle.
1389 |(% style="width:134px" %)4F93H|(% style="width:947px" %)In radius mode, the chord length is greater than the diameter.
1390 |(% style="width:134px" %)4F95H|(% style="width:947px" %)In center mode, the distance between the circle center and the starting point, and the distance between the circle center and the end point are not in the range of -10 to 10.
1391 |(% style="width:134px" %)4F96H|(% style="width:947px" %)In radius mode, when the absolute/relative mode calculates that the starting point is the same as the target position, a full circle cannot be generated.
1392 |(% style="width:134px" %)4F97H|(% style="width:947px" %)In center mode, the calculated radius distance is greater than the maximum radius range, which is positive or negative 800000 pulse.
1393
1394 **{{id name="OLE_LINK268"/}}Example**
1395
1396 (% style="text-align:center" %)
1397 [[image:08_html_c30d92ae8a2303e1.png||class="img-thumbnail"]]
1398
1399 Set Y0 as the interpolation starting axis, Y5 as the direction starting axis, and the maximum speed is 2000, and the offset speed is 500, and the acceleration/deceleration time is 500ms. Send a absolute position clockwise circular interpolation output based on the absolute position with acceleration and deceleration, and the target position is X (Y0) axis 100, Y (Y1) axis 100, and the the radius is 1000 pulse in radius mode, and the pulse synthesis frequency is 1000.
1400
1401 = **G91G02 Relative position clockwise circular interpolation instruction** =
1402
1403 **G91G02**
1404
1405 Execute 2 axis clockwise circular interpolation instruction in relative drive mode. The method of specifying the movement distance from the current position is also called incremental(relative) drive mode.
1406
1407 -[G91G02 (s1) (s2) (s3) (d1) (d2) ]
1408
1409 **{{id name="_Toc22304"/}}Content, range and data type**
1410
1411 (% class="table-bordered" %)
1412 |**Parameters**|**Content**|**Range**|**Data type**|**Data type tag**
1413 |(s1)|Specify the target position (relative address)|-2147483648 to 2147483647|Signed BIN32|ANY32_S
1414 |(s2)|Radius/center mode|-|Signed BIN32|ANY32_S
1415 |(s3)|Specify the synthetic output frequency|1 to 100000|Signed BIN32|ANY32_S
1416 |(d1)|Device (Y) number for output pulse|Y0|Bit|ANY_BOOL
1417 |(d2)|Running direction output port or bit variable|-|Bit|ANY_BOOL
1418
1419 **{{id name="_Toc20331"/}}Device used**
1420
1421 (% class="table-bordered" %)
1422 |(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameters**|(% colspan="6" %)**Device**|(((
1423 **Offset**
1424
1425 **modification**
1426 )))|(((
1427 **Pulse**
1428
1429 **extension**
1430 )))
1431 |**Y**|**M**|**D**|**R**|**K**|**H**|**[D]**|**XXP**
1432 |(% rowspan="5" %)G91G02|Parameter 1| | |●|●| | | |
1433 |Parameter 2| | |●|●| | | |
1434 |Parameter 3| | |●|●|●|●| |
1435 |Parameter 4|●| | | | | | |
1436 |Parameter 5|●|●| | | | | |
1437
1438 **Features**
1439
1440 This instruction outputs pulses according to the specified port, frequency and running direction, performs 2-axis clockwise circular interpolation, and servo actuator performs 2-axis clockwise circular interpolation with a given offset based in current position.
1441
1442 (% style="text-align:center" %)
1443 [[image:08_html_af9751b2294f613b.jpg||height="482" width="800" class="img-thumbnail"]]
1444
1445 * {{id name="OLE_LINK18"/}}s1 is the starting address, and occupies 4 consecutive addresses. s1 is the target position of X axis (relative positioning), s1+2 is the target position of Y axis (relative positioning). The range is -2147483648 to +2147483647.
1446 * {{id name="OLE_LINK20"/}}Specify radius or center mode in (s2), and occupy 4 consecutive addresses. The center coordinate of s2+0 is in the difference value of the number of pulse output of X axis relative to the current position, or the number of the pulse of radius R. The center coordinate of s2+2 is in the difference value of the number of pulse output of Y axis relative to the current position. When using radius, the value must be 0X7FFF FFFF. The range is 1 to 141421.
1447
1448 * Specify the synthetic output frequency in (s3) . The range is 1 to 100000.
1449 * Specify the device of output pulse in (d1), only Y0 could be specified, and consecutive addresses (Y0, Y1) are occupied .
1450
1451 * Specify the bit device of output direction signal in (d2), and occupy 2 consecutive addresses, which indicate the directions of the X and Y axes in turn.
1452
1453 {{id name="_Toc604"/}}✎**Note: **
1454
1455 1. Please do not duplicate device that used for other controls.
1456 1. When using interpolation instruction, the parameter settings (such as acceleration/deceleration time and other parameters) are subject to the starting axis specified by d1.
1457 1. The maximum radius supported by circular interpolation is plus or minus 800,000 pulses, and the radius cannot be zero.
1458 1. There are two modes for setting s2: IJ mode (circle center coordinate mode) and R mode (radius mode). When the value of s2+2 is set to 0x7FFF FFFF, it is R mode (radius mode), otherwise it is IJ mode (circle center coordinate mode).
1459 1. IJ mode: Regardless of absolute position interpolation or relative position interpolation, s2 is only expressed as the difference of the pulse output number between the coordinates of the center of the circle on the XY axis (Y0/Y1) relative to the current position, and both are in the offset value.
1460 1. R mode (radius mode): When the value of R is greater than 0, it indicates that it is an arc less than or equal to 180 degrees. When the value of R is less than 0, it indicates that it is an arc greater than or equal to 180 degrees. A full circle cannot be generated In R mode because there are infinite solutions.
1461 1. When s1 indicates the relative position of target position, a reasonable target position needs to be set to ensure that the target arc path can be generated correctly. When s1+0=0 and s1+2=0, it means that a full circle is generated.
1462 1. When using the interpolation instruction, parameter settings (such as celebration/deceleration time and so on) are subject to the X axis (Y0);
1463 1. The actual synthetic frequency S (the lowest frequency value) is the lowest base frequency of the output synthetic frequency. The calculation modes are as follows:
1464
1465 (% style="text-align:center" %)
1466 [[image:08_html_6f6668df922f7274.gif||class="img-thumbnail"]]
1467
1468 (% style="text-align:center" %)
1469 [[image:08_html_6854958a7732277a.gif||class="img-thumbnail"]]
1470
1471 **Error Codes**
1472
1473 (% class="table-bordered" %)
1474 |(% style="width:135px" %)**Error Codes**|(% style="width:946px" %)**Contents**
1475 |(% style="width:135px" %)4084H|(% style="width:946px" %)The data input in the application instruction (s1) and (s2) exceed the specified range
1476 |(% style="width:135px" %)4085H|(% style="width:946px" %)The result output in the read application instruction (s1), (s2), (d1) and (d2) exceed the device range
1477 |(% style="width:135px" %)4088H|(% style="width:946px" %)The same pulse output axis (d1) is used and has been started.
1478 |(% style="width:135px" %)4F90H|(% style="width:946px" %)In radius mode, the radius is not in the range.
1479 |(% style="width:135px" %)4F92H|(% style="width:946px" %)In center/radius mode, the error of quadrant calculation is caused by the large deviation between the set coordinate of the end point and the theoretical end point of circle.
1480 |(% style="width:135px" %)4F93H|(% style="width:946px" %)In radius mode, the chord length is greater than the diameter.
1481 |(% style="width:135px" %)4F95H|(% style="width:946px" %)In center mode, the distance between the circle center and the starting point, and the distance between the circle center and the end point are not in the range of [-10-10].
1482 |(% style="width:135px" %)4F96H|(% style="width:946px" %)In radius mode, when the absolute/relative mode calculates that the starting point is the same as the target position, a full circle cannot be generated.
1483 |(% style="width:135px" %)4F97H|(% style="width:946px" %)In center mode, the calculated radius distance is greater than the maximum radius range, which is plus or minus 800,000 pulses.
1484
1485 **Example**{{id name="OLE_LINK22"/}}
1486
1487 (% style="text-align:center" %)
1488 [[image:08_html_c30d92ae8a2303e1.png||class="img-thumbnail"]]
1489
1490 {{id name="OLE_LINK21"/}}Set Y0 as the interpolation starting axis, Y5 as the direction starting axis, and the maximum speed is 2000, and the offset speed is 500, and the acceleration/deceleration time is 500ms. Send a relative position clockwise circular interpolation output based on relative position with acceleration and deceleration, and the incremental position is X (Y0) axis 100, Y (Y1) axis 100, and the the radius is 1000 pulse in radius mode, and the pulse synthesis frequency is 1000.
1491
1492 = **G90G03 Absolute position counterclockwise circular interpolation instruction** =
1493
1494 G90G03
1495
1496 Execute 2 axis counterclockwise circular interpolation instruction in absolute drive mode. The method of specifying the movement distance from the origin (zero point) is also called absolute drive method.
1497
1498 -[G90G03 (s1) (s2) (s3) (d1) (d2) ]
1499
1500 **{{id name="_Toc13915"/}}Content, range and data type**
1501
1502 (% class="table-bordered" %)
1503 |**Parameters**|**Content**|**Range**|**Data type**|**Data type tag**
1504 |(s1)|Specify the target position (absolute address)|-2147483648 to 2147483647|Signed BIN32|ANY32_S
1505 |(S2)|Radius/center mode|-|Signed BIN32|ANY32_S
1506 |(s3)|Specify the synthetic output frequency|1 to 100000|Signed BIN32|ANY32_S
1507 |(d1)|Device (Y) number for output pulse|Y0|Bit|ANY_BOOL
1508 |(d2)|Running direction output port or bit variable|-|Bit|ANY_BOOL
1509
1510 **{{id name="_Toc7394"/}}Device used**
1511
1512 (% class="table-bordered" %)
1513 |(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameters**|(% colspan="6" %)**Device**|(((
1514 **Offset**
1515
1516 **modification**
1517 )))|(((
1518 **Pulse**
1519
1520 **extension**
1521 )))
1522 |**Y**|**M**|**D**|**R**|**K**|**H**|**[D]**|**XXP**
1523 |(% rowspan="5" %)G90G03|Parameter 1| | |●|●| | | |
1524 |Parameter 2| | |●|●| | | |
1525 |Parameter 3| | |●|●|●|●| |
1526 |Parameter 4|●| | | | | | |
1527 |Parameter 5|●|●| | | | | |
1528
1529 **{{id name="_Toc8518"/}}Features**
1530
1531 This instruction outputs pulses according to the specified port, frequency and running direction, performs 2-axis counterclockwise circular interpolation, and the servo actuator performs counterclockwise circular interpolation to run to the target position point.
1532
1533 (% style="text-align:center" %)
1534 [[image:08_html_7ad9ac91f5066720.jpg||height="491" width="800" class="img-thumbnail"]]
1535
1536 * s1 is the starting address, and occupies 4 consecutive addresses. s1 is the target position of X axis (absolute positioning), s1+2 is the target position of Y axis (absolute positioning). The range is -2147483648 to +2147483647.
1537 * Specify radius or center mode in (s2), and occupy 4 consecutive addresses. The center coordinate of s2+0 is in the difference value of the number of pulse output of X axis relative to the current position, or the number of the pulse of radius R. The center coordinate of s2+2 is in the difference value of the number of pulse output of Y axis relative to the current position. When using radius, the value must be 0X7FFF FFFF. The range is 1 to 141421.
1538
1539 * Specify the synthetic output frequency in (s3) . The range is 1 to 100000.
1540 * Specify the device of output pulse in (d1), only Y0 could be specified, and consecutive addresses (Y0, Y1) are occupied .
1541
1542 * Specify the bit device of output direction signal in (d2), and occupy 2 consecutive addresses, which indicate the directions of the X and Y axes in turn.
1543
1544 **{{id name="_Toc29538"/}}✎Note: **
1545
1546 1. Please do not duplicate device that used for other controls.
1547 1. When using interpolation instruction, the parameter settings (such as acceleration/deceleration time and other parameters) are subject to the starting axis specified by d1.
1548 1. The maximum radius supported by circular interpolation is plus or minus 800,000 pulses, and the radius cannot be zero.
1549 1. There are two modes for setting s2: IJ mode (circle center coordinate mode) and R mode (radius mode). When the value of s2+2 is set to 0x7FFF FFFF, it is R mode (radius mode), otherwise it is IJ mode (circle center coordinate mode).
1550 1. IJ mode: Regardless of absolute position interpolation or relative position interpolation, s2 is only as the difference of the pulse output number between the coordinates of the center of the circle on the XY axis (Y0/Y1) relative to the current position, and both are in the offset value.
1551 1. R mode (radius mode): When the value of R is greater than 0, it indicates that it is an arc less than or equal to 180 degrees. When the value of R is less than 0, it indicates that it is an arc greater than or equal to 180 degrees. A full circle cannot be generated In R mode because there are infinite solutions.
1552 1. When s1 indicates the relative position of target position, a reasonable target position needs to be set to ensure that the target arc path can be generated correctly. When s1+0=0 and s1+2=0, it means that a full circle is generated.
1553 1. When using the interpolation instruction, parameter settings (such as celebration/deceleration time and so on) are subject to the X axis (Y0);
1554 1. The actual synthetic frequency S (the lowest frequency value) is the lowest base frequency of the output synthetic frequency. The calculation modes are as follows:
1555
1556 (% style="text-align:center" %)
1557 [[image:08_html_6f6668df922f7274.gif||class="img-thumbnail"]]
1558
1559 (% style="text-align:center" %)
1560 [[image:08_html_6854958a7732277a.gif||class="img-thumbnail"]]
1561
1562 **Error Codes**
1563
1564 (% class="table-bordered" %)
1565 |(% style="width:116px" %)**Error Codes**|(% style="width:965px" %)**Contents**
1566 |(% style="width:116px" %)4084H|(% style="width:965px" %)The data input in the application instruction (s1) and (s2) exceed the specified range
1567 |(% style="width:116px" %)4085H|(% style="width:965px" %)The result output in the read application instruction (s1), (s2), (d1) and (d2) exceed the device range
1568 |(% style="width:116px" %)4088H|(% style="width:965px" %)The same pulse output axis (d1) is used and has been started.
1569 |(% style="width:116px" %)4F90H|(% style="width:965px" %)In radius mode, the radius is not in the range.
1570 |(% style="width:116px" %)4F92H|(% style="width:965px" %)In center/radius mode, the error of quadrant calculation is caused by the large deviation between the set coordinate of the end point and the theoretical end point of circle.
1571 |(% style="width:116px" %)4F93H|(% style="width:965px" %)In radius mode, the chord length is greater than the diameter.
1572 |(% style="width:116px" %)4F95H|(% style="width:965px" %)In center mode, the distance between the circle center and the starting point, and the distance between the circle center and the end point are not in the range of [-10-10].
1573 |(% style="width:116px" %)4F96H|(% style="width:965px" %)In radius mode, when the absolute/relative mode calculates that the starting point is the same as the target position, a full circle cannot be generated.
1574 |(% style="width:116px" %)4F97H|(% style="width:965px" %)In center mode, the calculated radius distance is greater than the maximum radius range, which is plus or minus 800,000 pulses.
1575
1576 **Example**
1577
1578 (% style="text-align:center" %)
1579 [[image:08_html_c30d92ae8a2303e1.png||class="img-thumbnail"]]
1580
1581 Set Y0 as the interpolation starting axis, Y5 as the direction starting axis, the maximum speed is 2000, the offset speed is 500, and the acceleration/deceleration time is 500ms. Send a absolute position counterclockwise circular interpolation output based on relative position with acceleration and deceleration, and the target position is X (Y0) axis 100, Y (Y1) axis 100, and the the radius is 1000 pulse in radius mode, and the pulse synthesis frequency is 1000.
1582
1583 = {{id name="_Ref31892"/}}**{{id name="_Toc1720"/}}{{id name="_Toc12908"/}}{{id name="_Toc10325"/}}G91G03 Relative position counterclockwise circular interpolation instruction** =
1584
1585 **G91G03**
1586
1587 Execute 2 axis reverse circular interpolation instruction in relative drive mode. The method of specifying the movement distance from the current position is also called relative (incremental)drive method.
1588
1589 -[G91G03 (s1) (s2) (s3) (d1) (d2) ]
1590
1591 **{{id name="_Toc22084"/}}Content, range and data type**
1592
1593 (% class="table-bordered" %)
1594 |**Parameters**|**Content**|**Range**|**Data type**|**Data type**
1595 |(s1)|Specify the target position (relative address)|-2147483648 to 2147483647|Signed BIN32|ANY32_S
1596 |(s2)|Radius/center mode|-|Signed BIN32|ANY32_S
1597 |(s3)|Specify the synthetic output frequency|1 to 100000|Signed BIN32|ANY32_S
1598 |(d1)|Soft component (Y) number for output pulse|Y0|Bit|ANY_BOOL
1599 |(d2)|Running direction output port or bit variable|-|Bit|ANY_BOOL
1600
1601 **{{id name="_Toc6554"/}}Device used**
1602
1603 (% class="table-bordered" %)
1604 |(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameters**|(% colspan="6" %)**Device**|(((
1605 **Offset**
1606
1607 **modification**
1608 )))|(((
1609 **Pulse**
1610
1611 **extension**
1612 )))
1613 |**Y**|**M**|**D**|**R**|**K**|(% style="width:51px" %)**H**|**[D]**|**XXP**
1614 |(% rowspan="5" %)G91G03|Parameter 1| | |●|●| |(% style="width:51px" %) | |
1615 |Parameter 2| | |●|●| |(% style="width:51px" %) | |
1616 |Parameter 3| | |●|●|●|(% style="width:51px" %)●| |
1617 |Parameter 4|●| | | | |(% style="width:51px" %) | |
1618 |Parameter 5|●|●| | | |(% style="width:51px" %) | |
1619
1620 **{{id name="_Toc12633"/}}Features**
1621
1622 This instruction outputs pulses according to the specified port, frequency and running direction, performs 2-axis counterclockwise circular interpolation, and servo actuator performs a 2-axis counterclockwise circular interpolation with a given offset based in current position.
1623
1624 (% style="text-align:center" %)
1625 [[image:08_html_445649f805e910a5.jpg||height="491" width="800" class="img-thumbnail"]]
1626
1627 * s1 is the starting address, and occupies 4 consecutive addresses. s1 is the target position of X axis (absolute positioning), s1+2 is the target position of Y axis (absolute positioning). The range is -2147483648 to +2147483647.
1628 * Specify radius or center mode in (s2), and occupy 4 consecutive addresses. The center coordinate of s2+0 is in the difference value of the number of pulse output of X axis relative to the current position, or the number of the pulse of radius R. The center coordinate of s2+2 is in the difference value of the number of pulse output of Y axis relative to the current position. When using radius, the value must be 0X7FFF FFFF. The range is 1 to 141421.
1629
1630 * Specify the synthetic output frequency in (s3) . The range is 1 to 100000.
1631 * Specify the device of output pulse in (d1), only Y0 could be specified, and consecutive addresses (Y0, Y1) are occupied .
1632
1633 * Specify the bit device of output direction signal in (d2), and occupy 2 consecutive addresses, which indicate the directions of the X and Y axes in turn.
1634
1635 **{{id name="_Toc7624"/}}✎Note: **
1636
1637 1. Please do not duplicate device that used for other controls.
1638 1. When using interpolation instruction, the parameter settings (such as acceleration/deceleration time and other parameters) are subject to the starting axis specified by d1.
1639 1. The maximum radius supported by circular interpolation is plus or minus 800,000 pulses, and the radius cannot be zero.
1640 1. There are two modes for setting s2: IJ mode (circle center coordinate mode) and R mode (radius mode). When the value of s2+2 is set to 0x7FFF FFFF, it is R mode (radius mode), otherwise it is IJ mode (circle center coordinate mode).
1641 1. IJ mode: Regardless of absolute position interpolation or relative position interpolation, s2 is only as the difference of the pulse output number between the coordinates of the center of the circle on the XY axis (Y0/Y1) relative to the current position, and both are in the offset value.
1642 1. R mode (radius mode): When the value of R is greater than 0, it indicates that it is an arc less than or equal to 180 degrees. When the value of R is less than 0, it indicates that it is an arc greater than or equal to 180 degrees. A full circle cannot be generated In R mode because there are infinite solutions.
1643 1. When s1 indicates the relative position of target position, a reasonable target position needs to be set to ensure that the target arc path can be generated correctly. When s1+0=0 and s1+2=0, it means that a full circle is generated.
1644 1. When using the interpolation instruction, parameter settings (such as celebration/deceleration time and so on) are subject to the X axis (Y0);
1645 1. The actual synthetic frequency S (the lowest frequency value) is the lowest base frequency of the output synthetic frequency. The calculation modes are as follows:
1646
1647 (% style="text-align:center" %)
1648 [[image:08_html_6f6668df922f7274.gif||class="img-thumbnail"]]
1649
1650 (% style="text-align:center" %)
1651 [[image:08_html_6854958a7732277a.gif||class="img-thumbnail"]]
1652
1653 **Error Codes**
1654
1655 (% class="table-bordered" %)
1656 |(% style="width:132px" %)**Error Codes**|(% style="width:949px" %)**Contents**
1657 |(% style="width:132px" %)4084H|(% style="width:949px" %)The data input in the application instruction (s1) and (s2) exceed the specified range
1658 |(% style="width:132px" %)4085H|(% style="width:949px" %)The result output in the read application instruction (s1), (s2), (d1) and (d2) exceed the device range
1659 |(% style="width:132px" %)4088H|(% style="width:949px" %)The same pulse output axis (d1) is used and has been started.
1660 |(% style="width:132px" %)4F90H|(% style="width:949px" %)In radius mode, the radius is not in the range.
1661 |(% style="width:132px" %)4F92H|(% style="width:949px" %)In center/radius mode, the error of quadrant calculation is caused by the large deviation between the set coordinate of the end point and the theoretical end point of circle.
1662 |(% style="width:132px" %)4F93H|(% style="width:949px" %)In radius mode, the chord length is greater than the diameter.
1663 |(% style="width:132px" %)4F95H|(% style="width:949px" %)In center mode, the distance between the circle center and the starting point, and the distance between the circle center and the end point are not in the range of [-10-10].
1664 |(% style="width:132px" %)4F96H|(% style="width:949px" %)In radius mode, when the absolute/relative mode calculates that the starting point is the same as the target position, a full circle cannot be generated.
1665 |(% style="width:132px" %)4F97H|(% style="width:949px" %)In center mode, the calculated radius distance is greater than the maximum radius range, which is plus or minus 800,000 pulses.
1666
1667 **Example**
1668
1669 (% style="text-align:center" %)
1670 [[image:08_html_c30d92ae8a2303e1.png||class="img-thumbnail"]]
1671
1672 Set Y0 as the interpolation starting axis, Y5 as the direction starting axis, the maximum speed is 2000, the offset speed is 500, and the acceleration/deceleration time is 500ms. Send a relative position reverse circular interpolation output based on relative position with acceleration and deceleration, and the incremental position is X (Y0) axis 100, Y (Y1) axis 100, and the the radius is 1000 pulse in radius mode, and the pulse synthesis frequency is 1000.
1673
1674 = {{id name="_Ref31901"/}}**{{id name="_Toc7584"/}}{{id name="_Toc8429"/}}{{id name="_Toc13595"/}}{{id name="_Toc10219"/}}G90G02H Absolute position clockwise circular helical interpolation instruction** =
1675
1676 **G90G02H**
1677
1678 Execute 3 axis clockwise circular interpolation instruction in absolute drive mode. The method of specifying the movement distance from the origin point(zero point) is also called absolute drive mode.
1679
1680 -[G90G02H (s1) (s2) (s3) (d1) (d2) ]
1681
1682 **{{id name="_Toc20629"/}}Content, range and data type**
1683
1684 (% class="table-bordered" %)
1685 |**Parameters**|**Content**|**Range**|**Data type**|**Data type**
1686 |(s1)|Specify the target position (absolute address)|-2147483648 to +2147483647|Signed BIN32|ANY32_S
1687 |(s2)|Radius/Center mode|-|Signed BIN32|ANY32_S
1688 |(s3)|Specify synthetic output frequency|1 to 100000|Signed BIN32|ANY32_S
1689 |(d1)|Device(Y) number for output pulse|Y0|Bit|ANY_BOOL
1690 |(d2)|Running direction output port or bit variable|-|Bit|ANY_BOOL
1691
1692 **{{id name="_Toc5954"/}}Device used**
1693
1694 (% class="table-bordered" %)
1695 |(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameters**|(% colspan="6" %)**Device**|(((
1696 **Offset**
1697
1698 **modification**
1699 )))|(((
1700 **Pulse**
1701
1702 **extension**
1703 )))
1704 |**Y**|**M**|**D**|**R**|**K**|**H**|**[D]**|**XXP**
1705 |(% rowspan="5" %)G90G02H|Parameter 1| | |●|●| | | |
1706 |Parameter 2| | |●|●| | | |
1707 |Parameter 3| | |●|●|●|●| |
1708 |Parameter 4|●| | | | | | |
1709 |Parameter 5|●|●| | | | | |
1710
1711 **{{id name="_Toc15198"/}}Features**
1712
1713 This instruction outputs pulses according to the specified port, frequency and running direction, and performs 3-axis clockwise circular helical interpolation, and servo actuator performs clockwise helical interpolation to run to the target position point.
1714
1715 (% style="text-align:center" %)
1716 [[image:08_html_769e3269fb4c782e.png||class="img-thumbnail"]]
1717
1718 * (s1) is the starting address, and occupies 8 consecutive addresses. s1 is the target position (absolute positioning) of X axis , s1+2 is the target position (absolute positioning) of Y axis, and s1+4 is the target position (absolute positioning) of Z axis, and s1+6 is the lead range of Z axis. The lead range is[[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_8d829d6ac7cb190d.gif?rev=1.1||alt="08_html_8d829d6ac7cb190d.gif"]],,[[image:08_html_8d829d6ac7cb190d.gif]] ,,.(The range is -2147483648 to +2147483647.)
1719 * Specify radius or center mode in (s2), and occupy 4 consecutive addresses. The coordinate of circle center of s2+0 is in the difference value of the number of pulse output of X axis relative to the current position, or the number of the pulse of radius R. The coordinate of circle center of s2+2 is in the difference value of the number of pulse output of Y axis relative to the current position. When using radius, the value must be 0X7FFF FFFF. The range is 1 to 141421.
1720
1721 * Specify the synthetic output frequency in (s3) . The range is 1 to 100000. Helical interpolation can switch the synthetic frequency by setting SM901. 0 means default, and the synthetic frequency is the frequency of the linear velocity of helix. 1 means that the synthetic frequency is the frequency of the linear velocity of the arc of arc plane, that is, the actual synthetic frequency is greater than the setting synthetic frequency.
1722 * Specify the device of output pulse in (d1), only Y0 could be specified, and consecutive addresses (Y0, Y1,Y2) are occupied .
1723
1724 * Specify the bit device of output direction signal in (d2), and occupy 3 consecutive addresses, which indicates the directions of the X, Y and Z axes in turn. It is recommended to specify direction signal in (Y00-Y07).
1725
1726 **{{id name="_Toc23636"/}}✎Note: **
1727
1728 (1) Please do not duplicate device that used for other controls.
1729
1730 (2) When using interpolation instruction, parameter settings (such as acceleration/deceleration time and other parameters) are subject to the starting axis specified by d1.
1731
1732 (3) The maximum radius supported by helical interpolation is plus or minus 800,000 pulses, and the radius cannot be zero.
1733
1734 (4) There are two modes for setting s2: IJ mode (circle center coordinate mode) and R mode (radius mode). When the value of s2+2 is set to 0x7FFF FFFF, it is R mode (radius mode), otherwise it is IJ mode (circle center coordinate mode).
1735
1736 (5) IJ mode: Regardless of absolute position interpolation or relative position interpolation, s2 is only expressed as the difference of the pulse output number between the coordinates of circle center on the XY axis (Y0/Y1) relative to the current position, and both are in the offset value.
1737
1738 (6) In helical interpolation R mode (radius mode): When the value of R is greater than 0, it indicates that from the starting point coordinate to the set end point coordinate in the circular plane of XY is an arc less than or equal to 180 degrees. When the value of R is less than 0, it indicates that from the starting point coordinate to the set end point coordinate in the circular plane of XY is an arc greater than or equal to 180 degrees, and the actual passing angle is determined by the endpoint of Z axis and the lead K. ( If Ze=75, lead K=50, and the actual radian [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_16dfa306a6cd6123.gif?rev=1.1||alt="08_html_16dfa306a6cd6123.gif" class="img-thumbnail"]],,[[image:08_html_16dfa306a6cd6123.gif]] ,,)
1739
1740 (7) When using the interpolation instruction, parameter settings (such as acceleration/deceleration time and so on) are subject to the X axis (Y0);
1741
1742 (8) The actual synthetic frequency S (the lowest frequency value) is the lowest base frequency of the output synthetic frequency. The calculation modes are as follows:
1743
1744 (% style="text-align:center" %)
1745 [[image:08_html_6f6668df922f7274.gif||class="img-thumbnail"]]
1746
1747 (% style="text-align:center" %)
1748 [[image:08_html_6854958a7732277a.gif||class="img-thumbnail"]]
1749
1750 (9) Exact match pitch of screws (lead) K and [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_26235c6907b42965.gif?rev=1.1||alt="08_html_26235c6907b42965.gif" class="img-thumbnail"]],,[[image:08_html_26235c6907b42965.gif]] .,,
1751
1752 The starting point coordinate of helical interpolation is [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_5aecdb267e93e1ef.gif?rev=1.1||alt="08_html_5aecdb267e93e1ef.gif" class="img-thumbnail"]],,[[image:08_html_5aecdb267e93e1ef.gif]] ,,, set the end point coordinate to [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_62eafa46570f5bd9.gif?rev=1.1||alt="08_html_62eafa46570f5bd9.gif" class="img-thumbnail"]],,[[image:08_html_62eafa46570f5bd9.gif]] ,,,the number of turns of helical interpolation [[image:08_html_f1878c8190771c9b.gif||class="img-thumbnail"]] is determined by formula (1), and recalculate the end point coordinates of X axis and Y axis according to the number of turns of interpolation.
1753
1754 The final interpolation result is: make sure that lead is equal to K, and the end point of Z axis is equal to[[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_26235c6907b42965.gif?rev=1.1||alt="08_html_26235c6907b42965.gif" class="img-thumbnail"]],,[[image:08_html_26235c6907b42965.gif]] ,,.The actual end point position of X and Y axes [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_812f611042b80df0.gif?rev=1.1||alt="08_html_812f611042b80df0.gif" class="img-thumbnail"]],,[[image:08_html_812f611042b80df0.gif]] ,,may not be equal to the set [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_72a7340925bd2eea.gif?rev=1.1||alt="08_html_72a7340925bd2eea.gif" class="img-thumbnail"]],,[[image:08_html_72a7340925bd2eea.gif]] ,,, but it must pass through the set point [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_72a7340925bd2eea.gif?rev=1.1||alt="08_html_72a7340925bd2eea.gif" class="img-thumbnail"]],,[[image:08_html_72a7340925bd2eea.gif]] ,,in the whole circle.
1755
1756 [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_d3f40984948fb2f1.gif?rev=1.1||alt="08_html_d3f40984948fb2f1.gif" class="img-thumbnail"]],,[[image:08_html_d3f40984948fb2f1.gif]] ,,(1)
1757
1758 (10) In helical interpolation radius mode, the center distribution table of whole circle is as below. (For example: the starting point coordinate [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_3ed96de3414e2c4d.gif?rev=1.1||alt="08_html_3ed96de3414e2c4d.gif"]],,[[image:08_html_3ed96de3414e2c4d.gif]] ,,,the end point coordinate[[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_a9e3b53d7dfa134a.gif?rev=1.1||alt="08_html_a9e3b53d7dfa134a.gif" class="img-thumbnail"]],,[[image:08_html_a9e3b53d7dfa134a.gif]] ,,).
1759
1760 (% class="table-bordered" %)
1761 |**Helical interpolation direction**|**Radius value R**|**Coordinate of circle center**|**Helical interpolation direction**|**Radius value R**|**Coordinate of circle center**
1762 |(% rowspan="2" %)Clockwise circular|R > 0|(0,R)|(% rowspan="2" %)Counterclockwise circular|R > 0|(0,-R)
1763 |-R < 0|(0,-R)|-R < 0|(0,R)
1764
1765 **Error Codes**
1766
1767 (% class="table-bordered" %)
1768 |(% style="width:139px" %)**Error Codes**|(% style="width:942px" %)**Contents**
1769 |(% style="width:139px" %)4084H|(% style="width:942px" %)The data input in the application instruction (s1) and (s2) exceed the specified range
1770 |(% style="width:139px" %)4085H|(% style="width:942px" %)The result output in the read application instruction (s1), (s2), (d1) and (d2) exceed the device range
1771 |(% style="width:139px" %)4088H|(% style="width:942px" %)The same pulse output axis (d1) is used and has been started.
1772 |(% style="width:139px" %)4F90H|(% style="width:942px" %)In radius mode, the radius is not in the range.
1773 |(% style="width:139px" %)4F92H|(% style="width:942px" %)In center/radius mode, the error of quadrant calculation is caused by the large deviation between the set coordinate of the end point and the theoretical end point of circle.
1774 |(% style="width:139px" %)4F93H|(% style="width:942px" %)In radius mode, the chord length is greater than the diameter.
1775 |(% style="width:139px" %)4F95H|(% style="width:942px" %)In center mode, the distance between the circle center and the starting point, and the distance between the circle center and the end point are not in the range of [-10-10].
1776 |(% style="width:139px" %)4F97H|(% style="width:942px" %)In center mode, the calculated radius distance is greater than the maximum radius range, which is positive or negative 800,000 pulse.
1777 |(% style="width:139px" %)4F98H|(% style="width:942px" %)Helical interpolation error, Z axis is the main axis.(The coordinate of Z axis is greater than the number of of virtual main axis of circular plane)
1778 |(% style="width:139px" %)4F99H|(% style="width:942px" %)Helical interpolation error, Z axis is 0.
1779 |(% style="width:139px" %)4F9BH|(% style="width:942px" %)Lead setting exceeds the range.(Lead [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_63ad102f937fdad0.gif?rev=1.1||alt="08_html_63ad102f937fdad0.gif"]],,[[image:08_html_63ad102f937fdad0.gif]] ,,)
1780
1781 **{{id name="_Toc12418"/}}Example**
1782
1783 (% style="text-align:center" %)
1784 [[image:08_html_61693f5f524ad69e.png||class="img-thumbnail"]]
1785
1786 Set Y0 as the interpolation starting axis, Y4 as the direction starting axis, and the maximum speed is 2000, and the offset speed is 500, and the acceleration/deceleration time is 500ms. Send a absolute position clockwise circular helical interpolation output based on the absolute position with acceleration and deceleration, and the target position is X (Y0) axis 0, Y (Y1) axis 0 and Z (Y2) axis 5000, and the lead is 5000, and the radius is 5000 pulse in radius mode, and the synthesis frequency is 1000.
1787
1788 = {{id name="_Ref31918"/}}**{{id name="_Toc12793"/}}{{id name="_Toc9051"/}}{{id name="_Toc18572"/}}G91G02H Relative position clockwise circular helical interpolation instruction** =
1789
1790 **G91G02H**
1791
1792 Execute 3 axis clockwise circular interpolation instruction in relative drive mode. The method of specifying the movement distance from current point is also called incremental (relative) drive mode.
1793
1794 -[G91G02H (s1) (s2) (s3) (d1) (d2) ]
1795
1796 **{{id name="_Toc2555"/}}Content, range and data type**
1797
1798 (% class="table-bordered" %)
1799 |**Parameters**|**Content**|**Range**|**Data type**|**Data type**
1800 |(s1)|Specify the target position (relative address)|-2147483648 to 2147483647|Signed BIN32|ANY32_S
1801 |(s2)|Radius/Center mode|-|Signed BIN32|ANY32_S
1802 |(s3)|Specify synthetic output frequency|1 to 100000|Signed BIN32|ANY32_S
1803 |(d1)|Device(Y) number for output pulse|Y0|Bit|ANY_BOOL
1804 |(d2)|Running direction output port or bit variable|-|Bit|ANY_BOOL
1805
1806 **{{id name="_Toc10608"/}}Device used**
1807
1808 (% class="table-bordered" %)
1809 |(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameters**|(% colspan="6" %)**Device**|(((
1810 **Offset**
1811
1812 **modification**
1813 )))|(((
1814 **Pulse**
1815
1816 **extension**
1817 )))
1818 |**Y**|**M**|**D**|**R**|**K**|**H**|**[D]**|**XXP**
1819 |(% rowspan="5" %)G91G02H|Parameter 1| | |●|●| | | |
1820 |Parameter 2| | |●|●| | | |
1821 |Parameter 3| | |●|●|●|●| |
1822 |Parameter 4|●| | | | | | |
1823 |Parameter 5|●|●| | | | | |
1824
1825 **{{id name="_Toc24213"/}}Features**
1826
1827 This instruction outputs pulses according to the specified port, frequency and running direction, and performs 3-axis clockwise circular helical interpolation, and servo actuator performs clockwise helical interpolation to run to the target position point.
1828
1829 (% style="text-align:center" %)
1830 [[image:08_html_769e3269fb4c782e.png||class="img-thumbnail"]]
1831
1832 * (s1) is the starting address, and occupies 8 consecutive addresses. s1 is the target position (relative positioning) of X axis , s1+2 is the target position (relative positioning) of Y axis, and s1+4 is the target position (relative positioning) of Z axis, and s1+6 is the lead range of Z axis. The lead range is[[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_8d829d6ac7cb190d.gif?rev=1.1||alt="08_html_8d829d6ac7cb190d.gif"]],,[[image:08_html_8d829d6ac7cb190d.gif]] ,,.(The range is -2147483648 to +2147483647.)
1833 * Specify radius or center mode in (s2), and occupy 4 consecutive addresses. The coordinate of circle center of s2+0 is in the difference value of the number of pulse output of X axis relative to the current position, or the number of the pulse of radius R. The coordinate of circle center of s2+2 is in the difference value of the number of pulse output of Y axis relative to the current position. When using radius, the value must be 0X7FFF FFFF. The range is 1 to 141421.
1834
1835 * Specify the synthetic output frequency in (s3). The range is 1 to 100000. Helical interpolation can switch the synthetic frequency by setting SM901. 0 means default, and the synthetic frequency is the frequency of the linear velocity of helix. 1 means that the synthetic frequency is the frequency of the linear velocity of the arc of arc plane, that is, the actual synthetic frequency is greater than the setting synthetic frequency.
1836 * Specify the device of output pulse in (d1), only Y0 could be specified, and consecutive addresses (Y0, Y1,Y2) are occupied .
1837
1838 * Specify the bit device of output direction signal in (d2), and occupy 3 consecutive addresses, which indicates the directions of the X, Y and Z axes in turn. It is recommended to specify direction signal in (Y00-Y07).
1839
1840 **{{id name="_Toc9933"/}}✎Note: **
1841
1842 (1) Please do not duplicate device that used for other controls.
1843
1844 (2) When using interpolation instruction, parameter settings (such as acceleration/deceleration time and other parameters) are subject to the starting axis specified by d1.
1845
1846 (3) The maximum radius supported by helical interpolation is plus or minus 800,000 pulses, and the radius cannot be zero.
1847
1848 (4) There are two modes for setting s2: IJ mode (circle center coordinate mode) and R mode (radius mode). When the value of s2+2 is set to 0x7FFF FFFF, it is R mode (radius mode), otherwise it is IJ mode (circle center coordinate mode).
1849
1850 (5) IJ mode: Regardless of absolute position interpolation or relative position interpolation, s2 is only expressed as the difference of the pulse output number between the coordinates of the circle center on the XY axis (Y0/Y1) relative to the current position, and both are in the offset value.
1851
1852 (6) In helical interpolation R mode (radius mode) : When the value of R is greater than 0, it indicates that from starting point coordinate to the setting end point coordinate in the circular plane of XY is an arc less than or equal to 180 degrees. When the value of R is less than 0, it indicates that from starting point coordinate to the setting end point coordinate in the circular plane of XY is an arc greater than or equal to 180 degrees, and the actual passing angle is determined by the endpoint of Z axis and the lead K. ( If Ze=75, lead K=50, and the actual radian [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_16dfa306a6cd6123.gif?rev=1.1||alt="08_html_16dfa306a6cd6123.gif" class="img-thumbnail"]],,[[image:08_html_16dfa306a6cd6123.gif]] ,,)
1853
1854 (7) When using interpolation instruction, parameter settings (such as acceleration/deceleration time and so on) are subject to the X axis (Y0);
1855
1856 (8) The actual synthetic frequency S (the lowest frequency value) is the lowest base frequency of the output synthetic frequency. The calculation modes are as follows:
1857
1858 (% style="text-align:center" %)
1859 [[image:08_html_6f6668df922f7274.gif||class="img-thumbnail"]]
1860
1861 (% style="text-align:center" %)
1862 [[image:08_html_6854958a7732277a.gif||class="img-thumbnail"]]
1863
1864 (9) Exact match pitch of screws (lead) K and [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_26235c6907b42965.gif?rev=1.1||alt="08_html_26235c6907b42965.gif" class="img-thumbnail"]],,[[image:08_html_26235c6907b42965.gif]] .,,
1865
1866 The starting point coordinate of helical interpolation is [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_5aecdb267e93e1ef.gif?rev=1.1||alt="08_html_5aecdb267e93e1ef.gif" class="img-thumbnail"]],,[[image:08_html_5aecdb267e93e1ef.gif]] ,,, set the end point coordinate to [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_62eafa46570f5bd9.gif?rev=1.1||alt="08_html_62eafa46570f5bd9.gif" class="img-thumbnail"]],,[[image:08_html_62eafa46570f5bd9.gif]] ,,,the number of turns of helical interpolation [[image:08_html_f1878c8190771c9b.gif]] is determined by formula (1), and recalculate the end point coordinates of X axis and Y axis according to the number of turns of interpolation.
1867
1868 The final interpolation result is: make sure that lead is equal to K, and the end point of Z axis is equal to[[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_26235c6907b42965.gif?rev=1.1||alt="08_html_26235c6907b42965.gif" class="img-thumbnail"]],,[[image:08_html_26235c6907b42965.gif]] ,,.The actual end point position of X and Y axes [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_812f611042b80df0.gif?rev=1.1||alt="08_html_812f611042b80df0.gif" class="img-thumbnail"]],,[[image:08_html_812f611042b80df0.gif]] ,,may not be equal to the set [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_72a7340925bd2eea.gif?rev=1.1||alt="08_html_72a7340925bd2eea.gif" class="img-thumbnail"]],,[[image:08_html_72a7340925bd2eea.gif]] ,,, but it must pass through the set point [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_72a7340925bd2eea.gif?rev=1.1||alt="08_html_72a7340925bd2eea.gif" class="img-thumbnail"]],,[[image:08_html_72a7340925bd2eea.gif]] ,,in the whole circle.
1869
1870 [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_d3f40984948fb2f1.gif?rev=1.1||alt="08_html_d3f40984948fb2f1.gif" class="img-thumbnail"]],,[[image:08_html_d3f40984948fb2f1.gif]] ,,(1)
1871
1872 (10) In helical interpolation radius mode, the center distribution table of whole circle is as below. (For example: the starting point coordinate [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_3ed96de3414e2c4d.gif?rev=1.1||alt="08_html_3ed96de3414e2c4d.gif"]],,[[image:08_html_3ed96de3414e2c4d.gif]] ,,,the end point coordinate[[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_a9e3b53d7dfa134a.gif?rev=1.1||alt="08_html_a9e3b53d7dfa134a.gif"]],,[[image:08_html_a9e3b53d7dfa134a.gif]] ,,).
1873
1874 (% class="table-bordered" %)
1875 |**Helical interpolation direction**|**Radius value R**|**Coordinate of circle center**|**Helical interpolation direction**|**Radius value R**|**Coordinate of circle center**
1876 |(% rowspan="2" %)Clockwise circular|R > 0|(0,R)|(% rowspan="2" %)Counterclockwise circular|R > 0|(0,-R)
1877 |-R < 0|(0,-R)|-R < 0|(0,R)
1878
1879 **Error Codes**
1880
1881 (% class="table-bordered" %)
1882 |(% style="width:129px" %)**Error Codes**|(% style="width:952px" %)**Contents**
1883 |(% style="width:129px" %)4084H|(% style="width:952px" %)The data input in the application instruction (s1) and (s2) exceed the specified range
1884 |(% style="width:129px" %)4085H|(% style="width:952px" %)The result output in the read application instruction (s1), (s2), (d1) and (d2) exceed the device range
1885 |(% style="width:129px" %)4088H|(% style="width:952px" %)The same pulse output axis (d1) is used and has been started.
1886 |(% style="width:129px" %)4F90H|(% style="width:952px" %)In radius mode, the radius is not in the range.
1887 |(% style="width:129px" %)4F92H|(% style="width:952px" %)In center/radius mode, the error of quadrant calculation is caused by the large deviation between the set coordinate of the end point and the theoretical end point of circle.
1888 |(% style="width:129px" %)4F93H|(% style="width:952px" %)In radius mode, the chord length is greater than the diameter.
1889 |(% style="width:129px" %)4F95H|(% style="width:952px" %)In center mode, the distance between the circle center and the starting point, and the distance between the circle center and the end point are not in the range of [-10-10].
1890 |(% style="width:129px" %)4F97H|(% style="width:952px" %)In center mode, the calculated radius distance is greater than the maximum radius range, which is positive or negative 800,000 pulse.
1891 |(% style="width:129px" %)4F98H|(% style="width:952px" %)Helical interpolation error, Z axis is the main axis.(The coordinate of Z axis is greater than the number of of virtual main axis of circular plane)
1892 |(% style="width:129px" %)4F99H|(% style="width:952px" %)Helical interpolation error, Z axis is 0.
1893 |(% style="width:129px" %)4F9BH|(% style="width:952px" %)Lead setting exceeds the range.(Lead [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_63ad102f937fdad0.gif?rev=1.1||alt="08_html_63ad102f937fdad0.gif"]],,[[image:08_html_63ad102f937fdad0.gif]] ,,)
1894
1895 **{{id name="_Toc28830"/}}Example**
1896
1897 (% style="text-align:center" %)
1898 [[image:08_html_61693f5f524ad69e.png||class="img-thumbnail"]]
1899
1900 Set Y0 as the interpolation starting axis, Y4 as the direction start axis, and the maximum speed is 2000, and the offset speed is 500, and the acceleration/deceleration time is 500ms. Send a relative position clockwise circular helical interpolation output based on the relative position with acceleration and deceleration, and the target position is X (Y0) axis 0, Y (Y1) axis 0 and Z (Y2) axis 5000, and the lead is 5000, and the radius is 5000 pulse in radius mode, and the synthesis frequency is 1000.
1901
1902 = {{id name="_Ref31924"/}}**{{id name="_Toc4668"/}}{{id name="_Toc28191"/}}{{id name="_Toc24432"/}}G90G03H Absolute position counterclockwise circular helical interpolation instruction** =
1903
1904 **G90G03H**
1905
1906 Execute 3 axis counterclockwise circular interpolation instruction in absolute drive mode. The method of specifying the movement distance from the origin point(zero point) is also called absolute drive mode.
1907
1908 -[G90G03H (s1) (s2) (s3) (d1) (d2) ]
1909
1910 **{{id name="_Toc21277"/}}Content, range and data type**
1911
1912 (% class="table-bordered" %)
1913 |**Parameters**|**Content**|**Range**|**Data type**|**Data type**
1914 |(s1)|Specify the target position (absolute address)|-2147483648 to 2147483647|Signed BIN32|ANY32_S
1915 |(s2)|Radius/Center mode|-|Signed BIN32|ANY32_S
1916 |(s3)|Specify synthetic output frequency|1 to 100000|Signed BIN32|ANY32_S
1917 |(d1)|Device(Y) number for output pulse|Y0|Bit|ANY_BOOL
1918 |(d2)|Running direction output port or bit variable|-|Bit|ANY_BOOL
1919
1920 **{{id name="_Toc2269"/}}Device used**
1921
1922 (% class="table-bordered" %)
1923 |(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameters**|(% colspan="6" %)**Device**|(((
1924 **Offset**
1925
1926 **modification**
1927 )))|(((
1928 **Pulse**
1929
1930 **extension**
1931 )))
1932 |**Y**|**M**|**D**|**R**|**K**|(% style="width:45px" %)**H**|**[D]**|**XXP**
1933 |(% rowspan="5" %)G90G03H|Parameter 1| | |●|●| |(% style="width:45px" %) | |
1934 |Parameter 2| | |●|●| |(% style="width:45px" %) | |
1935 |Parameter 3| | |●|●|●|(% style="width:45px" %)●| |
1936 |Parameter 4|●| | | | |(% style="width:45px" %) | |
1937 |Parameter 5|●|●| | | |(% style="width:45px" %) | |
1938
1939 **{{id name="_Toc436"/}}Features**
1940
1941 This instruction outputs pulses according to the specified port, frequency and running direction, and performs 3-axis counterclockwise circular helical interpolation, and servo actuator performs counterclockwise helical interpolation to run to the target position point.
1942
1943 (% style="text-align:center" %)
1944 [[image:08_html_769e3269fb4c782e.png||class="img-thumbnail"]]
1945
1946 * (s1) is the starting address, and occupies 8 consecutive addresses. s1 is the target position (absolute positioning) of X axis , s1+2 is the target position (absolute positioning) of Y axis, and s1+4 is the target position (absolute positioning) of Z axis, and s1+6 is the lead range of Z axis. The lead range is[[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_8d829d6ac7cb190d.gif?rev=1.1||alt="08_html_8d829d6ac7cb190d.gif"]],,[[image:08_html_8d829d6ac7cb190d.gif]] ,,.(The range is -2147483648 to +2147483647.)
1947 * Specify radius or center mode in (s2), and occupy 4 consecutive addresses. The coordinate of circle center of s2+0 is in the difference value of the number of pulse output of X axis relative to the current position, or the number of the pulse of radius R. The coordinate of circle center of s2+2 is in the difference value of the number of pulse output of Y axis relative to the current position. When using radius, the value must be 0X7FFF FFFF. The range is 1 to 141421.
1948
1949 * Specify the synthetic output frequency in (s3). The range is 1 to 100000. Helical interpolation can switch the synthetic frequency by setting SM901. 0 means default, and the synthetic frequency is the frequency of the linear velocity of helix. 1 means that the synthetic frequency is the frequency of the linear velocity of the arc of arc plane, that is, the actual synthetic frequency is greater than the setting synthetic frequency.
1950 * Specify the device of output pulse in (d1), only Y0 could be specified, and consecutive addresses (Y0, Y1,Y2) are occupied .
1951
1952 * Specify the bit device of output direction signal in (d2), and occupy 3 consecutive addresses, which indicates the directions of the X, Y and Z axes in turn. It is recommended to specify direction signal in (Y00-Y07).
1953
1954 {{id name="_Toc9114"/}}✎**Note: **
1955
1956 (1) Please do not duplicate device that used for other controls.
1957
1958 (2) When using interpolation instruction, parameter settings (such as acceleration/deceleration time and other parameters) are subject to the starting axis specified by d1.
1959
1960 (3) The maximum radius supported by helical interpolation is plus or minus 800,000 pulses, and the radius cannot be zero.
1961
1962 (4) There are two modes for setting s2: IJ mode (circle center coordinate mode) and R mode (radius mode). When the value of s2+2 is set to 0x7FFF FFFF, it is R mode (radius mode), otherwise it is IJ mode (circle center coordinate mode).
1963
1964 (5) IJ mode: Regardless of absolute position interpolation or relative position interpolation, s2 is only expressed as the difference of the pulse output number between the coordinates of the center of the circle on the XY axis (Y0/Y1) relative to the current position, and both are in the offset value.
1965
1966 (6) In helical interpolation R mode (radius mode): When the value of R is greater than 0, it indicates that from starting point coordinate to the setting end point coordinate in the circular plane of XY is an arc less than or equal to 180 degrees. When the value of R is less than 0, it indicates that from starting point coordinate to the setting end point coordinate in the circular plane of XY is an arc greater than or equal to 180 degrees, and the actual passing angle is determined by the endpoint of Z axis and the lead K. ( If Ze=75, lead K=50, and the actual radian [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_16dfa306a6cd6123.gif?rev=1.1||alt="08_html_16dfa306a6cd6123.gif" class="img-thumbnail"]],,[[image:08_html_16dfa306a6cd6123.gif]] ,,)
1967
1968 (7) When using the interpolation instruction, parameter settings (such as acceleration/deceleration time and so on) are subject to the X axis (Y0);
1969
1970 (8) The actual synthetic frequency S (the lowest frequency value) is the lowest base frequency of the output synthetic frequency. The calculation modes are as follows:
1971
1972 (% style="text-align:center" %)
1973 [[image:08_html_6f6668df922f7274.gif||class="img-thumbnail"]]
1974
1975 (% style="text-align:center" %)
1976 [[image:08_html_6854958a7732277a.gif||class="img-thumbnail"]]
1977
1978 (9) Exact match pitch of screws (lead) K and [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_26235c6907b42965.gif?rev=1.1||alt="08_html_26235c6907b42965.gif" class="img-thumbnail"]],,[[image:08_html_26235c6907b42965.gif]] .,,
1979
1980 The starting point coordinate of helical interpolation is [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_5aecdb267e93e1ef.gif?rev=1.1||alt="08_html_5aecdb267e93e1ef.gif" class="img-thumbnail"]],,[[image:08_html_5aecdb267e93e1ef.gif]] ,,, set the end point coordinate to [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_62eafa46570f5bd9.gif?rev=1.1||alt="08_html_62eafa46570f5bd9.gif" class="img-thumbnail"]],,[[image:08_html_62eafa46570f5bd9.gif]] ,,,the number of turns of helical interpolation [[image:08_html_f1878c8190771c9b.gif]] is determined by formula (1), and recalculate the end point coordinates of X axis and Y axis according to the number of turns of interpolation.
1981
1982 The final interpolation result is: make sure that lead is equal to K, and the end point of Z axis is equal to[[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_26235c6907b42965.gif?rev=1.1||alt="08_html_26235c6907b42965.gif" class="img-thumbnail"]],,[[image:08_html_26235c6907b42965.gif]] ,,.The actual end point position of X and Y axes [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_812f611042b80df0.gif?rev=1.1||alt="08_html_812f611042b80df0.gif"]],,[[image:08_html_812f611042b80df0.gif]] ,,may not be equal to the set [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_72a7340925bd2eea.gif?rev=1.1||alt="08_html_72a7340925bd2eea.gif" class="img-thumbnail"]],,[[image:08_html_72a7340925bd2eea.gif]] ,,, but it must pass through the set point [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_72a7340925bd2eea.gif?rev=1.1||alt="08_html_72a7340925bd2eea.gif" class="img-thumbnail"]],,[[image:08_html_72a7340925bd2eea.gif]] ,,in the whole circle.
1983
1984 [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_d3f40984948fb2f1.gif?rev=1.1||alt="08_html_d3f40984948fb2f1.gif" class="img-thumbnail"]],,[[image:08_html_d3f40984948fb2f1.gif]] ,,(1)
1985
1986 (10) In helical interpolation radius mode, the center distribution table of whole circle is as below. (For example: the starting point coordinate [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_3ed96de3414e2c4d.gif?rev=1.1||alt="08_html_3ed96de3414e2c4d.gif" class="img-thumbnail"]],,[[image:08_html_3ed96de3414e2c4d.gif]] ,,,the end point coordinate[[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_a9e3b53d7dfa134a.gif?rev=1.1||alt="08_html_a9e3b53d7dfa134a.gif" class="img-thumbnail"]],,[[image:08_html_a9e3b53d7dfa134a.gif]] ,,).
1987
1988 (% class="table-bordered" %)
1989 |**Helical interpolation direction**|**Radius value R**|**Coordinate of circle center**|**Helical interpolation direction**|**Radius value R**|**Coordinate of circle center**
1990 |(% rowspan="2" %)Clockwise circular|R > 0|(0,R)|(% rowspan="2" %)Counterclockwise circular|R > 0|(0,-R)
1991 |-R < 0|(0,-R)|-R < 0|(0,R)
1992
1993 **Error Codes**
1994
1995 (% class="table-bordered" %)
1996 |(% style="width:132px" %)**Error Codes**|(% style="width:949px" %)**Contents**
1997 |(% style="width:132px" %)4084H|(% style="width:949px" %)(S1) (s2) input data that exceeds the specified range in application instruction.
1998 |(% style="width:132px" %)4085H|(% style="width:949px" %)The output result of (s1)(s2)(d1)(d2) in the read application instruction exceeds the device range.
1999 |(% style="width:132px" %)4088H|(% style="width:949px" %)The same pulse output axis (d1) is used and has been started.
2000 |(% style="width:132px" %)4F90H|(% style="width:949px" %)In radius mode, the radius is not in the range.
2001 |(% style="width:132px" %)4F92H|(% style="width:949px" %)In center/radius mode, the error of quadrant calculation is caused by the large deviation between the set coordinate of the end point and the theoretical end point of circle.
2002 |(% style="width:132px" %)4F93H|(% style="width:949px" %)In radius mode, the chord length is greater than the diameter.
2003 |(% style="width:132px" %)4F95H|(% style="width:949px" %)In center mode, the distance between the circle center and the starting point, and the distance between the circle center and the end point are not in the range of [-10-10].
2004 |(% style="width:132px" %)4F97H|(% style="width:949px" %)In center mode, the calculated radius distance is greater than the maximum radius range, which is positive or negative 800,000 pulse.
2005 |(% style="width:132px" %)4F98H|(% style="width:949px" %)Helical interpolation error, Z axis is the main axis.(The coordinate of Z axis is greater than the number of of virtual main axis of circular plane)
2006 |(% style="width:132px" %)4F99H|(% style="width:949px" %)Helical interpolation error, Z axis is 0.
2007 |(% style="width:132px" %)4F9BH|(% style="width:949px" %)Lead setting exceeds the range. (Lead [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_63ad102f937fdad0.gif?rev=1.1||alt="08_html_63ad102f937fdad0.gif"]],,[[image:08_html_63ad102f937fdad0.gif]] ,,)
2008
2009 **{{id name="_Toc18584"/}}Example**
2010
2011 (% style="text-align:center" %)
2012 [[image:08_html_61693f5f524ad69e.png||class="img-thumbnail"]]
2013
2014 Set Y0 as the interpolation starting axis, Y4 as the direction starting axis, and the maximum speed is 2000, and the offset speed is 500, and the acceleration/deceleration time is 500ms. Send a absolute position counterclockwise circular helical interpolation output based on the absolute position with acceleration and deceleration, and the target position is X (Y0) axis 0, Y (Y1) axis 0 and Z (Y2) axis 5000, and the lead is 5000, and the radius is 5000 pulse in radius mode, and the synthesis frequency is 1000.
2015
2016 = {{id name="_Ref31947"/}}**{{id name="_Toc5018"/}}{{id name="_Toc1347"/}}{{id name="_Toc26018"/}}G91G03H Relative position counterclockwise circular helical interpolation instruction** =
2017
2018 **G91G03H**
2019
2020 Execute 3 axis counterclockwise circular interpolation instruction in relative drive mode. The method of specifying the movement distance from current point is also called incremental (relative) drive mode.
2021
2022 -[G91G03H (s1) (s2) (s3) (d1) (d2) ]
2023
2024 **{{id name="_Toc26478"/}}Content, range and data type**
2025
2026 (% class="table-bordered" %)
2027 |**Parameters**|**Content**|**Range**|**Data type**|**Data type**
2028 |(s1)|Specify the target position (relative address)|-2147483648 to 2147483647|Signed BIN32|ANY32_S
2029 |(s2)|Radius/Center mode|-|Signed BIN32|ANY32_S
2030 |(s3)|Specify synthetic output frequency|1 to 100000|Signed BIN32|ANY32_S
2031 |(d1)|Device(Y) number for output pulse|Y0|Bit|ANY_BOOL
2032 |(d2)|Running direction output port or bit variable|-|Bit|ANY_BOOL
2033
2034 **{{id name="_Toc19923"/}}Device used**
2035
2036 (% class="table-bordered" %)
2037 |(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameters**|(% colspan="6" %)**Device**|(((
2038 **Offset**
2039
2040 **modification**
2041 )))|(((
2042 **Pulse**
2043
2044 **extension**
2045 )))
2046 |**Y**|**M**|**D**|**R**|**K**|(% style="width:50px" %)**H**|**[D]**|**XXP**
2047 |(% rowspan="5" %)G91G03H|Parameter 1| | |●|●| |(% style="width:50px" %) | |
2048 |Parameter 2| | |●|●| |(% style="width:50px" %) | |
2049 |Parameter 3| | |●|●|●|(% style="width:50px" %)●| |
2050 |Parameter 4|●| | | | |(% style="width:50px" %) | |
2051 |Parameter 5|●|●| | | |(% style="width:50px" %) | |
2052
2053 **{{id name="_Toc13090"/}}Features**
2054
2055 This instruction outputs pulses according to the specified port, frequency and running direction, and performs 3-axis counterclockwise circular helical interpolation, and servo actuator performs counterclockwise helical interpolation to run to the target position point.
2056
2057 (% style="text-align:center" %)
2058 [[image:08_html_769e3269fb4c782e.png||class="img-thumbnail"]]
2059
2060 * (s1) is the starting address, and occupies 8 consecutive addresses. s1 is the target position (relative positioning) of X axis , s1+2 is the target position (relative positioning) of Y axis, and s1+4 is the target position (relative positioning) of Z axis, and s1+6 is the lead range of Z axis. The lead range is[[image:08_html_8d829d6ac7cb190d.gif]] .(The range is -2147483648 to +2147483647.)
2061 * Specify radius or center mode in (s2), and occupy 4 consecutive addresses. The coordinate of circle center of s2+0 is in the difference value of the number of pulse output of X axis relative to the current position, or the number of the pulse of radius R. The coordinate of circle center of s2+2 is in the difference value of the number of pulse output of Y axis relative to the current position. When using radius, the value must be 0X7FFF FFFF. The range is 1 to 141421.
2062
2063 * Specify the synthetic output frequency in (s3). The range is 1 to 100000. Helical interpolation can switch the synthetic frequency by setting SM901. 0 means default, and the synthetic frequency is the frequency of the linear velocity of helix. 1 means that the synthetic frequency is the frequency of the linear velocity of the arc of arc plane, that is, the actual synthetic frequency is greater than the setting synthetic frequency.
2064 * Specify the device of output pulse in (d1), only Y0 could be specified, and consecutive addresses (Y0, Y1,Y2) are occupied .
2065
2066 * Specify the bit device of output direction signal in (d2), and occupy 3 consecutive addresses, which indicates the directions of the X, Y and Z axes in turn. It is recommended to specify direction signal in (Y00-Y07).
2067
2068 **{{id name="_Toc15404"/}}✎Note: **
2069
2070 (1) Please do not duplicate device that used for other controls.
2071
2072 (2) When using interpolation instruction, parameter settings (such as acceleration/deceleration time and other parameters) are subject to the starting axis specified by d1.
2073
2074 (3) The maximum radius supported by helical interpolation is plus or minus 800,000 pulses, and the radius cannot be zero.
2075
2076 (4) There are two modes for setting s2: IJ mode (circle center coordinate mode) and R mode (radius mode). When the value of s2+2 is set to 0x7FFF FFFF, it is R mode (radius mode), otherwise it is IJ mode (circle center coordinate mode).
2077
2078 (5) IJ mode: Regardless of absolute position interpolation or relative position interpolation, s2 is only expressed as the difference of the pulse output number between the coordinates of the circle center on the XY axis (Y0/Y1) relative to the current position, and both are in the offset value.
2079
2080 (6) In helical interpolation R mode (radius mode) : When the value of R is greater than 0, it indicates that from starting point coordinate to the setting end point coordinate in the circular plane of XY is an arc less than or equal to 180 degrees. When the value of R is less than 0, it indicates that from starting point coordinate to the setting end point coordinate in the circular plane of XY is an arc greater than or equal to 180 degrees, and the actual passing angle is determined by the endpoint of Z axis and the lead K. ( If Ze=75, lead K=50, and the actual radian [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_16dfa306a6cd6123.gif?rev=1.1||alt="08_html_16dfa306a6cd6123.gif" class="img-thumbnail"]],,[[image:08_html_16dfa306a6cd6123.gif]] ,,)
2081
2082 (7) When using interpolation instruction, parameter settings (such as acceleration/deceleration time and so on) are subject to the X axis (Y0);
2083
2084 (8) The actual synthetic frequency S (the lowest frequency value) is the lowest base frequency of the output synthetic frequency. The calculation modes are as follows:
2085
2086 (% style="text-align:center" %)
2087 [[image:08_html_6f6668df922f7274.gif||class="img-thumbnail"]]
2088
2089 (% style="text-align:center" %)
2090 [[image:08_html_6854958a7732277a.gif||class="img-thumbnail"]]
2091
2092 (9) Exact match pitch of screws (lead) K and [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_26235c6907b42965.gif?rev=1.1||alt="08_html_26235c6907b42965.gif" class="img-thumbnail"]],,[[image:08_html_26235c6907b42965.gif]] .,,
2093
2094 The start point coordinate of helical interpolation is [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_5aecdb267e93e1ef.gif?rev=1.1||alt="08_html_5aecdb267e93e1ef.gif" class="img-thumbnail"]],,[[image:08_html_5aecdb267e93e1ef.gif]] ,,, set the end point coordinate to [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_62eafa46570f5bd9.gif?rev=1.1||alt="08_html_62eafa46570f5bd9.gif" class="img-thumbnail"]],,[[image:08_html_62eafa46570f5bd9.gif]] ,,,the number of turns of helical interpolation [[image:08_html_f1878c8190771c9b.gif]] is determined by formula (1), and recalculate the end point coordinates of X axis and Y axis according to the number of turns of interpolation.
2095
2096 The final interpolation result is: make sure that lead is equal to K, and the end point of Z axis is equal to[[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_26235c6907b42965.gif?rev=1.1||alt="08_html_26235c6907b42965.gif" class="img-thumbnail"]],,[[image:08_html_26235c6907b42965.gif]] ,,.The actual end point position of X and Y axes [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_812f611042b80df0.gif?rev=1.1||alt="08_html_812f611042b80df0.gif" class="img-thumbnail"]],,[[image:08_html_812f611042b80df0.gif]] ,,may not be equal to the set [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_72a7340925bd2eea.gif?rev=1.1||alt="08_html_72a7340925bd2eea.gif"]],,[[image:08_html_72a7340925bd2eea.gif]] ,,, but it must pass through the set point [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_72a7340925bd2eea.gif?rev=1.1||alt="08_html_72a7340925bd2eea.gif" class="img-thumbnail"]],,[[image:08_html_72a7340925bd2eea.gif]] ,,in the whole circle.
2097
2098 [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_d3f40984948fb2f1.gif?rev=1.1||alt="08_html_d3f40984948fb2f1.gif" class="img-thumbnail"]],,[[image:08_html_d3f40984948fb2f1.gif]] ,,(1)
2099
2100 (10) In helical interpolation radius mode, the center distribution table of whole circle is as below. (For example: the start point coordinate [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_3ed96de3414e2c4d.gif?rev=1.1||alt="08_html_3ed96de3414e2c4d.gif"]],,[[image:08_html_3ed96de3414e2c4d.gif]] ,,,the end point coordinate[[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_a9e3b53d7dfa134a.gif?rev=1.1||alt="08_html_a9e3b53d7dfa134a.gif"]],,[[image:08_html_a9e3b53d7dfa134a.gif]] ,,).
2101
2102 (% class="table-bordered" %)
2103 |**Helical interpolation direction**|**Radius value R**|**Coordinate of circle center**|**Helical interpolation direction**|**Radius value R**|**Coordinate of circle center**
2104 |(% rowspan="2" %)Clockwise circular|R > 0|(0,R)|(% rowspan="2" %)Counterclockwise circular|R > 0|(0,-R)
2105 |-R < 0|(0,-R)|-R < 0|(0,R)
2106
2107 **Error Codes**
2108
2109 (% class="table-bordered" %)
2110 |(% style="width:108px" %)**Error Codes**|(% style="width:973px" %)**Contents**
2111 |(% style="width:108px" %)4084H|(% style="width:973px" %)(S1) (s2) input data that exceeds the specified range in application instruction.
2112 |(% style="width:108px" %)4085H|(% style="width:973px" %)The output result of (s1)(s2)(d1)(d2) in the read application instruction exceeds the device range.
2113 |(% style="width:108px" %)4088H|(% style="width:973px" %)The same pulse output axis (d1) is used and has been started.
2114 |(% style="width:108px" %)4F90H|(% style="width:973px" %)In radius mode, the radius is not in the range.
2115 |(% style="width:108px" %)4F92H|(% style="width:973px" %)In center/radius mode, the error of quadrant calculation is caused by the large deviation between the set coordinate of the end point and the theoretical end point of circle.
2116 |(% style="width:108px" %)4F93H|(% style="width:973px" %)In radius mode, the chord length is greater than the diameter.
2117 |(% style="width:108px" %)4F95H|(% style="width:973px" %)In center mode, the distance between the circle center and the starting point, and the distance between the circle center and the end point are not in the range of [-10-10].
2118 |(% style="width:108px" %)4F97H|(% style="width:973px" %)In center mode, the calculated radius distance is greater than the maximum radius range, which is positive or negative 800,000 pulse.
2119 |(% style="width:108px" %)4F98H|(% style="width:973px" %)Helical interpolation error, Z axis is the main axis.(The coordinate of Z axis is greater than the number of of virtual main axis of circular plane)
2120 |(% style="width:108px" %)4F99H|(% style="width:973px" %)Helical interpolation error, Z axis is 0.
2121 |(% style="width:108px" %)4F9BH|(% style="width:973px" %)Lead setting exceeds the range.(Lead [[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/08/WebHome/08_html_63ad102f937fdad0.gif?rev=1.1||alt="08_html_63ad102f937fdad0.gif"]],,[[image:08_html_63ad102f937fdad0.gif]] ,,)
2122
2123 **{{id name="_Toc11997"/}}Example**
2124
2125 (% style="text-align:center" %)
2126 [[image:08_html_61693f5f524ad69e.png||class="img-thumbnail"]]
2127
2128 Set Y0 as the interpolation starting axis, Y4 as the direction starting axis, and the maximum speed is 2000, and the offset speed is 500, and the acceleration/deceleration time is 500ms. Send a relative position counterclockwise circular helical interpolation output based on the relative position with acceleration and deceleration, and the target position is X (Y0) axis 0, Y (Y1) axis 0 and Z (Y2) axis 5000, and the lead is 5000, and the radius is 5000 pulse in radius mode, and the synthesis frequency is 1000.{{id name="_Toc24071"/}}{{id name="_Toc17235"/}}{{id name="_Toc1369"/}}{{id name="_Toc21558"/}}{{id name="_Toc23998"/}}{{id name="_Toc21982"/}}{{id name="_Toc6785"/}}{{id name="_Toc22083"/}}{{id name="_Toc31780"/}}{{id name="_Toc5703"/}}
2129
2130 = {{id name="_Toc126"/}}**General matters of high-speed pulse output instruction** =
2131
2132 == {{id name="_Toc16002"/}}**Related bit devices** ==
2133
2134 **(1) Pulse sending flag bit**
2135
2136 When high-speed pulse are being sending, the flag bit is ON. When pulse is not sent or after pulse is sent, the flag bit is OFF.
2137
2138 **Special device:**
2139
2140 (% class="table-bordered" %)
2141 |**Output axis**|**Y0**|**Y1**|**Y2**|**Y3**|**Y4**|**Y5**|**Y6**|**Y7**
2142 |Pulse sending|SM880|SM940|SM1000|SM1060|SM1120|SM1180|SM1240|SM1300
2143
2144 **(2) Pulse sending completion flag bit**
2145
2146 When high-speed pulse is sent, the flag bit is ON.
2147
2148 **Special device:**
2149
2150 (% class="table-bordered" %)
2151 |**Output axis**|**Y0**|**Y1**|**Y2**|**Y3**|**Y4**|**Y5**|**Y6**|**Y7**
2152 |Pulse sending|SM882|SM942|SM1002|SM1062|SM1122|SM1182|SM1242|SM1302
2153
2154 During process of pulse sending, if the forward rotation limit, the reverse rotation limit, and the output stop (SM34) signal are encountered, the flag bit will be ON after stopping the pulse.
2155
2156 If the contact is closed directly, this flag bit will not be set after deceleration stop.(Except for PLSV)
2157
2158 **(3) Forward limit and reverse limit**
2159
2160 When using a servo motor, you can set the forward rotation limit or reverse rotation limit on the servo amplifier.
2161
2162 (% style="text-align:center" %)
2163 [[image:08_html_e424715fa5809765.png||class="img-thumbnail"]]
2164
2165 When positioning instruction action, such as the limit switch of forward limit or reverse limit, acts, please set and connect forward limit 1 (LSF) and reverse limit 1(LSR) on the CPU module if you want to use CPU for retreat, and these two limits should act before the forward limit 2 or the reverse limit 2 of the servo amplifier.
2166
2167 (% style="text-align:center" %)
2168 [[image:08_html_959b60c422416a8e.png||class="img-thumbnail"]]
2169
2170 **Special device:**
2171
2172 (% class="table-bordered" %)
2173 |**Output axis**|**Y0**|**Y1**|**Y2**|**Y3**|**Y4**|**Y5**|**Y6**|**Y7**
2174 |Forward limit|SM883|SM943|SM1003|SM1063|SM1123|SM1183|SM1243|SM1303
2175 |Reverse limit|SM884|SM944|SM1004|SM1064|SM1124|SM1184|SM1244|SM1304
2176
2177 If forward limit 1(LSF) and reverse limit 1(LSR) are not set, servo motor will stop automatically even if the forward limit 2 or the reverse limit 2 is in action. But the positioning instruction in action can’t identify this situation, it will output pulses until the instruction ends.
2178
2179 When forward limit or reverse limit acts, it will stop according the set stop method (deceleration stop, immediate stop).
2180
2181 If the instruction has no direction, then both the forward limit and the reverse limit are valid for the instruction.
2182
2183 **(4) Direction polarity**
2184
2185 When [0: increase current address by forward pulse output] is selected, the current address increases when the forward pulse is output, and decreases when the reverse pulse is output.
2186
2187 When [1: Increase current address by reverse pulse output] is selected, the current address is increased during reverse pulse output and decreased during forward pulse output.
2188
2189 The default is 0: increase the current address through forward pulse output。
2190
2191 **Special device:**
2192
2193 (% class="table-bordered" %)
2194 |**Output axis**|**Y0**|**Y1**|**Y2**|**Y3**|**Y4**|**Y5**|**Y6**|**Y7**
2195 |Direction polarity|SM885|SM945|SM1005|SM1065|SM1125|SM1185|SM1245|SM1305
2196
2197 **(5) Origin return correlation (ZRN)**
2198
2199 {{id name="OLE_LINK3"/}}Origin return enable [default is 1: enable the origin return function]
2200
2201 Select [0: turn off origin return function], that is, the origin return instruction is disabled and cannot be used.
2202
2203 Select [1: turn on origin return function], that is, the origin return instruction is enabled and can be used normally.
2204
2205 Origin return direction [default is 0: the direction of origin return is negative]
2206
2207 Select [0: the direction of origin return is negative], that is, the pulse output count is negative.
2208
2209 Select [1: the direction of origin return is positive], that is, the pulse output count is positive.
2210
2211 **Special device:**
2212
2213 (% class="table-bordered" %)
2214 |**Output axis**|**Y0**|**Y1**|**Y2**|**Y3**|**Y4**|**Y5**|**Y6**|**Y7**
2215 |Origin return enable|SM886|SM946|SM1006|SM1066|SM1126|SM1186|SM1246|SM1306
2216 |Origin return direction|SM887|SM947|SM1007|SM1067|SM1127|SM1187|SM1247|SM1307
2217
2218 **(6) External signal correlation**
2219
2220 External signal start [default is 0: turn off the external signal start function]
2221
2222 Select [0: turn off external signal start function], that is, the external signal start function is not used.
2223
2224 Select [1: turn on external signal start function], that is, when an external signal is received, the pulse will be sent.
2225
2226 External signal logic [default is 0: OFF signal]
2227
2228 Select [0:OFF signal], that is, when the signal is OFF, it means the signal is received.
2229
2230 Select [1: ON signal], that is, when the signal is ON, it means the signal is received.
2231
2232 For the specific external signal, refer to the external signal of the word Devices. The external signal is affected by the scan cycle and is judged in the instruction. If the X signal is used as an external signal, the signal is affected by the X point filtering.
2233
2234 **Special device:**
2235
2236 (% class="table-bordered" %)
2237 |**Output axis**|**Y0**|**Y1**|**Y2**|**Y3**|**Y4**|**Y5**|**Y6**|**Y7**
2238 |External signal start|SM892|SM952|SM1012|SM1072|SM1132|SM1192|SM1252|SM1312
2239 |External signal logic|SM893|SM953|SM1013|SM1073|SM1133|SM1193|SM1253|SM1313
2240
2241 (% style="text-align:center" %)
2242 [[image:08_html_52ea5758044b6850.png||class="img-thumbnail"]]
2243
2244 **(7) Interrupt signal correlation (DVIT)**
2245
2246 Interrupt positioning enable [default is 1: enable interrupt positioning function]:
2247
2248 Select [0: Disable interrupt positioning function]: interrupt positioning instruction is disabled and cannot be used.
2249
2250 Select [1: enable interrupt positioning function]: interrupt positioning instruction is enabled and can be used normally. [The default is on]
2251
2252 Interrupt signal logic [default is 0: ON signal]:
2253
2254 Select [0: ON signal], that is, when the signal is ON, it means the signal is received.
2255
2256 Select [1: OFF signal], that is, when the signal is OFF, it means the signal is received.
2257
2258 **Special device:**
2259
2260 (% class="table-bordered" %)
2261 |**Output axis**|**Y0**|**Y1**|**Y2**|**Y3**|**Y4**|**Y5**|**Y6**|**Y7**
2262 |Interrupt signal enable|SM894|SM954|SM1014|SM1074|SM1134|SM1194|SM1254|SM1314
2263 |Interrupt signal logic|SM895|SM955|SM1015|SM1075|SM1135|SM1195|SM1255|SM1315
2264
2265 **(8) Stop immediately flag bit**
2266
2267 **Special device:**
2268
2269 (% class="table-bordered" %)
2270 |**Output axis**|**Y0**|**Y1**|**Y2**|**Y3**|**Y4**|**Y5**|**Y6**|**Y7**
2271 |Pulse stops immediately|SM898|SM958|SM1018|SM1078|SM1138|SM1198|SM1258|SM1318
2272
2273 When the flag bit is [1: pulse sending stop immediately], that is, pulse sending stops immediately without acceleration or deceleration. This flag is not affected by the scan cycle.
2274
2275 (% style="text-align:center" %)
2276 [[image:08_html_bb07ddcb0a440df2.gif||height="293" width="700" class="img-thumbnail"]]
2277
2278 **(9) Not scanned**
2279
2280 When the flag bit is [0: continue to send pulse], if the instruction is not scanned in the current scan cycle (such as called in the event interrupt subroutine), then continue to send pulse. At this time, it should be noted that if the instruction is scanned after the pulse sending is stopped, the pulse sending will continue.
2281
2282 When the flag bit is [1: stop sending pulse], if the instruction is not scanned in the current scan cycle (such as called in the event interrupt subroutine), then it will decelerate and stop.
2283
2284 (% class="table-bordered" %)
2285 |**Output axis**|**Y0**|**Y1**|**Y2**|**Y3**|**Y4**|**Y5**|**Y6**|**Y7**
2286 |Not scanned|SM899|SM959|SM1019|SM1079|SM1139|SM1199|SM1259|SM1319
2287
2288 **(10) The description of start speed**
2289
2290 A.Start speed=(Maximum speed - bias speed )/acceleration time
2291
2292 But the starting speed will be the following value according to the relationship between the instruction speed and the base speed.
2293
2294 * Bias speed < start speed < instruction speed: start speed = start speed.(It will be the value of above calculation)
2295 * Bias speed <= instruction speed < start speed: start speed = instruction speed.
2296 * Start speed < bias speed, or instruction speed < bias speed: start speed = bias speed.
2297 * Maximum speed < bias speed: start speed = maximum speed.
2298
2299 == {{id name="_Toc29752"/}}**{{id name="_Toc14290"/}}{{id name="_Toc26797"/}}Related word devices** ==
2300
2301 **(1) Location address**
2302
2303 Store the current address operated positioning instruction. Store the absolute address in the current address and increase or decrease according to the pulse direction.This parameter is saved when power off.
2304
2305 **Special device:**
2306
2307 (% class="table-bordered" %)
2308 |**Output axis**|**Y0**|**Y1**|**Y2**|**Y3**|**Y4**|**Y5**|**Y6**|**Y7**
2309 |Location address|(((
2310 [SD881,
2311
2312 SD880]
2313 )))|(((
2314 [SD941,
2315
2316 SD940]
2317 )))|(((
2318 [SD1001,
2319
2320 SD1000]
2321 )))|(((
2322 [SD1061,
2323
2324 SD1060]
2325 )))|(((
2326 [SD1121,
2327
2328 SD1120]
2329 )))|(((
2330 [SD1181,
2331
2332 SD1180]
2333 )))|(((
2334 [SD1241,
2335
2336 SD1240]
2337 )))|(((
2338 [SD1301,
2339
2340 SD1300]
2341 )))
2342
2343 **(2) Current frequency**
2344
2345 Store the real-time running frequency operated by the positioning instruction.
2346
2347 **Special device:**
2348
2349 (% class="table-bordered" %)
2350 |**Output axis**|**Y0**|**Y1**|**Y2**|**Y3**|**Y4**|**Y5**|**Y6**|**Y7**
2351 |Current frequency|(((
2352 [SD885,
2353
2354 SD884]
2355 )))|(((
2356 [SD945,
2357
2358 SD944]
2359 )))|(((
2360 [SD1005,
2361
2362 SD1004]
2363 )))|(((
2364 [SD1065,
2365
2366 SD1064]
2367 )))|(((
2368 [SD1125,
2369
2370 SD1124]
2371 )))|(((
2372 [SD1185,
2373
2374 SD1184]
2375 )))|(((
2376 [SD1245,
2377
2378 SD1244]
2379 )))|(((
2380 [SD1305,
2381
2382 SD1304]
2383 )))
2384
2385 **(3) Maximum speed**
2386
2387 Set the upper limit (maximum speed) of instruction speed, origin return speed, and crawl speed. The range is: (1 to 200K), and calculate according to the boundary value if it exceeds the range.
2388
2389 Even if it is within the setting range, please set the relationship of bias speed <= instruction speed <= maximum speed.
2390
2391 If bias speed > maximum speed, then use the lower frequency to send, that is, the highest frequency.
2392
2393 **Special device:**
2394
2395 (% class="table-bordered" %)
2396 |**Output axis**|**Y0**|**Y1**|**Y2**|**Y3**|**Y4**|**Y5**|**Y6**|**Y7**
2397 |Maximum speed|(((
2398 [SD899,
2399
2400 SD898]
2401 )))|(((
2402 [SD959,
2403
2404 SD958]
2405 )))|(((
2406 [SD1019,
2407
2408 SD1018]
2409 )))|(((
2410 [SD1079,
2411
2412 SD1078]
2413 )))|(((
2414 [SD1139,
2415
2416 SD1138]
2417 )))|(((
2418 [SD1199,
2419
2420 SD1198]
2421 )))|(((
2422 [SD1259,
2423
2424 SD1258]
2425 )))|(((
2426 [SD1319,
2427
2428 SD1318]
2429 )))
2430
2431 **(4) Bias speed**
2432
2433 Set the lower limit value (offset speed) of the instruction speed, home return speed, and crawl speed.
2434
2435 The setting range is: (1 to 200K), and the over range is calculated according to the boundary value.
2436
2437 Even if it is within the setting range, please set the relationship of bias speed <= instruction speed <= maximum speed.
2438
2439 If the bias speed>maximum speed, then use the lower frequency to send, that is, the highest frequency.
2440
2441 **Special device:**
2442
2443 (% class="table-bordered" %)
2444 |**Output axis**|**Y0**|**Y1**|**Y2**|**Y3**|**Y4**|**Y5**|**Y6**|**Y7**
2445 |Bias speed|(((
2446 [SD901,
2447
2448 SD900]
2449 )))|(((
2450 [SD961,
2451
2452 SD960]
2453 )))|(((
2454 [SD1021,
2455
2456 SD1020]
2457 )))|(((
2458 [SD1081,
2459
2460 SD1080]
2461 )))|(((
2462 [SD1141,
2463
2464 SD1140]
2465 )))|(((
2466 [SD1201,
2467
2468 SD1200]
2469 )))|(((
2470 [SD1261,
2471
2472 SD1260]
2473 )))|(((
2474 [SD1321,
2475
2476 SD1320]
2477 )))
2478
2479 **(5) Acceleration time**
2480
2481 Set the acceleration time from the bias speed to the maximum speed.
2482
2483 The acceleration time can be set in the range of 15 to 32767ms. If it exceeds the range, it will be modified to the value closest to the range.
2484
2485 **Special device:**
2486
2487 (% class="table-bordered" %)
2488 |**Output axis**|**Y0**|**Y1**|**Y2**|**Y3**|**Y4**|**Y5**|**Y6**|**Y7**
2489 |Accelerated Time|SD902|SD962|SD1022|SD1082|SD1142|SD1202|SD1262|SD1322
2490
2491 **✎Note: **When the acceleration time is set to 0, there is no acceleration process.
2492
2493 **(6) Deceleration time**
2494
2495 Set the deceleration time from the maximum speed to the bias speed.
2496
2497 The deceleration time can be set in the range of 15 to 32767ms. If it exceeds the range, it will be modified to the value closest to the range.
2498
2499 **Special device:**
2500
2501 (% class="table-bordered" %)
2502 |**Output axis**|**Y0**|**Y1**|**Y2**|**Y3**|**Y4**|**Y5**|**Y6**|**Y7**
2503 |Deceleration time|SD903|SD963|SD1023|SD1083|SD1143|SD1203|SD1263|SD1323
2504
2505 **{{id name="OLE_LINK380"/}}✎Note: **When the acceleration time is set to 0, there is no deceleration process.
2506
2507 **(7) Stop method**
2508
2509 Set the stop mode of high-speed pulse: turn off the instruction halfway or the instruction encounters a limit situation [default is 0: decelerate to stop].
2510
2511 Set [0: Decelerate to stop]: When the pulse stops halfway, the pulse decelerates and stops.
2512
2513 Set [1: Stop immediately]: when the pulse stops halfway, the pulse stops immediately without deceleration.
2514
2515 (% class="table-bordered" %)
2516 |**Output axis**|**Y0**|**Y1**|**Y2**|**Y3**|**Y4**|**Y5**|**Y6**|**Y7**
2517 |Stop method|SD904|SD964|SD1024|SD1084|SD1144|SD1204|SD1264|SD1324
2518
2519 [0: Decelerate to stop]: Decelerate to stop after receiving the stop signal.
2520
2521 (% style="text-align:center" %)
2522 [[image:08_html_9cc1e17abc2c66b3.gif||height="327" width="700"]]
2523
2524 [1: Stop immediately]: Stop immediately after receiving the stop signal without decelerating movement.
2525
2526 (% style="text-align:center" %)
2527 [[image:08_html_c616dcb4f3f0f698.gif||height="288" width="700" class="img-thumbnail"]]
2528
2529 **(8) Direction delay**
2530
2531 Set the delay time between the direction and the pulse, which is only applicable to instructions with direction, and the range is 0-32767ms.
2532
2533 **✎Note: **The error of direction delay is within one scan period.
2534
2535 (% class="table-bordered" %)
2536 |**Output shaft**|**Y0**|**Y1**|**Y2**|**Y3**|**Y4**|**Y5**|**Y6**|**Y7**
2537 |Direction delay|SD905|SD965|SD1025|SD1085|SD1145|SD1205|SD1265|SD1325
2538
2539 (% style="text-align:center" %)
2540 [[image:08_html_2e35a77cf58094fa.gif||height="466" width="700" class="img-thumbnail"]]
2541
2542 **(9) External start signal**
2543
2544 Set the device number (X device) of external start signal. If it is set to X0, the value is 0. It is necessary to set the existing external input point, otherwise the function will not take effect.
2545
2546 The external signal is affected by the scan cycle and is judged when executing instruction.
2547
2548 **Special device:**
2549
2550 (% class="table-bordered" %)
2551 |**Output axis**|**Y0**|**Y1**|**Y2**|**Y3**|**Y4**|**Y5**|**Y6**|**Y7**
2552 |External start signal|SD906|SD966|SD1026|SD1086|SD1146|SD1206|SD1266|SD1326
2553
2554 **(10) The description of start speed**
2555
2556 Start speed = (maximum speed - bias speed) / acceleration time
2557
2558 But the starting speed will be the following value according to the relationship between the instruction speed and the base speed.
2559
2560 * Bias speed < start speed < instruction speed: start speed = start speed.(It will be the value of above calculation)
2561 * Bias speed <= instruction speed < start speed: start speed = instruction speed
2562 * Start speed < bias speed, or instruction speed < bias speed: start speed = bias speed
2563 * Maximum speed < bias speed: start speed = maximum speed
2564
2565 **(11) Pulse number and frequency modification**
2566
2567 **1) **Modify frequency
2568
2569 ①Reachable frequency
2570
2571 (% style="text-align:center" %)
2572 [[image:08_html_e260ba033ed851bb.gif||height="366" width="700" class="img-thumbnail"]]
2573
2574 ②Unreachable frequency
2575
2576 (% style="text-align:center" %)
2577 [[image:08_html_54e112fa5aeba863.gif||height="386" width="700" class="img-thumbnail"]]
2578
2579 2) Modify the number of pulses:
2580
2581 ①Modify to the number of reachable pulses
2582
2583 (% style="text-align:center" %)
2584 [[image:08_html_f7207d642325c29f.gif||height="282" width="700" class="img-thumbnail"]]
2585
2586 ②Modify to the number of unreachable pulses (only support instructions with direction. If there is no direction, stop pulse sending)
2587
2588 (% style="text-align:center" %)
2589 [[image:08_html_b73c1c8f2b27e562.gif||height="322" width="700" class="img-thumbnail"]]
2590
2591 **{{id name="OLE_LINK371"/}}(12) The number of sent pulses is out of range**
2592
2593 When the number of pulses to be sent exceeds the range represented by the number of pulses (32 bits) (-2147483648 to +2147483647), it will run to the target position in the opposite direction to the expected. For example:
2594
2595 The current position is 1, when you want to run to the target position -2147483648, you should send 2147483647 pulses in the forward direction instead of sending 2147483649 pulses in the reverse direction;
2596
2597 The current position is -1, when you want to run to the target position 2147483647, you should send 2147483648 pulses inthe reverse direction instead of sending 2147483648 pulses in the forward direction.
2598
2599 **(13) Acceleration and deceleration mode**
2600
2601 (% class="table-bordered" %)
2602 |**Output axis**|**Y0**|**Y1**|**Y2**|**Y3**|**Y4**|**Y5**|**Y6**|**Y7**
2603 |Acceleration and deceleration mode|SD907|SD967|SD1027|SD1087|SD1147|SD1207|SD1267|SD1327
2604
2605 **{{id name="OLE_LINK372"/}}A.**When the parameter is 0, post acceleration and deceleration mode is adopted.
2606
2607 **B.**When the parameter is 1, forward acceleration and deceleration mode is adopted.(Accelerate to the next segment in advance)
2608
2609 For example, three pulses are needed. The pulse frequency of the 1st segment is 2000Hz, the number of pulse is 2000; the pulse frequency of the 2nd segment is 4000Hz, the number of pulse is 4000; the pulse frequency of the 3rd segment is 6000Hz, the number of pulse is 6000;
2610
2611 Forward acceleration and deceleration mode oscillogram Post acceleration and deceleration mode oscillogram
2612
2613 (% style="text-align:center" %)
2614 [[image:08_html_8ee518b903bd7021.gif||class="img-thumbnail"]]
2615
2616 (% style="text-align:center" %)
2617 [[image:08_html_cccf805151401d1e.gif||class="img-thumbnail"]]
2618
2619 **(14) High-speed pulse acceleration and deceleration mode selection**
2620
2621 Acceleration and deceleration mode selection
2622
2623 (% class="table-bordered" %)
2624 |**Output axis**|**Y0**|**Y1**|**Y2**|**Y3**|**Y4**|**Y5**|**Y6**|**Y7**
2625 |Acceleration and deceleration mode|SD911|SD971|SD1031|SD1091|SD1151|SD1211|SD1271|SD1331
2626
2627 **C.**When the parameter is 0, Ladder acceleration and deceleration(calculate the pulse frequency one by one) mode is adopted.
2628
2629 {{id name="OLE_LINK373"/}}{{id name="OLE_LINK374"/}}**D.**When the parameter is 1, Time-minute ladder acceleration and deceleration is adopted.
2630
2631 **E.**When the parameter is 2, Time-minute s-type acceleration and deceleration is adopted.
2632
2633 **{{id name="OLE_LINK378"/}}(15) Time-minute acceleration and deceleration parameter**
2634
2635 (% class="table-bordered" %)
2636 |**Output axis**|**Y0**|**Y1**|**Y2**|**Y3**|**Y4**|**Y5**|**Y6**|**Y7**
2637 |Time-minute intervals|SD912|SD972|SD1032|SD1092|SD1152|SD1212|SD1272|SD1332
2638
2639 Time-minute intervals:
2640
2641 {{id name="OLE_LINK377"/}}{{id name="OLE_LINK379"/}}This parameter is time interval of time-minute acceleration and deceleration. The unit is 100us. The value range is 10 to1000.When the value is less than 10, the value is 10. When the value is greater than 1000, the value is 1000.
2642
2643 Time-minute ladder acceleration and deceleration
2644
2645 (% style="text-align:center" %)
2646 [[image:08_html_4649b9d5dd0f0a90.gif||height="330" width="700" class="img-thumbnail"]]
2647
2648 Time-minute S-type acceleration and deceleration
2649
2650 (% style="text-align:center" %)
2651 [[image:08_html_27806ce2da3a3ef0.gif||height="319" width="700" class="img-thumbnail"]]
2652
2653 The following figure shows the changes of each parameter
2654
2655 (% style="text-align:center" %)
2656 [[image:08_html_7e62d35d88cbe966.gif||height="614" width="400" class="img-thumbnail"]]
2657
2658 **✎Note: **When the frequency is modified during the operation, acceleration would accelerate again from zero. There will be discontinuous acceleration.
2659
2660 **(16) Oringin return mode**
2661
2662 (% class="table-bordered" %)
2663 |**Output axis**|**Y0**|**Y1**|**Y2**|**Y3**|**Y4**|**Y5**|**Y6**|**Y7**
2664 |Origin return mode|SD914|SD974|SD1034|SD1094|SD1154|SD1214|SD1274|SD1334
2665 |Origin return distance|[SD919, SD918]|[SD979, SD978]|[SD1039, SD1038]|[SD1099, SD1098]|[SD1159, SD1158]|[SD1219, SD1218]|[SD1279, SD1278]|[SD1339, SD1338]
2666
2667 {{id name="OLE_LINK383"/}}Origin return mode 0:{{id name="OLE_LINK382"/}}
2668
2669 (% style="text-align:center" %)
2670 [[image:08_html_a45eea6d89d68033.gif||class="img-thumbnail"]]
2671
2672 {{id name="OLE_LINK384"/}}Origin return mode 1: When the signal is received, go backward to the specified origin return distance and then search for the origin at crawling speed.
2673
2674 (% style="text-align:center" %)
2675 [[image:08_html_2874d4c4a811d551.gif||class="img-thumbnail"]]
2676
2677 {{id name="OLE_LINK385"/}}Origin return mode 2: When the signal is received, go to the specified origin return distance and then search for the origin 0 at crawling speed.
2678
2679 (% style="text-align:center" %)
2680 [[image:08_html_1ec1b111e68e0e29.gif||class="img-thumbnail"]]
2681
2682 Origin return mode 2: Start running toward zero based on the current position, and search for the origin at crawling speed after reaching zero.
2683
2684 (% style="text-align:center" %)
2685 [[image:08_html_61ec39c1f986ad1b.gif||class="img-thumbnail"]]