SmcWGetSDMode


Function

Retrieves the setting of motion when SD signal comes in.

 

Format

Ret = SmcWGetSDMode( Id, AxisNo, SDMode )

 

Parameters

Id [ C, C++: short ] [ Python: ctypes.c_short ]

Specify the device ID retrieved by SmcWInit function.

 

AxisNo [ C, C++: short ] [ Python: ctypes.c_short ]

Specify the axis number.

 

SDMode [ C, C++: short * ] [ Python: ctypes.POINTER(ctypes.c_short) ]

Specify the address of a variable to store the value that indicates the operation when SD signal comes in.

0

Deceleration stop

1

Deceleration only (The carrier moving slows down to the initial speed )

2

Deceleration stop + SD signal latch

3

Deceleration + SD signal latch

 

Return Value

Ret [ C, C++: long ] [ Python: ctypes.c_long ]

0

Terminated normally

Non-zero

Terminated abnormally

See also: Error code details

 

Initial Value

0 : Deceleration stop

 

Remarks

This function can be executed even if the device is in operation.

 

Example

The operation set up information when the SD signal of axis number 1 is input is acquired.

 

C, C++

long Ret;

short SDMode ;

Ret = SmcWGetSDMode( Id , 1, &SDMode );

 

Python

Ret = ctypes.c_long()

SDMode = ctypes.c_short()

Ret.value = csmc.SmcWGetSDMode( Id , 1, ctypes.byref(SDMode) )

 

See Also

SmcWSetSDMode