<< Click to Display Table of Contents > 

Client Control Interface Manual > Direct Motion Control > Direct Motion Status

Direct Motion Status
Previous pageReturn to chapter overviewNext page

Motion Moving

Update Motion Position

 

Motion moving

Set

Get

DLL Function

int Motion_Moving = ScGetLongValue(int Value_Type)

ASCII Function

int Motion_Moving = ScCciGetLongValue(int Value_Type)

Description

Returns the moving state of the motion axes.

Value_Type

Type: int

ID:

Location: ScComSAMLightClientCtrlValueTypes

scComSAMLightClientCtrlLongValueTypeMotionMoving

19

Motion_Moving

Type: int

Unit: none

For a single axis:

0: Axis is not moving.

1: Axis is moving.

For all axes (MotionAxis is -1):

0: No axis is moving.

1: At least one axis is moving.

Notes

MotionAxis has to be set first.

C# Example: Check if motion axis is moving:

 

int Motion_Moving = cci.ScGetLongValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlLongValueTypeMotionWaitForEnd );

Table 250: Motion Moving

Update Motion Position

Set

Get

DLL Function

int CCI_Return = ScExecCommand(int Cmd_ID)

ASCII Function

int CCI_Return = ScCciExecCommand(int Cmd_ID)

Description

Updates the SAMLight motion position from the motion controller

Cmd_ID

Type: int

ID:

Location: ScComSAMLightClientCtrlExecCommandConstants

scComSAMLightClientCtrlExecCommandMotionUpdatePos

18

CCI_Return

Type: int

CCI return number, see error list.

Notes

MotionAxis has to be set before.

After the update the position can be get with AxisPosition or MotionAxisAngle.

C# Example: Update motion position:
 

int CCI_Return = cci.ScExecCommand( ( int )ScComSAMLightClientCtrlExecCommandConstants.scComSAMLightClientCtrlExecCommandMotionUpdatePos );

Table 251: Update Motion Position