4.2 System parameter

Name

Type

Meaning

$P_S

REAL

programmed spindle speed

$P_F

REAL

programmed feedrate

$P_TOOLNO

INT

Number of the active tool T

$P_TOOL

INT

Active D number of the active tool

$P_TOOLL[n]

REAL

Active tool length compensation. For G18, $P_TOOLL[1] is X direction, $P_TOOLL[2] is Z direction

$P_TOOLR

REAL

Active tool tip radius compensation

$DIAMOPEN

BOOL

Symbol for diameter mode, TRUE is diameter mode, FALSE is radius mode

$TOOLTIP

INT

Active the tool cutting edge position

$P_AXN1

REAL

Active traverse axis, G17 for X axis, G18 for Z axis, G19 for Y axis

$P_AXN2

REAL

Active longitudinal axis, G17 for Y axis, G18 for X axis, G19 for Z axis

$P_AXN3

REAL

Active working axis, G17 for Z axis, G18 for Y axis, G19 for X axis

$P_EP[AXIS]

REAL

Theoretical coordinates of the tool tip.

$METRIC_SYSTEM

BOOL

Metric sizes. TRUE—metric, FLASE—inch.

$RADIUS_COMPENSATION

STRING

Tool tip radius compensation

1—G40,2—G41,3—G42

Example:

Tool radius set of the T1D2 is 0.5mm, tool offset is X10, Z15, the cutting edge set is 3

N10 T1D2

N20 M03 S500

N30 DIAMOF

N40 G00 X10 Z10 F600

N50 G41 G01 X20 Z20

N60 Z30

N70 X40

N80 R1=$P_S                                                   ;R1 value is 500

N90 R2=$P_F                                                    ;R2 value is 600

N100 R3=$P_TOOLNO                                    ;R3 value is 1

N110 R4=$P_TOOL                                          ;R4 value is 2

N120 R5=$P_TOOLL[1]                                   ;R5 value is 10

N130 R6=$P_TOOLR                                        ;R6 value is 0.5

N140 R7=$DIAMOPEN                                   ;R7 value is 0, means DIAMOF

N150 R8=$TOOLTIP                                        ;R8 value is 3

N160 R9=$P_AXN1                                          ;R9 value is 2, represent Z axis

N170 R10=$P_AXN2                                       ;R10 value is 0, represent X axis

N180 R11=$P_AXN3                                       ;R11 value is 1, represent Y axis

N190 R12=$P_EP[0]                                         ;R12 value is 40

N200 R13= $METRIC_SYSTEM                     ;R13 value is 1 , represent metric

N210 R14=$RADIUS_COMPENSATION      ;R14 value is 2 , represent G41

N220 G40


0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
5.3.3 Rough turning CYCLE95
Viewed 11306 times since Fri, Aug 26, 2016
5.3.5 Thread cutting CYCLE97
Viewed 6239 times since Fri, Aug 26, 2016
Preface
Viewed 1751 times since Thu, Aug 25, 2016
5.2.2 Drilling, counterboring CYCLE82
Viewed 2468 times since Fri, Aug 26, 2016
5.3.1 Groove CYCLE93
Viewed 3830 times since Fri, Aug 26, 2016
5.2.4 Rigid tapping CYCLE84
Viewed 3090 times since Fri, Aug 26, 2016
1.5 Variable definition
Viewed 2237 times since Thu, Aug 25, 2016
3.2 Tool offset number D
Viewed 1709 times since Fri, Aug 26, 2016
4.1 Arithmetic parameter R
Viewed 1572 times since Fri, Aug 26, 2016
5.3 Turning cycles
Viewed 2047 times since Fri, Aug 26, 2016