Examples 
  4.3 Frames 
Axis Types, Coordinate Systems, Frames (K2) 
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0 
4-5 
Part program in first channel 
 
Code (excerpt)    Comment 
. . .     
N100 $P_NCBFR[0] = CTRANS( x, 10 )  ;  Activation of the NC global basic frame 
. . .     
N130 $P_NCBFRAME[0] = CROT(X, 45)  ;  Activation of the NC global basic frame with rotation =>
alarm 18310, since rotations of NC global frames  
are not permitted 
. . .     
Part program in second channel 
 
Code (excerpt)    Comment 
. . .     
N100 $P_NCBFR[0] = CTRANS( x, 10 )  ;  The NCU global basic frame is also active in second 
channel 
. . .     
N510 G500 X10  ;  Activate basic frame 
N520 $P_CHBFRAME[0] = CTRANS( x, 10 )  ;  Current frame of second channel is activated with an 
offset 
. . .     
 
4.3  4.3 Frames  
Example 1 
The channel axis is to become a geometry axis through geometry axis substitution. 
The substitution is to give the programmable frame a translation component of 10 in the X 
axis. 
The current settable frame is to be retained: 
FRAME_GEOX_CHANGE_MODE = 1 
 
$P_UIFR[1] = 
CROT(x,10,y,20,z,30) 
; Frame is retained after geo axis substitution. 
G54  ; Settable frame becomes active. 
TRANS a10   ; Axial offset of a is also substituted. 
GEOAX(1, a)  ; A becomes x axis. 
 ; $P_ACTFRAME= CROT(x,10,y,20,z,30):CTRANS(x10) 
Several channel axes can become geometry axes on a transformation change.