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.1 Coordinate systems
Viewed 3300 times since Thu, Aug 25, 2016
3.2 Tool offset number D
Viewed 1696 times since Fri, Aug 26, 2016
1.7 The instructions table
Viewed 1993 times since Thu, Aug 25, 2016
5.2.4 Rigid tapping CYCLE84
Viewed 3057 times since Fri, Aug 26, 2016
3.5 Tool radius compensation G40/G41/G42
Viewed 5547 times since Fri, Aug 26, 2016
1.9 M function group
Viewed 8479 times since Thu, Aug 25, 2016
5.3.5 Thread cutting CYCLE97
Viewed 6170 times since Fri, Aug 26, 2016
1.5 Variable definition
Viewed 2221 times since Thu, Aug 25, 2016
6.1 Outer contouring
Viewed 1499 times since Fri, Aug 26, 2016
3.4 Tool group TGROUP
Viewed 1684 times since Fri, Aug 26, 2016