16 Circular interpolation instruction

Last modified by Stone Wu on 2022/09/02 02:04

6.16.1 G90G01 instruction

Instruction description

NameFunctionBits(bits)Pulse typeInstruction formatStep
G90G01Absolute position line interpolation16NoG90G01 S1 S2 D1 D221
  • 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;
OperandBit deviceWord device
XYMSKHEKnXKnYKnMKnSTCDVZ
S1               
S2             
D1               
D2              

Program example

The system variables when execution of instruction:

InstructionG90G01
FunctionAbsolute position line interpolation
Axis3
Output portY0Y1Y2
Present position (double byte)D8140D8142D8150
Time of ACC/DEC (byte)D8148
D8104D8105D8106
Basic velocity (double)D8145
Maximum velocity (double byte)D8146
Pulse output interruptM8145M8146M8152
BUSY/ READYM8147M8148M8149
ACC/ DECTrapezium AC/DE

7-15 Circular interpolation instruction_html_cb14fc071f12cd06.jpg

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:
  • 7-15 Circular interpolation instruction_html_be886ee3c8a68fd0.jpg

  • The output frequency range of interpolation (not synthesized frequency):10~100 KHz;
  • Frequency calculation:

7-15 Circular interpolation instruction_html_4cc6fc48991f18fd.jpg

6.16.2 G91G01 instruction

Instruction description

NameFunctionBits(bits)Pulse typeInstruction formatStep
G91G01Relative position line interpolation16NoG91G01 S1 S2 D1 D221
  • 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;
OperandBit deviceWord device
XYMSKHEKnXKnYKnMKnSTCDVZ
S1               
S2             
D1               
D2              

Program example

The system variables when execution of instruction:

InstructionG91G01
FunctionRelative position line interpolation
Axis3
Output portY0Y1Y2
Present position (double byte)D8140D8142D8150
Time of ACC/DEC (byte)D8148
D8104D8105D8106
Basic velocity (double)D8145
Maximum velocity (double byte)D8146
Pulse output interruptM8145M8146M8152
BUSY/ READYM8147M8148M8149
ACC/ DECTrapezium AC/DE

7-15 Circular interpolation instruction_html_b76fcfc0da67f07e.jpg

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:
  • 7-15 Circular interpolation instruction_html_be886ee3c8a68fd0.jpg

  • The output frequency range of interpolation (not synthesized frequency):10~100 KHz;
  • Frequency calculation:

7-15 Circular interpolation instruction_html_47c39c4dafe6d9e.jpg

6.16.3 G90G02 instruction

Instruction description

NameFunctionBits (bits)Pulse typeInstruction formatStep
G90G02Absolute position clockwise circular interpolation16NoG91G02 S1 S2 S3 D1 D221
  • 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;
OperandBit deviceWord device
XYMSKHEKnXKnYKnMKnSTCDVZ
S1               
S2               
S3             
D1               
D2              

Program example

The system variables when execution of instruction:

InstructionG91G02
FunctionAbsolute position clockwise circular interpolation
Axis2
Output portY0Y1
Present position (double byte)D8140D8142
Time of ACC/DEC (byte)D8148
D8104D8105
Basic velocity (double)D8145
Maximum velocity (double byte)D8146
Pulse output interruptM8145M8146
BUSY/ READYM8147M8148
ACC/ DECTrapezium AC/DE

7-15 Circular interpolation instruction_html_5a9a285b99194686.jpg

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:
  • 7-15 Circular interpolation instruction_html_be886ee3c8a68fd0.jpg

  • The output frequency range of interpolation (not synthesized frequency):10~100 KHz;
  • Frequency calculation:

7-15 Circular interpolation instruction_html_f3da1facc6d4a79e.jpg

6.16.4 G91G02 instruction

Instruction description

NameFunctionBits(bits)Pulse typeInstruction formatStep
G91G02Relative position clockwise circular interpolation16NoG91G02 S1 S2 S3 D1 D221
  • 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;
OperandBit deviceWord device
XYMSKHEKnXKnYKnMKnSTCDVZ
S1               
S2               
S3             
D1               
D2              

Program example

The system variables when execution of instruction:

InstructionG91G02
FunctionAbsolute position clockwise circular interpolation
Axis2
Output portY0Y1
Present position (double byte)D8140D8142
Time of ACC/DEC (byte)D8148
D8104D8105
Basic velocity (double)D8145
Maximum velocity (double byte)D8146
Pulse output interruptM8145M8146
BUSY/ READYM8147M8148
ACC/ DECTrapezium AC/DE

7-15 Circular interpolation instruction_html_993c8883284b79d8.jpg

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:
  • 7-15 Circular interpolation instruction_html_be886ee3c8a68fd0.jpg

  • The output frequency range of interpolation (not synthesized frequency):10~100 KHz;
  • Frequency calculation:

7-15 Circular interpolation instruction_html_d5f8cae2769d33f5.jpg

6.16.5 G90G03 instruction

Instruction description

NameFunctionBits (bits)Pulse typeInstruction formatStep
G90G03Absolute position anticlockwise circular interpolation16NoG90G03 S1 S2 S3 D1 D221
  • 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;
OperandBit deviceWord device
XYMSKHEKnXKnYKnMKnSTCDVZ
S1               
S2               
S3             
D1               
D2              

Program example

The system variables when execution of instruction:

InstructionG90G03
FunctionAbsolute position anticlockwise circular interpolation
Axis2
Output portY0Y1
Present position (double byte)D8140D8142
Time of ACC/DEC (byte)D8148
D8104D8105
Basic velocity (double)D8145
Maximum velocity (double byte)D8146
Pulse output interruptM8145M8146
BUSY/ READYM8147M8148
ACC/ DECTrapezium AC/DE

7-15 Circular interpolation instruction_html_739d6295cd8cb362.jpg

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:
  • 7-15 Circular interpolation instruction_html_be886ee3c8a68fd0.jpg

  • The output frequency range of interpolation (not synthesized frequency):10~100 KHz;
  • Frequency calculation:

7-15 Circular interpolation instruction_html_9d9e5e58c23611d3.jpg

6.16.6 G91G03 instruction

Instruction description

NameFunctionBits (bits)Pulse typeInstruction formatStep
G91G03Relative position anticlockwise circular interpolation16NoG91G03 S1 S2 S3 D1 D221
  • 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;
OperandBit deviceWord device
XYMSKHEKnXKnYKnMKnSTCDVZ
S1               
S2               
S3             
D1               
D2              

Program example

The system variables when execution of instruction:

InstructionG91G03
FunctionAbsolute position clockwise circular interpolation
Axis2
Output portY0Y1
Present position (double byte)D8140D8142
Time of ACC/DEC (byte)D8148
D8104D8105
Basic velocity (double)D8145
Maximum velocity (double byte)D8146
Pulse output interruptM8145M8146
BUSY/ READYM8147M8148
ACC/ DECTrapezium AC/DE

7-15 Circular interpolation instruction_html_ae5c0fbd4932001c.jpg

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:
  • 7-15 Circular interpolation instruction_html_be886ee3c8a68fd0.jpg

  • The output frequency range of interpolation (not synthesized frequency):10~100 KHz;
  • Frequency calculation:

    7-15 Circular interpolation instruction_html_5728a3044584d2ee.jpg