<< Click to Display Table of Contents > Direct Motion Move |
☒ Set ☐ Get |
||
---|---|---|
DLL Function |
int CCI_Return = ScExecCommand(int Cmd_ID) |
|
ASCII Function |
int CCI_Return = ScCciExecCommand(int Cmd_ID) |
|
Description |
Start the direction motion. |
|
Cmd_ID |
Type: int |
ID: |
Location: ScComSAMLightClientCtrlExecCommandConstants |
||
scComSAMLightClientCtrlExecCommandMotionGo |
16 |
|
CCI_Return |
Type: int |
|
CCI return number, see error list. |
||
Notes |
The following motion move parameters have to be set before: •AxisPosition, MotionAxisAngle, MotionAxisPositionRelative or MotionAxisAngleRelative |
|
C# Example: Start motion move: int CCI_Return = cci.ScExecCommand( ( int )ScComSAMLightClientCtrlExecCommandConstants.scComSAMLightClientCtrlExecCommandMotionGo ); |
Table 242: Direct Motion Move
☒ Set ☒ Get |
|||
---|---|---|---|
DLL Function |
int CCI_Return = ScSetLongValue(int Value_Type, int Motion_Axis) int Motion_Axis = ScGetLongValue(int Value_Type) |
||
ASCII Function |
int CCI_Return = ScCciSetLongValue(int Value_Type, int Motion_Axis) int Motion_Axis = ScCciGetLongValue(int Value_Type) |
||
Description |
Set or get the selected motion axis for further motion CCI commands. |
||
Value_Type |
Type: int |
ID: |
|
Location: ScComSAMLightClientCtrlValueTypes |
|||
scComSAMLightClientCtrlLongValueTypeMotionAxis |
17 |
||
Motion_Axis |
Type: int |
Unit: none |
|
•-1: all motion axes •[0, 6]: motion axis (up to 7 axes, depending on the motion type) |
|||
CCI_Return |
Type: int |
||
CCI return number, see error list. |
|||
Notes |
- |
||
C# Example: Select first motion axis:
int CCI_Return = cci.ScSetLongValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlLongValueTypeMotionAxis, 0 ); |
|||
C# Example: Get current selected motion axis:
int Motion_Axis = cci.ScGetLongValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlLongValueTypeMotionAxis ); |
Table 243: Motion Axis
☐ Set ☒ Get |
|||
---|---|---|---|
DLL Function |
int Type = ScGetLongValue(int Value_Type) |
||
ASCII Function |
int Type = ScCciGetLongValue(int Value_Type) |
||
Description |
Get the set motion type angular or planar. |
||
Value_Type |
Type: int |
||
Location: ScComSAMLightClientCtrlValueTypes |
|||
scComSAMLightClientCtrlLongValueTypeMotionAxisType |
113 |
||
Type |
Type: int |
Unit: none |
|
•0: Planar. •3: Angular. |
|||
CCI_Return |
Type: int |
||
CCI return number, see error list. |
|||
Notes |
•Axis has to be selected before via MotionAxis. |
||
C# Example: Get axis type:
int Type = cci.ScGetLongValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlLongValueTypeMotionAxisType ); |
Table 244: Motion Axis Type
☒ Set ☒ Get |
|||
---|---|---|---|
DLL Function |
int CCI_Return = ScSetDoubleValue(int Value_Type, double Motion_Position) double Motion_Position = ScGetDoubleValue(int Value_Type) |
||
ASCII Function |
int CCI_Return = ScCciSetDoubleValue(int Value_Type, double Motion_Position) double Motion_Position = ScCciGetDoubleValue(int Value_Type) |
||
Description |
1) Set or get the target position for MotionGo. 2) Get current axis position (after using MotionUpdatePos). |
||
Value_Type |
Type: int |
ID: |
|
Location: ScComSAMLightClientCtrlValueTypes |
|||
scComSAMLightClientCtrlDoubleValueTypeMotionAxisPosition |
38 |
||
Absolute position [mm] |
|||
scComSAMLightClientCtrlDoubleValueTypeMotionAxisAngle |
39 |
||
Absolute angle [deg] |
|||
scComSAMLightClientCtrlDoubleValueTypeMotionAxisPositionRelative |
40 |
||
Position relative to the current position [mm] |
|||
scComSAMLightClientCtrlDoubleValueTypeMotionAxisAngleRelative |
41 |
||
Position angle relative to the current angle [deg] |
|||
Motion_Position |
Type: double |
Unit: depends on constant |
|
Absolut / relative target position. |
|||
CCI_Return |
Type: int |
||
CCI return number, see error list. |
|||
Notes |
•MotionAxis has to be set first. •In some cases (e.g. after stop signal), it is recommended to use MotionUpdatePos before the get command. |
||
C# Example: Set target position to 10.0 mm:
int CCI_Return = cci.ScSetDoubleValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlDoubleValueTypeMotionAxisPosition, 10.0 ); |
|||
C# Example: Get current target position value:
double Motion_Position = cci.ScGetDoubleValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlDoubleValueTypeMotionAxisPosition ); |
Table 245: Motion Position
☒ Set ☒ Get |
|||
---|---|---|---|
DLL Function |
int CCI_Return = ScSetDoubleValue(int Value_Type, double Motion_Speed) double Motion_Speed = ScGetDoubleValue(int Value_Type) |
||
ASCII Function |
int CCI_Return = ScCciSetDoubleValue(int Value_Type, double Motion_Speed) double Motion_Speed = ScCciGetDoubleValue(int Value_Type) |
||
Description |
Set or get the motion speed for MotionGo. |
||
Value_Type |
Type: int |
ID: |
|
Location: ScComSAMLightClientCtrlValueTypes |
|||
scComSAMLightClientCtrlDoubleValueTypeMotionAxisSpeed |
42 |
||
Motion_Speed |
Type: double |
Unit: depends on constant |
|
Motion speed [mm/s] |
|||
CCI_Return |
Type: int |
||
CCI return number, see error list. |
|||
Notes |
•MotionAxis has to be set first. |
||
C# Example: Set speed to 25.0 mm/s:
int CCI_Return = cci.ScSetDoubleValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlDoubleValueTypeMotionAxisSpeed, 25.0 ); |
|||
C# Example: Get current speed value:
double Motion_Position = cci.ScGetDoubleValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlDoubleValueTypeMotionAxisSpeed ); |
Table 246: Motion Speed
☒ Set ☒ Get |
|||
---|---|---|---|
DLL Function |
int CCI_Return = ScSetLongValue(int Value_Type, int Motion_Wait_For_End) int Motion_Wait_For_End = ScGetLongValue(int Value_Type) |
||
ASCII Function |
int CCI_Return = ScCciSetLongValue(int Value_Type, int Motion_Wait_For_End) int Motion_Wait_For_End = ScCciGetLongValue(int Value_Type) |
||
Description |
Set or get the motion wait for end value, which changes the return timing of MotionGo. |
||
Value_Type |
Type: int |
ID: |
|
Location: ScComSAMLightClientCtrlValueTypes |
|||
scComSAMLightClientCtrlLongValueTypeMotionWaitForEnd |
18 |
||
Motion_Wait_For_End |
Type: int |
Unit: none |
|
•0: MotionGo returns immediately. This is not possible for homing. •1: MotionGo returns when the motion move has finished. |
|||
CCI_Return |
Type: int |
||
CCI return number, see error list. |
|||
Notes |
•MotionAxis has to be set first. |
||
C# Example: Set motion wait for end value to 1:
int CCI_Return = cci.ScSetLongValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlLongValueTypeMotionWaitForEnd, 1 ); |
|||
C# Example: Get current motion wait for end value:
int Motion_Wait_For_End = cci.ScGetLongValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlLongValueTypeMotionWaitForEnd ); |
Table 247: Motion Wait For End