Programming instructions

NC Programming 17VRS Commands for Controlling Processes and Programs
9-7
DOK-MTC200-NC**PRO*V17-ANW1-EN-P
Process 1 "B axis right" Process 2 "B axis left"
.BEARB Label for the
branch loop
FAX (B) Free B axis
WES 9 Wait until B axis in
P0
RE 9
GAX (B) Get B axis if freed
in machining
process
BER .BEARB 10 Loop until
machining is
completed in P0
RE 10
RET
.BEARB Label for the
branch loop
FAX (B) Free B axis
WES 9 Wait until B axis in
P0
RE 9
GAX (B) Get B axis if freed
in machining
process
BER .BEARB 10 Loop until
machining is
completed in P0
RE 10
RET
Process 0 "Machining"
RE 1:10
RE 2:10
T1 BSR .M6
[right side]
GAX (1:B)
SE 1:9
WER 1:9
BSR .BET1
[left side]
GAX (2:B)
SE 2:9
WER 2:9
BSR .BET1
T2 BSR .M6
[right side]
GAX (1:B)
SE 1:9
WER 1:9
BSR .BET2
[left side]
GAX (2:B)
SE 2:9
WER 2:9
BSR .BET2
SE 1:10
SE 2:10
T0 BSR .M6
RET
.BET1
G00 G54 G90 X0 Y0 Z100 B0
M03 S1000
;machining
M05
FAX (B)
RTS
.BET2
RTS
Reset NC events for branch loops in
process 1 + 2
Tool change of first tool
Get B axis from process 1
Process 1 is stopped up to this NC
block
Wait until process 1 is synchronized
Machine right side
Get B axis from process 2
Process 2 is stopped up to this NC
block
Wait until process 2 is synchronized
Machine left side
Tool change of second tool
Get B axis from process 1
Process 1 is stopped up to this NC
block
Wait until process 1 is synchronized
Machine right side
Get B axis from process 2
Process 2 is stopped up to this NC
block
Wait until process 2 is synchronized
Machine left side
End branch loops in processes 1
and 2.
End of program
Machining program 1st tool
Motion commands, interpolation
conditions
Free B axis
End of machining subroutine 1
Machining program 2nd tool
End of machining subroutine 2