Programming

The #SYNC IN command indicates that the following machining operations are carried out in the moving coordinate system of the workpiece. The synchronisation movement is only started by the next motion block. Synchronisation takes place with the coordinates programmed in the motion block in the co-moving PCS1.

The target point is simultaneously approached in multiple axes with a PTP motion. In general, the axes do not reach the target at the same time.

Syntax:

#SYNC IN [ [CONVEYOR=..] CONV_VEL=.. [VEL_RESOLUTION=[<m/min>, <m/s>, <mm/min>, <mm/s>, <um/min>, <um/s>]] [FEED_CONT=..] FEED_CONT_AUTO ]

CONVEYOR=..

The axis designated for synchronisation is defined by the CONVEYOR parameter. The axis name must be specified.

If CONVEYOR is not specified, the axis with the logical axis number in P-CHAN-00362 is used.

CONV_VEL=..

Programmed command velocity of the conveyor axis in [mm/min].

The velocity specified is used in the CNC to control whether the conveyor axis is moved at the required velocity. If the actual velocity is 10% higher than specified, error ID 50653 is output..

If a higher velocity than the maximum permissible velocity of the machine in the conveying direction is programmed, error ID 50587 is output.

VEL_RESOLUTION

Optional value of velocity resolution.

The following resolutions are provided: m/min, m/s, mm/min, mm/s, um/min ad um/s. If the parameter is not specified, the velocity is interpreted as mm/min by default. This parameter only acts on the individual command and does not act globally for the following commands.

FEED_CONT=..

Definition of the relative velocity in [mm/min] used to terminate synchronisation and start contour machining. If FEED_CONT is not specified, synchronisation is performed at conveyor velocity.

The relative velocity between the workpiece and the tool is 0.

FEED_CONT_AUTO

Identifier for synchronisation at the maximum permissible dynamic relative velocity.

The movements below after the #SYNC OUT command are listed in the machine coordinate system.

Syntax:

 

#SYNC OUT [ [FEED_CONT=..] FEED_CONT_AUTO ]

FEED_CONT=..

Definition of the relative velocity in [mm/min] used to terminate desynchronisation. If FEED_CONT is not specified, the desynchronisation movement terminates at velocity 0.

FEED_CONT_AUTO

Identifier for synchronisation at the maximum permissible dynamic relative velocity.

If you want to synchronise directly with a new workpiece on-the-fly without desynchronisation, the NC commands #SYNC IN/OUT must be programmed again with the appropriate parameters followed by a motion block.

Independent movement after #SYNC OUT

Syntax:

<axis_name> [ INDP_SYN | INDP_ASYN G00 | G01 POS=.. FEED=.. INTERRUPTIBLE ]

<axis_name>

Name of the axis to be moved in the MCS coordinate system after desynchronisation

INDP_SYN

Identifier for synchronous (blockwise) independent axis motion. The transition to the next block is only executed when all axes have reached their end positions. Must always be programmed as first keyword.

INDP_ASYN

Identifier for asynchronous (cross-block) independent axis motion. There is no synchronisation to end positions. Must always be programmed as first keyword.

G00/G01

Rapid traverse/linear interpolation

POS=::

Axis position in [mm, inch]

FEED2=..,

Axis-specific feed rate in [mm/min]

INTERRUPTIBLE

Identifier that this movement is interruptible.

INTERRUPTIBLE in conjunction with INDP_ASYN is ignored.

The program example below shows the full sequence for machining a moving workpiece. It includes reading the measured value for the machined workpiece, synchronisation, machining the workpiece followed by desynchronisation and positioning.

Programming Example

Machining a single workpiece with #SINC IN/OUT

%kontur_2
N0010 G0 X0 Y0 Z200
N0020 T1 D1                        ;Select tool
N0030 G00 G90 X0 Y0 Z50
N0040 S1 [MC_TouchProbe Channel=1] ;Read measured value
N0050 #SYNC IN [CONV_VEL 30]       ;Select synchronisation
N0060 G0 X50 Y0                    ;Position on moving workpiece
N0070 #CS ON[0,0,0,0,0,45]
N0080 G01 X50 F5000
N0090 G01 Y50
N0100 G01 X-50
N0110 G01 Y-50
N0120 #CS OFF
N0130 #SYNC OUT [FEED_CONT=5]      ;Select desynchronisation
N0140 X[INDP_SYN G1 POS0 FEED5 INTERRUPTIBLE]  ;Position in MCS
N0150 G00 X0 Y0 Z50
N0160 M30