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
1.8 G function group
Viewed 2408 times since Thu, Aug 25, 2016
5.2.3 Deep-hole drilling CYCLE83
Viewed 14221 times since Fri, Aug 26, 2016
5.3.4 Thread undercut CYCLE96
Viewed 6663 times since Fri, Aug 26, 2016
3.5 Tool radius compensation G40/G41/G42
Viewed 6148 times since Fri, Aug 26, 2016
2.9 Exact stop/continuous-path control mode: G09/G60/G64
Viewed 3316 times since Thu, Aug 25, 2016
5.2.6 Boring (boring 2) CYCLE86
Viewed 12153 times since Fri, Aug 26, 2016
5.2.7 Boring with stop 1 (boring pass 3) CYCLE87
Viewed 2132 times since Fri, Aug 26, 2016
2.5 Programmable working area limitation: G25,G26,WALIMON,WALIMOF
Viewed 2352 times since Thu, Aug 25, 2016
5.2.8 Drilling with stop 2 (boring 4) CYCLE88
Viewed 2124 times since Fri, Aug 26, 2016
1.9 M function group
Viewed 8700 times since Thu, Aug 25, 2016