MC-Basic:axis.SLAVE

From SoftMC-Wiki
Jump to: navigation, search
Language: English

This property is used for enabling and disabling the master-slave mode of operation. The specified axis is slaved to an axis defined by the MASTERSOURCE property.

Position error accumulates when the axis is put into Gear mode (AXIS.SLAVE = GEAR) while the master is already at speed. When this happens, the velocity of the slave axis ramps to that of the master and, during this time, its acceleration is limited by the value of ACCELERATION. The MASTERSYNC property indicates when the velocity of the slave axis has reached the velocity of the master axis, and the SLAVELAG property returns the accumulated position error.

0 (OFF) – Axis is not slaved (axis only)
1 (GEAR) – Axis is slaved in Gearing mode (axis only)
2 (CAM) – Axis is slaved in Camming mode (axis only).

Syntax

<axis>.Slave = <expression>

?<axis>.Slave

Availability

All versions

Type

Long

Range

0 to 2

Default

0

Scope

Configuration, Task or Terminal

Limitations

  • Cannot be changed during motion command execution.
  • To set the value within a task, the axis must be attached to that task (using the ATTACH command).
  • Values 1 and 2 (slave/cam) are valid for axes only, and values 3, 4 and 5 are valid for groups only.

Examples

Xaxis.Slave = Gear

See Also