Changes for page 07 Adjustments
Last modified by Iris on 2025/07/24 11:03
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -349,7 +349,7 @@ 349 349 (% style="text-align:center" %) 350 350 ((( 351 351 (% class="wikigeneratedid img-thumbnail" style="display:inline-block" %) 352 -[[**Figure 7-7 Block Diagram of Model Tracking Control Design**>>image:20230515-7.png|| height="394" id="20230515-7.png"width="931"]]352 +[[**Figure 7-7 Block Diagram of Model Tracking Control Design**>>image:20230515-7.png||id="20230515-7.png"]] 353 353 ))) 354 354 355 355 The usage method and conditions of model tracking control: ... ... @@ -380,16 +380,15 @@ 380 380 )))|(% style="text-align:center; vertical-align:middle; width:128px" %)((( 381 381 Effective immediately 382 382 )))|(% style="text-align:center; vertical-align:middle; width:103px" %)0|(% style="text-align:center; vertical-align:middle; width:107px" %)0 to 1|When the function code is set to 1, enable the model tracking control function.| 383 -|=(% style="text-align: center; vertical-align: middle; width: 120px;" %)P2-21|(% style="text-align:center; vertical-align:middle; width:163px" %)Model tracking control gain|(% style="text-align:center; vertical-align:middle; width:122px" %)((( 383 +|=(% style="text-align: center; vertical-align: middle; width: 120px;" %)P2-21|(% style="text-align:center; vertical-align:middle; width:163px" %)Model tracking control gain|(% style="text-align:center; vertical-align:middle; width:122px" %)((( 384 384 Shutdown setting 385 -)))|( % style="text-align:center; vertical-align:middle; width:128px" %)(((385 +)))|((( 386 386 Effective immediately 387 -)))|(% style="text-align:center; vertical-align:middle; width:103px" %)1000|(% style="text-align:center; vertical-align:middle; width:107px" %)200 to 20000|(% rowspan="2" style="width:321px" %)Increasing the model tracking control gain can improve the position response performance of the model loop. If the gain is too high, it may cause overshoot behavior. The gain compensation affects the damping ratio of the model loop, and the damping ratio becomes larger as the gain compensation becomes larger.|(% style="text-align:center; vertical-align:middle" %)0.1/s 388 -|=(% style="text-align: center; vertical-align: middle; width: 120px;" %)P2-22|(% style="text-align:center; vertical-align:middle; width:163px" %)Model tracking control gain compensation|(% style="text-align:center; vertical-align:middle; width:122px" %)((( 389 -Shutdown setting 390 -)))|(% style="text-align:center; vertical-align:middle; width:128px" %)((( 387 +)))|(% style="text-align:center; vertical-align:middle; width:103px" %)1000|(% style="text-align:center; vertical-align:middle; width:107px" %)200 to 20000|(% rowspan="2" %)(% style="width:321px" %)Increasing the model tracking control gain can improve the position response performance of the model loop. If the gain is too high, it may cause overshoot behavior. The gain compensation affects the damping ratio of the model loop, and the damping ratio becomes larger as the gain compensation becomes larger.|(% style="text-align:center; vertical-align:middle" %)0.1/s 388 + 389 +|=(% style="text-align: center; vertical-align: middle; width: 120px;" %)P2-22|(% style="text-align:center; vertical-align:middle; width:163px" %)Model tracking control gain compensation|Shutdown setting|((( 391 391 Effective immediately 392 -)))| (% style="text-align:center; vertical-align:middle; width:103px" %)1000|(% style="text-align:center; vertical-align:middle; width:107px" %)500 to 2000|(% style="text-align:center; vertical-align:middle" %)0.10%391 +)))|1000|(% style="text-align:center; vertical-align:middle; width:107px" %)500 to 2000|(% style="text-align:center; vertical-align:middle" %)0.10% 393 393 394 394 (% class="table-bordered" %) 395 395 |=(% scope="row" style="text-align: center; vertical-align: middle; width: 120px;" %)**Function code**|=(% style="text-align: center; vertical-align: middle; width: 163px;" %)**Name**|=(% style="text-align: center; vertical-align: middle; width: 122px;" %)((( ... ... @@ -399,844 +399,24 @@ 399 399 )))|=(% style="text-align: center; vertical-align: middle; width: 103px;" %)**Default value**|=(% style="text-align: center; vertical-align: middle; width: 107px;" %)**Range**|=(% style="text-align: center; vertical-align: middle; width: 321px;" %)**Definition**|=(% style="text-align: center; vertical-align: middle;" %)**Unit** 400 400 |=(% style="text-align: center; vertical-align: middle; width: 120px;" %)P2-23|(% style="text-align:center; vertical-align:middle; width:163px" %)Model tracking control forward rotation bias|((( 401 401 Operation setting 402 -)))|( % style="text-align:center; vertical-align:middle; width:128px" %)(((401 +)))|((( 403 403 Effective immediately 404 -)))|(% style="text-align:center; vertical-align:middle; width:103px" %)1000|(% style="text-align:center; vertical-align:middle; width:107px" %)0 to 10000|(% rowspan="2" %)(% style="width:321px" %)Torque feedforward size in the positive and reverse direction under model tracking control|(% style="text-align:center; vertical-align:middle" %)0.10% 403 +)))|(% style="text-align:center; vertical-align:middle; width:103px" %)1000|(% style="text-align:center; vertical-align:middle; width:107px" %)0 to 10000|(% rowspan="2" %)(% style="width:321px" %)Torque feedforward size in the positive and reverse direction under model tracking control|(% style="text-align:center; vertical-align:middle" %)0.10% 405 405 |=(% style="text-align: center; vertical-align: middle; width: 120px;" %)P2-24|(% style="text-align:center; vertical-align:middle; width:163px" %)Model tracking control reverses rotation bias|((( 406 406 Operation setting 407 -)))|( % style="text-align:center; vertical-align:middle; width:128px" %)(((406 +)))|((( 408 408 Effective immediately 409 -)))| (% style="text-align:center; vertical-align:middle; width:103px" %)1000|(% style="text-align:center; vertical-align:middle; width:107px" %)0 to 10000|(% style="text-align:center; vertical-align:middle" %)0.10%410 -|=(% style="text-align: center; vertical-align: middle; width: 120px;" %)P2-25|(% style="text-align:center; vertical-align:middle; width:163px" %)Model tracking control speed feedforward compensation|Operation setting|( % style="text-align:center; vertical-align:middle; width:128px" %)(((408 +)))|1000|(% style="text-align:center; vertical-align:middle; width:107px" %)0 to 10000|0.10% 409 +|=(% style="text-align: center; vertical-align: middle; width: 120px;" %)P2-25|(% style="text-align:center; vertical-align:middle; width:163px" %)Model tracking control speed feedforward compensation|Operation setting|((( 411 411 Effective immediately 412 412 )))|(% style="text-align:center; vertical-align:middle; width:103px" %)1000|(% style="text-align:center; vertical-align:middle; width:107px" %)0 to 10000|(% style="width:321px" %)The size of the speed feedforward under model tracking control|(% style="text-align:center; vertical-align:middle" %)0.10% 413 413 414 414 Please refer to the following for an example of the procedure of adjusting servo gain. 415 415 416 -(% style="width:1508px" %) 417 -|=(% style="text-align:center; vertical-align:middle; width:80px" %)**Step**|=(% style="text-align:center; vertical-align:middle; width:1420px" %)**Content** 418 -|=(% style="text-align: center; vertical-align: middle; width: 80px;" %)1|Please try to set the correct load inertia ratio parameter P3-1. 419 -|=(% style="text-align:center; vertical-align:middle; width:80px" %)2|If the automatic adjustment mode is used (P3-3 is set to 0), please set the basic rigidity level parameter P3-2. If in manual adjustment mode (P3-3 is set to 1), please set the gain P2-1~~P2-3 related to the position loop and speed loop and the torque filter time constant P4-4. The setting principle is mainly no vibration and overshoot. 420 -|=(% style="text-align: center; vertical-align: middle; width: 80px;" %)3|Turn on the model tracking function, set P2-20 to 1. 421 -|=(% style="text-align: center; vertical-align: middle; width: 80px;" %)4|Increase the model tracking gain P2-21 within the range of no overshoot and vibration occurring. 422 -|=(% style="text-align: center; vertical-align: middle; width: 80px;" %)5|If the rigidity level of step 2 is set relatively low, user can properly increase the rigidity level P3-2. 423 -|=(% style="text-align: center; vertical-align: middle; width: 80px;" %)6|When overshoot occurs, or the responses of forward rotation and reverse rotation are different, user can fine-tune through model tracking control forward bias P2-23, model tracking control reverse bias P2-24, model tracking control speed feedforward compensation P2 -25. 424 - 425 -== **Gain switching** == 426 - 427 -**Gain switching function:** 428 - 429 -● Switch to a lower gain in the motor stationary (servo enabled)state to suppress vibration; 430 - 431 -● Switch to a higher gain in the motor stationary state to shorten the positioning time; 432 - 433 -● Switch to a higher gain in the motor running state to get better command tracking performance; 434 - 435 -● Switch different gain settings by external signals depending on the load connected. 436 - 437 -**Gain switching parameter setting** 438 - 439 -①When P02-07=0 440 - 441 -Fixed use of the first gain (using P02-01~~P02-03), and the switching of P/PI (proportional/proportional integral) control could be realized through DI function 10 (GAIN-SEL, gain switching). 442 - 443 -(% style="text-align:center" %) 444 -((( 445 -(% class="wikigeneratedid img-thumbnail" style="display:inline-block" %) 446 -[[image:20230515-8.png||height="378" id="20230515-8.png" width="363"]] 447 -))) 448 - 449 -② When P02-07=1 450 - 451 -The switching conditions can be set through parameter P02-08 to realize switching between the first gain (P02-01~~P02-03) and the second gain (P02-04~~P02-06). 452 - 453 -(% style="text-align:center" %) 454 -((( 455 -(% class="wikigeneratedid img-thumbnail" style="display:inline-block" %) 456 -[[**Figure 7-9 Flow chart of gain switching when P02-07=1**>>image:20230515-9.png||id="20230515-9.png"]] 457 -))) 458 - 459 -|=(% style="text-align:center; vertical-align:middle; width:74px" %)**P02-08**|=(% style="text-align: center; vertical-align: middle; width: 238px;" %)**Content**|=(% style="text-align: center; vertical-align: middle; width: 1108px;" %)**Diagram** 460 -|=(% style="text-align:center; vertical-align:middle;width:74px" %)0|(% style="text-align:center; vertical-align:middle;" %)Fixed use of the first gain|(% style="width:1108px" %)~-~- 461 -|=(% style="text-align:center; vertical-align:middle; width:74px" %)1|(% style="text-align:center; vertical-align:middle;" %)Switching with DI|(% style="width:1108px" %)~-~- 462 -|=(% style="text-align:center; vertical-align:middle; width:74px" %)((( 463 -2 464 -)))|(% style="text-align:center; vertical-align:middle; width:238px" %)((( 465 -Large torque command 466 -)))|(% style="width:1108px" %) [[image:image-20230515140641-1.png||style="text-align:center; vertical-align:middle"]] 467 -|=(% style="text-align:center; vertical-align:middle;width:74px" %)((( 468 -3 469 -)))|(% style="text-align:center; vertical-align:middle; width:238px" %)Large actual torque|(% style="width:1108px" %)[[image:image-20230515140641-2.png||style="text-align:center; vertical-align:middle"]] 470 -|=(% style="text-align:center; vertical-align:middle;width:74px" %)((( 471 -4 472 -)))|(% style="width:238px" %)((( 473 -Large speed command 474 -)))|(% style="width:1108px" %)[[image:image-20230515140641-3.png]] 475 - 476 -|(% style="width:74px" %)**P02-08**|(% style="width:238px" %)**Content**|**Diagram** 477 -|=(% style="width:74px" %)((( 478 -5 479 -)))|(% style="width:238px" %)((( 480 - 481 -Fast actual speed 482 -)))|((( 483 - 484 -[[image:image-20230515140641-4.png]] 485 -))) 486 -|=(% style="width:74px" %)((( 487 -6 488 -)))|(% style="width:176px" %)((( 489 - 490 -Speed command change rate is large 491 -)))|[[image:image-20230515140641-5.png]] 492 -|=(% style="width:74px" %)((( 493 -7 494 -)))|(% style="width:176px" %)((( 495 - 496 -Large position deviation 497 -)))|[[image:image-20230515140641-6.png]] 498 -|=(% style="width:74px" %)((( 499 -8 500 -)))|(% style="width:176px" %)((( 501 -Position command 502 -)))|[[image:image-20230515140641-7.png]] 503 - 504 -|=(% style="width:73px" %)((( 505 -9 506 -)))|(% style="width:238px" %)((( 507 - 508 -Positioning completed 509 -)))|(% style="width:1179px" %)[[image:image-20230515140641-8.png]] 510 -|=(% style="width:73px" %)((( 511 -10 512 -)))|(% style="width:238px" %)((( 513 - 514 -Position command + actual speed 515 -)))|(% style="width:1179px" %)((( 516 - 517 -Refer to the chart below 518 -))) 519 - 520 -(% style="text-align:center" %) 521 -[[image:20230515-10.png]] 522 - 523 -Figure 7-10 P02-08=10 Position command + actual speed gain description 524 - 525 -Description of related parameters 526 - 527 -|(% rowspan="2" style="width:68px" %) 528 -**P02-07**|(% style="width:150px" %)**Parameter name**|**Setting method**|**Effective time**|**Default**|**Set range**|**Application category**|**Unit** 529 -|(% style="width:150px" %)The second gain switching mode|Operation setting|Effective immediately|0|0 to 1|Gain control| 530 -|(% colspan="8" %)((( 531 -Set the switching mode of the second gain. 532 - 533 -|**Setting value**|**Function** 534 -|0|((( 535 -The first gain is used by default. Switching using DI function 10 (GAIN-SEL, gain switching): 536 - 537 -DI logic invalid: PI control; 538 - 539 -DI logic valid: PI control. 540 -))) 541 -|1|The first gain and the second gain are switched by the setting value of P02-08. 542 -))) 543 - 544 -|(% rowspan="2" %) 545 -**P02-08**|**Parameter name**|**Setting method**|**Effective time**|**Default**|**Set range**|**Application category**|**Unit** 546 -|Gain switching condition selection|Operation setting|Effective immediately|0|0 to 10|Gain control| 547 -|(% colspan="8" %)((( 548 -Set the conditions for gain switching. 549 - 550 -|Setting value|Gain switching conditions|Details 551 -|0|The default is the first gain|Fixed use of the first gain 552 -|1|Switch by DI port|((( 553 -Use DI function 10 (GAIN-SEL, gain switching); 554 - 555 -DI logic is invalid: the first gain (P02-01~~P02-03); 556 - 557 -DI logic is valid: the second gain (P02-04~~P02-06). 558 -))) 559 -|2|Large torque command|((( 560 -In the previous first gain, when the absolute value of torque command is greater than (grade + hysteresis), the second gain is switched; 561 - 562 -In the previous second gain, when the absolute value of torque command is less than the value of (grade - hysteresis) and the duration is greater than [P02-13], the first gain is returned. 563 - 564 - 565 -))) 566 -|3|Large actual torque|((( 567 -In the previous first gain, when the absolute value of actual torque is greater than ( grade + hysteresis ), the second gain is switched; 568 - 569 -In the previous second gain, when the absolute value of actual torque is less than the value of (grade - hysteresis) and the duration is greater than [P02-13], the first gain is returned. 570 - 571 - 572 -))) 573 -|4|Large speed command|((( 574 -In the previous first gain, when the absolute value of speed command is greater than (grade + hysteresis), the second gain is switched; 575 - 576 -In the previous second gain, when the absolute value of speed command is less than the value of (grade - hysteresis) and the duration is greater than [P02-13], the first gain is returned . 577 - 578 - 579 -))) 580 -|5|Large actual speed|((( 581 -In the previous first gain, when the absolute value of actual speed is greater than (grade + hysteresis), the second gain is switched; 582 - 583 -In the previous second gain, when the absolute value of actual speed is less than the value of (grade - hysteresis) and the duration is greater than [P02-13], the first gain is returned . 584 - 585 - 586 -))) 587 -|((( 588 - 589 - 590 -6 591 -)))|((( 592 - 593 - 594 -Large rate of change in speed command 595 -)))|((( 596 -In the previous first gain, when the absolute value of the rate of change in speed command is greater than (grade + hysteresis), the second gain is switched; 597 - 598 -In the previous second gain, switch to the first gain when the absolute value of the rate of change in speed command is less than the value of (grade - hysteresis) and the duration is greater than [P02-13], the first gain is returned . 599 - 600 - 601 -))) 602 -|((( 603 - 604 - 605 -7 606 -)))|((( 607 - 608 - 609 -Large position deviation 610 -)))|((( 611 -In the previous first gain, when the absolute value of position deviation is greater than (grade + hysteresis), the second gain is switched; 612 - 613 -In the previous second gain, switch to the first gain when the absolute value of position deviation is less than the value of (grade - hysteresis) and the duration is greater than [P02-13], the first gain is returned . 614 -))) 615 -|8|Position command|((( 616 -In the previous first gain, if the position command is not 0, switch to the second gain; 617 - 618 -In the previous second gain, if the position command is 0 and the duration is greater than [P02-13], the first gain is returned. 619 -))) 620 -|((( 621 - 622 - 623 -9 624 -)))|((( 625 - 626 - 627 -Positioning complete 628 -)))|((( 629 -In the previous first gain, if the positioning is not completed, the second gain is switched; In the previous second gain, if the positioning is not completed and the duration is greater than [P02-13], the first gain is returned. 630 - 631 - 632 -))) 633 -|((( 634 - 635 - 636 -10 637 -)))|((( 638 - 639 - 640 -Position command + actual speed 641 -)))|((( 642 -In the previous first gain, if the position command is not 0, the second gain is switched; 643 - 644 -In the previous second gain, if the position command is 0, the duration is greater than [P02-13] and the absolute value of actual speed is less than ( grade - hysteresis). 645 - 646 - 647 -))) 648 - 649 - 650 -))) 651 - 652 -|(% rowspan="2" %) 653 -**P02-13**|**Parameter name**|**Setting method**|**Effective time**|**Default**|**Set range**|**Application category**|**Unit** 654 -|Delay Time for Gain Switching|Operation setting|Effective immediately|20|0 to 10000|Gain control|0.1ms 655 -|(% colspan="8" %)((( 656 -The duration of the switching condition required for the second gain to switch back to the first gain. 657 - 658 -[[image:image-20230515140953-9.png]] 659 - 660 -**✎**Note: This parameter is only valid when the second gain is switched back to the first gain. 661 -))) 662 - 663 -|(% rowspan="2" %) 664 -**P02-14**|**Parameter name**|**Setting method**|**Effective time**|**Default**|**Set range**|**Application category**|**Unit** 665 -|Gain switching grade|Operation setting|Effective immediately|50|0 to 20000|Gain control|According to the switching conditions 666 -|(% colspan="8" %)((( 667 -Set the grade of the gain condition. The generation of the actual switching action is affected by the two conditions of grade and hysteresis. 668 - 669 -[[image:image-20230515140953-10.png]] 670 -))) 671 - 672 -|(% rowspan="2" %) 673 -**P02-15**|**Parameter name**|**Setting method**|**Effective time**|**Default**|**Set range**|**Application category**|**Unit** 674 -|Gain switching hysteresis|Operation setting|Effective immediately|20|0 to 20000|Gain control|According to the switching conditions 675 -|(% colspan="8" %)((( 676 -Set the hysteresis to meet the gain switching condition. 677 - 678 -[[image:image-20230515140953-11.png]] 679 -))) 680 - 681 -|(% rowspan="2" %) 682 -**P02-16**|**Parameter name**|**Setting method**|**Effective time**|**Default**|**Set range**|**Application category**|**Unit** 683 -|Position loop gain switching time|Operation setting|Effective immediately|30|0 to 10000|Gain control|0.1ms 684 -|(% colspan="8" %)((( 685 -Set the time for switching from the first position loop (P02-01) to the second position loop (P02-04) in the position control mode. 686 - 687 -[[image:image-20230515140953-12.png]] 688 - 689 -If P02-04≤P02-01, then P02-16 is invalid, and the second gain is switched from the first gain immediately. 690 -))) 691 - 692 -== **Model Tracking Control Function** == 693 - 694 -Model tracking control is suitable for position control mode, which adds a model loop outside the three loop. In the model loop, new position commands, speed feedforward and torque feedforward and other control quantities are generated according to the user's response requirements to the system and the ideal motor control model. Applying these control quantities to the actual control loop can significantly improve the response performance and positioning performance of the position control, the design block diagram is as follows: 695 - 696 -(% style="text-align:center" %) 697 -[[image:20230515-7.png]] 698 - 699 -The usage method and conditions of model tracking control: 700 - 701 -~1. Correctly set the inertia ratio of the system P3-1, which can be obtained by monitoring the real-time load inertia ratio of U0-20. 702 - 703 -2. Set the load rigidity level P3-2, set an appropriate value, it is not need to set a high rigidity level (recommended value 17~~21 under rigid load). 704 - 705 -3. Set P2-20=1 to enable the function of model tracking control. 706 - 707 -4. Adjust the P2-21 model tracking control gain from small to large, and gradually increase in steps of 1000 until the responsiveness of the system meets the actual demand. The responsiveness of the system is mainly determined by this parameter. 708 - 709 -5. After the responsiveness meets the requirements, user can adjust the parameters appropriately to increase the load rigidity level P3-2. 710 - 711 -**✎Note**: Model tracking control is only available in position mode, and cannot be used in other modes. 712 - 713 -|**Function code**|**Name**|((( 714 -**Setting** 715 - 716 -**method** 717 -)))|((( 718 -**Effective** 719 - 720 -**time** 721 -)))|**Default**|**Range**|**Definition**|**Unit** 722 -|P2-20|Model tracking control function|Shutdown setting|((( 723 -Effective 724 - 725 -immediately 726 -)))|0|0 to 1|When the function code is set to 1, enable the model tracking control function.| 727 -|P2-21|Model tracking control gain|Shutdown setting|((( 728 -Effective 729 - 730 -immediately 731 -)))|1000|200 to 20000|(% rowspan="2" %)Increasing the model tracking control gain can improve the position response performance of the model loop. If the gain is too high, it may cause overshoot behavior. The gain compensation affects the damping ratio of the model loop, and the damping ratio becomes larger as the gain compensation becomes larger.|0.1/s 732 -|P2-22|Model tracking control gain compensation|Shutdown setting|((( 733 -Effective 734 - 735 -immediately 736 -)))|1000|500 to 2000|0.10% 737 - 738 -|**Function code**|**Name**|((( 739 -**Setting** 740 - 741 -**method** 742 -)))|((( 743 -**Effective** 744 - 745 -**time** 746 -)))|**Default**|**Range**|**Definition**|**Unit** 747 -|P2-23|Model tracking control forward rotation bias|((( 748 -Operation 749 - 750 -setting 751 -)))|((( 752 -Effective 753 - 754 -immediately 755 -)))|1000|0 to 10000|(% rowspan="2" %)Torque feedforward size in the positive and reverse direction under model tracking control|0.10% 756 -|P2-24|Model tracking control reverses rotation bias|((( 757 -Operation 758 - 759 -setting 760 -)))|((( 761 -Effective 762 - 763 -immediately 764 -)))|1000|0 to 10000|0.10% 765 -|P2-25|Model tracking control speed feedforward compensation|Operation setting|((( 766 -Effective 767 - 768 -immediately 769 -)))|1000|0 to 10000|The size of the speed feedforward under model tracking control|0.10% 770 - 771 -Please refer to the following for an example of the procedure of adjusting servo gain. 772 - 773 -|**Step**|**Content** 415 +|**Step**|** Content** 774 774 |1|Please try to set the correct load inertia ratio parameter P3-1. 775 775 |2|If the automatic adjustment mode is used (P3-3 is set to 0), please set the basic rigidity level parameter P3-2. If in manual adjustment mode (P3-3 is set to 1), please set the gain P2-1~~P2-3 related to the position loop and speed loop and the torque filter time constant P4-4. The setting principle is mainly no vibration and overshoot. 776 776 |3|Turn on the model tracking function, set P2-20 to 1. 777 -|4|Increase the model tracking gain P2-21 within the range of no overshoot and vibration occur. 419 +|4|Increase the model tracking gain P2-21 within the range of no overshoot and vibration occurring. 778 778 |5|If the rigidity level of step 2 is set relatively low, user can properly increase the rigidity level P3-2. 779 779 |6|When overshoot occurs, or the responses of forward rotation and reverse rotation are different, user can fine-tune through model tracking control forward bias P2-23, model tracking control reverse bias P2-24, model tracking control speed feedforward compensation P2 -25. 780 - 781 -== **Gain switching** == 782 - 783 -Gain switching function: 784 - 785 -●Switch to a lower gain in the motor stationary (servo enabled)state to suppress vibration; 786 - 787 -●Switch to a higher gain in the motor stationary state to shorten the positioning time; 788 - 789 -●Switch to a higher gain in the motor running state to get better command tracking performance; 790 - 791 -●Switch different gain settings by external signals depending on the load connected. 792 - 793 -(1) Gain switching parameter setting 794 - 795 -①When P02-07=0 796 - 797 -Fixed use of the first gain (using P02-01~~P02-03), and the switching of P/PI (proportional/proportional integral) control could be realized through DI function 10 (GAIN-SEL, gain switching). 798 - 799 -(% style="text-align:center" %) 800 -[[image:20230515-8.png]] 801 - 802 -② When P02-07=1 803 - 804 -The switching conditions can be set through parameter P02-08 to realize switching between the first gain (P02-01~~P02-03) and the second gain (P02-04~~P02-06). 805 - 806 -(% style="text-align:center" %) 807 -[[image:20230515-9.png]] 808 - 809 -Figure 7-9 Flow chart of gain switching when P02-07=1 810 - 811 -|(% style="width:72px" %)**P02-08**|(% style="width:146px" %)**Content**|**Diagram** 812 -|(% style="width:72px" %)0|(% style="width:146px" %)Fixed use of the first gain|~-~- 813 -|(% style="width:72px" %)1|(% style="width:146px" %)Switching with DI|~-~- 814 -|(% style="width:72px" %)((( 815 - 816 - 817 - 818 - 819 - 820 - 821 -2 822 -)))|(% style="width:146px" %)((( 823 - 824 - 825 - 826 - 827 - 828 - 829 -Large torque command 830 -)))|[[image:image-20230515140641-1.png]] 831 -|(% style="width:72px" %)((( 832 - 833 - 834 - 835 - 836 - 837 - 838 - 839 -3 840 -)))|(% style="width:146px" %)Large actual torque|[[image:image-20230515140641-2.png]] 841 -|(% style="width:72px" %)((( 842 - 843 - 844 - 845 - 846 - 847 - 848 -4 849 -)))|(% style="width:146px" %)((( 850 - 851 - 852 - 853 - 854 - 855 - 856 -Large speed command 857 -)))|[[image:image-20230515140641-3.png]] 858 - 859 -|(% style="width:74px" %)**P02-08**|(% style="width:176px" %)**Content**|**Diagram** 860 -|(% style="width:74px" %)((( 861 - 862 - 863 - 864 - 865 - 866 -5 867 -)))|(% style="width:176px" %)((( 868 - 869 - 870 - 871 - 872 - 873 -Fast actual speed 874 -)))|((( 875 - 876 - 877 -[[image:image-20230515140641-4.png]] 878 -))) 879 -|(% style="width:74px" %)((( 880 - 881 - 882 - 883 - 884 - 885 - 886 - 887 -6 888 -)))|(% style="width:176px" %)((( 889 - 890 - 891 - 892 - 893 - 894 - 895 - 896 -Speed command change rate is large 897 -)))|[[image:image-20230515140641-5.png]] 898 -|(% style="width:74px" %)((( 899 - 900 - 901 - 902 - 903 - 904 - 905 -7 906 - 907 - 908 -)))|(% style="width:176px" %)((( 909 - 910 - 911 - 912 - 913 - 914 - 915 -Large position deviation 916 -)))|[[image:image-20230515140641-6.png]] 917 -|(% style="width:74px" %)((( 918 - 919 - 920 - 921 - 922 - 923 -8 924 -)))|(% style="width:176px" %)((( 925 - 926 - 927 - 928 - 929 - 930 -Position command 931 -)))|[[image:image-20230515140641-7.png]] 932 - 933 -|(% style="width:73px" %)((( 934 - 935 - 936 - 937 - 938 - 939 - 940 -9 941 -)))|(% style="width:154px" %)((( 942 - 943 - 944 - 945 - 946 - 947 - 948 -Positioning completed 949 -)))|[[image:image-20230515140641-8.png]] 950 -|(% style="width:73px" %)((( 951 - 952 - 953 -10 954 - 955 - 956 -)))|(% style="width:154px" %)((( 957 - 958 - 959 -Position command + actual speed 960 -)))|((( 961 - 962 - 963 -Refer to the chart below 964 -))) 965 - 966 -(% style="text-align:center" %) 967 -[[image:20230515-10.png]] 968 - 969 -Figure 7-10 P02-08=10 Position command + actual speed gain description 970 - 971 -(2) Description of related parameters 972 - 973 -|(% rowspan="2" style="width:68px" %) 974 -**P02-07**|(% style="width:150px" %)**Parameter name**|**Setting method**|**Effective time**|**Default**|**Set range**|**Application category**|**Unit** 975 -|(% style="width:150px" %)The second gain switching mode|Operation setting|Effective immediately|0|0 to 1|Gain control| 976 -|(% colspan="8" %)((( 977 -Set the switching mode of the second gain. 978 - 979 -|**Setting value**|**Function** 980 -|0|((( 981 -The first gain is used by default. Switching using DI function 10 (GAIN-SEL, gain switching): 982 - 983 -DI logic invalid: PI control; 984 - 985 -DI logic valid: PI control. 986 -))) 987 -|1|The first gain and the second gain are switched by the setting value of P02-08. 988 -))) 989 - 990 -|(% rowspan="2" %) 991 -**P02-08**|**Parameter name**|**Setting method**|**Effective time**|**Default**|**Set range**|**Application category**|**Unit** 992 -|Gain switching condition selection|Operation setting|Effective immediately|0|0 to 10|Gain control| 993 -|(% colspan="8" %)((( 994 -Set the conditions for gain switching. 995 - 996 -|Setting value|Gain switching conditions|Details 997 -|0|The default is the first gain|Fixed use of the first gain 998 -|1|Switch by DI port|((( 999 -Use DI function 10 (GAIN-SEL, gain switching); 1000 - 1001 -DI logic is invalid: the first gain (P02-01~~P02-03); 1002 - 1003 -DI logic is valid: the second gain (P02-04~~P02-06). 1004 -))) 1005 -|2|Large torque command|((( 1006 -In the previous first gain, when the absolute value of torque command is greater than (grade + hysteresis), the second gain is switched; 1007 - 1008 -In the previous second gain, when the absolute value of torque command is less than the value of (grade - hysteresis) and the duration is greater than [P02-13], the first gain is returned. 1009 - 1010 - 1011 -))) 1012 -|3|Large actual torque|((( 1013 -In the previous first gain, when the absolute value of actual torque is greater than ( grade + hysteresis ), the second gain is switched; 1014 - 1015 -In the previous second gain, when the absolute value of actual torque is less than the value of (grade - hysteresis) and the duration is greater than [P02-13], the first gain is returned . 1016 - 1017 - 1018 -))) 1019 -|4|Large speed command|((( 1020 -In the previous first gain, when the absolute value of speed command is greater than (grade + hysteresis), the second gain is switched; 1021 - 1022 -In the previous second gain, when the absolute value of speed command is less than the value of (grade - hysteresis) and the duration is greater than [P02-13], the first gain is returned . 1023 - 1024 - 1025 -))) 1026 -|5|Large actual speed|((( 1027 -In the previous first gain, when the absolute value of actual speed is greater than (grade + hysteresis), the second gain is switched; 1028 - 1029 -In the previous second gain, when the absolute value of actual speed is less than the value of (grade - hysteresis) and the duration is greater than [P02-13], the first gain is returned . 1030 - 1031 - 1032 -))) 1033 -|((( 1034 - 1035 - 1036 -6 1037 -)))|((( 1038 - 1039 - 1040 -Large rate of change in speed command 1041 -)))|((( 1042 -In the previous first gain, when the absolute value of the rate of change in speed command is greater than (grade + hysteresis), the second gain is switched; 1043 - 1044 -In the previous second gain, switch to the first gain when the absolute value of the rate of change in speed command is less than the value of (grade - hysteresis) and the duration is greater than [P02-13], the first gain is returned . 1045 - 1046 - 1047 -))) 1048 -|((( 1049 - 1050 - 1051 -7 1052 -)))|((( 1053 - 1054 - 1055 -Large position deviation 1056 -)))|((( 1057 -In the previous first gain, when the absolute value of position deviation is greater than (grade + hysteresis), the second gain is switched; 1058 - 1059 -In the previous second gain, switch to the first gain when the absolute value of position deviation is less than the value of (grade - hysteresis) and the duration is greater than [P02-13], the first gain is returned . 1060 -))) 1061 -|8|Position command|((( 1062 -In the previous first gain, if the position command is not 0, switch to the second gain; 1063 - 1064 -In the previous second gain, if the position command is 0 and the duration is greater than [P02-13], the first gain is returned. 1065 -))) 1066 -|((( 1067 - 1068 - 1069 -9 1070 -)))|((( 1071 - 1072 - 1073 -Positioning complete 1074 -)))|((( 1075 -In the previous first gain, if the positioning is not completed, the second gain is switched; In the previous second gain, if the positioning is not completed and the duration is greater than [P02-13], the first gain is returned. 1076 - 1077 - 1078 -))) 1079 -|((( 1080 - 1081 - 1082 -10 1083 -)))|((( 1084 - 1085 - 1086 -Position command + actual speed 1087 -)))|((( 1088 -In the previous first gain, if the position command is not 0, the second gain is switched; 1089 - 1090 -In the previous second gain, if the position command is 0, the duration is greater than [P02-13] and the absolute value of actual speed is less than ( grade - hysteresis). 1091 - 1092 - 1093 -))) 1094 - 1095 - 1096 -))) 1097 - 1098 -|(% rowspan="2" %) 1099 -**P02-13**|**Parameter name**|**Setting method**|**Effective time**|**Default**|**Set range**|**Application category**|**Unit** 1100 -|Delay Time for Gain Switching|Operation setting|Effective immediately|20|0 to 10000|Gain control|0.1ms 1101 -|(% colspan="8" %)((( 1102 -The duration of the switching condition required for the second gain to switch back to the first gain. 1103 - 1104 -[[image:image-20230515140953-9.png]] 1105 - 1106 -**✎**Note: This parameter is only valid when the second gain is switched back to the first gain. 1107 -))) 1108 - 1109 -|(% rowspan="2" %) 1110 -**P02-14**|**Parameter name**|**Setting method**|**Effective time**|**Default**|**Set range**|**Application category**|**Unit** 1111 -|Gain switching grade|Operation setting|Effective immediately|50|0 to 20000|Gain control|According to the switching conditions 1112 -|(% colspan="8" %)((( 1113 -Set the grade of the gain condition. The generation of the actual switching action is affected by the two conditions of grade and hysteresis. 1114 - 1115 -[[image:image-20230515140953-10.png]] 1116 -))) 1117 - 1118 -|(% rowspan="2" %) 1119 -**P02-15**|**Parameter name**|**Setting method**|**Effective time**|**Default**|**Set range**|**Application category**|**Unit** 1120 -|Gain switching hysteresis|Operation setting|Effective immediately|20|0 to 20000|Gain control|According to the switching conditions 1121 -|(% colspan="8" %)((( 1122 -Set the hysteresis to meet the gain switching condition. 1123 - 1124 -[[image:image-20230515140953-11.png]] 1125 -))) 1126 - 1127 -|(% rowspan="2" %) 1128 -**P02-16**|**Parameter name**|**Setting method**|**Effective time**|**Default**|**Set range**|**Application category**|**Unit** 1129 -|Position loop gain switching time|Operation setting|Effective immediately|30|0 to 10000|Gain control|0.1ms 1130 -|(% colspan="8" %)((( 1131 -Set the time for switching from the first position loop (P02-01) to the second position loop (P02-04) in the position control mode. 1132 - 1133 -[[image:image-20230515140953-12.png]] 1134 - 1135 -If P02-04≤P02-01, then P02-16 is invalid, and the second gain is switched from the first gain immediately. 1136 -))) 1137 - 1138 -= **Mechanical resonance suppression** = 1139 - 1140 -== Mechanical resonance suppression methods == 1141 - 1142 -When the mechanical rigidity is low, vibration and noise may occur due to resonance caused by shaft twisting, and it may not be possible to increase the gain setting. In this case, by using a notch filter to reduce the gain at a specific frequency, after resonance is effectively suppressed, you can continue to increase the servo gain. There are 2 methods to suppress mechanical resonance. 1143 - 1144 -**Torque instruction filter** 1145 - 1146 -By setting the filter time constant, the torque instruction is attenuated in the high frequency range above the cutoff frequency, so as to achieve the expectation of suppressing mechanical resonance. The cut-off frequency of the torque instruction filter could be calculated by the following formula: 1147 - 1148 -(% style="text-align:center" %) 1149 -[[image:image-20220706155820-5.jpeg||class="img-thumbnail"]] 1150 - 1151 -**Notch filter** 1152 - 1153 -The notch filter can achieve the expectation of suppressing mechanical resonance by reducing the gain at a specific frequency. When setting the notch filter correctly, the vibration can be effectively suppressed. You can try to increase the servo gain. The principle of the notch filter is shown in __Figure 7-3__. 1154 - 1155 -== Notch filter == 1156 - 1157 -The VD2 series servo drives have 2 sets of notch filters, each of which has 3 parameters, namely notch frequency, width grade and depth grade. 1158 - 1159 -**Width grade of notch filter** 1160 - 1161 -The notch width grade is used to express the ratio of the notch width to the center frequency of the notch: 1162 - 1163 -(% style="text-align:center" %) 1164 -[[image:image-20220706155836-6.png||class="img-thumbnail"]] 1165 - 1166 -In formula (7-1), [[image:image-20220706155946-7.png]] is the center frequency of notch filter, that is, the mechanical resonance frequency; [[image:image-20220706155952-8.png]] is the width of notch filter, which represents the frequency bandwidth with an amplitude attenuation rate of **-3dB** relative to the center frequency of notch filter. 1167 - 1168 -**Depth grade of notch filter** 1169 - 1170 -The depth grade of notch filter represents the ratio relationship between input and output at center frequency. 1171 - 1172 -When the notch filter depth grade is 0, the input is completely suppressed at center frequency. When the notch filter depth grade is 100, the input is completely passable at center frequency. Therefore, the smaller the the notch filter depth grade is set, the deeper the the notch filter depth, and the stronger the suppression of mechanical resonance. But the system may be unstable, you should pay attention to it when using it. The specific relationship is shown in __Figure 7-4__. 1173 - 1174 -(% style="text-align:center" %) 1175 -((( 1176 -(% class="wikigeneratedid img-thumbnail" style="display:inline-block" %) 1177 -[[Figure 7-7 Notch characteristics, notch width, and notch depth>>image:image-20220608174259-3.png||id="Iimage-20220608174259-3.png"]] 1178 -))) 1179 - 1180 - 1181 -(% style="text-align:center" %) 1182 -((( 1183 -(% class="wikigeneratedid img-thumbnail" style="display:inline-block" %) 1184 -[[Figure 7-8 Frequency characteristics of notch filter>>image:image-20220706160046-9.png||id="Iimage-20220706160046-9.png"]] 1185 -))) 1186 - 1187 - 1188 -(% class="table-bordered" %) 1189 -|=(% scope="row" style="text-align: center; vertical-align: middle; width: 113px;" %)**Function code**|=(% style="text-align: center; vertical-align: middle; width: 155px;" %)**Name**|=(% style="text-align: center; vertical-align: middle; width: 115px;" %)((( 1190 -**Setting method** 1191 -)))|=(% style="text-align: center; vertical-align: middle; width: 121px;" %)((( 1192 -**Effective time** 1193 -)))|=(% style="text-align: center; vertical-align: middle; width: 99px;" %)**Default value**|=(% style="text-align: center; vertical-align: middle; width: 102px;" %)**Range**|=(% style="text-align: center; vertical-align: middle; width: 362px;" %)**Definition**|=(% style="text-align: center; vertical-align: middle; width: 96px;" %)**Unit** 1194 -|=(% style="text-align: center; vertical-align: middle; width: 113px;" %)P04-05|(% style="text-align:center; vertical-align:middle; width:155px" %)1st notch filter frequency|(% style="text-align:center; vertical-align:middle; width:115px" %)((( 1195 -Operation setting 1196 -)))|(% style="text-align:center; vertical-align:middle; width:121px" %)((( 1197 -Effective immediately 1198 -)))|(% style="text-align:center; vertical-align:middle; width:99px" %)300|(% style="text-align:center; vertical-align:middle; width:102px" %)250 to 5000|(% style="width:362px" %)Set the center frequency of the 1st notch filter. When the set value is 5000, the function of notch filter is invalid.|(% style="text-align:center; vertical-align:middle; width:96px" %)Hz 1199 -|=(% style="text-align: center; vertical-align: middle; width: 113px;" %)P04-06|(% style="text-align:center; vertical-align:middle; width:155px" %)1st notch filter depth|(% style="text-align:center; vertical-align:middle; width:115px" %)((( 1200 -Operation setting 1201 -)))|(% style="text-align:center; vertical-align:middle; width:121px" %)((( 1202 -Effective immediately 1203 -)))|(% style="text-align:center; vertical-align:middle; width:99px" %)100|(% style="text-align:center; vertical-align:middle; width:102px" %)0 to 100|(% style="width:362px" %)((( 1204 -1. 0: all truncated 1205 -1. 100: all passed 1206 -)))|(% style="text-align:center; vertical-align:middle; width:96px" %)- 1207 -|=(% style="text-align: center; vertical-align: middle; width: 113px;" %)P04-07|(% style="text-align:center; vertical-align:middle; width:155px" %)1st notch filter width|(% style="text-align:center; vertical-align:middle; width:115px" %)((( 1208 -Operation setting 1209 -)))|(% style="text-align:center; vertical-align:middle; width:121px" %)((( 1210 -Effective immediately 1211 -)))|(% style="text-align:center; vertical-align:middle; width:99px" %)4|(% style="text-align:center; vertical-align:middle; width:102px" %)0 to 12|(% style="width:362px" %)((( 1212 -1. 0: 0.5 times the bandwidth 1213 -1. 4: 1 times the bandwidth 1214 -1. 8: 2 times the bandwidth 1215 -1. 12: 4 times the bandwidth 1216 -)))|(% style="text-align:center; vertical-align:middle; width:96px" %)- 1217 -|=(% style="text-align: center; vertical-align: middle; width: 113px;" %)P04-08|(% style="text-align:center; vertical-align:middle; width:155px" %)2nd notch filter frequency|(% style="text-align:center; vertical-align:middle; width:115px" %)((( 1218 -Operation setting 1219 -)))|(% style="text-align:center; vertical-align:middle; width:121px" %)((( 1220 -Effective immediately 1221 -)))|(% style="text-align:center; vertical-align:middle; width:99px" %)500|(% style="text-align:center; vertical-align:middle; width:102px" %)250 to 5000|(% style="width:362px" %)Set the center frequency of the 2nd notch filter. When the set value is 5000, the function of the notch filter is invalid.|(% style="text-align:center; vertical-align:middle; width:96px" %)Hz 1222 -|=(% style="text-align: center; vertical-align: middle; width: 113px;" %)P04-09|(% style="text-align:center; vertical-align:middle; width:155px" %)2nd notch filter depth|(% style="text-align:center; vertical-align:middle; width:115px" %)((( 1223 -Operation setting 1224 -)))|(% style="text-align:center; vertical-align:middle; width:121px" %)((( 1225 -Effective immediately 1226 -)))|(% style="text-align:center; vertical-align:middle; width:99px" %)100|(% style="text-align:center; vertical-align:middle; width:102px" %)0 to 100|(% style="width:362px" %)((( 1227 -1. 0: all truncated 1228 -1. 100: all passed 1229 -)))|(% style="text-align:center; vertical-align:middle; width:96px" %)- 1230 -|=(% style="text-align: center; vertical-align: middle; width: 113px;" %)P04-10|(% style="text-align:center; vertical-align:middle; width:155px" %)2nd notch filter width|(% style="text-align:center; vertical-align:middle; width:115px" %)((( 1231 -Operation setting 1232 -)))|(% style="text-align:center; vertical-align:middle; width:121px" %)((( 1233 -Effective immediately 1234 -)))|(% style="text-align:center; vertical-align:middle; width:99px" %)4|(% style="text-align:center; vertical-align:middle; width:102px" %)0 to 12|(% style="width:362px" %)((( 1235 -1. 0: 0.5 times the bandwidth 1236 -1. 4: 1 times the bandwidth 1237 -1. 8: 2 times the bandwidth 1238 -1. 12: 4 times the bandwidth 1239 -)))|(% style="text-align:center; vertical-align:middle; width:96px" %)- 1240 - 1241 -Table 7-11 Notch filter function code parameters 1242 -~)~)~)