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
-
... ... @@ -419,3 +419,912 @@ 419 419 |4|Increase the model tracking gain P2-21 within the range of no overshoot and vibration occurring. 420 420 |5|If the rigidity level of step 2 is set relatively low, user can properly increase the rigidity level P3-2. 421 421 |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. 422 + 423 +== **Gain switching** == 424 + 425 +Gain switching function: 426 + 427 +●Switch to a lower gain in the motor stationary (servo enabled)state to suppress vibration; 428 + 429 +●Switch to a higher gain in the motor stationary state to shorten the positioning time; 430 + 431 +●Switch to a higher gain in the motor running state to get better command tracking performance; 432 + 433 +●Switch different gain settings by external signals depending on the load connected. 434 + 435 +(1) Gain switching parameter setting 436 + 437 +①When P02-07=0 438 + 439 +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). 440 + 441 +(% style="text-align:center" %) 442 +[[image:20230515-8.png]] 443 + 444 +② When P02-07=1 445 + 446 +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). 447 + 448 +(% style="text-align:center" %) 449 +[[image:20230515-9.png]] 450 + 451 +Figure 7-9 Flow chart of gain switching when P02-07=1 452 + 453 +|(% style="width:72px" %)**P02-08**|(% style="width:146px" %)**Content**|**Diagram** 454 +|(% style="width:72px" %)0|(% style="width:146px" %)Fixed use of the first gain|~-~- 455 +|(% style="width:72px" %)1|(% style="width:146px" %)Switching with DI|~-~- 456 +|(% style="width:72px" %)((( 457 + 458 + 459 + 460 + 461 + 462 + 463 +2 464 +)))|(% style="width:146px" %)((( 465 + 466 + 467 + 468 + 469 + 470 + 471 +Large torque command 472 +)))|[[image:image-20230515140641-1.png]] 473 +|(% style="width:72px" %)((( 474 + 475 + 476 + 477 + 478 + 479 + 480 + 481 +3 482 +)))|(% style="width:146px" %)Large actual torque|[[image:image-20230515140641-2.png]] 483 +|(% style="width:72px" %)((( 484 + 485 + 486 + 487 + 488 + 489 + 490 +4 491 +)))|(% style="width:146px" %)((( 492 + 493 + 494 + 495 + 496 + 497 + 498 +Large speed command 499 +)))|[[image:image-20230515140641-3.png]] 500 + 501 +|(% style="width:74px" %)**P02-08**|(% style="width:176px" %)**Content**|**Diagram** 502 +|(% style="width:74px" %)((( 503 + 504 + 505 + 506 + 507 + 508 +5 509 +)))|(% style="width:176px" %)((( 510 + 511 + 512 + 513 + 514 + 515 +Fast actual speed 516 +)))|((( 517 + 518 + 519 +[[image:image-20230515140641-4.png]] 520 +))) 521 +|(% style="width:74px" %)((( 522 + 523 + 524 + 525 + 526 + 527 + 528 + 529 +6 530 +)))|(% style="width:176px" %)((( 531 + 532 + 533 + 534 + 535 + 536 + 537 + 538 +Speed command change rate is large 539 +)))|[[image:image-20230515140641-5.png]] 540 +|(% style="width:74px" %)((( 541 + 542 + 543 + 544 + 545 + 546 + 547 +7 548 + 549 + 550 +)))|(% style="width:176px" %)((( 551 + 552 + 553 + 554 + 555 + 556 + 557 +Large position deviation 558 +)))|[[image:image-20230515140641-6.png]] 559 +|(% style="width:74px" %)((( 560 + 561 + 562 + 563 + 564 + 565 +8 566 +)))|(% style="width:176px" %)((( 567 + 568 + 569 + 570 + 571 + 572 +Position command 573 +)))|[[image:image-20230515140641-7.png]] 574 + 575 +|(% style="width:73px" %)((( 576 + 577 + 578 + 579 + 580 + 581 + 582 +9 583 +)))|(% style="width:154px" %)((( 584 + 585 + 586 + 587 + 588 + 589 + 590 +Positioning completed 591 +)))|[[image:image-20230515140641-8.png]] 592 +|(% style="width:73px" %)((( 593 + 594 + 595 +10 596 + 597 + 598 +)))|(% style="width:154px" %)((( 599 + 600 + 601 +Position command + actual speed 602 +)))|((( 603 + 604 + 605 +Refer to the chart below 606 +))) 607 + 608 +(% style="text-align:center" %) 609 +[[image:20230515-10.png]] 610 + 611 +Figure 7-10 P02-08=10 Position command + actual speed gain description 612 + 613 +(2) Description of related parameters 614 + 615 +|(% rowspan="2" style="width:68px" %) 616 +**P02-07**|(% style="width:150px" %)**Parameter name**|**Setting method**|**Effective time**|**Default**|**Set range**|**Application category**|**Unit** 617 +|(% style="width:150px" %)The second gain switching mode|Operation setting|Effective immediately|0|0 to 1|Gain control| 618 +|(% colspan="8" %)((( 619 +Set the switching mode of the second gain. 620 + 621 +|**Setting value**|**Function** 622 +|0|((( 623 +The first gain is used by default. Switching using DI function 10 (GAIN-SEL, gain switching): 624 + 625 +DI logic invalid: PI control; 626 + 627 +DI logic valid: PI control. 628 +))) 629 +|1|The first gain and the second gain are switched by the setting value of P02-08. 630 +))) 631 + 632 +|(% rowspan="2" %) 633 +**P02-08**|**Parameter name**|**Setting method**|**Effective time**|**Default**|**Set range**|**Application category**|**Unit** 634 +|Gain switching condition selection|Operation setting|Effective immediately|0|0 to 10|Gain control| 635 +|(% colspan="8" %)((( 636 +Set the conditions for gain switching. 637 + 638 +|Setting value|Gain switching conditions|Details 639 +|0|The default is the first gain|Fixed use of the first gain 640 +|1|Switch by DI port|((( 641 +Use DI function 10 (GAIN-SEL, gain switching); 642 + 643 +DI logic is invalid: the first gain (P02-01~~P02-03); 644 + 645 +DI logic is valid: the second gain (P02-04~~P02-06). 646 +))) 647 +|2|Large torque command|((( 648 +In the previous first gain, when the absolute value of torque command is greater than (grade + hysteresis), the second gain is switched; 649 + 650 +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. 651 + 652 + 653 +))) 654 +|3|Large actual torque|((( 655 +In the previous first gain, when the absolute value of actual torque is greater than ( grade + hysteresis ), the second gain is switched; 656 + 657 +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 . 658 + 659 + 660 +))) 661 +|4|Large speed command|((( 662 +In the previous first gain, when the absolute value of speed command is greater than (grade + hysteresis), the second gain is switched; 663 + 664 +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 . 665 + 666 + 667 +))) 668 +|5|Large actual speed|((( 669 +In the previous first gain, when the absolute value of actual speed is greater than (grade + hysteresis), the second gain is switched; 670 + 671 +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 . 672 + 673 + 674 +))) 675 +|((( 676 + 677 + 678 +6 679 +)))|((( 680 + 681 + 682 +Large rate of change in speed command 683 +)))|((( 684 +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; 685 + 686 +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 . 687 + 688 + 689 +))) 690 +|((( 691 + 692 + 693 +7 694 +)))|((( 695 + 696 + 697 +Large position deviation 698 +)))|((( 699 +In the previous first gain, when the absolute value of position deviation is greater than (grade + hysteresis), the second gain is switched; 700 + 701 +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 . 702 +))) 703 +|8|Position command|((( 704 +In the previous first gain, if the position command is not 0, switch to the second gain; 705 + 706 +In the previous second gain, if the position command is 0 and the duration is greater than [P02-13], the first gain is returned. 707 +))) 708 +|((( 709 + 710 + 711 +9 712 +)))|((( 713 + 714 + 715 +Positioning complete 716 +)))|((( 717 +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. 718 + 719 + 720 +))) 721 +|((( 722 + 723 + 724 +10 725 +)))|((( 726 + 727 + 728 +Position command + actual speed 729 +)))|((( 730 +In the previous first gain, if the position command is not 0, the second gain is switched; 731 + 732 +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). 733 + 734 + 735 +))) 736 + 737 + 738 +))) 739 + 740 +|(% rowspan="2" %) 741 +**P02-13**|**Parameter name**|**Setting method**|**Effective time**|**Default**|**Set range**|**Application category**|**Unit** 742 +|Delay Time for Gain Switching|Operation setting|Effective immediately|20|0 to 10000|Gain control|0.1ms 743 +|(% colspan="8" %)((( 744 +The duration of the switching condition required for the second gain to switch back to the first gain. 745 + 746 +[[image:image-20230515140953-9.png]] 747 + 748 +**✎**Note: This parameter is only valid when the second gain is switched back to the first gain. 749 +))) 750 + 751 +|(% rowspan="2" %) 752 +**P02-14**|**Parameter name**|**Setting method**|**Effective time**|**Default**|**Set range**|**Application category**|**Unit** 753 +|Gain switching grade|Operation setting|Effective immediately|50|0 to 20000|Gain control|According to the switching conditions 754 +|(% colspan="8" %)((( 755 +Set the grade of the gain condition. The generation of the actual switching action is affected by the two conditions of grade and hysteresis. 756 + 757 +[[image:image-20230515140953-10.png]] 758 +))) 759 + 760 +|(% rowspan="2" %) 761 +**P02-15**|**Parameter name**|**Setting method**|**Effective time**|**Default**|**Set range**|**Application category**|**Unit** 762 +|Gain switching hysteresis|Operation setting|Effective immediately|20|0 to 20000|Gain control|According to the switching conditions 763 +|(% colspan="8" %)((( 764 +Set the hysteresis to meet the gain switching condition. 765 + 766 +[[image:image-20230515140953-11.png]] 767 +))) 768 + 769 +|(% rowspan="2" %) 770 +**P02-16**|**Parameter name**|**Setting method**|**Effective time**|**Default**|**Set range**|**Application category**|**Unit** 771 +|Position loop gain switching time|Operation setting|Effective immediately|30|0 to 10000|Gain control|0.1ms 772 +|(% colspan="8" %)((( 773 +Set the time for switching from the first position loop (P02-01) to the second position loop (P02-04) in the position control mode. 774 + 775 +[[image:image-20230515140953-12.png]] 776 + 777 +If P02-04≤P02-01, then P02-16 is invalid, and the second gain is switched from the first gain immediately. 778 +))) 779 + 780 +== **Model Tracking Control Function** == 781 + 782 +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: 783 + 784 +(% style="text-align:center" %) 785 +[[image:20230515-7.png]] 786 + 787 +The usage method and conditions of model tracking control: 788 + 789 +~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. 790 + 791 +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). 792 + 793 +3. Set P2-20=1 to enable the function of model tracking control. 794 + 795 +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. 796 + 797 +5. After the responsiveness meets the requirements, user can adjust the parameters appropriately to increase the load rigidity level P3-2. 798 + 799 +**✎Note**: Model tracking control is only available in position mode, and cannot be used in other modes. 800 + 801 +|**Function code**|**Name**|((( 802 +**Setting** 803 + 804 +**method** 805 +)))|((( 806 +**Effective** 807 + 808 +**time** 809 +)))|**Default**|**Range**|**Definition**|**Unit** 810 +|P2-20|Model tracking control function|Shutdown setting|((( 811 +Effective 812 + 813 +immediately 814 +)))|0|0 to 1|When the function code is set to 1, enable the model tracking control function.| 815 +|P2-21|Model tracking control gain|Shutdown setting|((( 816 +Effective 817 + 818 +immediately 819 +)))|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 820 +|P2-22|Model tracking control gain compensation|Shutdown setting|((( 821 +Effective 822 + 823 +immediately 824 +)))|1000|500 to 2000|0.10% 825 + 826 +|**Function code**|**Name**|((( 827 +**Setting** 828 + 829 +**method** 830 +)))|((( 831 +**Effective** 832 + 833 +**time** 834 +)))|**Default**|**Range**|**Definition**|**Unit** 835 +|P2-23|Model tracking control forward rotation bias|((( 836 +Operation 837 + 838 +setting 839 +)))|((( 840 +Effective 841 + 842 +immediately 843 +)))|1000|0 to 10000|(% rowspan="2" %)Torque feedforward size in the positive and reverse direction under model tracking control|0.10% 844 +|P2-24|Model tracking control reverses rotation bias|((( 845 +Operation 846 + 847 +setting 848 +)))|((( 849 +Effective 850 + 851 +immediately 852 +)))|1000|0 to 10000|0.10% 853 +|P2-25|Model tracking control speed feedforward compensation|Operation setting|((( 854 +Effective 855 + 856 +immediately 857 +)))|1000|0 to 10000|The size of the speed feedforward under model tracking control|0.10% 858 + 859 +Please refer to the following for an example of the procedure of adjusting servo gain. 860 + 861 +|**Step**|**Content** 862 +|1|Please try to set the correct load inertia ratio parameter P3-1. 863 +|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. 864 +|3|Turn on the model tracking function, set P2-20 to 1. 865 +|4|Increase the model tracking gain P2-21 within the range of no overshoot and vibration occur. 866 +|5|If the rigidity level of step 2 is set relatively low, user can properly increase the rigidity level P3-2. 867 +|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. 868 + 869 +== **Gain switching** == 870 + 871 +Gain switching function: 872 + 873 +●Switch to a lower gain in the motor stationary (servo enabled)state to suppress vibration; 874 + 875 +●Switch to a higher gain in the motor stationary state to shorten the positioning time; 876 + 877 +●Switch to a higher gain in the motor running state to get better command tracking performance; 878 + 879 +●Switch different gain settings by external signals depending on the load connected. 880 + 881 +(1) Gain switching parameter setting 882 + 883 +①When P02-07=0 884 + 885 +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). 886 + 887 +(% style="text-align:center" %) 888 +[[image:20230515-8.png]] 889 + 890 +② When P02-07=1 891 + 892 +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). 893 + 894 +(% style="text-align:center" %) 895 +[[image:20230515-9.png]] 896 + 897 +Figure 7-9 Flow chart of gain switching when P02-07=1 898 + 899 +|(% style="width:72px" %)**P02-08**|(% style="width:146px" %)**Content**|**Diagram** 900 +|(% style="width:72px" %)0|(% style="width:146px" %)Fixed use of the first gain|~-~- 901 +|(% style="width:72px" %)1|(% style="width:146px" %)Switching with DI|~-~- 902 +|(% style="width:72px" %)((( 903 + 904 + 905 + 906 + 907 + 908 + 909 +2 910 +)))|(% style="width:146px" %)((( 911 + 912 + 913 + 914 + 915 + 916 + 917 +Large torque command 918 +)))|[[image:image-20230515140641-1.png]] 919 +|(% style="width:72px" %)((( 920 + 921 + 922 + 923 + 924 + 925 + 926 + 927 +3 928 +)))|(% style="width:146px" %)Large actual torque|[[image:image-20230515140641-2.png]] 929 +|(% style="width:72px" %)((( 930 + 931 + 932 + 933 + 934 + 935 + 936 +4 937 +)))|(% style="width:146px" %)((( 938 + 939 + 940 + 941 + 942 + 943 + 944 +Large speed command 945 +)))|[[image:image-20230515140641-3.png]] 946 + 947 +|(% style="width:74px" %)**P02-08**|(% style="width:176px" %)**Content**|**Diagram** 948 +|(% style="width:74px" %)((( 949 + 950 + 951 + 952 + 953 + 954 +5 955 +)))|(% style="width:176px" %)((( 956 + 957 + 958 + 959 + 960 + 961 +Fast actual speed 962 +)))|((( 963 + 964 + 965 +[[image:image-20230515140641-4.png]] 966 +))) 967 +|(% style="width:74px" %)((( 968 + 969 + 970 + 971 + 972 + 973 + 974 + 975 +6 976 +)))|(% style="width:176px" %)((( 977 + 978 + 979 + 980 + 981 + 982 + 983 + 984 +Speed command change rate is large 985 +)))|[[image:image-20230515140641-5.png]] 986 +|(% style="width:74px" %)((( 987 + 988 + 989 + 990 + 991 + 992 + 993 +7 994 + 995 + 996 +)))|(% style="width:176px" %)((( 997 + 998 + 999 + 1000 + 1001 + 1002 + 1003 +Large position deviation 1004 +)))|[[image:image-20230515140641-6.png]] 1005 +|(% style="width:74px" %)((( 1006 + 1007 + 1008 + 1009 + 1010 + 1011 +8 1012 +)))|(% style="width:176px" %)((( 1013 + 1014 + 1015 + 1016 + 1017 + 1018 +Position command 1019 +)))|[[image:image-20230515140641-7.png]] 1020 + 1021 +|(% style="width:73px" %)((( 1022 + 1023 + 1024 + 1025 + 1026 + 1027 + 1028 +9 1029 +)))|(% style="width:154px" %)((( 1030 + 1031 + 1032 + 1033 + 1034 + 1035 + 1036 +Positioning completed 1037 +)))|[[image:image-20230515140641-8.png]] 1038 +|(% style="width:73px" %)((( 1039 + 1040 + 1041 +10 1042 + 1043 + 1044 +)))|(% style="width:154px" %)((( 1045 + 1046 + 1047 +Position command + actual speed 1048 +)))|((( 1049 + 1050 + 1051 +Refer to the chart below 1052 +))) 1053 + 1054 +(% style="text-align:center" %) 1055 +[[image:20230515-10.png]] 1056 + 1057 +Figure 7-10 P02-08=10 Position command + actual speed gain description 1058 + 1059 +(2) Description of related parameters 1060 + 1061 +|(% rowspan="2" style="width:68px" %) 1062 +**P02-07**|(% style="width:150px" %)**Parameter name**|**Setting method**|**Effective time**|**Default**|**Set range**|**Application category**|**Unit** 1063 +|(% style="width:150px" %)The second gain switching mode|Operation setting|Effective immediately|0|0 to 1|Gain control| 1064 +|(% colspan="8" %)((( 1065 +Set the switching mode of the second gain. 1066 + 1067 +|**Setting value**|**Function** 1068 +|0|((( 1069 +The first gain is used by default. Switching using DI function 10 (GAIN-SEL, gain switching): 1070 + 1071 +DI logic invalid: PI control; 1072 + 1073 +DI logic valid: PI control. 1074 +))) 1075 +|1|The first gain and the second gain are switched by the setting value of P02-08. 1076 +))) 1077 + 1078 +|(% rowspan="2" %) 1079 +**P02-08**|**Parameter name**|**Setting method**|**Effective time**|**Default**|**Set range**|**Application category**|**Unit** 1080 +|Gain switching condition selection|Operation setting|Effective immediately|0|0 to 10|Gain control| 1081 +|(% colspan="8" %)((( 1082 +Set the conditions for gain switching. 1083 + 1084 +|Setting value|Gain switching conditions|Details 1085 +|0|The default is the first gain|Fixed use of the first gain 1086 +|1|Switch by DI port|((( 1087 +Use DI function 10 (GAIN-SEL, gain switching); 1088 + 1089 +DI logic is invalid: the first gain (P02-01~~P02-03); 1090 + 1091 +DI logic is valid: the second gain (P02-04~~P02-06). 1092 +))) 1093 +|2|Large torque command|((( 1094 +In the previous first gain, when the absolute value of torque command is greater than (grade + hysteresis), the second gain is switched; 1095 + 1096 +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. 1097 + 1098 + 1099 +))) 1100 +|3|Large actual torque|((( 1101 +In the previous first gain, when the absolute value of actual torque is greater than ( grade + hysteresis ), the second gain is switched; 1102 + 1103 +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 . 1104 + 1105 + 1106 +))) 1107 +|4|Large speed command|((( 1108 +In the previous first gain, when the absolute value of speed command is greater than (grade + hysteresis), the second gain is switched; 1109 + 1110 +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 . 1111 + 1112 + 1113 +))) 1114 +|5|Large actual speed|((( 1115 +In the previous first gain, when the absolute value of actual speed is greater than (grade + hysteresis), the second gain is switched; 1116 + 1117 +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 . 1118 + 1119 + 1120 +))) 1121 +|((( 1122 + 1123 + 1124 +6 1125 +)))|((( 1126 + 1127 + 1128 +Large rate of change in speed command 1129 +)))|((( 1130 +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; 1131 + 1132 +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 . 1133 + 1134 + 1135 +))) 1136 +|((( 1137 + 1138 + 1139 +7 1140 +)))|((( 1141 + 1142 + 1143 +Large position deviation 1144 +)))|((( 1145 +In the previous first gain, when the absolute value of position deviation is greater than (grade + hysteresis), the second gain is switched; 1146 + 1147 +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 . 1148 +))) 1149 +|8|Position command|((( 1150 +In the previous first gain, if the position command is not 0, switch to the second gain; 1151 + 1152 +In the previous second gain, if the position command is 0 and the duration is greater than [P02-13], the first gain is returned. 1153 +))) 1154 +|((( 1155 + 1156 + 1157 +9 1158 +)))|((( 1159 + 1160 + 1161 +Positioning complete 1162 +)))|((( 1163 +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. 1164 + 1165 + 1166 +))) 1167 +|((( 1168 + 1169 + 1170 +10 1171 +)))|((( 1172 + 1173 + 1174 +Position command + actual speed 1175 +)))|((( 1176 +In the previous first gain, if the position command is not 0, the second gain is switched; 1177 + 1178 +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). 1179 + 1180 + 1181 +))) 1182 + 1183 + 1184 +))) 1185 + 1186 +|(% rowspan="2" %) 1187 +**P02-13**|**Parameter name**|**Setting method**|**Effective time**|**Default**|**Set range**|**Application category**|**Unit** 1188 +|Delay Time for Gain Switching|Operation setting|Effective immediately|20|0 to 10000|Gain control|0.1ms 1189 +|(% colspan="8" %)((( 1190 +The duration of the switching condition required for the second gain to switch back to the first gain. 1191 + 1192 +[[image:image-20230515140953-9.png]] 1193 + 1194 +**✎**Note: This parameter is only valid when the second gain is switched back to the first gain. 1195 +))) 1196 + 1197 +|(% rowspan="2" %) 1198 +**P02-14**|**Parameter name**|**Setting method**|**Effective time**|**Default**|**Set range**|**Application category**|**Unit** 1199 +|Gain switching grade|Operation setting|Effective immediately|50|0 to 20000|Gain control|According to the switching conditions 1200 +|(% colspan="8" %)((( 1201 +Set the grade of the gain condition. The generation of the actual switching action is affected by the two conditions of grade and hysteresis. 1202 + 1203 +[[image:image-20230515140953-10.png]] 1204 +))) 1205 + 1206 +|(% rowspan="2" %) 1207 +**P02-15**|**Parameter name**|**Setting method**|**Effective time**|**Default**|**Set range**|**Application category**|**Unit** 1208 +|Gain switching hysteresis|Operation setting|Effective immediately|20|0 to 20000|Gain control|According to the switching conditions 1209 +|(% colspan="8" %)((( 1210 +Set the hysteresis to meet the gain switching condition. 1211 + 1212 +[[image:image-20230515140953-11.png]] 1213 +))) 1214 + 1215 +|(% rowspan="2" %) 1216 +**P02-16**|**Parameter name**|**Setting method**|**Effective time**|**Default**|**Set range**|**Application category**|**Unit** 1217 +|Position loop gain switching time|Operation setting|Effective immediately|30|0 to 10000|Gain control|0.1ms 1218 +|(% colspan="8" %)((( 1219 +Set the time for switching from the first position loop (P02-01) to the second position loop (P02-04) in the position control mode. 1220 + 1221 +[[image:image-20230515140953-12.png]] 1222 + 1223 +If P02-04≤P02-01, then P02-16 is invalid, and the second gain is switched from the first gain immediately. 1224 +))) 1225 + 1226 += **Mechanical resonance suppression** = 1227 + 1228 +== Mechanical resonance suppression methods == 1229 + 1230 +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. 1231 + 1232 +**Torque instruction filter** 1233 + 1234 +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: 1235 + 1236 +(% style="text-align:center" %) 1237 +[[image:image-20220706155820-5.jpeg||class="img-thumbnail"]] 1238 + 1239 +**Notch filter** 1240 + 1241 +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__. 1242 + 1243 +== Notch filter == 1244 + 1245 +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. 1246 + 1247 +**Width grade of notch filter** 1248 + 1249 +The notch width grade is used to express the ratio of the notch width to the center frequency of the notch: 1250 + 1251 +(% style="text-align:center" %) 1252 +[[image:image-20220706155836-6.png||class="img-thumbnail"]] 1253 + 1254 +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. 1255 + 1256 +**Depth grade of notch filter** 1257 + 1258 +The depth grade of notch filter represents the ratio relationship between input and output at center frequency. 1259 + 1260 +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__. 1261 + 1262 +(% style="text-align:center" %) 1263 +((( 1264 +(% class="wikigeneratedid img-thumbnail" style="display:inline-block" %) 1265 +[[Figure 7-7 Notch characteristics, notch width, and notch depth>>image:image-20220608174259-3.png||id="Iimage-20220608174259-3.png"]] 1266 +))) 1267 + 1268 + 1269 +(% style="text-align:center" %) 1270 +((( 1271 +(% class="wikigeneratedid img-thumbnail" style="display:inline-block" %) 1272 +[[Figure 7-8 Frequency characteristics of notch filter>>image:image-20220706160046-9.png||id="Iimage-20220706160046-9.png"]] 1273 +))) 1274 + 1275 + 1276 +(% class="table-bordered" %) 1277 +|=(% 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;" %)((( 1278 +**Setting method** 1279 +)))|=(% style="text-align: center; vertical-align: middle; width: 121px;" %)((( 1280 +**Effective time** 1281 +)))|=(% 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** 1282 +|=(% 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" %)((( 1283 +Operation setting 1284 +)))|(% style="text-align:center; vertical-align:middle; width:121px" %)((( 1285 +Effective immediately 1286 +)))|(% 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 1287 +|=(% 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" %)((( 1288 +Operation setting 1289 +)))|(% style="text-align:center; vertical-align:middle; width:121px" %)((( 1290 +Effective immediately 1291 +)))|(% 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" %)((( 1292 +1. 0: all truncated 1293 +1. 100: all passed 1294 +)))|(% style="text-align:center; vertical-align:middle; width:96px" %)- 1295 +|=(% 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" %)((( 1296 +Operation setting 1297 +)))|(% style="text-align:center; vertical-align:middle; width:121px" %)((( 1298 +Effective immediately 1299 +)))|(% 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" %)((( 1300 +1. 0: 0.5 times the bandwidth 1301 +1. 4: 1 times the bandwidth 1302 +1. 8: 2 times the bandwidth 1303 +1. 12: 4 times the bandwidth 1304 +)))|(% style="text-align:center; vertical-align:middle; width:96px" %)- 1305 +|=(% 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" %)((( 1306 +Operation setting 1307 +)))|(% style="text-align:center; vertical-align:middle; width:121px" %)((( 1308 +Effective immediately 1309 +)))|(% 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 1310 +|=(% 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" %)((( 1311 +Operation setting 1312 +)))|(% style="text-align:center; vertical-align:middle; width:121px" %)((( 1313 +Effective immediately 1314 +)))|(% 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" %)((( 1315 +1. 0: all truncated 1316 +1. 100: all passed 1317 +)))|(% style="text-align:center; vertical-align:middle; width:96px" %)- 1318 +|=(% 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" %)((( 1319 +Operation setting 1320 +)))|(% style="text-align:center; vertical-align:middle; width:121px" %)((( 1321 +Effective immediately 1322 +)))|(% 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" %)((( 1323 +1. 0: 0.5 times the bandwidth 1324 +1. 4: 1 times the bandwidth 1325 +1. 8: 2 times the bandwidth 1326 +1. 12: 4 times the bandwidth 1327 +)))|(% style="text-align:center; vertical-align:middle; width:96px" %)- 1328 + 1329 +Table 7-11 Notch filter function code parameters 1330 +~)~)~)