Wiki source code of 09 Electronic cam

Version 8.1 by Stone Wu on 2022/09/26 14:36

Show last authors
1 = **Electronic CAM (ECAM) instruction** =
2
3 == **DEGEAR/Electronic gear/32 bit hand wheel instruction** ==
4
5 **DEGEAR**
6
7 Electronic gear function refers to the function of multiplying the speed of the driving shaft by the set gear ratio and outputting to the driven shaft at this speed to control the mechanical operation.
8
9 -[DEGEAR (s1) (s2) (s3) (d1) (d2)]
10
11 (% style="text-align:center" %)
12 [[image:09_html_da882b8c1ba50fe6.png||height="388" width="700" class="img-thumbnail"]]
13
14 **Content, range and data type**
15
16 (% class="table-bordered" %)
17 |=(% scope="row" %)**Parameter**|=(% style="width: 478px;" %)**Content**|=(% style="width: 218px;" %)**Range**|=(% style="width: 185px;" %)**Data type**|=(% style="width: 108px;" %)**Data type (label)**
18 |=(s1)|(% style="width:478px" %)Specify the high-speed counter or ordinary double-word counter that receives the master axis pulse|(% style="width:218px" %)-2147483648 to 2147483647|(% style="width:185px" %)Signed BIN 32 bit|(% style="width:108px" %)ANY32
19 |=(s2)|(% style="width:478px" %)Specify the data buffer of the electronic gear command|(% style="width:218px" %) |(% style="width:185px" %)Form type|(% style="width:108px" %)LIST
20 |=(s3)|(% style="width:478px" %)Response time, that is, how often the gear calculation is performed|(% style="width:218px" %)0~~500|(% style="width:185px" %)Signed BIN 32 bit|(% style="width:108px" %)ANY32
21 |=(d)|(% style="width:478px" %)Specify pulse output axis|(% style="width:218px" %)Y0~~Y7|(% style="width:185px" %)Bit|(% style="width:108px" %)ANY_BOOL
22 |=(d)|(% style="width:478px" %)Specify direction output shaft|(% style="width:218px" %)Y/M/S/D.b|(% style="width:185px" %)Bit|(% style="width:108px" %)ANY_BOOL
23
24 **Device used**
25
26 (% class="table-bordered" %)
27 |=(% rowspan="2" %)**Instruction**|=(% rowspan="2" %)**Parameters**|=(% colspan="10" %)**Device**|=(((
28 **Offset**
29
30 **modification**
31 )))|=(((
32 **Pulse**
33
34 **extension**
35 )))
36 |=**Y**|=**M**|=**S**|=**D.b**|=**D**|=**R**|=**LC**|=**HSC**|=**K**|=**H**|=**[D]**|=**XXP**
37 |=(% rowspan="5" %)DECAM|Parameter 1| | | | | | |●|●| | | |
38 |Parameter 2| | | | |●|●| | | | | |
39 |Parameter 3| | | | |●|●| | |●|●| |
40 |Parameter 4|●| | | | | | | | | | |
41 |Parameter 5|●|●|●|●| | | | | | | |
42
43 **Features**
44
45 •When the instruction is turned on, the PLC obtains the number of pulses of the master axis (s1) according to the set response time (s2), calculates the average frequency within the response time, and calculates the output of the driven axis according to the set gear ratio Frequency and output pulse number, and output pulse (d1) and direction (d2). When the frequency of the driven shaft is greater than the set maximum frequency, it will output according to the set maximum frequency.
46
47 •When the master axis (s1) uses the high-speed counter (HSC), the PLC internally obtains the number of external input pulses. Modifying the value of the HSC counter does not affect the judgment of the input pulse.
48
49 •When the master axis (s1) uses an ordinary double-word counter (LC), the PLC directly obtains the number of pulses from the LC register, and modifying the value of the register directly affects the judgment of the input pulse.
50
51 • Electronic gear data buffer (s2) table:
52
53 (% class="table-bordered" %)
54 |=(% colspan="5" scope="row" %)**Electronic gear instruction parameter description table**
55 |=**Offset**|=(% style="width: 348px;" %)**Content**|=(% style="width: 401px;" %)**Instruction**|=(% style="width: 141px;" %)**Range**|=(% style="width: 127px;" %)**Read and write permission**
56 |=0|(% style="width:348px" %)Electronic gear ratio (numerator)|(% rowspan="2" style="width:401px" %)(((
57 Number of outputs = Number of inputs in response time*numerator/denominator
58 )))|(% style="width:141px" %)0 to 32767|(% rowspan="2" style="width:127px" %)Read/write
59 |=1|(% style="width:348px" %)Electronic gear ratio (denominator)|(% style="width:141px" %)1 to 32767
60 |=2|(% style="width:348px" %)Maximum output frequency (low word)|(% style="width:401px" %)Max frequency|(% rowspan="2" style="width:141px" %)1 to 200000|(% style="width:127px" %)Read/write
61 |=3|(% style="width:348px" %)Maximum output frequency (high word)|(% style="width:401px" %)Max frequency|(% style="width:127px" %)Read/write
62 |=4|(% style="width:348px" %)Average spindle frequency (low word)|(% style="width:401px" %)Hand crank input frequency|(% rowspan="2" style="width:141px" %)-|(% style="width:127px" %)Read-only
63 |=5|(% style="width:348px" %)Average spindle frequency (high word)|(% style="width:401px" %)Hand crank input frequency|(% style="width:127px" %)Read-only
64 |=6|(% style="width:348px" %)Accumulative electronic gear input pulse number (low word)|(% rowspan="2" style="width:401px" %)Cumulative number of electronic gear input pulses|(% rowspan="2" style="width:141px" %)-|(% rowspan="2" style="width:127px" %)Read-only
65 |=7|(% style="width:348px" %)Cumulative number of electronic gear input pulses(High word)
66 |=8|(% style="width:348px" %)Sign|(% style="width:401px" %)After the electronic gear is initialized, the flag is equal to 1|(% style="width:141px" %)Reserved|(% style="width:127px" %)Reserved
67 |=9|(% style="width:348px" %)interval|(% style="width:401px" %)Confirmation value|(% style="width:141px" %)-|(% style="width:127px" %)Read-only
68 |=10|(% style="width:348px" %)Electronic gear ratio (numerator)|(% style="width:401px" %)Confirmation value|(% style="width:141px" %)-|(% style="width:127px" %)Read-only
69 |=11|(% style="width:348px" %)Electronic gear ratio (denominator)|(% style="width:401px" %)Confirmation value|(% style="width:141px" %)-|(% style="width:127px" %)Read-only
70 |=12|(% style="width:348px" %)Maximum output frequency (low word)|(% rowspan="2" style="width:401px" %)Confirmation value|(% rowspan="2" style="width:141px" %)1 to 200000|(% style="width:127px" %)Read-only
71 |=13|(% style="width:348px" %)Maximum output frequency (high word)|(% style="width:127px" %)Read-only
72 |=14|(% style="width:348px" %)Dynamically switch gear ratio|(% style="width:401px" %)(((
73 * 1: Switch to the newly set gear ratio immediately. And set the address back to 0.
74 * 2: The cycle is completed and the gear ratio is switched, and the value is set back to 0 after the switching is completed. (The value of the spindle count reaching the denominator is regarded as a cycle)
75 )))|(% style="width:141px" %)0 to 2|(% style="width:127px" %)Read/write
76 |=15|(% style="width:348px" %)16-bit gear ratio and 32-bit gear ratio switch|(% style="width:401px" %)(((
77 * 0: Use 16-bit gear ratio
78 * 1: Use 32-bit gear ratio
79
80 ✎**Note:     **After changing this bit, it will only take effect after the DEGEAR command is re-enabled or the dynamic gear ratio function is used.
81 )))|(% style="width:141px" %)0 to 1|(% style="width:127px" %)Read/write
82 |=16|(% style="width:348px" %)32-bit electronic gear ratio numerator (low word)|(% rowspan="4" style="width:401px" %)(((
83 Number of outputs = Spindle input number within response time*numerator/denominator
84 )))|(% rowspan="2" style="width:141px" %)0 to 214748647|(% rowspan="2" style="width:127px" %)Read/write
85 |=17|(% style="width:348px" %)32-bit electronic gear ratio numerator (high word)
86 |=18|(% style="width:348px" %)32-bit electronic gear ratio denominator (low word)|(% rowspan="2" style="width:141px" %)1 to 214748647|(% rowspan="2" style="width:127px" %)Read/write
87 |=19|(% style="width:348px" %)32-bit electronic gear ratio denominator (high word)
88 |=20|(% style="width:348px" %)32-bit electronic gear ratio numerator (low word)|(% rowspan="4" style="width:401px" %)Confirmation value|(% rowspan="2" style="width:141px" %)-|(% rowspan="2" style="width:127px" %)Read-only
89 |=21|(% style="width:348px" %)32-bit electronic gear ratio numerator (high word)
90 |=22|(% style="width:348px" %)32-bit electronic gear ratio denominator (low word)|(% rowspan="2" style="width:141px" %)-|(% rowspan="2" style="width:127px" %)Read-only
91 |=23|(% style="width:348px" %)32-bit electronic gear ratio denominator (high word)
92
93 **✎Note:**
94
95 • When the output pulse axis (d1) is used by this instruction, other high-speed pulse instructions can no longer use the output axis. Otherwise, an operation error will occur and pulse output will not be performed.
96
97 • The cycle of calculating the electronic gear inside the PLC is 100us once. If multiple electronic gear/electronic cam commands are used at the same time, The computing interval is unchanged, that is, the 8-axis electronic gear instruction is executed at the same time, and the computing interval is also 100us.
98
99 • The electronic gear commands can only be enabled at most 8 (Y0 ~~ Y7) at the same time.
100
101 • The electronic gear command is used, and the data buffer (s2) will occupy 24 consecutive devices. Note that the address cannot exceed the range of the device and reuse.
102
103 **Error code**
104
105 (% class="table-bordered" %)
106 |=(% scope="row" %)**Error code**|=**Content**
107 |=4085H|The read address of (s1), (s2) and (s3) exceeds the device range
108 |=4084H|The data exceeds the settable range
109 |=4EC0H|Electronic gear ratio setting error
110 |=4088H|High-speed pulse instructions use the same output shaft (d1)
111
112 **Example**
113
114 **(1) Realize the 1:1 follow function of Y0 output pulse to Y3 output pulse.**
115
116 Configure the high-speed counter, enable HSC0, and configure it as one-way output and count-up mode.
117
118 (% style="text-align:center" %)
119 [[image:09_html_c27f358df2fb693.png||class="img-thumbnail"]]
120
121 Ladder
122
123 (% style="text-align:center" %)
124 [[image:09_html_242f6504931e93b5.png||class="img-thumbnail"]]
125
126 Connect the Y3 output of the PLC to the X0 input.
127
128 Turn on M1, start M2, and Y3 for output. At this time, Y0 will follow Y3 1:1 (SD880 = SD1060).
129
130 **(2) Use of 32-bit gear ratio.**
131
132 (% style="text-align:center" %)
133 [[image:09_html_5ccccc63668ba219.png||class="img-thumbnail"]]
134
135 Set the 32-bit gear ratio: 18518517: 12345678, set the 15 address of the data buffer to 1, and enable the 32-bit gear ratio function.
136
137 M1 turns ON to turn on the electronic gear command, M2 turns ON, LC0 will increase by 1 every 100ms, at this time SD880:LC0 always = 18518517:12345678.
138
139 **(3) Use of gear ratio switching function**
140
141 (% style="text-align:center" %)
142 [[image:09_html_bb25bf2898683582.png||class="img-thumbnail"]]
143
144 Set the gear ratio to 1:1.
145
146 M1 turns ON to turn on the electronic gear instruction, M2 turns ON, LC0 will increase by 1 every 100ms, at this time SD880:LC0 always = 1:1. When M3 is turned on, change the gear ratio to 2:1 and enable the switch gear ratio function. After that, the increment of SD880 and the increment of LC0 are always 2:1.
147
148 == {{id name="_Toc4792"/}}**{{id name="_Toc8689"/}}DECAM/32-bit electronic cam instruction** ==
149
150 **DECAM**
151
152 The electronic cam function uses the preset cam curve to determine the slave axis movement amount according to the spindle movement (phase information) and the cam curve, and output. The cam curve refers to each phase (rotation angle (Degree) and CAM curve refers master axis rotation 1 cycle as the movement benchmark. The displacement of the slave axis can be set by the ECAMTBX instruction.
153
154 -[DECAM (s1) (s2) (s3) (d1) (d2)]
155
156 (% style="text-align:center" %)
157 [[image:09_html_a82d001d381b23bb.png||height="476" width="700" class="img-thumbnail"]]
158
159 **Content, range and data type**
160
161 (% class="table-bordered" %)
162 |**Parameter**|(% style="width:790px" %)**Content**|(% style="width:268px" %)**Range**|**Data type**|**Data type (label)**
163 |(s1)|(% style="width:790px" %)Specify to receive the input pulse of the master axis|(% style="width:268px" %)-2147483648 to 2147483647|Signed BIN 32 bit|ANY32
164 |(s2)|(% style="width:790px" %)Specify the data buffer of the electronic cam instruction|(% style="width:268px" %) |Form type|LIST
165 |(s3)|(% style="width:790px" %)The external start signal of the electronic cam needs to be enabled in the data buffer area to be effective.|(% style="width:268px" %)X/M/S/D.b|Signed BIN 32 bit|ANY32
166 |(d1)|(% style="width:790px" %)Specify pulse output axis|(% style="width:268px" %)Y0~~Y7|Bit|ANY_BOOL
167 |(d2)|(% style="width:790px" %)Specify direction output shaft|(% style="width:268px" %)Y/M/S/D.b|Bit|ANY_BOOL
168
169 **Device used**
170
171 (% class="table-bordered" %)
172 |(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="11" %)**Devices**|(((
173 **Offset**
174
175 **modification**
176 )))|(((
177 **Pulse**
178
179 **extension**
180 )))
181 |**X**|**Y**|**M**|**S**|**D.b**|**D**|**R**|**LC**|**HSC**|(% style="width:36px" %)**K**|(% style="width:44px" %)**H**|**[D]**|**XXP**
182 |(% rowspan="5" %)DECAM|Parameter 1| | | | | | | |●|●|(% style="width:36px" %)●|(% style="width:44px" %)●| |
183 |Parameter 2| | | | | |●|●| | |(% style="width:36px" %) |(% style="width:44px" %) | |
184 |Parameter 3|●| |●|●|●| | | | |(% style="width:36px" %) |(% style="width:44px" %) | |
185 |Parameter 4| |●| | | | | | | |(% style="width:36px" %) |(% style="width:44px" %) | |
186 |Parameter 5| | | | | | | | | |(% style="width:36px" %) |(% style="width:44px" %) | |
187
188 **Features**
189
190 When the instruction is turned on, the PLC obtains the number of pulses of the master axis (s1), calculates the number of pulses that the slave axis needs to output for this calculation according to the set cam curve, and performs the pulse (d1) and direction (d2) Output. When the frequency of the driven shaft is greater than the set maximum frequency, it will output according to the set maximum frequency.
191
192 • When the master axis (s1) uses the high-speed counter (HSC), the PLC internally obtains the number of external input pulses. Modifying the value of the HSC counter does not affect the judgment of the input pulse.
193
194 • When the master axis (s1) uses an ordinary double-word counter (LC), the PLC directly obtains the number of pulses from the LC register, and modifying the value of the register directly affects the judgment of the input pulse.
195
196 • When the master axis (s1) uses the constant K/H, the number of input pulses is the time axis. If it is K1, the number of input pulses will increase by 1 every 100 us.
197
198 • Electronic cam data buffer (s2) table:
199
200 (% class="table-bordered" %)
201 |(% style="width:135px" %)**Offset address**|(% style="width:199px" %)**Name**|**Instruction**|**Initial value**|**Range**
202 |(% style="width:135px" %)0|(% style="width:199px" %)Form version number| |5200|
203 |(% rowspan="3" style="width:135px" %)1|(% rowspan="3" style="width:199px" %)Flag register|(((
204 Bit0-Initialization complete flag
205
206 After the electronic cam permission signal is activated, calculate the related
207
208 Data, automatically set to ON after initialization, users need to clear this flag state by themselves
209 )))|0|—
210 |(((
211 Bit1-Cycle complete flag
212
213 Electronic cam completion flag. When the periodic electronic cam is executed
214
215 After completion, this flag will be automatically set to ON; if you want to restart the periodic electronic cam, the user needs to clear this flag state first.
216 )))|0|—
217 |(((
218 Bit2-Pulse transmission delayed flag bit
219
220 Bit3-Error electronic cam stop running flag bit
221
222 Bit4-Parameter error error, electronic cam stop running flag bit
223
224 Bit5-Table error, electronic cam stop running flag
225
226 Bit6-Periodic electronic cam flag
227
228 Bit7-Aperiodic electronic cam flag
229
230 Bit9-Stop flag for current cycle completion
231
232 Bit10-synchronization zone flag
233
234 Bit11-Time axis flag
235
236 Bit12-New form loading complete flag
237
238 Bit13-Periodic delay electronic cam flag
239
240 Bit14-Delayed start function, delayed waiting flag bit
241 )))|0|
242 \\\\\\—
243 |(% style="width:135px" %)2|(% style="width:199px" %)Error register|(((
244 Operation error condition (check Bit3 of address 1): Display Error code.
245
246 Parameter error condition (check Bit4 of address 1): Display the offset address of the error parameter register.
247
248 Table error condition (check Bit5 of address 1): display Incorrect table segment number.
249 )))|0|
250 \\—
251 |(% style="width:135px" %)3|(% style="width:199px" %)(((
252 Function register
253
254 (Confirm before using electronic cam)
255 )))|(((
256 Bit0-Delayed start enable Bit1-Start at specified position
257
258 Bit2-Spindle zoom Bit3-zoom from axis
259
260 Bit5-Use external start signal Bit6-Start from current position
261
262 *Bit1 and Bit6 cannot both be 1.
263 )))|0|—
264 |(% style="width:135px" %)4|(% style="width:199px" %)(((
265 Function register
266
267 (can be changed while the electronic cam is running)
268 )))|(((
269 Bit0-Sync signal enable
270
271 Bit1-Stop the electronic cam after the current cycle is completed
272
273 Bit2-Switch the table after the cycle is completed, the bit will automatically change back to 0 after the switch is completed
274 )))|0|
275
276
277 **✎Note:**
278
279 When the output pulse axis (d1) is used by this instruction, other high-speed pulse instructions can no longer use the output axis. Otherwise, an operation error will occur and pulse output will not be performed.
280
281 The cycle of calculating the electronic gear inside the PLC is 100us once. If multiple electronic gear/electronic cam commands are used at the same time, the time will increase accordingly. If the 8-axis electronic gear command is executed at the same time, the calculation cycle will become 800us.
282
283 The electronic gear commands can only be enabled at most 8 (Y0 ~~ Y7) at the same time.
284
285 The electronic gear command is used, and the data buffer (s2) will occupy 24 consecutive devices. Note that the address cannot exceed the range of the device and reuse.
286
287 **Error code**
288
289 (% class="table-bordered" %)
290 |**Error code**|**Content**
291 |4E80H|E-cam table loading error
292 |4E81H|The currently numbered form has a cam in use
293 |4E82H|E-cam table address error
294 |4E83H|The electronic cam table exceeds the device range
295
296 **Example**
297
298 For details, please refer to "__[[9.2 Instruction manual of Electronic CAM (ECAM )>>path:#_9.2 Instruction manual of Electronic CAM (ECAM )]]__".
299
300 == {{id name="_Toc17791"/}}**{{id name="_Toc17882"/}}{{id name="OLE_LINK605"/}}ECAMCUT/Electronic cam table switching instruction** ==
301
302 **ECAMCUT**
303
304 This instruction needs to be used in conjunction with the electronic cam instruction (DECAM) to specify the newly defined table address to realize the function of switching the electronic cam table periodically during the operation of the electronic cam.
305
306 -[ECAMCUT (s1) (s2)]
307
308 **Content, range and data type**
309
310 (% class="table-bordered" %)
311 |**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
312 |(s1)|Specify the table number, currently only supports one table|1 to 2 (LX5VT: 1 to 16)|Signed BIN 16 bit|ANY16
313 |(s2)|Specify the first address of the data buffer area of the electronic cam table|-|Form type|LIST
314
315 **Device used**
316
317 (% class="table-bordered" %)
318 |(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="4" %)**Devices**|(((
319 **Offset modification**
320 )))|(((
321 **Pulse extension**
322 )))
323 |**D**|**R**|**K**|**H**|**[D]**|**XXP**
324 |(% rowspan="2" %)ECAMCUT|Parameter 1|●|●|●|●| |
325 |Parameter 2|●|●| | | |
326
327 **Features**
328
329 Table format definition:
330
331 (% class="table-bordered" %)
332 |**Offset**|**Instruction**
333 |0|Number of table segments
334 |1|Table version
335 |2 to 3|Spindle section 0 (double word)
336 |4 to 5|Section 0 slave axis (double word)
337 |6 to 7|Spindle section 1
338 |8 to 9|Section 1 slave axis
339 |(% colspan="2" %)......
340
341 **Instruction function description**
342
343 (1) In the (s1) parameter, only K1 or K2 can be used to specify the location of the table. The format of the table must be as above.
344
345 K1 means Form 1
346
347 K2 means Form 2
348
349 Form 0 is the original form of the cam (optional)
350
351 (2) When the instruction is running, check the table data in the start address specified by (s2) and verify the correctness of the data. After the operation is successful, the table with the specified table number should point to the starting address of (s2). In the process of command pointing, if the corresponding numbered table is in the current cam operation, an operation error will be reported.
352
353 Before using the table, you need to run this command to configure the address where the table is located. After the table address is specified, it will not be saved after power off.
354
355 (3) Related registers and flags
356
357 •Electronic cam buffer offset 1 (flag bit register)
358
359 bit12 ~-~-- table switching completed flag
360
361 •Electronic cam buffer offset 4 (function register)
362
363 After bit2-cycle is completed, switch to the specified table operation
364
365 •Electronic cam buffer offset 31
366
367 Number of the table to be run in the next cycle (0 ~~ 2)
368
369 •Electronic cam buffer offset 32
370
371 The table number of current cycle operation (0 ~~ 2)
372
373 **✎Note:**
374
375 Table 0 is the self-contained table of the electronic cam, that is, the continuous address starting at offset 38 of the electronic cam data buffer. Therefore, the electronic cam can specify up to 3 tables at the same time, which can be switched freely during operation.
376
377 If the curve generated by the electronic cam table generation command ECAMTBX is used, the data buffer of the ECAMTBX generated table should be offset by 38 addresses and then specified.
378
379 (% style="text-align:center" %)
380 [[image:09_html_214525e2311bb039.png||class="img-thumbnail"]]
381
382 **Error code**
383
384 (% class="table-bordered" %)
385 |**Error code**|**Content**
386 |4E80H|E-cam table loading error
387 |4E81H|The currently numbered form has a cam in use
388 |4084H|Data exceeding 1 to 2 is specified in (s1)
389 |4085H|The (s2) table exceeds the device range
390
391 **Example**
392
393 Realize the mutual switching between electronic cam form 1 and form 2
394
395 (% style="text-align:center" %)
396 [[image:09_html_e4c32bd6a926ac39.png||class="img-thumbnail"]]
397
398 (% style="text-align:center" %)
399 [[image:09_html_808130957dbf9656.png||class="img-thumbnail"]]
400
401 **✎Note:**
402
403 1. According to the above Circuit program, first set M2, configure table 1 data, and use ECAMCUT to designate table 1 as electronic cam operation table 1.
404 1. Set M200 to configure the cam running command DECAM.
405 1. Set M201 to enable electronic cam operation. And automatically prepare table 2 data, and assign table 2 data as electronic cam operation table 2.
406 1. Set the second position of D2004 to 1 to turn on the electronic cam switching table function. At this time, table 1 is run in the current cycle, and table 2 is run in the next cycle.
407 1. Use manual addition (M110) to change the master axis (LC0), and the slave axis pulse number SD880 will also change, and the ratio is the ratio of Table 1 (1:2).
408 1. When LC0 = 100, the program automatically switches to Table 2 to run, LC0 increment: SD880 increment = 2000:120500. And currently running table 2 and next cycle running table 1. When LC0 = 2100, switch back to Table 1 to run.
409
410 == {{id name="_Toc24615"/}}**ECAMTBX/Electronic cam table generation instruction** ==
411
412 **ECAMTBX**
413
414 This instruction is used to generate the table data of the electronic cam.
415
416 -[ECAMTBX (S0) (S1) (D0) (D1)]
417
418 **Content, range and data type**
419
420 (% class="table-bordered" %)
421 |**Parameter**|(% style="width:700px" %)**Content**|(% style="width:138px" %)**Range**|(% style="width:255px" %)**Data type**|**Data type (label)**
422 |(S0)|(% style="width:700px" %)Specify the first address of the electronic cam table parameter|(% style="width:138px" %)-|(% style="width:255px" %)Form type|LIST
423 |(S1)|(% style="width:700px" %)Specify the curve type of the electronic cam|(% style="width:138px" %)-|(% style="width:255px" %)Signed BIN 16 bit|ANY16
424 |(D0)|(% style="width:700px" %)Specify the first address of the data buffer area of the E-cam table|(% style="width:138px" %)-|(% style="width:255px" %)Form type|LIST
425 |(D1)|(% style="width:700px" %)Table generation results|(% style="width:138px" %)-|(% style="width:255px" %)Signed BIN 16 bit|ANY16
426
427 **Device used**
428
429 (% class="table-bordered" %)
430 |(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="4" %)**Devices**|(((
431 **Offset modification**
432 )))|(((
433 **Pulse extension**
434 )))
435 |**D**|**R**|**K**|**H**|**[D]**|**XXP**
436 |(% rowspan="4" %)ECAMTBX|Parameter 1|●|●| | | |
437 |Parameter 2|●|●|●|●| |
438 |Parameter 3|●|●| | | |
439 |Parameter 4|●|●| | | |
440
441 **Features**
442
443 S0~-~-parameter address, allowable Devices: D, R.
444
445 {{id name="OLE_LINK386"/}}Description: Indicate the parameters to be set to generate the curve.
446
447 S1~-~-curve type, allowable Devicess: D, R, H, K.
448
449 Description: Indicates the type of curve to be generated.
450
451 K1: Generate S type acceleration/deceleration curve with a spindle of 1ms
452
453 K2: Customize the designated key point to generate a table
454
455 K100: Generate flying shear curve
456
457 K101: Generate chase curve
458
459 D0~-~-The first address of cam parameters, allowable devices: D, R
460
461 Description: The generated table data is stored at the beginning of [D0 + 40], and the number of table segments is stored in [D0 + 38].
462
463 D1-table generation result, allowable Devices: D, R
464
465 D1 <0 generates a table error;
466
467 D1> 0 The table is successfully generated. D1 represents the total number of segments in the current table.
468
469 **Error code**
470
471 ECAMTBX instruction generates curve Error code:
472
473 (% class="table-bordered" %)
474 |**Error code**|**Content**
475 |-1|Condition parameter error
476 |-2|The spindle pulse number is too few, not enough for synchronization area
477 |-3|Unknown cam curve type
478 |-4|Resolution range error
479 |-5|Too many pulses of the slave axis calculated
480 |-6|The calculated number of pulses from the slave axis is too small
481 |-7|The calculated number of spindle pulses exceeds the set length
482 |-8|The pulse number of the slave axis is set to 0
483 |-10|S type acceleration and deceleration curve calculation error
484 |-11|Unknown curve type
485 |-12|Curve left wrong
486 |-13|The number of slave axes exceeds the range
487
488 Key point generating curve Error code:
489
490 (% class="table-bordered" %)
491 |**Error code**|**Content**
492 |-21|The number of key points is out of range
493 |-22|Total resolution exceeds range
494 |-23|Incorrect relationship between spindle size
495 |-24|The resolution setting of each segment is incorrect
496 |-25|When calculating, the number of control points is insufficient
497 |-26|Unknown acceleration curve type
498 |-27|Spindle pulse number is negative
499
500 S-type acceleration and deceleration generated curve Error code:
501
502 (% class="table-bordered" %)
503 |**Error code**|**Content**
504 |-31|The number of pulses exceeds the range
505 |-32|Maximum frequency out of range
506 |-33|Acceleration and deceleration time out of range
507 |-34|The number of pulses or frequency settings cannot meet the curve generation conditions
508
509 **✎Note:**
510
511 After the curve is successfully generated by the ECAMTBX instruction, the cam table can be uploaded to the upper computer for viewing in the PLC of the PLC Edit upper computer software.
512
513 **Example**
514
515 For details, please refer to "__[[9.2 Instruction manual of Electronic CAM (ECAM )>>path:#_9.2 Instruction manual of Electronic CAM (ECAM )]]__".
516
517 = {{id name="_Toc30498"/}}**Instruction manual of Electronic CAM (ECAM )** =
518
519 == {{id name="_Toc4483"/}}**{{id name="_Toc15753"/}}{{id name="_Toc16335"/}}{{id name="一、电子凸轮原理"/}}{{id name="_Toc18423"/}}{{id name="_Toc19697"/}}{{id name="_电子凸轮说明手册"/}}{{id name="电子凸轮功能使用指南V2.0版"/}}Principle of ECAM** ==
520
521 The traditional mechanical cam is composed of cam, follower and frame. A mechanical cam is an irregular part, generally an input part with a constant speed, which can transmit motion to a follower through direct contact, so that the action moves according to a set law. The follower is a passive part driven by a mechanical cam, and is generally an output part that produces unequal speed, discontinuous, and irregular motion.
522
523 ECAM is a software system that uses the constructed concave wheel curve to simulate mechanical cam to achieve the same relative motion between the camshaft and the main shaft of the mechanical cam system.
524
525 Compared with mechanical cams, ECAM makes the design of mechanical and electrical parts more and more simple. ECAM allows the equipment to be flexibly used in different templates and plate styles, and also allows the operation process and cycle of the equipment to be modified, either during the design phase of the equipment or after the equipment is formed. It reduces the complexity of the equipment, makes the equipment run more smoothly and doubles the production efficiency.
526
527 == {{id name="_Toc10338"/}}**{{id name="_Toc21791"/}}{{id name="_Toc18361"/}}{{id name="_Toc4935"/}}Description of ECAM function** ==
528
529 **A.Establish ECAM data**
530
531 {{id name="二、电子凸轮功能描述"/}}{{id name="1、建立电子凸轮数据"/}}LX5V provides 3 ways to establish ECAM data:
532
533 ① Write table data to the table data area by DMOV instruction.
534
535 ② Generate ECAM data automatically by ECAMTBX instruction.
536
537 ③ Draw ECAM data with PLC Editor software.
538
539 **{{id name="2、主轴脉冲选择"/}}B.Spindle pulse selection**
540
541 The selectable spindles of LX5V series PLC are HSC, LC type and virtual time axis K.
542
543 Among them, external high-speed input uses high-speed counter, which supports single-phase single-count input\single-phase double-count input and biphase double-count input. As for the assignment of counters, refer to the instructions for high-speed counters in the PLC help.
544
545 When using HSC register (high-speed counter), the pulse of spindle is obtained internally. Modifying the value of the counter does not affect the cam to judge the actual pulse input quantity.
546
547 When using the normal counter LC, the pulse of spindle is obtained from devices. Modifying the value of the register will affect the judgment of the pulse of spindle .
548
549 When using the K type register, it means to use the internal virtual time axis, and the minimum unit is 100us, K1=100us, K10=1ms.
550
551 **{{id name="3、启用电子凸轮配置"/}}C.Enable ECAM configuration**
552
553 Use the DECAM instruction to configure the ECAM function of PLC.
554
555 (% class="table-bordered" %)
556 |**Name**|**Function**|**Bits**|**Whether pulse type**|**Instruction format**|**Step number**
557 |DECAM|ECAM configuration|32|No|DECAM s1 s2 s3 d1 d2|10
558
559 Ladder :
560
561 (% style="text-align:center" %)
562 [[image:09_html_763f6b25c0dc7c9b.png||class="img-thumbnail"]]
563
564 **(1) Parameters**
565
566 (% class="table-bordered" %)
567 |**Parameter**|(% style="width:527px" %)**Content**|(% style="width:226px" %)**Range**|(% style="width:143px" %)**Data type**|**Data type (label)**
568 |(s1)|(% style="width:527px" %)Specify to receive the input pulse of the master axis|(% style="width:226px" %)(((
569 -2147483648 to +2147483647
570 )))|(% style="width:143px" %)Signed BIN 32 bit|ANY32
571 |(s2)|(% style="width:527px" %)Specify the data buffer area of the ECAM instruction|(% style="width:226px" %) |(% style="width:143px" %)Form|LIST
572 |(s3)|(% style="width:527px" %)The external start signal of ECAM needs to be enabled in the data buffer area to be effective.|(% style="width:226px" %)X/M/S/D.b|(% style="width:143px" %)Signed BIN 32 bit|ANY32
573 |(d1)|(% style="width:527px" %)Specify pulse output axis|(% style="width:226px" %)Y0 to Y7|(% style="width:143px" %)Bit|ANY_BOOL
574 |(d2)|(% style="width:527px" %)Specify direction output axis|(% style="width:226px" %)Y/M/S/D.b|(% style="width:143px" %)Bit|ANY_BOOL
575
576 **{{id name="_Toc9293"/}}Device used:**
577
578 (% class="table-bordered" %)
579 |(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameters**|(% colspan="11" %)**Device**|(((
580 **Offset**
581
582 **modification**
583 )))|(((
584 **Pulse**
585
586 **extension**
587 )))
588 |**X**|**Y**|**M**|**S**|**D.b**|**D**|**R**|**LC**|**HSC**|**K**|**H**|**[D]**|**XXP**
589 |(% rowspan="5" %)DECAM|Parameter 1| | | | | | | |●|●|●|●| |
590 |Parameter 2| | | | | | | | | | | | |
591 |Parameter 3|●| |●|●|●|●|●| | | | | |
592 |Parameter 4| |●| | | | | | | | | | |
593 |Parameter 5| |●|●| |●| | | | | | | |
594
595 **(2) Function description**
596
597 When the contact M0 is turned on, the PLC activates ECAM function, but the ECAM function is not yet running at this time, it just initializes the parameters of the cam. It includes that D1000 to D1005, D1031, D1032 will be cleared and check whether the cam table is correct. After initialization, these registers still need to be set for control.
598
599 This instruction configures the relevant registers and required data for cam operation, and enables the function of ECAM, but the cam does not actually run. To actually enable the ECAM function, the relevant device in the cache address of the instruction (such as D1000 in the instruction) is also needed to control the start and stop of the cam.
600
601 If the instruction is disconnected, the cam stops working.
602
603 Refer to the description of "9.2.2.5 ECAM function register" for the definition of cam parameter devices.
604
605 **(3) Instruction error description**
606
607 When the instruction is running, PLC will check the relevant cam parameters in the cache address and prompt the corresponding error. You can find the error according to the prompt [PLC Error code information]:
608
609 (% class="table-bordered" %)
610 |**Error code**|**Content**
611 |4084H|The parameter set in the instruction exceeds the limit
612 |4085H|The device used in the instruction exceeds the maximum device number
613 |4088H|Multiple application instructions use the same output axis for pulse output
614 |4E80H|ECAM table loading error
615 |4E81H|The currently numbered form has a cam in use
616 |4E82H|ECAM table address error
617 |4E83H|The electronic cam table exceeds the device range
618
619 When an error occurs, the ECAM function is not enabled at this time.
620
621 **(4) Devices involved in instruction execution**
622
623 (% class="table-bordered" %)
624 |**Devices**|**Content**
625 |SD881 (high byte), SD880 (low byte)|Y000 Output pulse number. Decrease when reversed. (Use 32 bits)
626 |SD941 (high byte), SD940 (low byte)|Y001 Output pulse number. Decrease when reversed. (Use 32 bits)
627 |SD1001 (high byte), SD1000 (low byte)|Y002 Output pulse number. Decrease when reversed. (Use 32 bits)
628 |SD1061 (high byte), SD1060 (low byte)|Y003 output pulse number. Decrease when reversed. (Use 32 bits)
629 |SD1121 (high byte), SD1120 (low byte)|Y004 Output pulse number. Decrease when reversed. (Use 32 bits)
630 |SD1181 (high byte), SD1180 (low byte)|Y005 Output pulse number. Decrease when reversed. (Use 32 bits)
631 |SD1241 (high byte), SD1240 (low byte)|Y006 Number of output pulses. Decrease when reversed. (Use 32 bits)
632 |SD1301 (high byte), SD1300 (low byte)|Y007 Output pulse number. Decrease when reversed. (Use 32 bits)
633
634 (% class="table-bordered" %)
635 |**Devices**|**Content**|**Devices**|**Content**
636 |SM882|Y000 Pulse output stop (stop immediately)|SM880|Y000 monitoring during pulse output (BUSY/READY)
637 |SM942|Y001 Pulse output stop (stop immediately)|SM940|Y001 Monitoring during pulse output (BUSY/READY)
638 |SM1002|Y002 Pulse output stop (stop immediately)|SM1000|Y002 Monitoring during pulse output (BUSY/READY)
639 |SM1062|Y003 Pulse output stop (stop immediately)|SM1060|Y003 Monitoring during pulse output (BUSY/READY)
640 |SM1122|Y004 Pulse output stop (stop immediately)|SM1120|Y004 Monitoring during pulse output (BUSY/READY)
641 |SM1182|Y005 Pulse output stop (stop immediately)|SM1180|Y005 Monitoring during pulse output (BUSY/READY)
642 |SM1242|Y006 Pulse output stop (stop immediately)|SM1240|Y006 Monitoring during pulse output (BUSY/READY)
643 |SM1302|Y007 Pulse output stop (stop immediately)|SM1300|Y007 Monitoring during pulse output (BUSY/READY)
644
645 **{{id name="4、电子凸轮启动/停止"/}}D.ECAM start/stop**
646
647 **{{id name="4.1周期式电子凸轮启动/停止"/}}(1) Periodic ECAM start/stop**
648
649 Periodic ECAM means that while the main axis is continuously advancing, the cam axis will realize the corresponding position according to the "ECAM curve table (table)", but the table only defines one period of data, so the positional relationship of master/slave axis in this mode is the continuous repetitive extension of the table.
650
651 (% style="text-align:center" %)
652 [[image:09_html_b2aea2b9660ae563.gif||class="img-thumbnail"]]
653
654 {{id name="_Toc9"/}}1) {{id name="(1)周期式电子凸轮启动"/}}Periodic ECAM start
655
656 Periodic ECAM start sequence is as below.
657
658 ✎At time T1, address 5=1, start periodic electronic cam.
659
660 ✎After the time T2 has elapsed, the PLC takes the initiative to set address 1-bit0 (ECAM initialization complete flag).
661
662 ✎During time T3, ECAM initialization is completed and the periodic action is started. The slave axis follows the movement of the spindle according to the position relationship in the table, and the synchronization signal terminal is output according to the synchronization point range.
663
664 ✎When a cycle is completed, ECAM cycle completion flag address 1-bit1 turns ON, and the user clears the completion flag by itself, and then continues to judge the next cycle.
665
666 (% style="text-align:center" %)
667 [[image:image-20220926115030-2.jpeg||class="img-thumbnail"]]
668
669 {{id name="_Toc18782"/}}2) Periodic ECAM stop
670
671 The periodic ECAM stop sequence is as below.
672
673 ✎When ECAM starts register (address 5) = 0, the ECAM stops operating immediately.
674
675 ✎When the periodic ECAM is operating, the system receives the completion stop flag ((address 4-bit1), the periodic ECAM will continue until the current table is executed, the slave axis will stop operating, as shown in the figure below. If you want to start the periodic cam again, you need to write 0 to address 5 and keep it more than 100us, and then you can start the periodic cam through address 5 again.
676
677 [[image:image-20220926115519-3.jpeg]]
678
679 {{id name="_Toc31992"/}}3) Example description
680
681 The following figure shows the ECAM data, where the spindle length is 50000, the output unit is the number of pulses, and the synchronization range is 20000 to 30000. When running into the synchronization zone, the synchronization terminal output can be used as a control signal. To create ECAM data, please refer to the ECAM data. Hardware circuit Y1 outputs pulse to connect to X0, and it means that the spindle input terminal receives the output pulse of Y1.
682
683 (% style="text-align:center" %)
684 [[image:09_html_b46d1fff9093d80c.gif||class="img-thumbnail"]]
685
686 This example is to use the software PLC Editor2 to set the table.
687
688 **Instructions**
689
690 ① When executing the program, the special register is set first. The set parameters are as follows:
691
692 A. Double word is composed of SD881 and SD880, the current position of Y0 is cleared to 0,
693
694 B. Start the high-speed counter HSC0 and configure it as a single-phase input to receive the high-speed pulse input of X0 (in this case, the pulse of X0 comes from the output pulse of Y1).
695
696 ② SET M0 to start the ECAM, Y axis starts to perform variable speed movement. The main axis receives variable speed input pulse of Y axis, the slave axis outputs pulse according to the ECAM curve, and when the main axis position is 20000-30000 in each cycle, Y7 is ON state.
697
698 **✎Note: **Special registers must be set before the ECAM is started. Set the upper and lower limits of the synchronization position of the ECAM D2009 = 20000, D2011 = 30000; and set the number of the synchronization terminal Y D2008, and the synchronization output enable D2004-BIT0, an ECAM cycle is 50000 pulses and when the spindle position is 20000-30000 pulses (monitored by D2025 and D2026), the synchronization terminal is ON.
699
700 ③ RST M0, the cam stops running.
701
702 PLC program
703
704 (% style="text-align:center" %)
705 [[image:09_html_90fe8b1de142b4f3.png||height="942" width="600" class="img-thumbnail"]]
706
707 **{{id name="4.2非周期式电子凸轮启动/停止"/}}(2) Aperiodic ECAM start/stop**
708
709 Aperiodic ECAM refers to the timing when the camshaft starts to realize the corresponding position according to the table while the main shaft is continuously advancing after the cam start signal is input. Different from the periodic ECAM, The position relationship of the master/slave axis in this mode actually only runs for one cycle, that is, the table only moves once.
710
711 (% style="text-align:center" %)
712 [[image:09_html_86b1dc09cd872158.gif||class="img-thumbnail"]]
713
714 1) Aperiodic ECAM start
715
716 The aperiodic ECAM stop sequence is as below.
717
718 1. At time T1, address 5=2, and aperiodic ECAM is started.
719 1. After the calculation of the time T2, the PLC actively sets the address 1-bit0=ON (the initialization of aperiodic ECAM is completed). At this time, the slave axis will not follow the movement of the master axis.
720 1. At time T3, the ECAM start signal is turned ON (when the external start signal is used), the slave axis will follow the spindle movement for one cycle according to the position relationship in the table.
721 1. After the cycle is completed at the position of time T4, the PLC will actively clear the state of address 1-bit0=ON, and the user can also judge whether the cycle is completed according to the state of address 1-bit1 to .
722 1. During the time T5, the user can choose whether to set the address 1-bit0=ON again through the program , for the purpose of completing the judgment next time.
723 1. Time T6/T7 position is to repeat the action of T3 to T4 again. **✎Note: **The interval between the rising edges of the cam start signal must be more than 0.5ms.
724 1. Sync signal terminal output.
725
726 (% style="text-align:center" %)
727 [[image:image-20220926120124-4.jpeg]]
728
729 2) Aperiodic electronic cam stop
730
731 1. When starting the ECAM register address 5=0, the ECAM slave axis stops operating immediately, as shown in the figure below.
732
733 [[image:09_html_7d9a964fd1036d74.gif]]
734
735 2. When the aperiodic ECAM is running, address 4-BIT1=1 (stop after the current cycle is completed), the aperiodic ECAM will continue to run through the table and then the slave axis will stop operating, as shown in the figure below.
736
737 (% style="text-align:center" %)
738 [[image:image-20220926120303-5.jpeg]]
739
740 3) Example explanation
741
742 The following figure shows the ECAM running table (the spindle length is 0 to 100000 for a cycle), and its output is the number of pulses. When the external signal X2 is triggered by the rising edge, execute two consecutive tables (D1014=2), and wait for the X2 rising edge Trigger again, and execute two consecutive tables again, and so on.
743
744 (% style="text-align:center" %)
745 [[image:09_html_690e150bae16339c.gif||class="img-thumbnail"]]
746
747 This example uses the software PLC EDITOR to ECam0. Please refer to 9.2.2.5 for the detailed steps of creating an ECAM curve. The Y1 axis of the hardware circuit outputs pulse and connects to the X0 axis input terminal, indicating that input terminal position of master axis is to receive the pulse output of Y1 axis as input.
748
749 **{{id name="_Toc973"/}}Operation steps**
750
751 ① When the program is executed, set special registers first, and the set parameters are as follows:
752
753 A. The contents of SD880, SD881 and SD940, SD941 are cleared to 0
754
755 B. Set D1014=2 (repeat the form twice)
756
757 ② Set M0: Configure and start the cam. When M0 is the rising edge, set D1003-Bit5 to use an external start signal; when D1005=2, Y1 outputs pulses, and Y0 axis has not output yet at this time.
758
759 ③ The external signal X2 is triggered, and Y0 axis is output with the ECAM curve; the output stops after 2 cycles.
760
761 ④ RST M0: Close the ECAM mode; if runs RST M0 when the ECAM is running, Y0 axis will stop output immediately.
762
763 [PLC program]
764
765 (% style="text-align:center" %)
766 [[image:image-20220926114246-1.jpeg]]
767
768 **{{id name="_电子凸轮功能寄存器"/}}Electronic cam function register**
769
770 (% class="table-bordered" %)
771 |**Offset address**|**Name**|(% style="width:944px" %)**Instruction**|(% style="width:126px" %)(((
772 **Initial value**
773 )))|(% style="width:154px" %)**Range**
774 |0|Form version number|(% style="width:944px" %) |(% style="width:126px" %)0|(% style="width:154px" %)
775 |(% rowspan="3" %)1|(% rowspan="3" %)Flag register|(% style="width:944px" %)(((
776 Bit0: Initialization complete flag
777
778 After the ECAM permission signal is activated, calculate the related data, and automatically set to ON after initialization. Users need to clear the state of this flag by themselves.
779 )))|(% style="width:126px" %)0|(% style="width:154px" %)—
780 |(% style="width:944px" %)(((
781 Bit1: Cycle completion flag
782
783 ECAM completion flag. When the periodic ECAM is executed, this flag will be automatically set to ON; if you want to restart the periodic ECAM, clear the state of this flag first.
784 )))|(% style="width:126px" %)0|(% style="width:154px" %)—
785 |(% style="width:944px" %)(((
786 Bit2: Pulse sending delayed flag
787
788 Bit3: ECAM error stop running flag
789
790 Bit4: Parameter error, ECAM stop running flag
791
792 Bit5: Table error, electronic cam stop running flag
793
794 Bit6: Periodic ECAM flag
795
796 Bit7: Aperiodic ECAM flag
797
798 Bit9: Current cycle completion stop flag
799
800 Bit10: synchronization zone flag
801
802 Bit11: Time axis flag
803
804 Bit12: New form load completion flag
805
806 Bit13: Periodic delay ECAM flag
807
808 Bit14: Delayed start function, delayed waiting flag bit
809 )))|(% style="width:126px" %)0|(% style="width:154px" %)—
810 |2|Register error|(% style="width:944px" %)(((
811 Operation error condition (check Bit3 of address 1): Display Error code.
812
813 Parameter error condition (check Bit4 of address 1): Display the offset address of the error parameter register.
814
815 Table error condition (check Bit5 of address 1): display error
816
817 Incorrect table segment number.
818
819 **✎Note:** Bit3 of address 1 must be set with Bit4 and Bit5
820 )))|(% style="width:126px" %)0|(% style="width:154px" %)—
821 |3|(((
822 Function register
823
824 (Confirm before using electronic cam)
825 )))|(% style="width:944px" %)(((
826 Bit0: Delayed start enable Bit1: Start at specified position Bit2: Spindle zoom
827
828 Bit3: zoom from axis
829
830 Bit5: Use external start signal
831
832 Bit6: Start from current position
833 )))|(% style="width:126px" %)0|(% style="width:154px" %)—
834 |4|(((
835 Function register
836
837 (Can be changed while the ECAM is running)
838 )))|(% style="width:944px" %)(((
839 Bit0: Sync signal enable
840
841 Bit1: Stop the electronic cam after the current cycle is completed
842
843 Bit2: Switch the table after the cycle is completed, the bit will automatically change back to 0 after the switch is completed
844 )))|(% style="width:126px" %)0|(% style="width:154px" %)—
845 |5|ECAM start register|(% style="width:944px" %)(((
846 0: Stop the electronic cam immediately
847
848 1: Periodic electronic cam (start)
849
850 2: Aperiodic electronic cam (start)
851
852 3: Stop after the cycle is completed, this register automatically becomes 3
853
854 4: Periodic delay electronic cam (start)
855
856 Other: reserved, not available
857 )))|(% style="width:126px" %)0|(% style="width:154px" %)—
858 |6|Maximum output frequency setting of ECAM|(% rowspan="2" style="width:944px" %)(((
859 Maximum output frequency setting of electronic cam;
860
861 When the frequency is less than 0 or greater than 200K, it is 200K
862 )))|(% style="width:126px" %)200000|(% style="width:154px" %)0 to 200000
863 |7|The highest ECAM output frequency setting|(% style="width:126px" %) |(% style="width:154px" %)
864 |8|Sync signal Y terminal number|(% style="width:944px" %)(((
865 Output terminal number:
866
867 Set the Y number of the synchronization output terminal, the range is 0 to 1777 (octal), when the synchronization output function is enabled, when in the synchronization area, the corresponding Y terminal outputs the synchronization signal. This function needs to set the upper and lower limits of the synchronization position first .
868 )))|(% style="width:126px" %)0|(% style="width:154px" %)0 to 1777
869 |9|(((
870 CAM synchronization position lower limit
871
872 (Low word)
873 )))|(% rowspan="4" style="width:944px" %)(((
874 The synchronization position upper/lower limit setting of the electronic cam,
875
876 When the synchronization position lower limit ≤ spindle position ≤ position upper limit
877
878 And the synchronization signal terminal Y output is ON when the synchronization signal is enabled (address 4, BIT0).
879
880 When the lower limit> the upper limit, the upper and lower limit values will be exchanged.
881 )))|(% rowspan="2" style="width:126px" %)0|(% rowspan="2" style="width:154px" %)0 to 2147483647
882 |10|(((
883 CAM synchronization position lower limit
884
885 (High word)
886 )))
887 |11|(((
888 CAM synchronization position upper limit
889
890 (Low word)
891 )))|(% rowspan="2" style="width:126px" %)0|(% rowspan="2" style="width:154px" %)0 to 2147483647
892 |12|(((
893 CAM synchronization position upper limit
894
895 (High word)
896 )))
897 |13|Electronic cam pulse remainder distribution setting (reserved)|(% style="width:944px" %)Reserved|(% style="width:126px" %)—|(% style="width:154px" %)—
898 |14|Aperiodic ECAM execution times|(% style="width:944px" %)(((
899 Periodic electronic cam: reserved;
900
901 Aperiodic electronic cam: control table execution times; when the value is H0001, the electronic cam will stop after executing once;
902
903 When the value is HFFFF, it will become a periodic electronic cam execution.
904 )))|(% style="width:126px" %)11|(% style="width:154px" %)1 to 65535
905 |15|ECAM start delay pulse setting (low word)|(% rowspan="2" style="width:944px" %)(((
906 Periodic electronic cam: reserved
907
908 Aperiodic electronic cams and periodic delay electronic cams: the delayed start function can be enabled through (Address 3, Bit0-delayed start enable). When the aperiodic electronic cam is executed, a cam start signal is received. If the electronic cam table is not executed immediately, but the spindle rotates for a few pulses, the table is run. At this time, this register sets the number of delayed pulses.
909 )))|(% rowspan="2" style="width:126px" %)0|(% rowspan="2" style="width:154px" %)32-bit unsigned integer
910 |16|ECAM start delay pulse setting (high word)
911 |17|(((
912 Spindle specified position start
913
914 (Low word)
915 )))|(% rowspan="2" style="width:944px" %)(((
916 Periodic electronic cam: reserved
917
918 Aperiodic electronic cam:
919
920 It can be enabled by (address 3, Bit1-specified location start enable),
921
922 To enable the function of the specified location. The starting position is set by this address. The setting value must be within the table period.
923 )))|(% rowspan="2" style="width:126px" %)0|(% rowspan="2" style="width:154px" %)(((
924 32-bit unsigned integer
925
926 number
927 )))
928 |18|(((
929 Spindle specified position start
930
931 (high word)
932 )))
933 |19|Current position of slave axis (low word)|(% rowspan="2" style="width:944px" %)(((
934 Output shaft: current position of slave shaft (after conversion)
935
936 The position of the slave axis during the current cam execution, after scaling
937 )))|(% rowspan="2" style="width:126px" %)0|(% rowspan="2" style="width:154px" %)32-bit unsigned integer
938 |20|Current position of slave axis (high word)
939 |21|Current position of slave axis (low word)|(% rowspan="2" style="width:944px" %)(((
940 Output shaft: current position of slave shaft (before conversion)
941
942 The position of the slave axis during the current cam execution, before scaling
943 )))|(% rowspan="2" style="width:126px" %)0|(% rowspan="2" style="width:154px" %)32-bit integer
944 |22|Current position of slave axis (high word)
945 |23|Denominator of slave axis magnification|(% rowspan="2" style="width:944px" %)Zoom from axis|(% style="width:126px" %)1|(% style="width:154px" %)1 to 65535
946 |24|Slave magnification numerator|(% style="width:126px" %)1|(% style="width:154px" %)1 to 65535
947 |25|Spindle current position (low word)|(% rowspan="2" style="width:944px" %)(((
948 Input axis: the current position of the spindle (after conversion)
949
950 The position of the main axis during the current cam execution, after scaling
951 )))|(% rowspan="2" style="width:126px" %)0|(% rowspan="2" style="width:154px" %)32-bit unsigned integer
952 |26|Spindle current position (high word)
953 |27|Spindle current position (low word)|(% rowspan="2" style="width:944px" %)(((
954 Input axis: the current position of the spindle (before conversion)
955
956 The position of the main axis during the current cam execution, before scaling
957 )))|(% rowspan="2" style="width:126px" %)0|(% rowspan="2" style="width:154px" %)32-bit unsigned integer
958 |28|Spindle current position (high word)
959 |29|Denominator of spindle magnification|(% rowspan="2" style="width:944px" %)Spindle zoom|(% style="width:126px" %)1|(% style="width:154px" %)1 to 65535
960 |30|Spindle magnification numerator|(% style="width:126px" %)1|(% style="width:154px" %)1 to 65535
961 |31|Specify the table to be run in the next cycle|(% style="width:944px" %)(((
962 Switch to use in the table function after the cycle is completed. 0: Use the default table
963
964 1: Use the data in Table 1 (ECAMCUT specifies the address)
965
966 2: Use the data in Table 2 (ECAMCUT specifies the address)
967 )))|(% style="width:126px" %)0|(% style="width:154px" %)0 to 2
968 |32|Table running in current cycle|(% style="width:944px" %)(((
969 Switch to use in the table function after the cycle is completed. Indicates the current week
970
971 Periodically run form.
972 )))|(% style="width:126px" %)0|(% style="width:154px" %)0 to 2
973 |33|Reserved|(% style="width:944px" %)Reserved|(% style="width:126px" %)—|(% style="width:154px" %)—
974 |34|Reserved|(% style="width:944px" %)Reserved|(% style="width:126px" %)—|(% style="width:154px" %)—
975 |35|Reserved|(% style="width:944px" %)Reserved|(% style="width:126px" %)—|(% style="width:154px" %)—
976 |36|Reserved|(% style="width:944px" %)Reserved|(% style="width:126px" %)—|(% style="width:154px" %)—
977 |37|Reserved|(% style="width:944px" %)Reserved|(% style="width:126px" %)—|(% style="width:154px" %)—
978 |38|Number of segments in the table|(% style="width:944px" %)Total data segment of cam table data|(% style="width:126px" %)0|(% style="width:154px" %)0 to 512
979 |39|Start offset of the table|(% style="width:944px" %)Specify the offset address of the cam table, fixed to 40|(% style="width:126px" %)40|(% style="width:154px" %)40
980 |40|(((
981 Spindle segment 0
982
983 (low word)
984 )))|(% rowspan="2" style="width:944px" %)Spindle position of segment 0|(% rowspan="2" style="width:126px" %)0|(% rowspan="2" style="width:154px" %)32-bit integer
985 |41|(((
986 Spindle segment 0
987
988 (high word)
989 )))
990 |42|(((
991 Section 0 slave axis
992
993 (low word)
994 )))|(% rowspan="2" style="width:944px" %)Slave axis position of segment 0|(% rowspan="2" style="width:126px" %)0|(% rowspan="2" style="width:154px" %)32-bit integer
995 |43|(((
996 Section 0 slave axis
997
998 (high word)
999 )))
1000 |44|(((
1001 Spindle section 1
1002
1003 (low word)
1004 )))|(% rowspan="2" style="width:944px" %)Spindle position of segment 1|(% rowspan="2" style="width:126px" %)0|(% rowspan="2" style="width:154px" %)32-bit integer
1005 |45|(((
1006 Spindle section 1
1007
1008 (high word)
1009 )))
1010 |46|(((
1011 Section 1 slave axis
1012
1013 (low word)
1014 )))|(% rowspan="2" style="width:944px" %)Slave axis position of segment 1|(% rowspan="2" style="width:126px" %)0|(% rowspan="2" style="width:154px" %)32-bit integer
1015 |47|(((
1016 Section 1 slave axis
1017
1018 (high word)
1019 )))
1020 |40+ N*4|(((
1021 Nth spindle
1022
1023 (low word)
1024 )))|(% rowspan="2" style="width:944px" %)Nth segment spindle position|(% rowspan="2" style="width:126px" %)0|(% rowspan="2" style="width:154px" %)32-bit integer
1025 |40+ N*4+1|(((
1026 Nth spindle
1027
1028 (high word)
1029 )))
1030 |40+ N*4+2|Nth segment slave axis(low word)|(% rowspan="2" style="width:944px" %)Nth segment slave axis position|(% rowspan="2" style="width:126px" %)0|(% rowspan="2" style="width:154px" %)32-bit integer
1031 |40+ N*4+3|Nth segment slave axis(high word)
1032
1033 **{{id name="5.1凸轮寄存器相关说明"/}}Description of cam register**
1034
1035 **(1) Address 2 - Error register:**
1036
1037 Operation error (check Bit3 of address 1) error code description:
1038
1039 (% class="table-bordered" %)
1040 |**Error code**|**Content**
1041 |-1|Form number is out of range
1042 |-2|The table is not initialized properly
1043 |-3|The number of table segments is too short
1044 |1|Spindle input error, pulse change is too large, 100us exceeds 200
1045 |3|Too many slave axes calculated
1046 |5|The spindle has too many unprocessed pulses in the current cycle
1047 |8|Calculate the number of pulses that the slave axis currently needs to output is too much
1048 |9|The cam master is 2 cycles ahead of the slave
1049 |Parameter error (check Bit4 of address 1)|Display the offset address of the error parameter register.
1050 |Form error (check Bit5 of address 1)|The wrong table segment number is displayed.
1051
1052 **(2) Address 3—function register before ECAM is enabled**
1053
1054 Start the corresponding function register of the cam. When the corresponding setting is 1, the corresponding function of the cam is enabled.
1055
1056 BIT6: start from current position
1057
1058 You can set the starting point of the master and slave when the cam starts.
1059
1060 When this function is enabled, the initial position of the spindle is obtained from [Address 27, 28 — current position of the spindle (before conversion)];
1061
1062 The initial position of the slave axis is obtained from [Address 19, 20 — current position of the slave axis (after conversion)].
1063
1064 **(3) Address 4—function register in ECAM operation**
1065
1066 Bit0-Sync signal enable
1067
1068 When the address 4-Bit0=1, when the spindle position is at the lower limit of the synchronous position ≤ the spindle position ≤ the upper limit of the synchronous position, the synchronous terminal outputs.
1069
1070 Bit1-Stop when the current cycle is completed
1071
1072 When address 4-BIT1 = 1, the cam will stop immediately after the execution of the current table is completed. After stopping, address 5 will automatically change to 3, reset to 1, and the periodic electronic cam can be started again. The same applies to non-periodic electronic cams.
1073
1074 **(4) Address 5—electronic cam start register**
1075
1076 Periodic electronic cam start: when address 5=1, start periodic electronic cam: when address 5=0, stop electronic cam.
1077
1078 Periodic delay electronic cam start: when address 5=2, start the first period delay pulse set by address 15, 16 and execute according to periodic electronic cam; address 5=0, stop electronic cam.
1079
1080 When switching between periodic electronic cam and non-periodic electronic cam, the data switching between address 5=1→address 5=0→address 5=2 requires an interval of more than 100us.
1081
1082 **(5) Address 8—synchronization signal Y terminal number**
1083
1084 This register is used to set the terminal number of the synchronization signal output.
1085
1086 When the address 4-Bit0=1, when the spindle position is at the lower limit of the synchronous position≦the spindle position≦the upper limit of the synchronous position, the synchronous terminal outputs.
1087
1088 **(6) Address 9-12—synchronization position upper and lower limit**
1089
1090 (% class="table-bordered" %)
1091 |**Address**|**Features**|**Range**
1092 |Address 9|CAM synchronization position lower limit (LOW WORD)|(% rowspan="2" %)0 to 2147483647
1093 |Address 10|CAM synchronization position lower limit (HIGH WORD)
1094 |Address 11|CAM synchronization LOW WORD)|(% rowspan="2" %)0 to 2147483647
1095 |Address 12|CAM synchronization position upper limit (HIGH WORD)
1096
1097 The synchronization position upper/lower limit of the electronic cam is set. When the synchronization position lower limit ≤ spindle position ≤ position upper limit and the synchronization signal is enabled (address 4, BIT0), the synchronization signal terminal Y is output.
1098
1099 (% style="text-align:center" %)
1100 [[image:09_html_696eef9be2fe781b.gif||class="img-thumbnail"]]
1101
1102 **(7) Address 14—Aperiodic electronic cam execution times setting**
1103
1104 (% class="table-bordered" %)
1105 |**Address**|**Features**|**Range**
1106 |Address 14|(((
1107 Periodic electronic cam-reserved
1108
1109 Non-periodic electronic cam-control the number of times the electronic cam is executed
1110 )))|1 to 65535
1111
1112 When the non-periodic electronic cam mode is selected, the address 14 controls the execution times of the electronic cam. The current address is set to the number of times the cam repeats the table. When the value is HFFFF, it will become periodic cam execution. When the value is 0, the current address will automatically become 1 if it exceeds the range.
1113
1114 **Number of repetitions=0**
1115
1116 (% style="text-align:center" %)
1117 [[image:09_html_cd76208bae686662.gif||class="img-thumbnail"]]
1118
1119 **Number of repetitions=1**
1120
1121 (% style="text-align:center" %)
1122 [[image:09_html_32911c7488cda346.gif||class="img-thumbnail"]]
1123
1124 **(8) Address 15-16—Electronic cam start delay pulse setting**
1125
1126 (% class="table-bordered" %)
1127 |(% style="width:129px" %)**Address**|(% style="width:809px" %)**Features**|**Range**
1128 |(% style="width:129px" %)Address 15|(% rowspan="2" style="width:809px" %)Aperiodic electronic cams or periodic delay electronic cams. The electronic cam table will be executed immediately after the spindle rotates the set number of pulses|(% rowspan="2" %)32-bit unsigned integer
1129 |(% style="width:129px" %)Address 16
1130
1131 When executing aperiodic electronic cams or periodic delayed electronic cams, if address 3 (Bit0-delayed start enable) is set, the delayed start function is enabled. The slave axis receives a cam start signal. If the electronic cam table is not executed immediately, the table is run after delaying the spindle rotation for several pulses. At this time, the number of delayed pulses must be set for address 16.
1132
1133 As shown in the figure below: When the system receives a cam start signal, the electronic cam table will be executed immediately after the spindle rotates the set number of pulses.
1134
1135 **Delayed start pulse=10**
1136
1137 (% style="text-align:center" %)
1138 [[image:09_html_6e842f28225b1875.gif||class="img-thumbnail"]]
1139
1140 **Delayed start pulse=50**
1141
1142 (% style="text-align:center" %)
1143 [[image:09_html_d581ddc508fba3fa.gif||class="img-thumbnail"]]
1144
1145 **(9) Address 17-18—start at the specified position of the spindle**
1146
1147 (% class="table-bordered" %)
1148 |(% style="width:110px" %)**Address**|(% style="width:827px" %)**Features**|**Range**
1149 |(% style="width:110px" %)Address 17|(% rowspan="2" style="width:827px" %)The non-periodic electronic cam can be started at the specified position by address 3 (Bit1-specified position start enable). The starting location is set by this address|(% rowspan="2" %)32-bit unsigned integer
1150 |(% style="width:110px" %)Address 18
1151
1152 (% style="text-align:center" %)
1153 [[image:09_html_ac82ab14a3800b51.gif||class="img-thumbnail"]]
1154
1155 **{{id name="6、电子凸轮电子表格数据建立"/}}9.2.2.6 E-cam spreadsheet data creation**
1156
1157 **{{id name="6.1_单笔表格数据变更设定"/}}(1) Single table data change setting**
1158
1159 Each electronic cam table can create 512 points of data, which are set using offset address 40-address [40+n*4+4] respectively. Every 4 points of data is a group of ECAM data, which is composed of master axis position and slave axis position.
1160
1161 Use DMOV instruction to manipulate table data:
1162
1163 (% style="text-align:center" %)
1164 [[image:09_html_66dcb0a2e81acec5.jpg||class="img-thumbnail"]]
1165
1166 (((
1167 Set the total data segment of the spreadsheet data to 3
1168
1169 The spindle position of segment 0 is 0
1170
1171 The position of the 0th segment slave axis is 0
1172
1173 The spindle position of the first segment is 100
1174
1175 The first segment slave axis position is 100
1176
1177 The second stage spindle position is 200
1178
1179 The second segment slave axis position is 0
1180
1181 Configure electronic cam
1182
1183
1184 )))
1185
1186 **{{id name="6.2_使用PLC_Editor生成表格数据"/}}(2) Use PLC Editor to generate table data**
1187
1188 Define the relationship between master axis and slave axis, which is called electronic cam table data. In the data input, the electronic cam table has two ways to express:
1189
1190 Method 1: The functional relationship between the adopter
1191
1192 Method 2: Use the point-to-point relationship of X and Y to obtain the electronic cam table in two ways:
1193
1194 Approach 1: According to the standard function relationship of the master and slave axis
1195
1196 Approach 2: According to the corresponding relationship between points measured in actual work.
1197
1198 The cam table can define multiple CAM curves. After the relationship is determined, the position of the slave axis can be obtained according to the position of the master axis.
1199
1200 For example, the cam table for sinusoidal signals:
1201
1202 (% style="text-align:center" %)
1203 [[image:09_html_642ffea375343f61.png||class="img-thumbnail"]]
1204
1205 The electronic cam table is called electronic cam table in PLC Editor. Select [electronic cam table] in [Project Properties]-[Protection Function], right click to add and delete the table.
1206
1207 (% style="text-align:center" %)
1208 [[image:09_html_8d0f9043566eacf4.png||class="img-thumbnail"]]
1209
1210 The chart is mainly divided into 4 parts, namely the relative position of the master/slave axis, the relative speed of the master/slave axis, the relative acceleration of the master/slave axis, and the bottom data setting. The first three parts are used to display the CAM data set by the user. The horizontal axis is the main axis, and the vertical axis is the position of the slave axis, the speed ratio of the slave axis to the master axis, and the acceleration ratio of the slave axis to the master axis. The data setting area is introduced as follows:
1211
1212 1. Displacement resolution: Provide users to set the total number of data points occupied by the table, and the setting range is from 10 to 512, one point occupies 4 WORD Devicess.
1213 1. Data setting: Describe the displacement change of the master/slave axis by function.
1214 1. Import: describe the displacement change of the master/slave axis through a point-to-point method.
1215 1. Export: Export and archive the change relationship of the master/slave axis in a point-to-point manner.
1216
1217 {{id name="6.2.1_以函数方式描述主从轴的位置变化"/}}1) Functionally describe the position changes of the master and slave axes
1218
1219 Select [Data Setting] in the data setting area and the "Data Setting Window" will appear, which allows the user to describe the curve of the entire cam in a function, rather than a point-to-point description. At present, Wecon PLC provides 3 cam curve modes for users to choose, namely: Const Speed (constant speed), Const Acc (uniform acceleration), BSpline (cycloid).
1220
1221 (% style="text-align:center" %)
1222 [[image:09_html_1c2bc8b46503f556.png||class="img-thumbnail"]]
1223
1224 [Data Setting] The window is composed of sections, each section provides the user to set a section of cam curve, and then the entire section composes the cam curve. Each section is composed of master axis, slave axis, CAM curve and resolution, as explained below:
1225
1226 Main shaft: the displacement of the main shaft, the displacement of the main shaft must be greater than a value of 0, and increase;
1227
1228 Slave axis: the displacement of the slave axis, which is positive or negative;
1229
1230 CAM curve: the function used in the current section;
1231
1232 Resolution: The number of points used in the current section. The entire table can be set in the range 10-512. 1 point occupies 4 WORDs. If not set, the remaining points will be divided equally. The resolution is set according to the requirements of the device. The higher the resolution, the smoother the device runs, but the larger the device.
1233
1234 {{id name="6.2.2_以点对点方式描述主从轴的位置变化"/}}2) Describe the position changes of the master and slave axes in a point-to-point manner
1235
1236 Directly add data to the electronic cam table in a point-to-point mode. A cam table can input up to 512 points of data.
1237
1238 [Export]Export the current table data in a point-to-point manner and store it in the specified file.
1239
1240 [Import] Import the current table data in a point-to-point manner.
1241
1242 **{{id name="6.3_使用ECAM_TBX生成表格"/}}(3) Use ECAM TBX to generate tables**
1243
1244 (% class="table-bordered" %)
1245 |**Name**|**Features**|**Bits (bits)**|**Whether pulse type**|**Instruction format**|**Step count**
1246 |ECAMTBX|Generate spreadsheet data|16|No|ECAMTBXS0 S1 D0 D1|9
1247
1248 S0~-~-parameter address, allowable device: D, R.
1249
1250 For the setting parameters when generating the curve, please refer to the description in [Appendix]-[Parameter List]
1251
1252 S1~-~-curve type, allowable Devicess: D, R, H, K.
1253
1254 Indicates the type of curve to be generated.
1255
1256 K1: Generate S type acceleration/deceleration curve with a spindle of 1ms
1257
1258 K2: Customize the specified key point to generate a table
1259
1260 K100: Generate rotary saw curve
1261
1262 K101: Generate chase curve
1263
1264 D0~-~-the first address of cam parameters,
1265
1266 Allowed devices: D, R
1267
1268 The generated table data is stored at the beginning of [D0 + 40], and the number of table segments is stored in [D0 + 38].
1269
1270 D1~-~-form generation result
1271
1272 Allowed devices: D, R
1273
1274 D1 <0 generates a table error;
1275
1276 D1> 0 The table is successfully generated. D1 represents the total number of segments in the current table.
1277
1278 ECAMTBX instruction generating curve error code:
1279
1280 (% class="table-bordered" %)
1281 |**Error code**|**Content**
1282 |-1|Condition parameter error
1283 |-2|The spindle pulse number is too few, not enough for synchronization area
1284 |-3|Unknown cam curve type
1285 |-4|Resolution range error
1286 |-5|Too many pulses of the slave axis calculated
1287 |-6|The calculated number of pulses from the slave axis is too small
1288 |-7|The calculated number of spindle pulses exceeds the set length
1289 |-8|The pulse number of the slave axis is set to 0
1290 |-10|S type acceleration and deceleration curve calculation error
1291 |-11|Unknown curve type
1292 |-12|Curve left wrong
1293 |-13|The number of slave axes that exceeds the range
1294
1295 Key point generating curve Error code:
1296
1297 (% class="table-bordered" %)
1298 |**Error code**|**Content**
1299 |-21|The number of key points is out of range
1300 |-22|Total resolution exceeds range
1301 |-23|Incorrect relationship between spindle size
1302 |-24|The resolution setting of each segment is incorrect
1303 |-25|When calculating, the number of control points is insufficient
1304 |-26|Unknown acceleration curve type
1305 |-27|Spindle pulse number is negative
1306
1307 S-type acceleration and deceleration generated curve Error code:
1308
1309 (% class="table-bordered" %)
1310 |**Error code**|**Content**
1311 |-31|The number of pulses exceeds the range
1312 |-32|Maximum frequency out of range
1313 |-33|Acceleration and deceleration time out of range
1314 |-34|The number of pulses or frequency settings cannot meet the curve generation conditions
1315
1316 **✎Note: **After the curve is successfully generated by the ECAMTBX instruction, the cam table can be uploaded to the upper computer for viewing in the PLC of the PLC Edit upper computer software.
1317
1318 == {{id name="_Toc21163"/}}**The application of ECAM** ==
1319
1320 **{{id name="1、飞剪应用"/}}A.Rotary saw application**
1321
1322 In the feeding and cutting application, the traditional method is to use the stop-and-go method. The feeding shaft first walks to a fixed length, and then the cutting shaft moves again, and then the process of "feeding stop" and "cutting stop" is repeated. Disadvantages of the medium method. In the process of feeding shaft stop and stop, the required acceleration and deceleration can not improve the production efficiency. Therefore, the new method is to use the non-stop feeding method. Generally, there are two feeding and cutting methods: rotary saw and flying saw. The difference between the two is that rotary saw moves in the same direction, while flying saw moves back and forth, and the set CAM table curves are also different.
1323
1324 (% style="text-align:center" %)
1325 [[image:09_html_8c06476629016e1b.png||class="img-thumbnail"]]
1326
1327 **{{id name="1.1飞剪动作说明"/}}(1) Description of rotary saw action**
1328
1329 1) Rotary saws control the cutting axis to rotate in the same direction, and cut when the tool touches the material. During this period, the feeding axis will continue to feed at a constant speed without stopping. The action and output stroke of rotary saw control are shown in the figure below:
1330
1331 ①. Accelerate and move to the synchronization area from the beginning of the axis;
1332
1333 ②. In the synchronization zone and the spindle at the same speed and output the cutting signal (CLR0);
1334
1335 ③. After leaving the synchronization zone, the slave axis will decelerate and move back to the origin to complete a cycle of cutting. After knowing the stroke, the speed relationship can be drawn.
1336
1337 2) In the peeling process, the most important thing is speed synchronization. For example, when the cutting knife contacts the material, it must be synchronized with the material speed. If the cutting knife speed is greater than the synchronous speed during contact, a force that pulls the material forward will cause the material to be uneven. If the speed is lower than the material speed, it will appear. Blocking phenomenon.
1338
1339 3) The planning of the synchronization area will affect the operation of the actual equipment. If the synchronization area is larger in a cutting cycle, the acceleration and deceleration time will be smaller, which means that the equipment needs to be accelerated and decelerated in a short time. For motors and machines The impact of the cutter is very large, and it is easy to cause the servo over-current alarm and the equipment cannot operate normally.
1340
1341 (% style="text-align:center" %)
1342 [[image:09_html_88dc65c9b19c9920.gif||height="498" width="500" class="img-thumbnail"]]
1343
1344 4) The relationship between cutting length and cutter circumference:
1345
1346 (% class="table-bordered" %)
1347 |(((
1348 Cutting length <cutter circumference:
1349
1350 In the synchronization zone, the cutter linear speed is synchronized with the feeding speed. After the synchronization zone, in order to catch up with the next cutting, the cutting axis is accelerated, as shown in the figure.
1351 )))|[[image:09_html_80a90f759be3a8d9.gif||class="img-thumbnail"]]
1352 |(((
1353 Cutting length = cutter circumference:
1354
1355 Average speed of cutting axis
1356 )))|[[image:09_html_75f2a002afdb5c2.gif||class="img-thumbnail"]]
1357 |1 times cutter circumference <cutting length <2 times cutter circumference:After the cutting action in the synchronization zone is completed, the cutting axis decelerates, then speed up to synchronize the next cutting, as shown in the figure.|[[image:09_html_d8e09cd43d7a2aba.gif||class="img-thumbnail"]]
1358 |Cutting length> 2 times the circumference of the cutter:When the cutting length is greater than 2 times the knife circumference (this is also the most common situation), in a cycle, after the cutting of the knife edge in the synchronization zone is completed, it decelerates to a stop, waits for a certain length to pass, and then starts the next cutting .|[[image:09_html_8c9af77a8c8fff2.gif]]
1359
1360 {{id name="1.3飞剪配置"/}}{{id name="1.2_飞剪生成"/}}**(2) Rotary saw generation**
1361
1362 The PLC built-in rotary saw curve automatically generates instructions. For the parameters needed to generate the curve, please refer to the "Rotary saw Parameter Table". The CAM curve in depth 6 has 5 forms. The combination of these 5 forms can generate the required rotary saw curve. ,As shown below.
1363
1364 (% class="table-bordered" %)
1365 |(% colspan="5" %)**Rotary saw curve parameter setting**
1366 |(% style="width:105px" %)**Parameter**|(% style="width:88px" %)**Offset address**|(% style="width:165px" %)**Name**|**Format**|**Instruction**
1367 |(% rowspan="2" style="width:105px" %)Parameter 1|(% style="width:88px" %)Address 0|(% rowspan="2" style="width:165px" %)Spindle length|(% rowspan="2" %)32 Bits Integer|(% rowspan="2" %)The cutting length of the feeding axis moving, the unit is Pulse.
1368 |(% style="width:88px" %)Address 1
1369 |(% rowspan="2" style="width:105px" %)Parameter 2|(% style="width:88px" %)Address 2|(% rowspan="2" style="width:165px" %)Slave length|(% rowspan="2" %)32-bit integer|(% rowspan="2" %)(((
1370 The circumference of the cutting axis (including the tool length), the unit is Pulse.
1371
1372 Range [-2000000000, 2000000000]
1373 )))
1374 |(% style="width:88px" %)Address 3
1375 |(% rowspan="2" style="width:105px" %)Parameter 3|(% style="width:88px" %)Address 4|(% rowspan="2" style="width:165px" %)Slave axis sync length|(% rowspan="2" %)32-bit integer|(% rowspan="2" %)(((
1376 The length of the slave axis synchronization zone is smaller than the slave axis length, generally set to 1/3 of the slave axis length. (When the new S-type rotary saw is selected, the value satisfies 40 *synchronization ratio<=synchronization length<slave axis
1377
1378 Length-2. ), synchronization area range: 0<synchronization area length<|slave axis length|
1379 )))
1380 |(% style="width:88px" %)Address 5
1381 |(% rowspan="2" style="width:105px" %)Parameter 4|(% style="width:88px" %)Address 6|(% rowspan="2" style="width:165px" %)(((
1382 Slave axis synchronization
1383
1384 magnification
1385 )))|(% rowspan="2" %)Floating|(% rowspan="2" %)(((
1386 Calculation method 1: In the synchronization zone, the speed of the master axis and the slave axis are equal, and the calculation method of synchronization magnification:
1387
1388 [[image:09_html_d11c191bffc9429b.jpg||class="img-thumbnail"]]
1389
1390 among them
1391
1392 V1(V2)=Master (slave) axis speed
1393
1394 F1(F2)=Master (slave) axis speed (Hz)
1395
1396 D1(D2)=Master (slave) shaft diameter
1397
1398 R1 (R2) = master (slave) axis pulse number per revolution
1399
1400 Calculation method two:
1401
1402 Slave axis synchronization magnification=1mm The number of pulses required by the slave axis/
1403
1404 Number of pulses required by 1mm spindle
1405 )))
1406 |(% style="width:88px" %)Address 7
1407 |(% rowspan="2" style="width:105px" %)Parameter 5|(% style="width:88px" %)Address 8|(% rowspan="2" style="width:165px" %)Slave axis maximum magnification limit|(% rowspan="2" %)Floating|(% rowspan="2" %)(((
1408 Maximum magnification=
1409
1410 Maximum speed of slave axis/maximum speed of main axis
1411 )))
1412 |(% style="width:88px" %)Address 9
1413 |(% style="width:105px" %)Parameter 6|(% style="width:88px" %)Address 10|(% style="width:165px" %)Acceleration curve|Integer|(((
1414 0: constant acceleration curve, the speed curve is T type
1415
1416 1: Constant jerk curve, speed curve is S type
1417
1418 2: reserved
1419
1420 3: reserved
1421
1422 4: New S type rotary saw curve (the synchronization zone is in the middle),Please refer to the appendix for details. The current curve only supports CAM curve 0
1423 )))
1424 |(% style="width:105px" %)Parameter 7|(% style="width:88px" %)Address 11|(% style="width:165px" %)CAM curve|Integer|(((
1425 Start, stop, and various curve selections of different synchronization zone positions:
1426
1427 0: LeftCAM synchronization area is located on the front curve;
1428
1429 1: MidCAMall;
1430
1431 2: MidCAMBegin initial curve;
1432
1433 3: MidCAMEnd end curve;
1434
1435 4: RightCAM sync area is located at the back curve;
1436
1437 BIT[15]=1: continue the previous data, used for splicing curves, such as setting the subdivision of the curve, the total resolution range of all splicing curves is 31 to 1024, and the two rotary saw curves are spliced into a shearing curve
1438 )))
1439 |(% rowspan="2" style="width:105px" %)Parameter 8|(% style="width:88px" %)Address 12|(% style="width:165px" %)Resolution|Integer|(((
1440 Range [31,511], of which 20 synchronization areas;
1441
1442 When CAM curve is selected as MdiCAMall (resolution range is [54, 511])
1443 )))
1444 |(% style="width:88px" %)Address 13|(% style="width:165px" %)Reserved|Retained|Reserved
1445 |(% rowspan="2" style="width:105px" %)Parameter 9|(% style="width:88px" %)Address 14|(% rowspan="2" style="width:165px" %)Synchronization zone start position|(% rowspan="2" %)32-bit integer|(% rowspan="2" %)After the curve is generated correctly, the calculated starting position of the spindle synchronization area can be used to set the lower limit of the synchronization area.
1446 |(% style="width:88px" %)Address 15
1447 |(% rowspan="2" style="width:105px" %)Parameter 10|(% style="width:88px" %)Address 16|(% rowspan="2" style="width:165px" %)End of synchronization zone|(% rowspan="2" %)32-bit integer|(% rowspan="2" %)After the curve is correctly generated, the calculated end position of the spindle synchronization area can be used to set the lower limit of the synchronization area.
1448 |(% style="width:88px" %)Address 17
1449 |(% rowspan="2" style="width:105px" %)Parameter 11|(% style="width:88px" %)Address 18|(% rowspan="2" style="width:165px" %)Slave axis minimum limit operation magnification|(% rowspan="2" %)Floating|(% rowspan="2" %)It is valid only when parameter 6 acceleration curve is set to 4. Make sure that the actual maximum speed of the slave axis cannot be less than the speed corresponding to this value. Thereby adjusting the slope of the deceleration section.
1450 |(% style="width:88px" %)Address 19
1451
1452 (% style="text-align:center" %)
1453 [[image:09_html_85b39cb6a2a254f4.png||class="img-thumbnail"]]
1454
1455 **(3) Rotary saw configuration**
1456
1457 {{id name="1.3.1概述"/}}1) Overview
1458
1459 Synchronization zone: At this time, the feeding axis and the cutter axis rotate at a fixed speed ratio (the linear velocity of the cutter head is equal to the linear velocity of the cutting surface), and the cutting of the material occurs in the synchronous zone.
1460
1461 Adjustment area: due to different cutting lengths, corresponding displacement adjustments are required. According to the cutting length adjustment zone, it can be divided into the following three situations.
1462
1463 Short material cutting: the cutter shaft first has a uniform speed in the adjustment area, and then decelerates to the synchronous speed.
1464
1465 Normal material cutting: In this case, the cutter axis accelerates first in the adjustment zone. Then decelerate to synchronous speed.
1466
1467 Long material cutting: In this case, the cutter shaft first accelerates to the minimum limit operating speed in the adjustment area, and then decelerates to the synchronous speed. After the cutter shaft makes one revolution, the cutter shaft decelerates to zero and stays for a while, then speed up and cycle operation. The longer the material length, the longer the residence time.
1468
1469 (% style="text-align:center" %)
1470 [[image:09_html_ac77ff756d4dd1b2.gif||height="335" width="800" class="img-thumbnail"]]
1471
1472 (% style="text-align:center" %)
1473 [[image:09_html_7947002c875493ad.gif||height="337" width="400" class="img-thumbnail"]]
1474
1475 **{{id name="_Toc28644"/}}✎Note:**
1476
1477 When setting the maximum limit magnification, synchronization magnification, and minimum limit operation magnification, the material length boundary is also determined. Several limit values are as follows:
1478
1479 ①The speed of the shortest material (Lm1) satisfies: the actual maximum operating magnification = the maximum limit magnification, and the adjustment area is a constant speed + deceleration process.
1480
1481 (% style="text-align:center" %)
1482 [[image:09_html_e6ef7719c15b9c56.gif||class="img-thumbnail"]]
1483
1484 ②The shortest normal material (Lm2): the actual maximum operating magnification = the maximum limit magnification, the adjustment area is the acceleration + deceleration process.
1485
1486 (% style="text-align:center" %)
1487 [[image:09_html_b59eeb079fa045f8.gif||class="img-thumbnail"]]
1488
1489 ③The shortest length of material (Lm3): the actual maximum operating magnification = the minimum limit operating magnification, the adjustment area is acceleration + deceleration + dwell process.
1490
1491 (% style="text-align:center" %)
1492 [[image:09_html_2546314cd37aed9d.gif||class="img-thumbnail"]]
1493
1494 Therefore, the length of the material determines the type of operation of the slave axis:
1495
1496 ① When Lm1 ≤ L <Lm2, this is a short material, and its 0 ≤ actual maximum operating magnification ≤ maximum limit magnification
1497
1498 ② When Lm2 ≤ L <Lm3, this is a normal material, and its minimum limit operation magnification ≤ actual maximum operation magnification ≤ maximum limit magnification
1499
1500 ③ When L ≥ Lm3, this is a long material, and the actual maximum operating magnification = minimum limit magnification. There is a residence zone, the longer the material, the longer the residence time.
1501
1502 {{id name="1.3.2示例"/}}2) Example
1503
1504 The process result will be different according to the difference of the maximum limit magnification, synchronization magnification and minimum limit operation magnification.
1505
1506 ① Synchronous magnification <minimum limit operation magnification <maximum limit magnification
1507
1508 The parameter settings are as follows:
1509
1510 (% style="text-align:center" %)
1511 [[image:09_html_9c3f0a8bc2f79674.gif||height="310" width="500" class="img-thumbnail"]]
1512
1513 **Short material:**{{id name="OLE_LINK389"/}}
1514
1515 (% style="text-align:center" %)
1516 [[image:09_html_a335f05c7945dd4b.gif||height="320" width="800" class="img-thumbnail"]]
1517
1518 **Normal materials:**
1519
1520 (% style="text-align:center" %)
1521 [[image:09_html_ecd43824be58368a.gif||height="326" width="800" class="img-thumbnail"]]
1522
1523 **Long material:**
1524
1525 (% style="text-align:center" %)
1526 [[image:09_html_5cf341fa104d76d3.gif||height="318" width="800" class="img-thumbnail"]]
1527
1528 ② Synchronous magnification = minimum limit operation magnification <maximum limit magnification
1529
1530 In this case, when the material is long, there is no deceleration into the synchronization zone. The parameter settings are as follows:
1531
1532 (% style="text-align:center" %)
1533 [[image:09_html_95b3fe4d6308ff9a.gif||height="329" width="500" class="img-thumbnail"]]
1534
1535 The situation of short material and normal material is the same as described in 2.1.
1536
1537 Long material: (no deceleration process in the adjustment zone)
1538
1539 (% style="text-align:center" %)
1540 [[image:09_html_74f9770e2a994f81.gif||class="img-thumbnail"]]
1541
1542 ③ Synchronous magnification = minimum limit operation magnification = maximum limit magnification
1543
1544 In this case, there are no normal materials, only short materials and long materials. The parameter settings are as follows:
1545
1546 (% style="text-align:center" %)
1547 [[image:09_html_ae0be67bb13d9c18.gif||class="img-thumbnail"]]
1548
1549 **Short material        Long material**
1550
1551 (% style="text-align:center" %)
1552 [[image:09_html_7033bb8aa22df588.gif||class="img-thumbnail"]]
1553
1554 **{{id name="1.4_案例"/}}(4) Case**
1555
1556 1) Control requirements:
1557
1558 ①. Use rotary saw curve to automatically generate cam table.
1559
1560 ②. For the equipment matched with the cutting axis and the feeding axis, the servo parameter is 1,000 pulse/rev.
1561
1562 ③. Related parameters:
1563
1564 Cutting material length is 1000 mm, cutting shaft circumference is 60πmm, feeding shaft circumference is 100πmm, and feeding shaft speed is 1,000 Hz
1565
1566 2) Parameters required to establish rotary saw curve
1567
1568 Parameter 1: You eed to input the length of the spindle cutting material because the cutting material length is 1000mm, it is converted to pulse
1569
1570 1000*1000/100Pi=3183 (pulse)
1571
1572 Parameter 2: The circumference of the slave shaft, that is, the number of pulses required for one revolution of the slave shaft 1000 pulse
1573
1574 Parameter 3: The synchronization length of the slave axis is set to approximately 1/3 of the circumference of the slave axis as 1000/3=333 pulse.
1575
1576 Parameter 4: During synchronization, the speed ratio of master and slave
1577
1578 (% style="text-align:center" %)
1579 [[image:09_html_5d7398a6b51d0822.png||class="img-thumbnail"]]
1580
1581 Parameter 5: The maximum magnification limit is: set to 10 times the synchronization magnification as 50/3 (floating point number).
1582
1583 Parameter 6: Low WORD is set to 0 - uniform acceleration
1584
1585 High WORD set to 0 - LEFTCAM
1586
1587 Parameter 7: Set the curve generation result to 0
1588
1589 Using curve generation instructions, ECAMTBX generates curves.
1590
1591 Circuit program corresponding to the case:
1592
1593 Spindle length
1594
1595 Slave length
1596
1597 Slave synchronization length
1598
1599 Slave axis synchronization magnification
1600
1601 Slave axis maximum magnification limit
1602
1603 Acceleration curve
1604
1605 CAM curve solution resolution
1606
1607 Set as rotary saw curve
1608
1609 Curve generation instruction
1610
1611 (% style="text-align:center" %)
1612 [[image:09_html_d35bbecf23e4f86c.png||height="592" width="500" class="img-thumbnail"]]
1613
1614 The curve corresponding to the Circuit program:
1615
1616 Upload via PLC, check the electronic cam table, set the table address, and upload the generated cam curve.
1617
1618 (% style="text-align:center" %)
1619 [[image:09_html_c2f99535690a2e69.gif||height="483" width="600" class="img-thumbnail"]]
1620
1621 **{{id name="2、追剪应用"/}}Flying saw application**
1622
1623 The flying saw system means that the feeding shaft will not stop while the system is cutting, so the camshaft must keep the same speed with the feeding shaft when cutting, and the same speed time must be enough for the cutter to complete the cutting and detach to safety s position. The flying saw camshaft will drive the cutter and the entire group of cutting mechanisms to move, so that it can maintain the same speed with the main shaft during cutting.
1624
1625 **{{id name="2.1_追剪动作说明"/}}(1) Description of flying saw action**
1626
1627 Suppose the wiring is as shown in the figure below, where 1, 2, 3, 4 are the waiting point (starting point), synchronization point, synchronization departure point, and waiting point (starting point), and its actions will follow the movement of the spindle. At the beginning, the camshaft stops at position 1, and then accelerates forward to position 2 to achieve speed synchronization, and continues to position 3, then decelerates and returns to position 4 in the opposite direction (assuming position 1 and position 4 are the same), and then repeat this action .
1628
1629 (% style="text-align:center" %)
1630 [[image:09_html_883677875ea25ecd.gif||class="img-thumbnail"]]
1631
1632 Flying saw control is used in pipe cutting machines, beverage filling and other equipment that needs to move with the processed product; its action is to add axis (slave axis)-start to accelerate and follow the processed product, and after moving to the synchronization zone, it will contact the processed product Start processing at a constant speed. After leaving the synchronization zone, the speed will decrease and stop, and then return to the starting position. All the stroke feeding axes (spindles) have been feeding at a constant speed. As shown below.{{id name="OLE_LINK475"/}}
1633
1634 (% style="text-align:center" %)
1635 [[image:09_html_f748f42472a5e8bc.gif||class="img-thumbnail"]]
1636
1637 The stroke of the flying saw is divided into two parts: the following part and the returning part. The two moving distances must be the same. From the speed stroke point of view, that is, positive area = negative area.
1638
1639 During flying saw, you need to pay attention that the feeding will not stop during processing, so the processing axis must keep the same speed with the feeding axis, and the synchronization time must be enough for the equipment to complete processing and move to a safe position.
1640
1641 The stroke length of the synchronization area is also the processing time, which can be considered when planning the synchronization area. In addition, the planning of the synchronization area will affect the operation of the actual equipment. If the synchronization area is large in a cutting cycle, the acceleration and deceleration time will be smaller, indicating that the equipment needs to be accelerated and decelerated in a short time. For motors, machines, and cutters The impact is very large, and it is easy to cause the servo over-current alarm, and the equipment cannot operate normally.
1642
1643 **{{id name="2.2_追剪参数表"/}}(2) Flying saw parameter table**
1644
1645 (((
1646 (% class="table-bordered" %)
1647 |(% colspan="5" %)**Parameter setting of flying saw curve**
1648 |(% style="width:118px" %)**Parameter**|(% style="width:96px" %)**Offset address**|(% style="width:195px" %)**Name**|(% style="width:102px" %)**Format**|(% style="width:958px" %)**Instruction**
1649 |(% rowspan="2" style="width:118px" %)Parameter 1|(% style="width:96px" %)Address 0|(% rowspan="2" style="width:195px" %)Spindle length|(% rowspan="2" style="width:102px" %)32-bit integer|(% rowspan="2" style="width:958px" %)The cutting length of the feeding axis moving, the unit is Pulse.
1650 |(% style="width:96px" %)Address 1
1651 |(% rowspan="2" style="width:118px" %)Parameter 2|(% style="width:96px" %)Address 2|(% rowspan="2" style="width:195px" %)Slave length|(% rowspan="2" style="width:102px" %)32-bit integer|(% rowspan="2" style="width:958px" %)The circumference of the cutting axis (including the tool length), the unit is Pulse. Range [-2000000000, 2000000000]
1652 |(% style="width:96px" %)Address 3
1653 |(% rowspan="2" style="width:118px" %)Parameter 3|(% style="width:96px" %)Address 4|(% rowspan="2" style="width:195px" %)Slave synchronization length|(% rowspan="2" style="width:102px" %)32-bit integer|(% rowspan="2" style="width:958px" %)The length of the slave axis synchronization zone. Synchronization area range: 0<synchronization area length<~|slave axis length/2~|
1654 |(% style="width:96px" %)Address 5
1655 |(% rowspan="2" style="width:118px" %)Parameter 4|(% style="width:96px" %)Address 6|(% rowspan="2" style="width:195px" %)Slave axis synchronization magnification|(% rowspan="2" style="width:102px" %)Floating|(% rowspan="2" style="width:958px" %)(((
1656 Calculation method one:
1657
1658 In the synchronization zone, the speed of the master axis and the slave axis are equal, and the synchronization magnification calculation method:
1659
1660 V1(V2)=Master (slave) axis speed
1661
1662 F1(F2)=Master (slave) axis speed (Hz)
1663
1664 D1(D2)=Master (slave) shaft diameter
1665
1666 R1 (R2) = master (slave) axis pulse number per revolution
1667
1668 Calculation method two:
1669
1670 Slave axis synchronization magnification=1mm The number of pulses required by the slave axis/1mm
1671
1672 Number of pulses required by the spindle
1673 )))
1674 |(% style="width:96px" %)Address 7
1675 |(% rowspan="2" style="width:118px" %)Parameter 5|(% style="width:96px" %)Address 8|(% rowspan="2" style="width:195px" %)Slave axis maximum magnification limit|(% rowspan="2" style="width:102px" %)Floating|(% rowspan="2" style="width:958px" %)Maximum magnification = maximum speed of slave axis/maximum speed of main axis
1676 |(% style="width:96px" %)Address 9
1677 |(% rowspan="2" style="width:118px" %)Parameter 6|(% style="width:96px" %)Address 10|(% style="width:195px" %)Acceleration curve|(% style="width:102px" %)Integer|(% style="width:958px" %)(((
1678 0: constant acceleration curve, the speed curve is T type
1679
1680 1: Constant jerk curve, the speed curve is S type
1681 )))
1682 |(% style="width:96px" %)Address 11|(% style="width:195px" %)CAM curve|(% style="width:102px" %)Integer|(% style="width:958px" %)Start, stop, and various curve selections for different synchronization zone positions: (currently only one type is supported, the default tracking RightCam, and the return LeftCam curve type. May not be set)
1683 |(% rowspan="2" style="width:118px" %)Parameter 7|(% style="width:96px" %)Address 12|(% style="width:195px" %)Resolution|(% style="width:102px" %)Integer|(% style="width:958px" %)Range [62,511]
1684 |(% style="width:96px" %)Address 13|(% style="width:195px" %)Reserved|(% style="width:102px" %)Retained|(% style="width:958px" %)Reserved
1685 |(% rowspan="2" style="width:118px" %)Parameter 8|(% style="width:96px" %)Address 14|(% rowspan="2" style="width:195px" %)synchronization zone start position|(% rowspan="2" style="width:102px" %)32-bit integer|(% rowspan="2" style="width:958px" %)After the curve is generated correctly, the calculated starting position of the spindle synchronization area can be used to set the lower limit of the synchronization area.
1686 |(% style="width:96px" %)Address 15
1687 |(% rowspan="2" style="width:118px" %)Parameter 9|(% style="width:96px" %)Address 16|(% rowspan="2" style="width:195px" %)End of synchronization zone|(% rowspan="2" style="width:102px" %)32-bit integer|(% rowspan="2" style="width:958px" %)After the curve is correctly generated, the calculated end position of the spindle synchronization area can be used to set the lower limit of the synchronization area.
1688 |(% style="width:96px" %)Address 17
1689 |(% rowspan="2" style="width:118px" %)Parameter 10|(% style="width:96px" %)Address 18|(% rowspan="2" style="width:195px" %)Reserved|(% rowspan="2" style="width:102px" %)Reserved|(% rowspan="2" style="width:958px" %)Reserved
1690 |(% style="width:96px" %)Address 19
1691 |(% rowspan="2" style="width:118px" %)Parameter 11|(% style="width:96px" %)Address 20|(% rowspan="2" style="width:195px" %)The maximum magnification of the actual operation of slave axis|(% rowspan="2" style="width:102px" %)Floating|(% rowspan="2" style="width:958px" %)(((
1692 The maximum magnification of the actual operation of slave axis:
1693
1694 It is sync magnification when it is long material, and it is between sync magnification and maximum limit magnification when it is short material.
1695 )))
1696 |(% style="width:96px" %)Address 21
1697 )))
1698
1699 **{{id name="2.3_案例"/}}(3) Case**
1700
1701 1) Control parameters
1702
1703 ①. The servo parameter is 1000 pulse/rev.
1704
1705 ②. Related parameters
1706
1707 The processing length of the feeding shaft is 660 mm, and the circumference of the feeding shaft is 60πmm
1708
1709 The machining length of the machining shaft is 40 mm
1710
1711 {{id name="_Toc11189"/}}One rotation of the machining axis is 20 mm
1712
1713 The feed shaft speed is 1000 Hz
1714
1715 {{id name="2.3.1_利用飞剪曲线来建立追剪曲线"/}}2) Establish flying saw curve by rotary saw curve
1716
1717 The parameters needed to establish rotary saw curve
1718
1719 Spindle length (processing length): Assuming that the spindle servo parameter is 1000 pulse/rev and the mechanism parameter is 60π mm/rev, then 1pulse is 0.188mm. If the actual processing length is 660mm→convert to 660/0.188=3501 pulse.
1720
1721 Slave axis length(machining axis length):
1722
1723 First consider that the slave axis servo parameter is 1000 pulse/rev and the mechanism parameter is 20mm/rev, then 1pulse=0.01mm can be obtained.
1724
1725 The actual measured slave shaft machining length is 40 mm → converted to 2000 Pulse.
1726
1727 The location of the synchronization zone;
1728
1729 The lower limit of the synchronization zone is when the actual START0 signal is triggered, the slave axis goes from 0 to the position 200 where it catches up with the spindle speed;
1730
1731 The upper limit of the synchronization zone is the position 500 where the processing time ends and the processing equipment also leaves.
1732
1733 The speed ratio of master and slave axis in synchronization zone: the speed ratio of the master axis and slave axis in the synchronization zone.
1734
1735 The speed ratio of master and slave axis when returning:
1736
1737 After the total length of the stroke subtracts the stroke of the following movement, the return stroke length can be obtained, and then use the following stroke distance = return stroke distance to know the speed ratio when returning = 3.
1738
1739 3) Establish flying saw curve automatically by rotary saw curve
1740
1741 ① Establish a positive area curve
1742
1743 Parameter 1: It needs to input the processing length of the spindle feeding shaft to be 660mm, which is converted to pulse 660*1000/60pi=3501 pulse; Since the chase shear needs to return to the origin after the machining is completed, the pulse of the spindle = 3501/2 =1750 pulse;
1744
1745 Parameter 2: Slave shaft processing length is 40mm, conversion 40*1000/20=2000 pulse;
1746
1747 Parameter 3: Slave axis synchronization length setting agrees that 1/3 of the slave axis circumference is 2000/3 = 667 pulse;
1748
1749 Parameter 4:
1750
1751 (% style="text-align:center" %)
1752 [[image:09_html_68100086fd1c297a.gif||class="img-thumbnail"]]
1753
1754 Parameter 5: the highest synchronization magnification 10 (floating point number);
1755
1756 Parameter 6: Low word setting 0: uniform acceleration;
1757
1758 High word setting 0: LeftCam.
1759
1760 ② Establish a negative area curve
1761
1762 Parameter 1: Need to input the processing length of the spindle feeding shaft to be 660mm, which is converted to pulse 660*1000/60pi=3501 pulse; Since the chase shear needs to return to the origin after the machining is completed, the pulse of the spindle =3501/2 =1750 pulse;
1763
1764 Parameter 2: Reverse running size is -2000;
1765
1766 Parameter 3: Same;
1767
1768 Parameter 4: Same;
1769
1770 Parameter 5: Same;
1771
1772 Parameter 6: Low word setting 0: uniform acceleration;
1773
1774 High word setting H8000: LeftCam continues the existing table data.
1775
1776 4) Generate tables with the function of flying saw
1777
1778 Parameter 1: Need to input the processing length of the spindle feeding shaft to be 660mm, which is converted to pulse 660*1000/60pi=3501 pulse;
1779
1780 Parameter 2: Slave shaft processing length is 40mm, conversion 40*1000/20=2000 pulse;
1781
1782 Parameter 3: Slave axis synchronization length setting agrees that 1/3 of the slave axis circumference is 2000/3=667 pulse;
1783
1784 Parameter 4:
1785
1786 (% style="text-align:center" %)
1787 [[image:09_html_bd90dcc010d13207.gif||class="img-thumbnail"]]
1788
1789 Parameter 5: the highest synchronization magnification 10 (floating point number)
1790
1791 Parameter 6: Low word setting 1: Uniform acceleration;
1792
1793 High word setting 0: invalid.
1794
1795 Use ECAMTBX to generate curves:
1796
1797 (% style="text-align:center" %)
1798 [[image:09_html_67c3ab90b2ffbbd3.png||height="449" width="500" class="img-thumbnail"]]
1799
1800 (((
1801 Spindle length
1802
1803 Slave length
1804
1805 Slave synchronization length
1806
1807 Slave axis synchronization magnification
1808
1809 Slave axis maximum magnification limit
1810
1811 Acceleration curve
1812
1813 CAM curve solution resolution
1814
1815 Set as rotary saw curve
1816
1817 Curve generation instruction
1818
1819
1820 )))
1821
1822 Obtain the curve according to the ladder program:{{id name="3、S型加减速曲线建立"/}}
1823
1824 (% style="text-align:center" %)
1825 [[image:09_html_88ff5c1c9ceb8325.gif||height="455" width="600" class="img-thumbnail"]]
1826
1827 **S type acceleration and deceleration curve establishment**
1828
1829 **{{id name="3.1_S型加减速曲线表格参数"/}}(1) S type acceleration and deceleration curve table parameters**
1830
1831 (% class="table-bordered" %)
1832 |(% colspan="7" %)**S type acceleration and deceleration curve parameter setting**
1833 |(% style="width:105px" %)**Parameter**|(% style="width:98px" %)**Offset address**|(% style="width:238px" %)**Name**|**Format**|**Instruction**|**Unit**|**Range**
1834 |(% rowspan="2" style="width:105px" %)Parameter 1|(% style="width:98px" %)Address 0|(% rowspan="2" style="width:238px" %)Total number of pulses (length)|(% rowspan="2" %)32-bit integer|(% rowspan="2" %)Total number of output pulses|(% rowspan="2" %)Pulse|(% rowspan="2" %)1 to 2147483647
1835 |(% style="width:98px" %)Address 1
1836 |(% rowspan="2" style="width:105px" %)Parameter 2|(% style="width:98px" %)Address 2|(% rowspan="2" style="width:238px" %)Set the maximum speed of pulse|(% rowspan="2" %)32-bit integer|(% rowspan="2" %)Set the highest frequency of pulses|(% rowspan="2" %)Hz|(% rowspan="2" %)1 to 200000
1837 |(% style="width:98px" %)Address 3
1838 |(% rowspan="2" style="width:105px" %)Parameter 3|(% style="width:98px" %)Address 4|(% rowspan="2" style="width:238px" %)Reserved|(% rowspan="2" %)Retained|(% rowspan="2" %)Reserved|(% rowspan="2" %) |(% rowspan="2" %)
1839 |(% style="width:98px" %)Address 5
1840 |(% style="width:105px" %)Parameter 4|(% style="width:98px" %)Address 6|(% style="width:238px" %)Accelerated Time|16-bit integer|Pulse acceleration time|ms|2 to 32767
1841 |(% style="width:105px" %)Parameter 5|(% style="width:98px" %)Address 7|(% style="width:238px" %)deceleration time|16-bit integer|Pulse deceleration time|ms|2 to 32767
1842 |(% style="width:105px" %)Parameter 6|(% style="width:98px" %)Address 8|(% style="width:238px" %)Resolution|16-bit integer|Pulse resolution|Length|50 to 511
1843 |(% style="width:105px" %)Parameter 7|(% style="width:98px" %)Address 9|(% style="width:238px" %)Reserved|Retained|Reserved| |
1844 |(% rowspan="2" style="width:105px" %)Parameter 8|(% style="width:98px" %)Address 10|(% rowspan="2" style="width:238px" %)Number of spindle pulses in the last segment|(% rowspan="2" %)32-bit integer|(% rowspan="2" %)Number of spindle pulses in the last segment (high and low)|(% rowspan="2" %)Pulse|(% rowspan="8" %)
1845 \\Internally generated
1846 |(% style="width:98px" %)Address 11
1847 |(% rowspan="2" style="width:105px" %)Parameter 9|(% style="width:98px" %)Address 12|(% rowspan="2" style="width:238px" %)Number of slave axis pulses in the last segment|(% rowspan="2" %)32-bit integer|(% rowspan="2" %)Number of pulses from the last segment of the slave axis (high and low bits)|(% rowspan="2" %)Pulse
1848 |(% style="width:98px" %)Address 13
1849 |(% rowspan="2" style="width:105px" %)Parameter 10|(% style="width:98px" %)Address 14|(% rowspan="2" style="width:238px" %)Uniform time|(% rowspan="2" %)32-bit integer|(% rowspan="2" %)The length of the pulse at a constant speed|(% rowspan="2" %)Pulse
1850 |(% style="width:98px" %)Address 15
1851 |(% rowspan="2" style="width:105px" %)Parameter 11|(% style="width:98px" %)Address 16|(% rowspan="2" style="width:238px" %)Maximum speed|(% rowspan="2" %)32-bit integer|(% rowspan="2" %)Maximum speed of curve results during operation|(% rowspan="2" %)Hz
1852 |(% style="width:98px" %)Address 17
1853 |(% style="width:105px" %)Parameter 12|(% style="width:98px" %)Address 18|(% style="width:238px" %)Reserved| | | |
1854 |(% style="width:105px" %)Parameter 13|(% style="width:98px" %)Address 19|(% style="width:238px" %)Curve generation result| | | |
1855
1856 **✎Note:**
1857
1858 Generate S type acceleration and deceleration curve (table) with the given acceleration time, deceleration time, and the highest speed. When calculating, the spindle uses the pulse input frequency of 1K (1ms) as the calculation basis.
1859
1860 **{{id name="3.2_案例"/}}(2) Case**
1861
1862 1) Related control parameters
1863
1864 Calculation case:
1865
1866 Total number of pulses (length): 10000 pulses
1867
1868 Acceleration time: 100ms
1869
1870 Deceleration time: 100ms Resolution: 200
1871
1872 2) 2. Curve parameters:
1873
1874 Parameter 1: The total number of output pulses 10000
1875
1876 Parameter 2: Maximum speed 50000
1877
1878 Parameter 6: acceleration time 100
1879
1880 Parameter 7: acceleration time 100
1881
1882 Parameter 8: Resolution 200
1883
1884 (% style="text-align:center" %)
1885 [[image:09_html_aa28fc53f7b57a5e.png||height="392" width="500" class="img-thumbnail"]]
1886
1887 (((
1888 Pulse maximum speed
1889
1890 Total pulse number
1891
1892 Acceleration time
1893
1894 Deceleration time
1895
1896 Resolution
1897
1898 Set S type acceleration and deceleration curve
1899
1900 Curve generation instruction
1901
1902
1903 )))
1904
1905 (% style="text-align:center" %)
1906 [[image:09_html_ce402394c75f0459.gif||class="img-thumbnail"]]
1907
1908 **C.Customize specified key points to generate a table**
1909
1910 **{{id name="4.1_指定关键点生成表格参数"/}}(1) Specified key points generate table parameters**
1911
1912 (% class="table-bordered" %)
1913 |(% colspan="6" %)**Specified key points generate table parameters**
1914 |(% colspan="2" %)**Address**|(% style="width:333px" %)**Name**|(% style="width:197px" %)**Length**|**Instruction**|**Range**
1915 |(% colspan="2" %)S0|(% style="width:333px" %)Curve result|(% style="width:197px" %)Single word|(((
1916 ~>0: The curve is generated successfully
1917
1918 <0: Failed to generate curve
1919 )))|
1920 |(% colspan="2" %)S0+1|(% style="width:333px" %)Error parameter position|(% style="width:197px" %)Single word| |
1921 |(% colspan="2" %)S0+2|(% style="width:333px" %)Total resolution|(% style="width:197px" %)Single word| |10 to 511
1922 |(% colspan="2" %)S0+3|(% style="width:333px" %)Number of key points (n)|(% style="width:197px" %)Single word| |1 to 10
1923 |(% colspan="2" %)S0+4|(% rowspan="2" style="width:333px" %)The initial position of slave axis|(% rowspan="2" style="width:197px" %)Double word|(% rowspan="2" %)Set the initial offset position of slave axis|(% rowspan="2" %)Reserved
1924 |(% colspan="2" %)S0+5
1925 |(% colspan="2" %)S0+6|(% style="width:333px" %)Spindle segment 0|(% style="width:197px" %)Single word|(% rowspan="2" %)The master/slave axis segment 0 is always 0|(% rowspan="2" %)Reserved
1926 |(% colspan="2" %)S0+7|(% style="width:333px" %)Slave axis segment 0|(% style="width:197px" %)Single word
1927 |(% rowspan="6" %)(((
1928 Key
1929
1930 point 1
1931 )))|S0+8|(% rowspan="2" style="width:333px" %)Spindle segment 1|(% rowspan="2" style="width:197px" %)Double word|(% rowspan="2" %)Number of pulses of spindle segment 1|(% rowspan="2" %)32-bit integer
1932 |S0+9
1933 |S0+10|(% rowspan="2" style="width:333px" %)Slave axis segment 1|(% rowspan="2" style="width:197px" %)Double word|(% rowspan="2" %)Number of pulses of slave axis segment 1|(% rowspan="2" %)32-bit integer
1934 |S0+11
1935 |S0+12|(% style="width:333px" %)Curve type of segment 1|(% style="width:197px" %)Single word|*1|
1936 |S0+13|(% style="width:333px" %)Resolution of segment 1|(% style="width:197px" %)Single word|*2|
1937 |(% rowspan="6" %)(((
1938 Key
1939
1940 point 2
1941 )))|S0+14|(% rowspan="2" style="width:333px" %)Spindle segment 2|(% rowspan="2" style="width:197px" %)Double word|(% rowspan="2" %)Number of pulses of spindle segment 2|(% rowspan="2" %)32-bit integer
1942 |S0+15
1943 |S0+16|(% rowspan="2" style="width:333px" %)Slave axis segment 2|(% rowspan="2" style="width:197px" %)Double word|(% rowspan="2" %)Number of pulses of slave axis segment 2|(% rowspan="2" %)32-bit integer
1944 |S0+17
1945 |S0+18|(% style="width:333px" %)Curve type of segment 2|(% style="width:197px" %)Single word|*1|
1946 |S0+19|(% style="width:333px" %)Resolution of segment 2|(% style="width:197px" %)Single word|*2|
1947 | |**......**|(% style="width:333px" %)**......**|(% style="width:197px" %)**.....**|**......**|**......**
1948 |(% rowspan="6" %)(((
1949 Key point
1950
1951 N
1952 )))|S0+n*6+2|(% rowspan="2" style="width:333px" %)Spindle segment N|(% rowspan="2" style="width:197px" %)Double word|(% rowspan="2" %)Number of pulses of spindle segment N|(% rowspan="2" %)32-bit integer
1953 |S0+n*6+3
1954 |S0+n*6+4|(% rowspan="2" style="width:333px" %)Slave axis segment N|(% rowspan="2" style="width:197px" %)Double word|(% rowspan="2" %)Number of pulses of slave axis segment N|(% rowspan="2" %)32-bit integer
1955 |S0+n*6+5
1956 |S0+n*6+6|(% style="width:333px" %)Curve type of segment N|(% style="width:197px" %)Single word|*1|
1957 |S0+n*6+7|(% style="width:333px" %)Resolution of segment N|(% style="width:197px" %)Single word|*2|
1958
1959 Curve type: Different values represent different curve types.
1960
1961 0 = uniform acceleration, 1 = S acceleration and deceleration (uniform acceleration), 2 = cycloid, 3 = uniform speed.
1962
1963 The resolution range is 0-511, the total resolution of all segments does not exceed the total resolution set by [S0]. if the resolution of all segments is set to 0, the total resolution set by [S0] split equally. When the curve type is cycloid, the corresponding resolution range is 3-511.W
1964
1965 Refer to the setting method of PLC Editor to generate a table based on the given key points and the given function relationship. The parameter setting is the same as the setting method of the upper computer. The editing interface of the upper computer is shown below. When the table is generated in K2 mode, The generated result is similar to the table result set by the relevant parameters of the upper computer. This mode expands the function of the table generated by the lower computer through the key points. In the key point curve, the spindle must have an increasing relationship, that is, the spindle pulse number of the next point must be greater than the spindle pulse number of the previous point, otherwise an error will be reported.
1966
1967 **{{id name="4.2_案例"/}}(2) Case**
1968
1969 1) Specified key points parameters
1970
1971 When the spindle has 0-600 pulses, the slave axis stops at position 0;
1972
1973 When the spindle has 600-1500 pulses, the slave axis moves to the position 2000;
1974
1975 When the spindle is 1500-1700 pulses, the slave axis stops at position 2000;
1976
1977 When the spindle has 1700-1900 pulses, the slave axis will return to position 600;
1978
1979 When the spindle has 1900-2000 pulses, the slave axis returns to position 0.
1980
1981 2) Specified key points for tabulation
1982
1983 Use PLC Editor software to create ECAM table, and set the parameter value of each key point in the table.
1984
1985 (% style="text-align:center" %)
1986 [[image:09_html_b99e5227a35871ab.png||height="295" width="400" class="img-thumbnail"]]
1987
1988 Then set the starting address of the parameter, check the ECam0 form in [Electronic Cam] when downloading, the system will automatically fill in the data of the above form into the corresponding parameter address.
1989
1990 3) Specified key point parameters table
1991
1992 (((
1993 (% class="table-bordered" %)
1994 |**Address**|**Instruction**|**Set value**|**Address**|**Instruction**|**Set value**
1995 |S0|Curve generation result| |S0+19|Resolution of segment 2|0
1996 |S0+1|Error parameter location| |S0+20|(% rowspan="2" %)Spindle position of segment 3|(% rowspan="2" %)1700
1997 |S0+2|Total resolution|100|S0+21
1998 |S0+3|Number of key point|1-10|S0+22|(% rowspan="2" %)Slave axis position of segment 3|(% rowspan="2" %)2000
1999 |S0+4|(% rowspan="2" %)Initial position of slave axis|(% rowspan="2" %)——|S0+23
2000 |S0+5|S0+24|Curve type of segment 3|0
2001 |S0+6|Spindle position of segment 0|Reserved|S0+25|Resolution of segment 3|0
2002 |S0+7|Slave axis position of segment 0|Reserved|S0+26|(% rowspan="2" %)Spindle position of segment 4|(% rowspan="2" %)1900
2003 |S0+8|(% rowspan="2" %)Spindle position of segment 1|(% rowspan="2" %)600|S0+27
2004 |S0+9|S0+28|(% rowspan="2" %)Slave axis position of segment 4|(% rowspan="2" %)600
2005 |S0+10|(% rowspan="2" %)Slave axis position of segment 1|(% rowspan="2" %)0|S0+29
2006 |S0+11|S0+30|Curve type of segment 4|0
2007 |S0+12|Curve type of segment 1|0|S0+31|Resolution of segment 4|0
2008 |S0+13|Resolution of segment 1|0|S0+32|(% rowspan="2" %)Spindle position of segment 5|(% rowspan="2" %)2000
2009 |S0+14|(% rowspan="2" %)Spindle position of segment 2|(% rowspan="2" %)1500|S0+33
2010 |S0+15|S0+34|(% rowspan="2" %)Slave axis position of segment 5|(% rowspan="2" %)0
2011 |S0+16|(% rowspan="2" %)Slave axis position of segment 2|(% rowspan="2" %)1200|S0+35
2012 |S0+17|S0+36|Curve type of segment 5|0
2013 |S0+18|Curve type of segment 2|0|S0+37|Resolution of segment 5|0
2014 )))
2015
2016 4) The table generated by specified key points is shown as below.
2017
2018 (% style="text-align:center" %)
2019 [[image:09_html_7f4633272893860d.gif||class="img-thumbnail"]]
2020
2021 5) If you do not need to fill in the data in the form, you can use the Circuit program to replace the form data:
2022
2023 (% style="text-align:center" %)
2024 [[image:09_html_b7baa900608277e3.png||width="500" class="img-thumbnail"]]
2025
2026
2027 (% style="text-align:center" %)
2028 [[image:09_html_5d035bd757aecfde.png||class="img-thumbnail"]]
2029
2030 == {{id name="_Toc12352"/}}{{id name="_Toc28842"/}}{{id name="_Toc1624"/}}{{id name="四、特殊地址"/}}**Special address** ==
2031
2032 (% class="table-bordered" %)
2033 |**Devices**|**Content**
2034 |SD881 (high byte), SD880 (low byte)|Y000 Output pulse number. Decrease when reversed. (Use 32 bits)
2035 |SD941 (high byte), SD940 (low byte)|Y001 Output pulse number. Decrease when reversed. (Use 32 bits)
2036 |SD1001 (high byte), SD1000 (low byte)|Y002 Output pulse number. Decrease when reversed. (Use 32 bits)
2037 |SD1061 (high byte), SD1060 (low byte)|Y003 output pulse number. Decrease when reversed. (Use 32 bits)
2038 |SD1121 (high byte), SD1120 (low byte)|Y004 Output pulse number. Decrease when reversed. (Use 32 bits)
2039 |SD1181 (high byte), SD1180 (low byte)|Y005 Output pulse number. Decrease when reversed. (Use 32 bits)
2040 |SD1241 (high byte), SD1240 (low byte)|Y006 Number of output pulses. Decrease when reversed. (Use 32 bits)
2041 |SD1301 (high byte), SD1300 (low byte)|Y007 Output pulse number. Decrease when reversed. (Use 32 bits)
2042
2043 (% class="table-bordered" %)
2044 |**Devices**|**Content**|**Devices**|**Content**
2045 |SM882|Y000 Pulse output stop (stop immediately)|SM880|Y000 monitoring during pulse output (BUSY/READY)
2046 |SM942|Y001 Pulse output stop (stop immediately)|SM940|Y001 Monitoring during pulse output (BUSY/READY)
2047 |SM1002|Y002 Pulse output stop (stop immediately)|SM1000|Y002 Monitoring during pulse output (BUSY/READY)
2048 |SM1062|Y003 Pulse output stop (stop immediately)|SM1060|Y003 Monitoring during pulse output (BUSY/READY)
2049 |SM1122|Y004 Pulse output stop (stop immediately)|SM1120|Y004 Monitoring during pulse output (BUSY/READY)
2050 |SM1182|Y005 Pulse output stop (stop immediately)|SM1180|Y005 Monitoring during pulse output (BUSY/READY)
2051 |SM1242|Y006 Pulse output stop (stop immediately)|SM1240|Y006 Monitoring during pulse output (BUSY/READY)
2052 |SM1302|Y007 Pulse output stop (stop immediately)|SM1300|Y007 Monitoring during pulse output (BUSY/READY)
2053
2054 == {{id name="_Toc1201"/}}{{id name="_Toc27506"/}}{{id name="_Toc19492"/}}{{id name="1、飞剪参数表"/}}**Appendix** ==
2055
2056 **Rotary saw parameter table**
2057
2058 (% class="table-bordered" %)
2059 |(% colspan="5" %)**Rotary saw curve parameter setting**
2060 |(% style="width:117px" %)**Parameter**|(% style="width:94px" %)**Offset address**|(% style="width:162px" %)**Name**|**Format**|**Instruction**
2061 |(% rowspan="2" style="width:117px" %)Parameter 1|(% style="width:94px" %)Address 0|(% rowspan="2" style="width:162px" %)Spindle length|(% rowspan="2" %)32-bit integer|(% rowspan="2" %)The moving cut length of the feeding axis moving. Unit: pulse.
2062 |(% style="width:94px" %)Address 1
2063 |(% rowspan="2" style="width:117px" %)Parameter 2|(% style="width:94px" %)Address 2|(% rowspan="2" style="width:162px" %)Slave length|(% rowspan="2" %)32-bit integer|(% rowspan="2" %)The circumference of the cutting axis (including the tool length). Unit: pulse. Range [-2,000,000,000, 2,000,000,000]
2064 |(% style="width:94px" %)Address 3
2065 |(% rowspan="2" style="width:117px" %)Parameter 3|(% style="width:94px" %)Address 4|(% rowspan="2" style="width:162px" %)Slave sync length|(% rowspan="2" %)32-bit integer|(% rowspan="2" %)The length of the slave axis synchronization zone is smaller than the slave axis length, generally set to 1/3 of the slave axis length. (When the new S type rotary saw is selected, the value satisfies 40 *sync ratio<=sync length< slave axis length-2. ). Sync area range: 0<sync area length<~|slave axis length~|
2066 |(% style="width:94px" %)Address 5
2067 |(% rowspan="2" style="width:117px" %)Parameter 4|(% style="width:94px" %)
2068 Address 6|(% rowspan="2" style="width:162px" %)Slave axis sync magnification|(% rowspan="2" %)Floating|(% rowspan="2" %)(((
2069 Calculation method one:
2070
2071 In the synchronization zone, the speed of the master axis and the slave axis are equal, and the sync magnification calculation method:
2072
2073 V1(V2)=Master (slave) axis speed
2074
2075 F1(F2)=Master (slave) axis speed (Hz)
2076
2077 D1(D2)=Master (slave) axis diameter
2078
2079 R1 (R2) = master (slave) axis pulse number per revolution
2080
2081 Calculation method two:
2082
2083 Slave axis sync magnification=the number of pulses required by 1mm slave axis/the number of pulses required by 1mm spindle
2084 )))
2085 |(% style="width:94px" %)Address 7
2086 |(% rowspan="2" style="width:117px" %)Parameter 5|(% style="width:94px" %)Address 8|(% rowspan="2" style="width:162px" %)Slave axis maximum magnification limit|(% rowspan="2" %)Floating|(% rowspan="2" %)Maximum magnification = maximum speed of slave axis/maximum speed of spindle
2087 |(% style="width:94px" %)Address 9
2088 |(% style="width:117px" %)Parameter 6|(% style="width:94px" %)Address 10|(% style="width:162px" %)Acceleration curve|Integer|(((
2089 0: Constant acceleration curve, the speed curve is T type
2090
2091 1: Constant jerk curve, the speed curve is S type
2092
2093 2: reserved
2094
2095 3: reserved
2096
2097 4: New S rotary saw curve (synchronization zone is in the middle), see appendix for details. Current curve only supports CAM curve as 0.
2098 )))
2099 |(% style="width:117px" %)Parameter 7|(% style="width:94px" %)Address 11|(% style="width:162px" %)CAM curve|Integer|(((
2100 Start, stop, and various curve selections of different synchronization zone positions:
2101
2102 0: LeftCAM synchronization area is on the front curve;
2103
2104 1: MidCAMall;
2105
2106 2: MidCAMBegin start curve;
2107
2108 3: MidCAMEnd end curve;
2109
2110 4: RightCAM synchronization area is on the back curve;
2111
2112 BIT[15]=1: Continuing the previous data, used for splicing curves, such as setting the subdivision of the curve, the total resolution range of all splicing curves is 31 to 1024, and the two rotary saw curves are spliced into a shearing curve
2113 )))
2114 |(% style="width:117px" %)Parameter 8|(% style="width:94px" %)Address 12|(% style="width:162px" %)Resolution|Integer|(((
2115 Range [31,511], of which 20 synchronization areas;
2116
2117 When CAM curve is selected as MdiCAMall (resolution range is [54, 511])
2118 )))
2119 |(% style="width:117px" %) |(% style="width:94px" %)Address 13|(% style="width:162px" %)Reserved|Retained|Reserved
2120 |(% rowspan="2" style="width:117px" %)Parameter 9|(% style="width:94px" %)Address 14|(% rowspan="2" style="width:162px" %)Synchronization zone start position|(% rowspan="2" %)32-bit integer|(% rowspan="2" %)After the curve is generated correctly, the calculated start position of the spindle synchronization area could be used to set the lower limit of the synchronization area.
2121 |(% style="width:94px" %)Address 15
2122 |(% rowspan="2" style="width:117px" %)Parameter 10|(% style="width:94px" %)Address 16|(% rowspan="2" style="width:162px" %)End of synchronization zone|(% rowspan="2" %)32-bit integer|(% rowspan="2" %)After the curve is correctly generated, the calculated end position of the spindle synchronization area could be used to set the lower limit of the synchronization area.
2123 |(% style="width:94px" %)Address 17
2124 |(% rowspan="2" style="width:117px" %)Parameter 11|(% style="width:94px" %)Address 18|(% rowspan="2" style="width:162px" %)Slave axis minimum limit operation magnification|(% rowspan="2" %)Floating|(% rowspan="2" %)It is valid only when parameter 6 acceleration curve is set to 4. Make sure that the actual maximum speed of the slave axis cannot be less than this value magnification corresponds to the speed so as to adjust the slope of the deceleration section.
2125 |(% style="width:94px" %)Address 19
2126 |(% rowspan="2" style="width:117px" %)Parameter 11|(% style="width:94px" %)Address 20|(% rowspan="2" style="width:162px" %)The maximum magnification of the actual operation of slave axis|(% rowspan="2" %)Floating|(% rowspan="2" %)(((
2127 The maximum magnification of the actual operation of slave axis:
2128
2129 It is sync magnification when it is long material, and it is between sync magnification and maximum limit magnification when it is short material.
2130 )))
2131 |(% style="width:94px" %)Address 21
2132
2133 **{{id name="2、追剪参数表"/}}9.2.5.2 Flying saw parameter table**
2134
2135 (% class="table-bordered" %)
2136 |(% colspan="6" %)**Parameter setting of flying saw curve**
2137 |(% style="width:113px" %)**Parameter**|(% style="width:94px" %)**Offset address**|(% style="width:199px" %)**Name**|(% colspan="2" %)**Format**|**Instruction**
2138 |(% rowspan="2" style="width:113px" %)Parameter 1|(% style="width:94px" %)Address 0|(% rowspan="2" style="width:199px" %)Spindle length|(% colspan="2" rowspan="2" %)32-bit integer|(% rowspan="2" %)The cutting length of the feeding axis moving. Unit: Pulse.
2139 |(% style="width:94px" %)Address 1
2140 |(% rowspan="2" style="width:113px" %)Parameter 2|(% style="width:94px" %)Address 2|(% rowspan="2" style="width:199px" %)Slave length|(% colspan="2" rowspan="2" %)32-bit integer|(% rowspan="2" %)The circumference of the cutting axis (including the tool length). Unit: Pulse. Range [-2,000,000,000, 2,000,000,000]
2141 |(% style="width:94px" %)Address 3
2142 |(% rowspan="2" style="width:113px" %)Parameter 3|(% style="width:94px" %)Address 4|(% rowspan="2" style="width:199px" %)Slave synchronization length|(% colspan="2" rowspan="2" %)32-bit integer|(% rowspan="2" %)The length of the slave axis synchronization zone. Synchronization area range: 0<synchronization area length<~|slave axis length/2~|
2143 |(% style="width:94px" %)Address 5
2144 |(% rowspan="2" style="width:113px" %)Parameter 4|(% style="width:94px" %)Address 6|(% rowspan="2" style="width:199px" %)Slave axis synchronization magnification|(% colspan="2" rowspan="2" %)Floating|(% rowspan="2" %)(((
2145 Calculation method one:
2146
2147 In the synchronization zone, the speed of master axis and the slave axis are equal, and the synchronization magnification calculation method is as below.
2148
2149 [[image:09_html_abe2ece300f76c28.jpg]]
2150
2151 among them
2152
2153 V1(V2)=Master (slave) axis speed
2154
2155 F1(F2)=Master (slave) axis speed (Hz)
2156
2157 D1(D2)=Master (slave) axis diameter
2158
2159 R1 (R2) = master (slave) axis pulse number per revolution
2160
2161 Calculation method two:
2162
2163 Slave axis synchronization magnification=1mm The number of pulses required by the slave axis/1mm The number of pulses required by the spindle
2164 )))
2165 |(% style="width:94px" %)Address 7
2166 |(% rowspan="2" style="width:113px" %)Parameter 5|(% style="width:94px" %)Address 8|(% rowspan="2" style="width:199px" %)Slave axis maximum magnification limit|(% colspan="2" rowspan="2" %)Floating|(% rowspan="2" %)Maximum magnification = maximum speed of slave axis/maximum speed of main axis
2167 |(% style="width:94px" %)Address 9
2168 |(% rowspan="2" style="width:113px" %)Parameter 6|(% style="width:94px" %)Address 10|(% style="width:199px" %)Acceleration curve|(% colspan="2" %)Integer|(((
2169 0: constant acceleration curve, the speed curve is T type
2170
2171 1: Constant jerk curve, the speed curve is S type
2172 )))
2173 |(% style="width:94px" %)Address 11|(% style="width:199px" %)CAM curve|(% colspan="2" %)Integer|Start, stop, and various curve selections for different synchronization zone positions: (currently only one type is supported, the tracking RightCam and the return LeftCam curve type are defaulted and can not be set)
2174 |(% style="width:113px" %)Parameter 7|(% style="width:94px" %)Address 12|(% style="width:199px" %)Resolution|(% colspan="2" %)Integer|Range [62,511]
2175 |(% style="width:113px" %) |(% style="width:94px" %)Address 13|(% style="width:199px" %)Reserved|(% colspan="2" %)Reserved|Reserved
2176 |(% rowspan="2" style="width:113px" %)Parameter 8|(% style="width:94px" %)Address 14|(% rowspan="2" style="width:199px" %)Synchronization zone start position|(% colspan="2" rowspan="2" %)32-bit integer|(% rowspan="2" %)After the curve is generated correctly, the calculated starting position of the spindle synchronization area can be used to set the lower limit of the synchronization area.
2177 |(% style="width:94px" %)Address 15
2178 |(% rowspan="2" style="width:113px" %)Parameter 9|(% style="width:94px" %)Address 16|(% colspan="2" rowspan="2" style="width:199px" %)End of synchronization zone|(% rowspan="2" %)32-bit integer|(% rowspan="2" %)After the curve is correctly generated, the calculated end position of the spindle synchronization area can be used to set the lower limit of the synchronization area.
2179 |(% style="width:94px" %)Address 17
2180 |(% rowspan="2" style="width:113px" %)Parameter 11|(% style="width:94px" %)Address 20|(% colspan="2" rowspan="2" style="width:199px" %)The maximum magnification of the actual operation of slave axis|(% rowspan="2" %)Floating|(% rowspan="2" %)(((
2181 The maximum magnification of the actual operation of slave axis:
2182
2183 It is sync magnification when it is long material, and it is between sync magnification and maximum limit magnification when it is short material.
2184 )))
2185 |(% style="width:94px" %)Address 21
2186
2187 **{{id name="OLE_LINK387"/}}S type acceleration and deceleration curve parameter table**
2188
2189 (% class="table-bordered" %)
2190 |(% colspan="7" %)**S type acceleration and deceleration curve parameter setting**
2191 |(% style="width:110px" %)**Parameter**|(% style="width:104px" %)**Offset address**|(% style="width:252px" %)**Name**|**Format**|**Instruction**|**Unit**|**Range**
2192 |(% rowspan="2" style="width:110px" %)Parameter 1|(% style="width:104px" %)Address 0|(% rowspan="2" style="width:252px" %)Total number of pulses (length)|(% rowspan="2" %)32-bit integer|(% rowspan="2" %)Total number of output pulses|(% rowspan="2" %)Pulse|(% rowspan="2" %)1 to 2147483647
2193 |(% style="width:104px" %)Address 1
2194 |(% rowspan="2" style="width:110px" %)Parameter 2|(% style="width:104px" %)Address 2|(% rowspan="2" style="width:252px" %)Set the maximum speed of pulse|(% rowspan="2" %)32-bit integer|(% rowspan="2" %)Set the highest frequency of pulses|(% rowspan="2" %)Hz|(% rowspan="2" %)1 to 200000
2195 |(% style="width:104px" %)Address 3
2196 |(% rowspan="2" style="width:110px" %)Parameter 3|(% style="width:104px" %)Address 4|(% rowspan="2" style="width:252px" %)Reserved|(% rowspan="2" %)Retained|(% rowspan="2" %)Reserved|(% rowspan="2" %) |(% rowspan="2" %)2 to 32767
2197 |(% style="width:104px" %)Address 5
2198 |(% style="width:110px" %)Parameter 4|(% style="width:104px" %)Address 6|(% style="width:252px" %)Accelerated time|16-bit integer|Pulse acceleration time|ms|2 to 32767
2199 |(% style="width:110px" %)Parameter 5|(% style="width:104px" %)Address 7|(% style="width:252px" %)Deceleration time|16-bit integer|Pulse deceleration time|ms|50 to 511
2200 |(% style="width:110px" %)Parameter 6|(% style="width:104px" %)Address 8|(% style="width:252px" %)Resolution|16-bit integer|Pulse resolution|Length|51 to 512
2201 |(% style="width:110px" %)Parameter 7|(% style="width:104px" %)Address 9|(% style="width:252px" %)Reserved|Reserved|Reserved| |
2202 |(% rowspan="2" style="width:110px" %)Parameter 8|(% style="width:104px" %)Address 10|(% rowspan="2" style="width:252px" %)Number of pulses of spindle in the last segment|(% rowspan="2" %)32-bit integer|(% rowspan="2" %)Number of pulses of spindle in the last segment (high and low)|(% rowspan="2" %)Pulse|(% rowspan="8" %)
2203 \\Internally generated
2204 |(% style="width:104px" %)Address 11
2205 |(% rowspan="2" style="width:110px" %)Parameter 9|(% style="width:104px" %)Address 12|(% rowspan="2" style="width:252px" %)Number of pulses of slave axis in the last segment|(% rowspan="2" %)32-bit integer|(% rowspan="2" %)Number of pulses of slave axis in the last segment(high and low)|(% rowspan="2" %)Pulse
2206 |(% style="width:104px" %)Address 13
2207 |(% rowspan="2" style="width:110px" %)Parameter 10|(% style="width:104px" %)Address 14|(% rowspan="2" style="width:252px" %)Uniform time|(% rowspan="2" %)32-bit integer|(% rowspan="2" %)The time span when outputting pulses at a constant speed|(% rowspan="2" %)Pulse
2208 |(% style="width:104px" %)Address 15
2209 |(% rowspan="2" style="width:110px" %)Parameter 11|(% style="width:104px" %)Address 16|(% rowspan="2" style="width:252px" %)Maximum speed|(% rowspan="2" %)32-bit integer|(% rowspan="2" %)The maximum speed of curve during operation|(% rowspan="2" %)Hz
2210 |(% style="width:104px" %)Address 17
2211 |(% style="width:110px" %)Parameter 12|(% style="width:104px" %)Address 18|(% style="width:252px" %)Reserved| | | |
2212 |(% style="width:110px" %)Parameter 13|(% style="width:104px" %)Address 19|(% style="width:252px" %)Curve generation result| | | |
2213
2214 **{{id name="4、指定关键点生成表格"/}}4 Specified key points generate a table**
2215
2216 (% class="table-bordered" %)
2217 |(% colspan="6" %)**Specified key points generate table parameters**
2218 |(% colspan="2" %)**Address**|**Name**|**Length**|**Instruction**|**Range**
2219 |(% colspan="2" %)S0|Curve generation result|Single word|(((
2220 ~>0: The curve is generated successfully
2221
2222 <0: Failed to generate the curve
2223 )))|
2224 |(% colspan="2" %)S0+1|Error parameter location|Single word| |
2225 |(% colspan="2" %)S0+2|Total resolution|Single word| |10 to 511
2226 |(% colspan="2" %)S0+3|Number of key points (n)|Single word| |1 to 10
2227 |(% colspan="2" %)S0+4|(% rowspan="2" %)Start position of slave axis|(% rowspan="2" %)Double word|(% rowspan="2" %)Set the start offset position of slave axis|(% rowspan="2" %)Reserved
2228 |(% colspan="2" %)S0+5
2229 |(% colspan="2" %)S0+6|Spindle segment 0|Single word|(% rowspan="2" %)The master/slave axis of segment 0 is always 0|(% rowspan="2" %)Reserved
2230 |(% colspan="2" %)S0+7|Slave axis segment 0|Single word
2231 |(% rowspan="6" %)(((
2232
2233
2234 Key
2235
2236 point 1
2237 )))|S0+8|(% rowspan="2" %)Spindle segment 1|(% rowspan="2" %)Double word|(% rowspan="2" %)The number of pulse of spindle segment 1|(% rowspan="2" %)32-bit integer
2238 |S0+9
2239 |S0+10|(% rowspan="2" %)Slave axis segment 1|(% rowspan="2" %)Double word|(% rowspan="2" %)The number of pulse of slave axis segment 1|(% rowspan="2" %)32-bit integer
2240 |S0+11
2241 |S0+12|Curve type of segment 1|Single word|*1|
2242 |S0+13|Resolution of segment 1|Single word|*2|
2243 |(% rowspan="6" %)(((
2244
2245
2246 Key
2247
2248 Point 2
2249 )))|S0+14|(% rowspan="2" %)Spindle segment 2|(% rowspan="2" %)Double word|(% rowspan="2" %)The number of pulse of spindle segment 2|(% rowspan="2" %)32-bit integer
2250 |S0+15
2251 |S0+16|(% rowspan="2" %)Slave axis segment 2|(% rowspan="2" %)Double word|(% rowspan="2" %)The number of pulse of slave axis segment 2|(% rowspan="2" %)32-bit integer
2252 |S0+17
2253 |S0+18|Curve type of segment 2|Single word|*1|
2254 |S0+19|Resolution of segment 2|Single word|*2|
2255 | |......|......|....|......|......
2256 |(% rowspan="6" %)(((
2257
2258
2259 Key
2260
2261 point N
2262 )))|S0+n*6+2|(% rowspan="2" %)Spindle segment N|(% rowspan="2" %)Double word|(% rowspan="2" %)The number of pulse of spindle segment N|(% rowspan="2" %)32-bit integer
2263 |S0+n*6+3
2264 |S0+n*6+4|(% rowspan="2" %)Slave axis segment N|(% rowspan="2" %)Double word|(% rowspan="2" %)The number of pulse of slave axis segment N|(% rowspan="2" %)32-bit integer
2265 |S0+n*6+5
2266 |S0+n*6+6|Curve type of segment N|Single word|*1|
2267 |S0+n*6+7|Resolution of segment N|Single word|*2|