IMotion.SetAxisCam method

Links the axes and starts to cam.

Namespace: IntervalZero.KINGSTAR.Base.Api

Assembly: IntervalZero.KINGSTAR.Base.Api (in IntervalZero.KINGSTAR.Base.dll) Version: 4.4.0.0

Syntax

C#VB
KsCommandStatus SetAxisCam(
       int Master,
       int Slave,
       bool Permanent,
       double MasterOffset,
       double SlaveOffset,
       double MasterScaling,
       double SlaveScaling,
       McCamStartMode StartMode,
       double StartParameter,
       McSource MasterValueSource,
       int Cam,
       McBufferMode BufferMode
)
Function SetAxisCam(
       Master As Integer,
       Slave As Integer,
       Permanent As Boolean,
       MasterOffset As Double,
       SlaveOffset As Double,
       MasterScaling As Double,
       SlaveScaling As Double,
       StartMode As McCamStartMode,
       StartParameter As Double,
       MasterValueSource As McSource,
       Cam As Integer,
       BufferMode As McBufferMode
) As KsCommandStatus

Parameters

Master [in]

Type: int

The index of the master axis. Indexes are zero based. Aliases affect this parameter.

 

Slave [in]

Type: int

The index of the slave axis. Indexes are zero based. Aliases affect this parameter. The number of slaves is up to 32.

 

Permanent [in]

Type: bool

Determines whether the cam state is preserved after the motor is disabled.

true: The cam state is preserved even if the motor is disabled. For example, if the master axis is enabled, the slave axis will be enabled. If an error has occurred on the master, it occurred on the slave too.

false: The cam state won't be preserved after the motor is disabled.

 

MasterOffset [in]

Type: double

The offset to the positions of the master axis in the cam table.

 

SlaveOffset [in]

Type: double

The offset to the positions of the slave axis in the cam table.

 

MasterScaling [in]

Type: double

The factor for the master profile (default = 1.0). From the slave point of view the overall master profile is multiplied by this factor.

 

SlaveScaling [in]

Type: double

The factor for the slave profile (default = 1.0). The overall slave profile is multiplied by this factor.

 

StartMode [in]

Type: McCamStartMode

The cam mode your axes use.

 

StartParameter [in]

Type: double

Depends on the start ramp you choose. If it is camRampDistance, StartParameter is the distance the slave moves. The unit is count. If it is camRampTime, StartParameter is the time the slaves takes to move. The unit is second. This parameter uses the master's information to determine how to move the slave. The distance is based on how far the master moves.

 

MasterValueSource [in]

Type: McSource

Defines the source for synchronization.

 

Cam [in]

Type: int

The index of the cam table, linked to the output of SetCamTable.

 

BufferMode [in]

Type: McBufferMode

Defines how to blend the velocity of two methods.

Return value

Type: KsCommandStatus

Returns the KsCommandStatus class.

Remarks

Examples

C#
N/A

See also

IMotion Interface

IntervalZero.KINGSTAR.Base.Api Namespace