%
<BK2-C-Z>

(**************************************)
 
(ISO 10791-6 Part Program) 

M00(WARNING - PRESSING CYLCE START CONFIRMS THAT YOU HAVE READ AND COMPLIED WITH THE FOLLOWING TEXT) 

(Renishaw cannot guarantee that generated part)  
(programs are correct. Anyone using these programs) 
(must ensure that they are suitable for the) 
(machine/controller on which they are used.)
(Part programs should only be run by personnel)
(who are fully familiar with the machine,) 
(the controller and the operation of all guards,) 
(interlocks and emergency stop switches.) 
(It is recommended that programs are initially tested) 
(at low speed using the feedrate override control.) 

M00(The following variables should be adjusted to suit the working envelope of your machine)

#100=0						(FEED RATE)
#101=54						(WCS)
#102=XX						(TOOL OFFSET)
#105=360.					(C AXIS INCREMENT)
#106=-360.					(C AXIS INCREMENT)
#109=2						(1=UNIDIRECTIONAL 2= BIDRECTIONAL)

(DO NOT EDIT BELOW THIS LINE)

G90 G#101 G01 X0. Y0. Z101.5 C0. B0. F#100	(REFERENCE MOVE)

M00						(PUT BALLBAR IN)

G43.4 H#102					(TCP ON)

N0100

(FIRST RUN)

G91 Z-1.5					(Feed-in)
G04 X0.5					(Dwell)
G91 C#105 					(TCP capture)
G04 X0.5					(Dwell)
G91 Z1.5					(Feed-out)
G04 X4.						(Dwell)

IF [#109 LT 2] GOTO 200

(SECOND RUN)

G91 Z-1.5					(Feed-in)
G04 X0.5					(Dwell)
G91 C#106 					(TCP capture) 
G04 X0.5					(Dwell)
G91 Z1.5					(Feed-out)
G04 X1.						(Dwell)

N0200

G49						(TCP off)

M30
%

M