Standard program structure of down channel
The down channel is the main channel that commands the other channels and controls the die sinking process.
The basic structure of a die sinking program in the down channel is presented in the program example below.
Programing Example

Basic structure - die sinking program in the down channel
%sinking-prog
N010 "DsPlanetaryFile" = "Planetary.nc"
N020 "DsEscapeFile" = "Escape.nc"
N030 #SLOPE [TYPE=STEP]
N040 L Positioning.sub
;---- Activate the escape channel -> implicit start of erosion on the path
N050 #CS ON [EAB] [0,0,0, 0,0,0] ; Define CS
N060 L DS-ActivateEscape-ACS.sub
N070 L PathErosion.sub
; Limit the dynamics
N080 G128=50 ; velocity
N090 G131=50 ; acceleration
;---- Activate the orbit channel -> implicit start of orbiting
N100 #CHANNEL INTERFACE OFF[ESCAPE WAIT]
;---- Activate CS at end point of path erosion
N110 #CS ON [PCS] [V.A.ACT_POS.X,V.A.ACT_POS.Y,V.A.ACT_POS.Z, 0,0,0]
N120 L DS-ActivatePlanetary.sub
N130 #CHANNEL INTERFACE ON[ESCAPE]
N140 L PlanetaryErosion.sub
N150 #CHANNEL INTERFACE OFF[ESCAPE WAIT]
;------ Deactivate channels
N160 L DS-DeactivatePlanetary.sub
N170 L DS-DeactivateEscape.sub
N180 L MoveBackToStart.sub
N190 #CS DEL ALL
N200 M30
The macros of the subroutine names for the orbit and escape channels are created in N010 and N020 for later use. The use of macros allows the same subroutine to be called up to activate the other channels [coupling programs] in different programs. This allows the simple exchange of geometries.
Select the not jerk limited acceleration profile in N030 and the approach to the geometry in N040.
The coordinate system for erosion on the path is defined and activated in N050 – N070, the escape channel is activated and the path geometry is eroded.
Attention

It is not possible to change the coordinate system during erosion on the path.
Since the resulting motion for orbiting consists of the superimposed motion of the three channels, the dynamics in the individual channels must be limited. This is executed in the down channel in N080 and N090.
Temporary deactivation of the escape commands takes place in N100 (using the #CHANNEL INTERFACE OFF[ESCAPE WAIT]) command. This is done because there must be no motion in the escape channel when the machining coordinate system is changed, the coupling with the orbit channel is activated and the coupling with the escape and orbit channels are deactivated.
This is followed in N110 by the machining coordinate system which is defined and activated in the orbiting phase. The origin of this coordinate system must be at the end point of path erosion when the escape channel is first activated. This is why the current positions are used for selection with the V.A. variables. The orbit channel is activates in N120.
Before actual machining starts in N140, the escape channel is reactivated in N130.
The escape command is temporarily deactivated again in N150 in order to deactivate the escape and orbit channels in N160 and N170.
Finally, the electrode is retracted in N180-N220, all coordinate systems are deleted and the program ends.