SmcWSetInFilterType


Function

Sets input filter for +/-LIM, SD, ORG, ALM and INP.

 

Format

Ret = SmcWSetInFilterType( Id, AxisNo, FilterType )

 

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 axis number.

 

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

Specify input filter characteristic.

0

Do not insert filter

1

3.2[usec]

2

25[usec]

3

200[usec]

4

1.6[msec]

DF series

Setting value : 4[usec] fixation even if it specifies any of 1-4.

 

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 : Does not insert filter

 

Remarks

This function cannot be executed when the device is in operation.

After "Initial Setting function" is executed, it is necessary to execute SmcWSetInitParam.

Refer to "About Initial Setting function".

 

Example

The input filter of LIM of axis number 1, SD, ORG, ALM, and INP is set.
The input filter is set at 3.2 microseconds.

 

C, C++

long Ret;

short FilterType ;

FilterType = 1;

Ret = SmcWSeInFilterType( Id , 1, FilterType );

 

Python

Ret = ctypes.c_long()

FilterType = ctypes.c_short()

FilterType.value = 1

Ret.value = csmc.SmcWSeInFilterType( Id , 1, FilterType )

 

See Also

SmcWGeInFilterType