Function
Set the speed and the coordinates position of a circular arc interpolation.
Format
Ret = SmcWSetBankArcPoint( Id , AxisNo , BankNo , ArcSpeed , Center_X , Center_Y , End_X , End_Y)
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.
BankNo [ C, C++: short ] [ Python: ctypes.c_short ]
Specify bank number.
ArcSpeed [ C, C++: double ] [ Python: ctypes.c_double ]
The circular arc interpolation speed (operation speed on the circular arc) is set. It is fixed velocity at beginning speed (FL speed) operation.
Center_X [ C, C++: int ] [ Python: ctypes.c_int ]
X coordinates at a circular arc center position are set by relative coordinates.
Center_Y [ C, C++: int ] [ Python: ctypes.c_int ]
Y coordinates at a circular arc center position are set by relative coordinates.
End_X [ C, C++: int ] [ Python: ctypes.c_int ]
X coordinates at the circular arc interpolation end position are set by relative coordinates.
End_Y [ C, C++: int ] [ Python: ctypes.c_int ]
Y coordinates at the circular arc interpolation end position are set by relative coordinates.
Return Value
Ret [ C, C++: long ] [ Python: ctypes.c_long ]
0 |
Terminated normally |
Non-zero |
Terminated abnormally |
See also: Error code details
Remarks
The default value is 100 pps.
It is not possible to use it with SMC-2/4/8DL series .
As for the circular arc
interpolation speed value, the value is corrected to the multiple of the
resolution set with SmcWSetBankResolveSpeed.
Example: 105pps in case of Resolution 15pps
The setting becomes effective of axes (X axis and Y axis) for the interpolation because of the setting only of one of axis.
Center/terminal coordinates show the relative coordinates position from the starting point.
Example:
Absolute coordinates position:
Starting point (60,220), center (100,250), terminal (70,290), and 50 in
radius
Then,
Relative coordinates position: Center (40,30) and terminal(10, 70)
That is, Center_X=40, Center_Y=30, End_X=10, and End_Y=70.
It becomes it.
If the device is in operation, the function cannot be performed.
See Also