Changes for page 08 Motion Control

Last modified by Iris on 2026/04/03 10:39

From version 1.1
edited by Wecon
on 2025/09/03 21:02
Change comment: Imported from XAR
To version 5.4
edited by Iris
on 2025/10/22 15:17
Change comment: There is no comment for this version

Summary

Details

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