Changes for page 08 Motion Control
Last modified by Iris on 2026/04/03 10:39
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Attachments (0 modified, 14 added, 0 removed)
- 1761032781939-478.png
- 1761032845559-339.png
- 1761032974104-584.png
- 1761033004563-270.png
- 1761033083623-162.png
- 1761033167971-496.png
- 1761033264625-188.png
- 1761033334729-116.png
- 1761034254689-443.png
- 1761034304535-743.png
- 1761034415972-645.png
- 1761034458765-139.png
- 1761034544967-630.png
- 1761034615747-763.png
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Wecon1 +XWiki.Iris - Content
-
... ... @@ -2199,6 +2199,12 @@ 2199 2199 ))) 2200 2200 2201 2201 2202 + 2203 + 2204 + 2205 + 2206 + 2207 + 2202 2202 == **Management functions of axis group motion control** == 2203 2203 2204 2204 ---- ... ... @@ -3732,6 +3732,661 @@ 3732 3732 |=**Error code**|=**Content** 3733 3733 |4084H|Input data beyond the specifiable range 3734 3734 3741 +=== **MC _ MOVEVELOCITY _ CSV** === 3742 + 3743 +MC _ MOVEVELOCITY _ CSV-Sets motion according to the speed specified by the function block 3744 + 3745 +[[image:1761032781939-478.png]] 3746 + 3747 +The function block is used to continue the motion of the previous function block and move according to the speed specified by the function block. 3748 + 3749 +**Device used (only a single device can be used, device splicing and index are not supported)** 3750 + 3751 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Device**|((( 3752 +**Index** 3753 + 3754 +**Modification** 3755 +)))|((( 3756 +**Pulse** 3757 + 3758 +**Expansion** 3759 +))) 3760 +|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP** 3761 +|(% rowspan="15" %)((( 3762 +MC _ MOVEVELOCITY 3763 + 3764 +_ CSV 3765 +)))|Execute|●|●|●|●|●| | | | | | | | | | | | | | | | | | | | | 3766 +|ContinuousUpdate|●|●|●|●|●| | | | | | | | | | | | | | | | | | | | | 3767 +|Velocity| | | | | | | | | | | | | | | | | | | | | | | | | | 3768 +|Acceleration| | | | | | | | | | | | | | | | | | | | | | | | | | 3769 +|Deceleration| | | | | | | | | | | | | | | | | | | | | | | | | | 3770 +|Jerk| | | | | | | | | | | | | | | | | | | | | | | | | | 3771 +|Direction| | | | | | | | | | | | | | | | | | | | | | | | | | 3772 +|BufferMode| | | | | | | | | | | | | | | | | | | | | | | | | | 3773 +|Axis| | | | | | | | | | | | | | | | | | | | | | | | | | 3774 +|InVelocity| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 3775 +|Busy| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 3776 +|Active| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 3777 +|CommandAborted| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 3778 +|Error| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 3779 +|Error ID| | | | | | | | | | | | | | | | | | | | | | | | | | 3780 + 3781 +**Notes:** 3782 + 3783 +* LC and HSC are signed 32-bit data types; 3784 +* T, C, D, R and SD are signed 16-bit data types. 3785 + 3786 +**Variable type used** 3787 + 3788 +|**Instruction**|**Parameter**|**Variable type**|**Can it be empty**|**Range**|**Description** 3789 +|(% rowspan="15" %)((( 3790 +MC _ MOVE 3791 + 3792 +VELOCITY _ CSV 3793 +)))|Execute|BOOL|No|TRUE/FALSE|Enable 3794 +|ContinuousUpdate|BOOL|Yes|TRUE/FALSE|Whether update continuously or not 3795 +|Velocity|LREAL|No|[0,999999999.999999]|Setting velocity 3796 +|Acceleration|LREAL|No|[0,999999999.999999]|Setting acceleration 3797 +|Deceleration|LREAL|No|[0,999999999.999999]|Set deceleration 3798 +|Jerk|LREAL|Yes|[0,999999999.999999]|The set jerk is only effective in S-curve. 3799 +|Direction|WORD|No|[1,4]|((( 3800 +Direction flag bit (Only rotation mode takes effect)。 3801 + 3802 +~1. Positive direction; 3803 + 3804 +2. Negative direction; 3805 + 3806 +3. The current direction; 3807 + 3808 +4. The shortest path (reserved). 3809 +))) 3810 +|BufferMode|WORD|Yes|[0]|BufferMode 3811 +|Axis|WORD|No|[0,65535]|Axis number and built-in variable of axis 3812 +|InVelocity|BOOL|Yes|TRUE/FALSE|Reach the set velocity flag bit 3813 +|Busy|BOOL|Yes|TRUE/FALSE|Busy flag 3814 +|Active|BOOL|Yes|TRUE/FALSE|Activity flag 3815 +|Command aborted|BOOL|Yes|TRUE/FALSE|Interrupt flag bit 3816 +|Error|BOOL|Yes|TRUE/FALSE|Whether there is an error or not 3817 +|Error ID|DWORD|Yes|-|Error code (Please refer to ~[[[8.11 Error code comparison table>>path:#错误码对照表]]]) 3818 + 3819 +**Function** 3820 + 3821 +* The MC _ MoveVelocity function block is used to continue the movement of the previous function block and move according to the speed specified by the function block. The input values of acceleration, deceleration and jerk are used to monitor whether the corresponding values of the controlled axis are within the input values. 3822 +* Since there is no input signal of position or distance, the function block will move until other function block sends a new command to stop movement of this function block; 3823 +* When the speed of the controlled axis reaches the input parameter ‘Velocity’ setpoint, the output parameter ‘InVelocity’ is set. Once the input ‘Execute’ signal detects a falling edge or other function block to abort this function block, the output parameter InVelocity is reset; 3824 +* The MC _ MoveVelocity function block shall be in a stopped motion state or a single-axis operation state when the controlled axis is operated. After this function block is triggered, the controlled axis transitions to the ‘Continuous Motion’ state. If the controlled axis is not in the above state, the function block is not executed, Error output is set; 3825 +* The MC _ MoveVelocity function block can be triggered repeatedly multiple times. 3826 + 3827 +**Error code** 3828 + 3829 +|**Error code**|**Content** 3830 +|4084H|Input data beyond the specifiable range 3831 + 3832 +**Precautions** 3833 + 3834 +* Different from the MC _ MOVEVELOCITY function block, this function block will automatically switch the servo mode to CSV (Synchronous Cycle Speed) mode; 3835 +* Using this function block requires adding four object dictionaries, H60FF, H6060, H6061, and H606C, to the PDO. 3836 + 3837 +**Timing diagram** 3838 + 3839 + 3840 +(% style="text-align:center" %) 3841 +[[image:1761032845559-339.png||height="306" width="520"]] 3842 + 3843 +=== **MC _ SYNCMOVEVELOCITY** === 3844 + 3845 +MC _ SYNCMOVEVELOCITY-Sets motion according to the speed specified by the function block 3846 + 3847 +[[image:1761032974104-584.png]] 3848 + 3849 +The function block is used to continue the motion of the previous function block and move according to the speed specified by the function block. 3850 + 3851 +**Device used (only a single device can be used, and device splicing and Index are not supported)** 3852 + 3853 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Device**|**Index modification**|**Pulse expansion** 3854 +|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP** 3855 +|(% rowspan="8" %)((( 3856 +MC _ SYNCMOVE 3857 + 3858 +VELOCITY 3859 +)))|Execute|●|●|●|●|●| | | | | | | | | | | | | | | | | | | | | 3860 +|Velocity| | | | | | | | | | | | | | | | | | | | | | | | | | 3861 +|Axis| | | | | | | | | | | | | | | | | | | | | | | | | | 3862 +|InVelocity| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 3863 +|Busy| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 3864 +|CommandAborted| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 3865 +|Error| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 3866 +|ErrorID| | | | | | | | | | | | | | | | | | | | | | | | | | 3867 + 3868 +**Notes for using devices** 3869 + 3870 +* LC and HSC are signed 32-bit data types; 3871 +* T, C, D, R and SD are signed 16-bit data types. 3872 + 3873 +**Variable type used** 3874 + 3875 +|**Instruction**|**Parameter**|**Variable type**|**Empty or not**|**Range**|**Description** 3876 +|(% rowspan="8" %)((( 3877 +MC _ SYNCMOVE 3878 + 3879 +VELOCITY 3880 +)))|Execute|BOOL|No|TRUE/FALSE|Enable 3881 +|Velocity|LREAL|No|[0,999999999.999999]|Setting velocity 3882 +|Axis|((( 3883 +WORD 3884 + 3885 + 3886 +)))|No|[0,65535]|Axis number and built-in variable of axis 3887 +|InVelocity|BOOL|Yes|TRUE/FALSE|Reach the set velocity flag bit 3888 +|Busy|BOOL|Yes|TRUE/FALSE|Busy flag 3889 +|CommandAborted|BOOL|Yes|TRUE/FALSE|Interrupt flag bit 3890 +|Error|BOOL|Yes|TRUE/FALSE|Whether there is an error or not 3891 +|ErrorID|DWORD|Yes|-|((( 3892 +Error code (Please refer to 3893 + 3894 +[[8.11 Error Code>>path:#错误码对照表]] 3895 +))) 3896 + 3897 +**Function** 3898 + 3899 +* The MC _ SYNCMOVEVELOCITY function block function block is used to continue the movement of the previous function block and move according to the speed specified by the function block. 3900 +* Since there is no input signal of position or distance, the function block will move until other function block sends a new command to stop movement of this function block; 3901 +* When the speed of the controlled axis reaches the input parameter Velocity setpoint, the output parameter InVelocity is set. Once the input ‘Execute’ signal detects a falling edge or other function block to abort this function block, the output parameter ‘InVelocity’ is reset; 3902 +* The MC _ SYNCMOVEVELOCITY function block shall be in a stopped motion state or a single-axis operation state when the controlled axis is operated. After this function block is triggered, the controlled axis transitions to the ‘Continuous Motion’ state. If the controlled axis is not in the above state, the function block is not executed, Error output is set; 3903 +* The MC _ SYNCMOVEVELOCITY function block can be triggered repeatedly multiple times. 3904 + 3905 +**✎Note:** After using MC _ SYNCMOVEVELOCITY , the servo mode is automatically switched to the synchronous cycle speed mode. 3906 + 3907 + 3908 +**Error code** 3909 + 3910 +|**Error code**|**Content** 3911 +|4084H|Input data beyond the specifiable range 3912 + 3913 +**Timing diagram** 3914 + 3915 +(% style="text-align:center" %) 3916 +[[image:1761033004563-270.png]] 3917 + 3918 +=== **MC _ SETTORQUE** === 3919 + 3920 +MC _ SETTORQUE-Synchronous torque instruction 3921 + 3922 +[[image:1761033083623-162.png]] 3923 + 3924 +**Device used (only a single device can be used, and device splicing and Index are not supported)** 3925 + 3926 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Device**|((( 3927 +**Index** 3928 + 3929 +**Modification** 3930 +)))|((( 3931 +**Pulse** 3932 + 3933 +**Expansion** 3934 +))) 3935 +|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP** 3936 +|(% rowspan="11" %)MC _ SETTORQUE|Execute|●|●|●|●|●| | | | | | | | | | | | | | | | | | | | | 3937 +|TORQUE| | | | | | | | | | | | | | | | | | | | | | | | | | 3938 +|MaxVelocity| | | | | | | | | | | | | | | | | | | | | | | | | | 3939 +|BufferMode| | | | | | | | | | | | | | | | | | | | | | | | | | 3940 +|Axis| | | | | | | | | | | | | | | | | | | | | | | | | | 3941 +|InTorque| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 3942 +|Busy| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 3943 +|Active| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 3944 +|CommandAborted| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 3945 +|Error| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 3946 +|ErrorID| | | | | | | | | | | | | | | | | | | | | | | | | | 3947 + 3948 +**Notes for using devices** 3949 + 3950 +* LC and HSC are signed 32-bit data types; 3951 +* T, C, D, R and SD are signed 16-bit data types. 3952 + 3953 +**Variable type used** 3954 + 3955 +|**Instruction**|**Pin Type**|**Parameter**|**Variable type**|**Empty or not**|**Range**|**Description** 3956 +|(% rowspan="12" %)MC _ SETTORQUE|(% rowspan="6" %)Input|Execute|BOOL|No|TRUE/FALSE|Enable 3957 +|ContinuousUpdate|BOOL|Yes|TRUE/FALSE|Updated during operation 3958 +|Torque|LREAL|No|[-32768,32767]|Target torque (unit is 0.1%) 3959 +|MaxVelocity|LREAL|No|[0,999999999.999999]|Maximum speed 3960 +|BufferMode|WORD|Yes|[0]|Currently only interrupts are supported 3961 +|Axis|WORD|No|[0,65535]|Axis number 3962 +|(% rowspan="6" %)Output|InTorque|BOOL|Yes|TRUE/FALSE|Completion flag 3963 +|Busy|BOOL|Yes|TRUE/FALSE|Busy flag 3964 +|Active|BOOL|Yes|TRUE/FALSE|Valid flag 3965 +|CommandAborted|BOOL|Yes|TRUE/FALSE|Abortion flag 3966 +|Error|BOOL|Yes|TRUE/FALSE|Error or not 3967 +|ErrorID|DWORD|Yes|-|Error code ( Please refer to ~[[[8.11 Error code comparison table>>path:#错误码对照表]]]) 3968 + 3969 +**Function** 3970 + 3971 +* This instruction is used to implement the synchronous torque control function and is only used for the bus servo axis. The rising edge and high level of the command are valid, and the virtual axis mode is not supported. 3972 +* The following PDOs need to be configured in CST mode; 3973 + 3974 +0x1600: 0x6060, 0x6071, 607f (optional), 6040 3975 + 3976 +0x1A00: 0x6061, 0x6077, 0x6041 3977 + 3978 +* If you use VD3E, you need to configure the startup parameter 2001: 9 value to 2; 3979 +* When Enable = ON, the function block converts TarTorque and MaxVelocity from user units to pulse units and sends them to the servo driver from time to time. The shaft is in the Continuous Motion state and performs synchronous torque motion. When the falling edge of Eanble, the function block performs synchronous torque motion with the TarTorque and Velocity latched during the high level, and it is invalid to modify the TarTorque and Velocity in real time; 3980 +* This instruction can only be invoked if the axis is switched to the enabled state using the MC _ Power instruction; 3981 +* This instruction uses the driver synchronous torque mode to realize the torque control function. When Enable = ON, the function block converts TarTorque and Velocity from user units to pulse units and sends them to the servo driver from time to time. The shaft is in the Continuous Motion state and performs synchronous torque motion; 3982 + 3983 +TarTorque: The target torque, the unit is 0.1%. One decimal place after the decimal point is valid in the program, and the latter ones are directly discarded. The actual torque of the driver is limited by the maximum positive and negative torques set in the configuration parameters. 3984 + 3985 +**Note** 3986 + 3987 +* This function block is not available when the axis does not exist. 3988 + 3989 +=== **MC _ TORQUECONTROL** === 3990 + 3991 +MC _ TORQUECONTROL-Torque control command 3992 + 3993 +[[image:1761033167971-496.png||height="206" width="262"]] 3994 + 3995 +**Device used (only a single device can be used, and device splicing and Index are not supported)** 3996 + 3997 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Device**|((( 3998 +**Index** 3999 + 4000 +**Modification** 4001 +)))|((( 4002 +**Pulse** 4003 + 4004 +**Expansion** 4005 +))) 4006 +|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP** 4007 +|(% rowspan="13" %)((( 4008 +MC _ TORQUE 4009 + 4010 +CONTROL 4011 +)))|Execute|●|●|●|●|●| | | | | | | | | | | | | | | | | | | | | 4012 +|ContinuousUpdate|●|●|●|●|●| | | | | | | | | | | | | | | | | | | | | 4013 +|TORQUE| | | | | | | | | | | | | | | | | | | | | | | | | | 4014 +|TorqueRamp| | | | | | | | | | | | | | | | | | | | | | | | | | 4015 +|MaxVelocity| | | | | | | | | | | | | | | | | | | | | | | | | | 4016 +|BufferMode| | | | | | | | | | | | | | | | | | | | | | | | | | 4017 +|Axis| | | | | | | | | | | | | | | | | | | | | | | | | | 4018 +|InTorque| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 4019 +|Busy| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 4020 +|Active| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 4021 +|CommandAborted| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 4022 +|Error| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 4023 +|ErrorID| | | | | | | | | | | | | | | | | | | | | | | | | | 4024 + 4025 +**Notes for using devices** 4026 + 4027 +* LC and HSC are signed 32-bit data types; 4028 +* T, C, D, R and SD are signed 16-bit data types. 4029 + 4030 +**Variable type used** 4031 + 4032 +|**Instruction**|**Pin Type**|**Parameter**|**Variable type**|**Empty or not**|**Range**|**Description** 4033 +|(% rowspan="13" %)MC _ TORQUECONTROL|(% rowspan="7" %)Input|Execute|BOOL|No|TRUE/FALSE|Enable 4034 +|ContinuousUpdate|BOOL|Yes|TRUE/FALSE|Updated during operation 4035 +|Torque|LREAL|No|[-32768,32767]|Target torque (unit is 0.1%) 4036 +|MaxVelocity|LREAL|No|[0,999999999.999999]|Maximum speed 4037 +|TorqueRamp|LREAL|No|[0,999999999.999999]|Torque slope 4038 +|BufferMode|WORD|Yes|[0]|Only interrupt mode supported 4039 +|Axis|WORD|No|[0,65535]|Axis number 4040 +|(% rowspan="6" %)Output|InTorque|BOOL|Yes|TRUE/FALSE|Completion flag 4041 +|Busy|BOOL|Yes|TRUE/FALSE|Busy flag 4042 +|Active|BOOL|Yes|TRUE/FALSE|Valid flag 4043 +|CommandAborted|BOOL|Yes|TRUE/FALSE|Abortion flag 4044 +|Error|BOOL|Yes|TRUE/FALSE|Error or not 4045 +|ErrorID|DWORD|Yes|-|Error code (Please refer to ~[[[8.11 Error code comparison table>>path:#错误码对照表]]]) 4046 + 4047 +**Function** 4048 + 4049 +* This instruction is used to realize the torque control function and is only used for the EtherCAT bus axis. The rising edge of the instruction is valid, and the imaginary axis mode is not supported. 4050 +* The following PDOs need to be configured in CST mode: 4051 + 4052 +0x1600: 0x6060, 0x6071, 607f (optional), 6040 4053 + 4054 +0x1A00: 0x6061, 0x6077, 0x6041 4055 + 4056 +* If VD3E is used, the value of startup parameter 2001:9 is 2; 4057 + 4058 +**Function description** 4059 + 4060 +* This instruction can only be invoked if the axis is switched to the enabled state using the MC _ Power instruction; 4061 +* This instruction uses the driver synchronous torque mode to realize the torque control function; 4062 +* On the rising edge of the instruction, the function block latches the input parameters of TarTorque, TorqueSlope and MaxVelocity, and the axis is in the ContinuousMotion state and performs torque motion; 4063 + 4064 +TarTorque: Target torque, the unit is 0.1%, one decimal place after the decimal point is valid in the program, and the latter ones are discarded. The actual torque of the driver is limited by the maximum positive and negative torques set in the configuration parameters; 4065 + 4066 +TorqueSlope: Moment slope, the unit is 1%, one decimal place after the decimal point is valid in the program, and the latter ones are directly discarded; 4067 + 4068 +* Speed control in torque mode 4069 + 4070 +For servo drives, if 0x607f is mapped in the axis parameter, this instruction limits the maximum speed of the servo motor by 0x607f, if 0x607f is not mapped, the speed limit is invalid; 4071 + 4072 +On the rising edge of Execute, the instruction converts the speed limit set by Velocity into pulse units and writes it into 0x607f through PDO; 4073 + 4074 +When the torque instruction is interrupted by others, the maximum speed of the axis will be limited by the "Maximum speed" in the configuration interface; 4075 + 4076 +For third-party drives, Velocity can only be used as a speed limit under the following conditions: 4077 + 4078 +The maximum speed of the servomotor can be limited by 0x607F; 4079 + 4080 +0x607F can be configured into the PDO; 4081 + 4082 +The unit of 0x607F is pulse unit, non-speed unit. 4083 + 4084 +* Stop control on torque mode 4085 + 4086 +In the torque mode, the MC _ Stop instruction is called to perform the shut down, and after receiving the Stop instruction, the driver switches to the synchronous position mode, and performs deceleration according to the deceleration set by the Stop instruction. 4087 + 4088 +* Interrupt 4089 + 4090 +In PLCOpen, when the instruction is valid, the axis will be in the Continuous Motion state. Other instructions that can make the axis in Discrete motion or comply with PLCOpen state machine switching can interrupt the instruction. When the instruction is interrupted, CommandAboarted is valid; 4091 + 4092 +CommandAboarted is valid when Execute=ON and Done signal is invalid and is about to hit the limit signal execution needs to perform deceleration; 4093 + 4094 +The axis de-enable CommandAboarted is valid when Execute=ON and the Done signal is invalid. 4095 + 4096 +**Timing diagram** 4097 + 4098 +After setting the target torque, the command is triggered, and the actual output torque can reach the target torque. 4099 + 4100 +(% style="text-align:center" %) 4101 +[[image:1761033264625-188.png]] 4102 + 4103 + 4104 +After setting the target torque, the command is triggered, and finally the actual output torque cannot reach the target torque. 4105 + 4106 +(% style="text-align:center" %) 4107 +[[image:1761033334729-116.png]] 4108 + 4109 +=== **MC _ MOVEABSRELPP** === 4110 + 4111 +MC _ MOVEABSRELPP-Positioning instruction based on contour position mode 4112 + 4113 +[[image:1761034254689-443.png]] 4114 + 4115 +**Device used (only a single device can be used, and device splicing and Index are not supported)** 4116 + 4117 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Device**|**Index modification**|((( 4118 +**Pulse** 4119 + 4120 +**Expansion** 4121 +))) 4122 +|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP** 4123 +|(% rowspan="13" %)((( 4124 +MC _ MOVEA 4125 + 4126 +BSRELPP 4127 +)))|Execute|●|●|●|●|●| | | | | | | | | | | | | | | | | | | | | 4128 +|Position| | | | | | | | | | | | | | | | | | | | | | | | | | 4129 +|Velocity| | | | | | | | | | | | | | | | | | | | | | | | | | 4130 +|Acceleration| | | | | | | | | | | | | | | | | | | | | | | | | | 4131 +|Deceleration| | | | | | | | | | | | | | | | | | | | | | | | | | 4132 +|Mode| | | | | | | | | | | | | | | | | | | | | | | | | | 4133 +|Axis| | | | | | | | | | | | | | | | | | | | | | | | | | 4134 +|Done| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 4135 +|Busy| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 4136 +|Active| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 4137 +|CommandAborted| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 4138 +|Error| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 4139 +|ErrorID| | | | | | | | | | | | | | | | | | | | | | | | | | 4140 + 4141 +**Notes for using devices** 4142 + 4143 +* LC and HSC are signed 32-bit data types; 4144 +* T, C, D, R and SD are signed 16-bit data types. 4145 + 4146 +**Variable type used** 4147 + 4148 +|**Instruction**|**Pin Type**|**Parameter**|**Variable type**|**Empty or not**|**Range**|**Description** 4149 +|(% rowspan="13" %)((( 4150 +MC _ MOVE 4151 + 4152 +ABSRELPP 4153 +)))|(% rowspan="7" %)Input|Execute|BOOL|No|TRUE/FALSE|Enable 4154 +|Mode|INT|No|0,1|((( 4155 +1: Absolute mode. 4156 + 4157 +1: Relative mode 4158 +))) 4159 +|Position|LREAL|No|((( 4160 +-999999999.999999 4161 + 4162 +999999999.999999 4163 +)))|Target location 4164 +|Velocity|LREAL|No|(0,999999999.999999]|Velocity 4165 +|Acceleration|LREAL|No|(0,999999999.999999]|Acceleration 4166 +|Deceleration|LREAL|No|(0,999999999.999999]|Deceleration 4167 +|Axis|WORD|No|[0,65535]|Axis number 4168 +|(% rowspan="6" %)Output|Done|BOOL|Yes|TRUE/FALSE|Completion flag 4169 +|Busy|BOOL|Yes|TRUE/FALSE|Busy flag 4170 +|Active|BOOL|Yes|TRUE/FALSE|Valid flag 4171 +|CommandAborted|BOOL|Yes|TRUE/FALSE|Abortion flag 4172 +|Error|BOOL|Yes|TRUE/FALSE|Error or not 4173 +|ErrorID|DWORD|Yes|-|Error code (Please refer to ~[[[8.11 Error code comparison table>>path:#_8.11 错误码对照表]]]) 4174 + 4175 +**Function** 4176 + 4177 +* This command is used to control the EtherCAT bus contour axis to realize the absolute/relative positioning function in contour position mode. In the basic settings of axis configuration, the contour mode option needs to be checked before it can be called, and the rising edge is valid. 4178 +* Contour Position Mode requires the following PDOs: 4179 + 4180 +0x1600: 0x6081, 0x6083, 0x6084, 0x607A, 0x6060, 0x6040 4181 + 4182 +0x1A00: 0x6061, 0x6064, 0x6041 4183 + 4184 +**Function description** 4185 + 4186 +* This instruction can only be invoked if the axis is switched to the enabled state using the MC _ Power instruction; 4187 +* At the rising edge of the Execute input, the instruction latches the input parameters on the left side such as Position and Velocity, triggers the absolute/relative positioning function, and switches the PLCOpen state machine of the axis to the DiscreteMotion state; 4188 +* When Mode = 0, the positioning Mode is absolute positioning Mode, and Position is used to set the target Position of absolute positioning. If the axis Mode is configured as rotation Mode, the target Position is positioned according to the shortest distance; 4189 +* When Mode = 1, the positioning Mode is a relative positioning Mode, and Position is used to set the target distance of relative positioning; 4190 +* Interrupt 4191 + 4192 +When this instruction is valid in PLCOpen, the axis will be in the Discretemotion state. Other outline mode instructions that can make the axis in Discretemotion or comply with PLCOpen state machine switching can interrupt this instruction. CommandAboarted is valid when the instruction is interrupted. The instruction of periodic synchronization mode cannot be called, otherwise a fault will be reported; 4193 + 4194 +CommandAboarted is valid when the MC _ Power instruction is invalid when Execute = TRUE and the Busy signal is valid causes the axis to be de-enabled. 4195 + 4196 +**Timing diagram** 4197 + 4198 + 4199 +(% style="text-align:center" %) 4200 +[[image:1761034304535-743.png]] 4201 + 4202 +=== **MC _ MOVEVELOCITYPV** === 4203 + 4204 +MC _ MOVEVELOCITYPV-Contour Speed Command 4205 + 4206 +[[image:1761034415972-645.png]] 4207 + 4208 +**Device used (only a single device can be used, and device splicing and Index are not supported)** 4209 + 4210 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Device**|((( 4211 +**Index** 4212 + 4213 +**Modification** 4214 +)))|((( 4215 +**Pulse** 4216 + 4217 +**Expansion** 4218 +))) 4219 +|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP** 4220 +|(% rowspan="11" %)((( 4221 +MC _ MOVEVELO 4222 + 4223 +CITYPV 4224 +)))|Execute|●|●|●|●|●| | | | | | | | | | | | | | | | | | | | | 4225 +|Velocity| | | | | | | | | | | | | | | | | | | | | | | | | | 4226 +|Acceleration| | | | | | | | | | | | | | | | | | | | | | | | | | 4227 +|Deceleration| | | | | | | | | | | | | | | | | | | | | | | | | | 4228 +|Axis| | | | | | | | | | | | | | | | | | | | | | | | | | 4229 +|InVelocity| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 4230 +|Busy| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 4231 +|Active| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 4232 +|CommandAborted| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 4233 +|Error| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 4234 +|ErrorID| | | | | | | | | | | | | | | | | | | | | | | | | | 4235 + 4236 +**Notes for using devices** 4237 + 4238 +* LC and HSC are signed 32-bit data types; 4239 +* T, C, D, R and SD are signed 16-bit data types. 4240 + 4241 +**Variable type used** 4242 + 4243 +|**Instruction**|((( 4244 +**Pin** 4245 + 4246 +**type** 4247 +)))|**Parameter**|((( 4248 +**Variable** 4249 + 4250 +**Type** 4251 +)))|((( 4252 +**Can you** 4253 + 4254 +**Is empty** 4255 +)))|**Range**|**Description** 4256 +|(% rowspan="11" %)((( 4257 +MC _ MOVEVE 4258 + 4259 +LOCITYPV 4260 +)))|(% rowspan="5" %)Input|Execute|BOOL|No|TRUE/FALSE|Enable 4261 +|Velocity|LREAL|No|((( 4262 +-999999999.999999 4263 + 4264 +999999999.999999 4265 +)))|Velocity 4266 +|Acceleration|LREAL|No|(0,999999999.999999]|Acceleration 4267 +|Deceleration|LREAL|No|The QPS Exceeds Maximum Limit 5|Deceleration 4268 +|Axis|WORD|No|[0,65535]|Axis number 4269 +|(% rowspan="6" %)Output|InVelocity|BOOL|Yes|TRUE/FALSE|Completion flag 4270 +|Busy|BOOL|Yes|TRUE/FALSE|Busy flag 4271 +|Active|BOOL|Yes|TRUE/FALSE|Valid flag 4272 +|CommandAborted|BOOL|Yes|TRUE/FALSE|Abortion flag 4273 +|Error|BOOL|Yes|TRUE/FALSE|Error or not 4274 +|ErrorID|DWORD|Yes|-|Error code (Please refer to ~[[[8.11 Error code comparison table>>path:#错误码对照表]]]) 4275 + 4276 +**Function** 4277 + 4278 +* This command is used to realize the continuous motion function of EtherCAT bus contour axis in contour speed mode. In the basic settings of axis configuration, the contour mode option needs to be checked before it can be called, and the rising edge is valid; 4279 +* This instruction is a simulated velocity instruction based on the profile velocity (PV) mode; 4280 +* The following PDOs are required for the profile speed mode: 4281 + 4282 +0x1600: 0x6083, 0x6084, 0x60FF, 0x6060, 0x6040 4283 + 4284 +0x1A00: 0x6061, 0x606c, 0x6041 4285 + 4286 +**Function description** 4287 + 4288 +* This instruction can only be invoked if the axis is switched to the STANDSTILL state using the MC _ Power instruction; 4289 +* When Execute = TRUE, the instruction latches the input parameters on the left side such as Velocity and Acceleration, the axis continuously runs according to the target speed set by Velocity, and switches the PLCOpen state machine of the axis to the ContinuousMotion state. 4290 + 4291 +**Timing diagram** 4292 + 4293 + 4294 +(% style="text-align:center" %) 4295 +[[image:1761034458765-139.png]] 4296 + 4297 +=== **MC _ TORQUECONTROLPT** === 4298 + 4299 +MC _ TORQUECONTROLPT-Contour torque control command 4300 + 4301 +[[image:1761034544967-630.png]] 4302 + 4303 +**Device used (only a single device can be used, and device splicing and Index are not supported)** 4304 + 4305 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Device**|**Index modification**|**Pulse expansion** 4306 +|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP** 4307 +|(% rowspan="11" %)((( 4308 +MC _ TORQUE 4309 + 4310 +CONTROLPT 4311 +)))|Execute|●|●|●|●|●| | | | | | | | | | | | | | | | | | | | | 4312 +|TORQUE| | | | | | | | | | | | | | | | | | | | | | | | | | 4313 +|TorqueRamp| | | | | | | | | | | | | | | | | | | | | | | | | | 4314 +|MaxVelocity| | | | | | | | | | | | | | | | | | | | | | | | | | 4315 +|Axis| | | | | | | | | | | | | | | | | | | | | | | | | | 4316 +|InTorque| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 4317 +|Busy| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 4318 +|Active| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 4319 +|CommandAborted| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 4320 +|Error| |●|●|●|●| | | | | | | | | | | | | | | | | | | | | 4321 +|ErrorID| | | | | | | | | | | | | | | | | | | | | | | | | | 4322 + 4323 +**Notes for using devices** 4324 + 4325 +* LC and HSC are signed 32-bit data types; 4326 +* T, C, D, R and SD are signed 16-bit data types. 4327 + 4328 +**Variable type used** 4329 + 4330 +|**Instruction**|**Pin Type**|**Parameter**|**Variable type**|**Empty or not**|**Range**|**Description** 4331 +|(% rowspan="11" %)MC_ TORQUECONTROLPT|(% rowspan="5" %)Input|Execute|BOOL|No|TRUE/FALSE|Enable 4332 +|Torque|LREAL|No|[-32768,32767]|Target torque (unit is 0.1%) 4333 +|TorqueRamp|LREAL|No|(0,999999999.999999]|Torque slope 4334 +|MaxVelocity|LREAL|No|[0,999999999.999999]|Maximum speed 4335 +|Axis|WORD|No|[0,65535]|Axis number 4336 +|(% rowspan="6" %)Output|InTorque|BOOL|Yes|TRUE/FALSE|Completion flag 4337 +|Busy|BOOL|Yes|TRUE/FALSE|Busy flag 4338 +|Active|BOOL|Yes|TRUE/FALSE|Valid flag 4339 +|CommandAborted|BOOL|Yes|TRUE/FALSE|Abortion flag 4340 +|Error|BOOL|Yes|TRUE/FALSE|Error or not 4341 +|ErrorID|DWORD|Yes|-|Error code (Please refer to ~[[[8.11 Error code comparison table>>path:#错误码对照表]]]) 4342 + 4343 +**Function** 4344 + 4345 +* This instruction is used to control the EtherCAT bus profile axis to realize the absolute/relative positioning function in profile position mode. In the basic settings of axis configuration, the profile mode option needs to be checked before it can be called, and the rising edge is valid; 4346 +* This instruction is used to realize the torque control function and is only used for the EtherCAT bus axis. The rising edge of the instruction is valid and the virtual axis mode is not supported; 4347 +* Profile torque mode needs to be configured with the following PDOs: 4348 + 4349 +0x1600: 0x6087 (optional), 0x6060, 0x6071, 0x607f (optional), 0x6040 4350 + 4351 +0x1A00: 0x6061, 0x6077, 0x6041 4352 + 4353 +**Function description** 4354 + 4355 +* This instruction can only be invoked if the axis is switched to the enabled state using the MC _ Power instruction. Otherwise, report a fault; 4356 +* This instruction uses the driver synchronous torque mode to realize the torque control function; 4357 +* On the rising edge of the instruction, the function block latches the input parameters of TarTorque, TorqueSlope and MaxVelocity, and the axis is in the ContinuousMotion state and performs torque motion; 4358 + 4359 +TarTorque: Target torque, the unit is 0.1%, one decimal place after the decimal point is valid in the program, and the latter ones are directly discarded. The actual torque of the driver is limited by the maximum positive and negative torques set in the configuration parameters; 4360 + 4361 +TorqueRamp: Torque ramp, the unit is 1%, one decimal place after the decimal point is valid in the program, and the latter ones are directly discarded. 4362 + 4363 +* Speed control in torque mode 4364 + 4365 +For servo drives, if 0x607f is mapped in the axis parameter, this instruction limits the maximum speed of the servo motor by 0x607f, if 0x607f is not mapped, the speed limit is invalid; 4366 + 4367 +On the rising edge of Execute, the instruction converts the speed limit set by Velocity into pulse units and writes it into 0x607f through PDO; 4368 + 4369 +When the torque instruction is interrupted by others, the maximum speed of the axis will be limited by the "Maximum speed" in the configuration interface; 4370 + 4371 +For third-party drives, Velocity can only be used as a speed limit under the following conditions: 4372 + 4373 +The maximum speed of the servomotor can be limited by 0x607F; 4374 + 4375 +0x607F can be configured into the PDO; 4376 + 4377 +The unit of 0x607F is pulse unit, non-speed unit. 4378 + 4379 +* Stop control on torque mode 4380 + 4381 +In the torque mode, the MC _ Stop instruction is called to perform the shut down, and after receiving the Stop instruction, the driver switches to the synchronous position mode, and performs deceleration according to the deceleration set by the Stop instruction. 4382 + 4383 +* Interrupt 4384 + 4385 +In PLCOpen, when the instruction is valid, the axis will be in the Continuous Motion state. Other instructions that can make the axis in Discrete motion or comply with PLCOpen state machine switching can interrupt the instruction. When the instruction is interrupted, CommandAboarted is valid; 4386 + 4387 +CommandAboarted is valid when Execute=ON and Done signal is invalid and is about to hit the limit signal execution needs to perform deceleration; 4388 + 4389 +The axis de-enable CommandAboarted is valid when Execute=ON and the Done signal is invalid. 4390 + 4391 +**Timing diagram** 4392 + 4393 +(% style="text-align:center" %) 4394 +[[image:1761034615747-763.png]] 4395 + 3735 3735 == **SDO instruction** == 3736 3736 3737 3737 ---- ... ... @@ -4508,6 +4508,7 @@ 4508 4508 |0x00400005|MC_ERROR_ID_POSITION_OVER_POSITIVE_LIMIT|Position over positive limit 4509 4509 |0x00400006|MC_ERROR_ID_POSITION_OVER_NEGATIVE_LIMIT|Position over negative limit 4510 4510 |0x00400007|MC_ERROR_ID_POSITION_LAG_OVERLIMIT|Position lag over limit 5172 +|0x00400008|MC_ERROR_ID_TORQUE_OVER_LIMIT|Torque over limit 4511 4511 |(% colspan="3" %)**Error Stop** 4512 4512 |0x00500000|MC_ERROR_ID_AXIS_ERROR_STOP|Axis error stopped 4513 4513 |(% colspan="3" %)**Error from servo** ... ... @@ -4531,6 +4531,25 @@ 4531 4531 |0x00600011|MC_ERROR_ID_SERVO_PARAWRITE|Write Servo parameter error 4532 4532 |0x00600012|MC_ERROR_ID_LOCAL_PULSE_HOME_TIMEOUT|Time out when origin regression 4533 4533 |0x00600013|MC_ERROR_ID_LOCAL_PULSE_HOME_NOT_TOUCH_LIMI|The execution has not encountered the limit 5196 +|0x00600014|((( 5197 +MC_ERROR_ID_LOCAL_PULSE_HOME_VELOCITY_ 5198 + 5199 +OVER_LIMIT 5200 +)))|Pulse shaft HOME Velocity over limit 5201 +|0x00600015|((( 5202 +MC_ERROR_ID_LOCAL_PULSE_HOME_ACC_ 5203 + 5204 +OVER_LIMIT 5205 +)))|Pulse shaft HOME Acceleration over limit 5206 +|0x00600020|((( 5207 +MC_ERROR_ID_MODE_SWITCH_NEEDPDO_ 5208 + 5209 +NOTMAP 5210 +)))|((( 5211 +There is no required PDO for the mode 5212 + 5213 +corresponding to mode switching. 5214 +))) 4534 4534 |0x006000FF|MC_ERROR_ID_SERVO_LOST|Servo lost 4535 4535 |(% colspan="3" %)**Axis’s error** 4536 4536 |0x00700000|MC_ERROR_ID_AXIS_GENERAL_ERROR|Axis's general error
- 1761032781939-478.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Iris - Size
-
... ... @@ -1,0 +1,1 @@ 1 +27.1 KB - Content
- 1761032845559-339.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Iris - Size
-
... ... @@ -1,0 +1,1 @@ 1 +67.2 KB - Content
- 1761032974104-584.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Iris - Size
-
... ... @@ -1,0 +1,1 @@ 1 +16.7 KB - Content
- 1761033004563-270.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Iris - Size
-
... ... @@ -1,0 +1,1 @@ 1 +45.4 KB - Content
- 1761033083623-162.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Iris - Size
-
... ... @@ -1,0 +1,1 @@ 1 +23.7 KB - Content
- 1761033167971-496.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Iris - Size
-
... ... @@ -1,0 +1,1 @@ 1 +17.6 KB - Content
- 1761033264625-188.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Iris - Size
-
... ... @@ -1,0 +1,1 @@ 1 +36.1 KB - Content
- 1761033334729-116.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Iris - Size
-
... ... @@ -1,0 +1,1 @@ 1 +31.4 KB - Content
- 1761034254689-443.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Iris - Size
-
... ... @@ -1,0 +1,1 @@ 1 +35.3 KB - Content
- 1761034304535-743.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Iris - Size
-
... ... @@ -1,0 +1,1 @@ 1 +32.6 KB - Content
- 1761034415972-645.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Iris - Size
-
... ... @@ -1,0 +1,1 @@ 1 +34.2 KB - Content
- 1761034458765-139.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Iris - Size
-
... ... @@ -1,0 +1,1 @@ 1 +37.2 KB - Content
- 1761034544967-630.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Iris - Size
-
... ... @@ -1,0 +1,1 @@ 1 +29.7 KB - Content
- 1761034615747-763.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Iris - Size
-
... ... @@ -1,0 +1,1 @@ 1 +38.8 KB - Content