TRANS

Your Ad Here




 

TRANS/x,y (L)

This statement relates the machine coordinate system to the .INC and CL coordinate system, when the two are not coincidental.

All the .INC and CL coordinates after the TRANS statement are modified by the TRANS values.

x , y Specify the distance and direction along the machine X and Y axes measured from the machine origin to the part origin. Initially TRANS/0 is assumed.

Example:

Input:

 

TRANS/10,10

P1=POINT/5,5,0

P2=POINT/3,3,0

GOTO/P1

GOTO/P2

TRANS/0

GOTO/10,10

 

Machine Data File Output:

 

N004G01X15Z15$

N005X13Z13$

N006X1Z1$

 

TRANS/x,y,z (M)

This statement relates the machine coordinate system to the .INC and CL coordinate system, when the two are not coincidental.

All the .INC and CL coordinates after the TRANS statement are modified by the TRANS values.

x, y, z Specify the distance and direction along the machine X, Y, and Z axes measured from the machine origin to the part origin. Initially TRANS/0 is assumed.

Example (M):

Input:

 

GOTO/3,3,0

TRANS/10,10,1

P1=POINT/4,6,.5

P2=POINT/5,5,2

TRANS/0

GOTO/7,7,4

 

Machine Data File Output:

 

N0004G01X003Y003Z0$

N0005X014Y016Z0015$

N0006X015Y015Z003$

N0007X007Y007Z004$

 

Related Command:

ORIGIN

 

TRANS/xi,xj,xk,xd,yi,yj,yk,yd,zi,zj,zk,zd

This statement relates the machine coordinate system to the .INC and CL coordinate system, when the two are not coincidental. All the .INC and CL coordinates after the TRANS statement are modified by the TRANS values. A rotation can be included with translation for the .INC and CL coordinates.

xi through zd are the canonical values of a mathematical matrix. A graph of the matrix follows:

 

X Input

Y Input

Z Input

 

 

X axis

xi

xj

xk

xd

X Output

Y axis

yi

yj

yk

yd

Y Output

Z axis

zi

zj

zk

zd

Z Output

A .INC and CL point is processed through this matrix as follows:

Input Coordinates: X= 6, Y=3, Z=7

TRANS/0,1,0,2 ,-1,0,0,5 ,0,0,1,1

 

X Output = X Input * xi + Y Input * xj + Z Input * xk + xd

6*0+3*1+7*0+2=5

 

Y Output = X Input * yi + Y Input * yj + Z Input * yk + yd

6*-1+3*0+7*0+5=-1

 

Z Output = X Input * zi + Y Input * zj + Z Input * zk + zd

6*0+3*0+7*1+1=8

 

Output Coordinates: X= 5, Y=-1, Z=9

These values determine the combined rotation and translation desired.

To cancel the translation matrix, use TRANS/0. Initially TRANS/0 is assumed. Separate TRANS Values for Point and Tool Axis (M):

 

TRANS/xi,xj,xk,xd,yi,yj,yk,yd,zi,zj,zk,zd[,OPTION,00-01-10]

OPTION  Allows you to apply the translation to only the point or vector .INC and CL coordinates. In other words, you can apply a separate matrix for point and another for the vector. If you want the same matrix to be applied to both the point and vector, use the regular TRANS/(12 parameter) without the word OPTION.

00 Turn off point or vector ONLY translation.

10 Translate point ONLY.

01 Translate vector ONLY.

 

SPSTCMND.chm

Return to SURFCAM Index


Your Ad Here