Coordinate system for orbiting
A different coordinate system for orbiting can be used for erosion on the path. To ensure that the orbit motion is executed perpendicular to the geometry in the down channel, the coordinate system in the orbit channel must also be rotated. These parameters can be specified when the orbit channel is activated.
The important thing here is that the coordinate system in the orbit channel must remain at the origin and only be rotated.
When it is activated for the first time, the coordinate system in the down channel must have its origin at the end point of the geometry for erosion on the path. The axis variables V.A.ACT_POS are used for this purpose in the examples. If the origin is at a different point, error ID 51089 is output.
The figure below shows various valid and invalid combinations of coordinate systems.
When the orbit and return channels are activated the second time, the origin of the coordinate system may be at a different point and the distance between these points is connected by an inserted linear motion; see Changing the escape point.
Notice

If several down geometries with different coordinate systems are executed, the orbit channel must first be deactivated and then activated with the new coordinate system
Programing Example

Using a coordinate system for orbiting
Programing Example

Down channel
%sinking
;…
N110 #CS ON [PCS] [V.A.ACT_POS.X, V.A.ACT_POS.Y, V.A.ACT_POS.Z, \
45, 0, 0] ( Define CS for orbiting
N6000 #CHANNEL INTERFACE ON [EXTEND AX=Y FREEZE=X FREEZE=Y ]
; transfer the CS rotations of the current CS in parameter @PL1-@PL3
N6001 #MC_MovePath SYN [ CH="CH-Planetary" ID="MC-OrbCircle" \
FileName=”DsPlanetaryFile” @PL1=V.G.SELECTED_CS.ROT.X \
@PL2=V.G.SELECTED_CS.ROT.Y @PL3=V.G.SELECTED_CS.ROT.Z \
@PL4=V.P.PlanetaryMaxScale @PL5=V.P.PlanetaryMaxEquid ]
Programing Example

Orbit channel
%planetary
;…
(- Activate CS with same orientation as in down channel
N2250 #CS ADD [PCS] [0, 0, 0, @PL1, @PL2, @PL3]
N2260 #CS SELECT [PCS]