Axes movements syncronization <SYNCAXES>

The purpose of this command is to enable or disable the synchronization of simultaneous motion of two machine axes (for example left and right spindle rotation axes on a double spindles lathe machine).


Command: SYNCAXES On(71)|Off(72) FirstAxisID(Axis1) SecondAxisID(Axis2)


Parameters:


Parameter

CLD array

Description

IsOn

CLD[1]

New state of the synchronization:

ON(71) - Axes synchronization is active.

OFF(72) - Axes motion synchronization is disabled.

Parameters available through the Cmd operator


Parameter

Type

Description

Action

Integer

Toggle control that modifies the synchronization state (enabled/disabled):

1 - Set synchronization state to enabled.

0 - Set synchronization state to disabled.

Axis1

String

String identifier for the first of the two axes to be synchronized.

Axis2

String

String identifier for the first of the two axes to be synchronized.

Here is a simple example of program handler for this command:

program SyncAxes

Outblock

a1 : String;

a1 = Cmd.Str["Axis1"];

a2 : String;

a2 = Cmd.Str["Axis2"];

if (a1="AxisCPos") or (a2="AxisCPos") or (a1="AxisC1Pos") or (a2="AxisC1Pos") then begin

if CLD.IsOn=71 then begin

GsyncSpeeds = 288; GsyncSpeeds@ = Maxreal;

Formblock;

Output Outstr$ + " (Sync spindles rotation)";

Phase = C2-C; Phase@=MaxReal;

GSyncPhase = 289; GSyncPhase@=0;

FormBlock;

output OutStr$ + " (Sync phase)";

end else begin

GsyncSpeeds = 290; GsyncSpeeds@ = Maxreal;

Formblock;

Output Outstr$ + " (Cancel spindles sync)";

end;

end;

end


See also:

Technology commands description

<GMA> array