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
[ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short
]
SSpecify the Deice ID retrieved by SmcWInit function.
AxisNo
[ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short
]
Specify axis number.
BankNo
[ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short
]
Specify bank number.
ArcSpeed
[ VB.NET: Double ] [ C, C++: double ] [ 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
[ VB.NET: Integer ] [ C, C++: long ] [ C#: int ] [ Python: ctypes.c_long
]
X coordinates at a circular arc center position are set by relative coordinates.
Center_Y
[ VB.NET: Integer ] [ C, C++: long ] [ C#: int ] [ Python: ctypes.c_long
]
Y coordinates at a circular arc center position are set by relative coordinates.
End_X
[ VB.NET: Integer ] [ C, C++: long ] [ C#: int ] [ Python: ctypes.c_long
]
X coordinates at the circular arc interpolation end position are set by
relative coordinates.
End_Y
[ VB.NET: Integer ] [ C, C++: long ] [ C#: int ] [ Python: ctypes.c_long
]
Y coordinates at the circular arc interpolation end position are set by
relative coordinates.
Return Value
Ret [ VB.NET: Integer ] [ C, C++: long ] [ C#: int ] [ 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