<< Click to Display Table of Contents > 

Client Control Interface Manual > Direct Motion Control > Direct Motion RS-232

Direct Motion RS-232
Previous pageReturn to chapter overviewNext page

Direct Motion RS-232

RS-232 Motion String

 

Direct Motion RS-232

Set

Get

DLL Function

int CCI_Return = ScExecCommand(int Cmd_ID)

ASCII Function

int CCI_Return = ScCciExecCommand(int Cmd_ID)

Description

Send the RS-232 motion string.

Cmd_ID

Type: int

ID:

Location: ScComSAMLightClientCtrlExecCommandConstants

scComSAMLightClientCtrlExecCommandMotionSendString

17

CCI_Return

Type: int

CCI return number, see error list.

Notes

The following motion move parameters have to be set before:

MotionAxis has to be set before.

MotionString has to be set before.

C# Example: Send motion RS-232:
 

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

Table 248: Direct Motion RS-232

RS-232 motion string

Set

Get

DLL Function

int CCI_Return = ScSetStringValue(int Value_Type, string RS232_String)

int CCI_Return = ScGetStringValue(int Value_Type, ref string RS232_String)

ASCII Function

int CCI_Return = ScCciSetStringValue(int Value_Type, string RS232_String)

string RS232_String = ScCciGetStringValue(int Value_Type)

Description

Set or get the motion string for MotionSendString.

Value_Type

Type: int

ID:

Location: ScComSAMLightClientCtrlValueTypes

scComSAMLightClientCtrlStringValueTypeMotionString

11

RS232_String

Type: string

Unit: depends on constant

RS-232 motion string

CCI_Return

Type: int

CCI return number, see error list.

Notes

MotionAxis has to be set first.

MotionSendString sends the string.

C# Example: Set RS-232 motion string to "PR AL":

 

int CCI_Return = cci.ScSetStringValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlStringValueTypeMotionString, "PR AL" );

C# Example: Get current RS-232 motion string:

 

string RS232_String = "";

int CCI_Return = cci.ScGetStringValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlStringValueTypeMotionString, ref RS232_String );

Table 249: RS-232 Motion String