ElmoMC Multi-Axis Motion Controller-Maestro User Manual
Page 44
Function
addpoint - add PVT point to user's trajectory sequence to a Vector
Call Format
int
Parameters
int
int
int
Return Value
OK or FAILED : Error message
Example
Vec1.addpoint(1000, 30000, 2000, 40000, 10)
For more information see the vector ends function example.
(see Appendix B.1.2.2 Add Point Sample)
Function
addsplinep - add two-dimensional point to the spline segment of the
polyline trajectory sequence
Call Format
The last point of the previous polyline segment or the first point of the
trajectory is automatically added to the spline segment. It means that the
minimal number of the addsplinep() operators that define the same spline
segment inside the polyline must be greater than or equal to 2.
This requirement is valid for every spline segment inside the polyline – not
only for the first one.
Parameters
int
Return Value
OK or FAILED : Error message
Example
Vec1. addsplinep (1000, 2000)
Polyline trajectory program examples can be found in
Samples Tutorial – Motion Library Tutorial Examples – Vector 2D
Function
attach – used to synchronize all members of the Vector according to the
resource file. The attach function must be called before the first vector
operation.
Explanation
Sometimes two vectors "share" an axis. If the axis was used simultaneously
by both vectors, then errors will occur. Attach is used to tell the axis with
which vector to work.
Call Format
< Vector name>.attach()
Return Value
OK or FAILED : Error message
Example
G1.attach()
(see Appendix B.4.6.1 MCompleteCallback)
Function
circle - make circle trajectory for vector motion object
Call Format
Parameters
int
float
float
Return Value
OK or FAILED : Error message
Example
Vec1.circle(rad, alpha, delta);Vec1.bg
(see Appendix B.1.2.1 Circle Sample)
Maestro
Software Manual
General and Motion Instructions
MAN-MASSW (Ver. Q)
4-25