Standard program structure of orbit channel

Below is an example of an NC program for an orbit channel which is started from the down channel in the orbit channel as shown in the orbit channel coupling.

Programing Example

prg_example

Standard program structure of orbit channel

%Planetary.nc

; Limit the dynamics

N2010 G128=50 ; velocity

N2020 G131=50 ; acceleration

N2030 G133=50 ; ramp times

N2040 G00 X0 Y0 Z0

N2050 #TRACK CHAN ON [EXTEND="CH-Sinking" MAX_SCALE=@PL4 MAX_EQUID=@PL5]

N2060 #CHANNEL INTERFACE ON [DYN_CS]

N2070 #BACKWARD STORAGE CLEAR

(-- Same orientation in orbit channel as in down channel--)

N2080 #CS ADD [PCS] [0, 0, 0, @PL1, @PL2, @PL3]

N2090 #CS SELECT [PCS]

N2100 L PlanetaryStartingPoint.sub

N2110 #RT CYCLE DELETE [ ID4711 ]

N2120 #RT CYCLE [ ID4711, SCOPE=GLOBAL ]

N2130 V.RTG.LOOP.ENABLED = TRUE

N2140 #RT CYCLE END

N2150 #SIGNAL SYN[ID="S-PlanetaryReady" CH="CH-Sinking"]

N2160 #RT WHILE

N2170 L geometry.sub

N2180 #RT ENDWHILE

N2190 #CS DEL ALL

N2200 M30

The dynamics are limited in N2010 - N2030 due to the superimposed channel constellation.

The channel is moved to its start position in N2040.

The channel coupling to the down channel is created in N2050 by the orbit channel. The command is the counterpart of block N6000 in orbit channel coupling. It also defines the maximum scaling radius and the maximum equidistant distance. These parameters are transferred from the down channel when the program is called.

The interface of the orbit channel to the down channel is opened in N2060. The X and Y MCS coordinates are transferred from the orbit channel to the down channel via this interface.

N2070 ensures that it is not possible to move backwards over this block.

A machining coordinate system is generated and selected in N2080 and N2090.

N2100 contains the motion to the starting point of the actual orbit geometry.

Notice

notice

The second motion block is implicitly interpreted as an orbit geometry block and must therefore be part of the orbit geometry.

N2110-N2140 contain the definition of the real-time cycle for the endless real-time loop in N2160-N2180 [FCT-C32 Real-time cycles].

N2150 sends a signal to the down channel so that it can continue machining. The down channel waits for this signal in block N6002, as described in the NC program in the section Coupling programs.

Notice

notice

With an equidistant orbit geometry, the orbit channel is only ready when a closed orbit geometry is present in the interpolator of the CNC. This is indicates on the HLI by the “orbit_active_r” signal. With an equidistant orbit geometry, machining in the down channel should only be continued after this signal is set to True.

The actual orbit geometry is generated in an endless real-time loop in N2160-N2180.

All machining coordinate systems of the orbit channel are deleted in N2190.