Tracking a coordinate system (#CS TRACK)

A defined CS is shifted so that the current actual position corresponds to a specified tracking position. This command causes the physical axes not to move. The tracked CS need not be the active CS (#CS SELECT).

All CS’s in a CS stack above the tracked CS then refer relatively to the new position of the tracked CS.

Syntax of Defining a tracked CS:

#CS TRACK [<name>] [<POS_X>, <POS_Y>, <POS_Z> ]

<name>

Name of the tracked CS with maximum of 8 characters

<POS_X, Y, Z>

3 components of the new actual position in [mm, inch] in the tracked CS.

Track a PCS in XY with #CS TRACK, P remains constant
Track a PCS in XY with #CS TRACK, P remains constant

Programing Example

prg_example

Track a CS with #CS TRACK

:

N10 #CS ADD [PCS][...] [...]

N20 #CS SELECT [PCS]

N30 G0 X150 Y100 Z0 ; Move to PCS position P(150,100,0)

:

N50 #CS TRACK [PCS] [40,30,0] ;P(150,100,0) in tracked PCS: P(40,30,0)

:

M30