16 Circular interpolation instruction
Last modified by Stone Wu on 2022/09/02 02:04
6.16.1 G90G01 instruction
Instruction description
Name | Function | Bits(bits) | Pulse type | Instruction format | Step |
G90G01 | Absolute position line interpolation | 16 | No | G90G01 S1 S2 D1 D2 | 21 |
- S1: Target position, will occupy 6 continue address. The range is -2147483648 ~ 2417482647. Target position could be specified by a absolute address; S1: Target position of X axis, S1+2: Target position of Y axis, S1 +4:Target position of Z axis.
- S2: The output frequency of the synthesis;
- D1: High speed pulse output port, only Y0 could be specified, occupy 3 continue address (Y0, Y1, and Y2);
- D2: The operating direction output port, occupy 3 continue address;
Operand | Bit device | Word device | ||||||||||||||
X | Y | M | S | K | H | E | KnX | KnY | KnM | KnS | T | C | D | V | Z | |
S1 | √ | |||||||||||||||
S2 | √ | √ | √ | |||||||||||||
D1 | √ | |||||||||||||||
D2 | √ | √ |
Program example
The system variables when execution of instruction:
Instruction | G90G01 | ||
Function | Absolute position line interpolation | ||
Axis | 3 | ||
Output port | Y0 | Y1 | Y2 |
Present position (double byte) | D8140 | D8142 | D8150 |
Time of ACC/DEC (byte) | D8148 | ||
D8104 | D8105 | D8106 | |
Basic velocity (double) | D8145 | ||
Maximum velocity (double byte) | D8146 | ||
Pulse output interrupt | M8145 | M8146 | M8152 |
BUSY/ READY | M8147 | M8148 | M8149 |
ACC/ DEC | Trapezium AC/DE |
Note for use
- When using the interpolation instruction, parameter settings (such as celebration/deceleration time and so on) are subject to the X axis (Y0);
- Only support trapezoidal acceleration and deceleration;
- The actuality output synthesized frequency (lowest frequency),the computation formula is as follows:
- The output frequency range of interpolation (not synthesized frequency):10~100 KHz;
- Frequency calculation:
6.16.2 G91G01 instruction
Instruction description
Name | Function | Bits(bits) | Pulse type | Instruction format | Step |
G91G01 | Relative position line interpolation | 16 | No | G91G01 S1 S2 D1 D2 | 21 |
- S1: Target position, will occupy 6 continue address. The range is -2147483648 ~ 2417482647. Target position could be specified by a relative address; S1: Target position of X axis, S1+2: Target position of Y axis, S1 +4: Target position of Z axis.
- S2: The output frequency of the synthesis;
- D1: High speed pulse output port, only Y0 could be specified, occupy 3 continue address (Y0, Y1, and Y2);
- D2: The operating direction output port, occupy 3 continue address;
Operand | Bit device | Word device | ||||||||||||||
X | Y | M | S | K | H | E | KnX | KnY | KnM | KnS | T | C | D | V | Z | |
S1 | √ | |||||||||||||||
S2 | √ | √ | √ | |||||||||||||
D1 | √ | |||||||||||||||
D2 | √ | √ |
Program example
The system variables when execution of instruction:
Instruction | G91G01 | ||
Function | Relative position line interpolation | ||
Axis | 3 | ||
Output port | Y0 | Y1 | Y2 |
Present position (double byte) | D8140 | D8142 | D8150 |
Time of ACC/DEC (byte) | D8148 | ||
D8104 | D8105 | D8106 | |
Basic velocity (double) | D8145 | ||
Maximum velocity (double byte) | D8146 | ||
Pulse output interrupt | M8145 | M8146 | M8152 |
BUSY/ READY | M8147 | M8148 | M8149 |
ACC/ DEC | Trapezium AC/DE |
Note for use
- When using the interpolation instruction, parameter settings (such as celebration/deceleration time and so on) are subject to the X axis (Y0);
- Only support trapezoidal acceleration and deceleration;
- The actuality output synthesized frequency (lowest frequency),the computation formula is as follows:
- The output frequency range of interpolation (not synthesized frequency):10~100 KHz;
- Frequency calculation:
6.16.3 G90G02 instruction
Instruction description
Name | Function | Bits (bits) | Pulse type | Instruction format | Step |
G90G02 | Absolute position clockwise circular interpolation | 16 | No | G91G02 S1 S2 S3 D1 D2 | 21 |
- S1: Target position, will occupy 6 continue address. The range is -2147483648 ~ 2417482647. Target position could be specified by a absolution address; S1: Target position of X axis, S1+2: Target position of Y axis.
- S2: Radius/r, occupy 4 bit variable in the continue address .The radius will always treated as relative address; S2+0:The pulse output D-value between center coordinate and present position ,or the pulse amount of radius “R"; S2+2:The pulse output D-value between center coordinate and present position .When we use radius mode ,the value must be 0x7FFFFFFF.The range is -2,147,483,648 ~ 2,147,483,647.
- S3: The output frequency of the synthesis;
- D1: High speed pulse output port, only Y0 could be specified, occupy 3 continue address (Y0, Y1, and Y2);
- D2: The operating direction output port, occupy 2 continue address;
Operand | Bit device | Word device | ||||||||||||||
X | Y | M | S | K | H | E | KnX | KnY | KnM | KnS | T | C | D | V | Z | |
S1 | √ | |||||||||||||||
S2 | √ | |||||||||||||||
S3 | √ | √ | √ | |||||||||||||
D1 | √ | |||||||||||||||
D2 | √ | √ |
Program example
The system variables when execution of instruction:
Instruction | G91G02 | |
Function | Absolute position clockwise circular interpolation | |
Axis | 2 | |
Output port | Y0 | Y1 |
Present position (double byte) | D8140 | D8142 |
Time of ACC/DEC (byte) | D8148 | |
D8104 | D8105 | |
Basic velocity (double) | D8145 | |
Maximum velocity (double byte) | D8146 | |
Pulse output interrupt | M8145 | M8146 |
BUSY/ READY | M8147 | M8148 |
ACC/ DEC | Trapezium AC/DE |
Note for use
- The arc should be more than 20 pulses in circular interpolation, otherwise there will be error;
- The maximum radius of circular interpolation support is 8000000 pulse;
- The selection of S2 have two modes: IJ mode (center coordinates) and R mode (radius mode). When set the value of S2+2 as 0x7FFFFFFF,it is R mode (radius mode), otherwise it is IJ mode (center coordinates) mode .
- IJ mode: S1 only express the relative position between present position and center coordinates regardless absolute or relative interpolation mode. It should be calculated with pulse deviation value.
- R mode (radius mode), when the value of R is positive, it is express a circular arc less than 180 degrees; inversely, it is express a circular arc greater than 180 degrees .In R mode , you couldn’t generate the full circle ,because it has infinitely solution.
- When S1 express the relative address of target position, the target position should be logical to insure create a correct path of target of arc. When both S1+0 and S1+2 equal 0, it will generate a full circle.
- When using the interpolation instruction, parameter settings (such as celebration/deceleration time and so on) are subject to the X axis (Y0);
- The actuality output synthesized frequency (lowest frequency), the computation formula is as follows:
- The output frequency range of interpolation (not synthesized frequency):10~100 KHz;
- Frequency calculation:
6.16.4 G91G02 instruction
Instruction description
Name | Function | Bits(bits) | Pulse type | Instruction format | Step |
G91G02 | Relative position clockwise circular interpolation | 16 | No | G91G02 S1 S2 S3 D1 D2 | 21 |
- S1: Target position, will occupy 6 continue address. The range is -2147483648 ~ 2417482647. Target position could be specified by a absolution address; S1: Target position of X axis, S1+2: Target position of Y axis.
- S2: Radius/r, occupy 4-bit variable in the continue address. The radius will always treated as relative address; S2+0: The pulse output D-value between center coordinate and present position ,or the pulse amount of radius “R"; S2+2:The pulse output D-value between center coordinate and present position .When we use radius mode ,the value must be 0x7FFFFFFF.The range is -2,147,483,648 ~ 2,147,483,647.
- S3: The output frequency of the synthesis;
- D1: High speed pulse output port, only Y0 could be specified, occupy 3 continue address (Y0, Y1, and Y2);
- D2: The operating direction output port, occupy 2 continue address;
Operand | Bit device | Word device | ||||||||||||||
X | Y | M | S | K | H | E | KnX | KnY | KnM | KnS | T | C | D | V | Z | |
S1 | √ | |||||||||||||||
S2 | √ | |||||||||||||||
S3 | √ | √ | √ | |||||||||||||
D1 | √ | |||||||||||||||
D2 | √ | √ |
Program example
The system variables when execution of instruction:
Instruction | G91G02 | |
Function | Absolute position clockwise circular interpolation | |
Axis | 2 | |
Output port | Y0 | Y1 |
Present position (double byte) | D8140 | D8142 |
Time of ACC/DEC (byte) | D8148 | |
D8104 | D8105 | |
Basic velocity (double) | D8145 | |
Maximum velocity (double byte) | D8146 | |
Pulse output interrupt | M8145 | M8146 |
BUSY/ READY | M8147 | M8148 |
ACC/ DEC | Trapezium AC/DE |
Note for use
- The arc should be more than 20 pulses in circular interpolation, otherwise there will be error;
- The maximum radius of circular interpolation support is 8000000 pulse;
- The selection of S2 have two modes: IJ mode (center coordinates) and R mode (radius mode). When set the value of S2+2 as 0x7FFFFFFF, it is R mode (radius mode), otherwise it is IJ mode (center coordinates) mode.
- IJ mode: S1 only express the relative position between present position and center coordinates regardless absolute or relative interpolation mode. It should be calculated with pulse deviation value.
- R mode (radius mode), when the value of R is positive, it is express a circular arc less than 180 degrees; inversely, it is express a circular arc greater than 180 degrees. In R mode , you couldn’t generate the full circle ,because it has infinitely solution.
- When S1 express the relative address of target position, the target position should be logical to insure create a correct path of target of arc. When both S1+0 and S1+2 equal 0, it will generate a full circle.
- When using the interpolation instruction, parameter settings (such as celebration/deceleration time and so on) are subject to the X axis (Y0);
- The actuality output synthesized frequency (lowest frequency), the computation formula is as follows:
- The output frequency range of interpolation (not synthesized frequency):10~100 KHz;
- Frequency calculation:
6.16.5 G90G03 instruction
Instruction description
Name | Function | Bits (bits) | Pulse type | Instruction format | Step |
G90G03 | Absolute position anticlockwise circular interpolation | 16 | No | G90G03 S1 S2 S3 D1 D2 | 21 |
- S1: Target position, will occupy 6 continue address. The range is -2147483648 ~ 2417482647. Target position could be specified by a absolution address; S1: Target position of X axis, S1+2: Target position of Y axis.
- S2: Radius/r, occupy 4 bit variable in the continue address .The radius will always treated as relative address; S2+0:The pulse output D-value between center coordinate and present position ,or the pulse amount of radius “R"; S2+2:The pulse output D-value between center coordinate and present position .When we use radius mode ,the value must be 0x7FFFFFFF.The range is -2,147,483,648 ~ 2,147,483,647.
- S3: The output frequency of the synthesis;
- D1: High speed pulse output port, only Y0 could be specified, occupy 3 continue address (Y0, Y1, and Y2);
- D2: The operating direction output port, occupy 2 continue address;
Operand | Bit device | Word device | ||||||||||||||
X | Y | M | S | K | H | E | KnX | KnY | KnM | KnS | T | C | D | V | Z | |
S1 | √ | |||||||||||||||
S2 | √ | |||||||||||||||
S3 | √ | √ | √ | |||||||||||||
D1 | √ | |||||||||||||||
D2 | √ | √ |
Program example
The system variables when execution of instruction:
Instruction | G90G03 | |
Function | Absolute position anticlockwise circular interpolation | |
Axis | 2 | |
Output port | Y0 | Y1 |
Present position (double byte) | D8140 | D8142 |
Time of ACC/DEC (byte) | D8148 | |
D8104 | D8105 | |
Basic velocity (double) | D8145 | |
Maximum velocity (double byte) | D8146 | |
Pulse output interrupt | M8145 | M8146 |
BUSY/ READY | M8147 | M8148 |
ACC/ DEC | Trapezium AC/DE |
Note for use
- The arc should be more than 20 pulses in circular interpolation, otherwise there will be error;
- The maximum radius of circular interpolation support is 8000000 pulse;
- The selection of S2 have two modes: IJ mode (center coordinates) and R mode (radius mode). When set the value of S2+2 as 0x7FFFFFFF, it is R mode (radius mode), otherwise it is IJ mode (center coordinates) mode .
- IJ mode: S1 only express the relative position between present position and center coordinates regardless absolute or relative interpolation mode. It should be calculated with pulse deviation value.
- R mode (radius mode), when the value of R is positive, it is express a circular arc less than 180 degrees; inversely, it is express a circular arc greater than 180 degrees .In R mode , you couldn’t generate the full circle ,because it has infinitely solution.
- When S1 express the relative address of target position, the target position should be logical to insure create a correct path of target of arc. When both S1+0 and S1+2 equal 0, it will generate a full circle.
- When using the interpolation instruction, parameter settings (such as celebration/deceleration time and so on) are subject to the X axis (Y0);
- The actuality output synthesized frequency (lowest frequency), the computation formula is as follows:
- The output frequency range of interpolation (not synthesized frequency):10~100 KHz;
- Frequency calculation:
6.16.6 G91G03 instruction
Instruction description
Name | Function | Bits (bits) | Pulse type | Instruction format | Step |
G91G03 | Relative position anticlockwise circular interpolation | 16 | No | G91G03 S1 S2 S3 D1 D2 | 21 |
- S1: Target position, will occupy 6 continue address. The range is -2147483648 ~ 2417482647. Target position could be specified by a absolution address; S1: Target position of X axis, S1+2: Target position of Y axis.
- S2: Radius/r, occupy 4 bit variable in the continue address .The radius will always treated as relative address; S2+0:The pulse output D-value between center coordinate and present position ,or the pulse amount of radius “R"; S2+2:The pulse output D-value between center coordinate and present position .When we use radius mode ,the value must be 0x7FFFFFFF.The range is -2,147,483,648 ~ 2,147,483,647.
- S3: The output frequency of the synthesis;
- D1: High speed pulse output port, only Y0 could be specified, occupy 3 continue address (Y0, Y1, and Y2);
- D2: The operating direction output port, occupy 2 continue address;
Operand | Bit device | Word device | ||||||||||||||
X | Y | M | S | K | H | E | KnX | KnY | KnM | KnS | T | C | D | V | Z | |
S1 | √ | |||||||||||||||
S2 | √ | |||||||||||||||
S3 | √ | √ | √ | |||||||||||||
D1 | √ | |||||||||||||||
D2 | √ | √ |
Program example
The system variables when execution of instruction:
Instruction | G91G03 | |
Function | Absolute position clockwise circular interpolation | |
Axis | 2 | |
Output port | Y0 | Y1 |
Present position (double byte) | D8140 | D8142 |
Time of ACC/DEC (byte) | D8148 | |
D8104 | D8105 | |
Basic velocity (double) | D8145 | |
Maximum velocity (double byte) | D8146 | |
Pulse output interrupt | M8145 | M8146 |
BUSY/ READY | M8147 | M8148 |
ACC/ DEC | Trapezium AC/DE |
Note for use
- The arc should be more than 20 pulses in circular interpolation, otherwise there will be error;
- The maximum radius of circular interpolation support is 8000000 pulse;
- The selection of S2 have two modes: IJ mode (center coordinates) and R mode (radius mode). When set the value of S2+2 as 0x7FFFFFFF, it is R mode (radius mode), otherwise it is IJ mode (center coordinates) mode.
- IJ mode: S1 only express the relative position between present position and center coordinates regardless absolute or relative interpolation mode. It should be calculated with pulse deviation value.
- R mode (radius mode), when the value of R is positive, it is express a circular arc less than 180 degrees; inversely, it is express a circular arc greater than 180 degrees. In R mode, you couldn’t generate the full circle, because it has infinitely solution.
- When S1 express the relative address of target position, the target position should be logical to insure create a correct path of target of arc. When both S1+0 and S1+2 equal 0, it will generate a full circle.
- When using the interpolation instruction, parameter settings (such as celebration/deceleration time and so on) are subject to the X axis (Y0);
- The actuality output synthesized frequency (lowest frequency), the computation formula is as follows:
- The output frequency range of interpolation (not synthesized frequency):10~100 KHz;
- Frequency calculation: