2 examples for the three-dimensional polyline – ElmoMC Multi-Axis Motion Controller-Maestro Motion Control User Manual

Page 17

Advertising
background image

Maestro Motion Library Tutorial

MAN-INTUG (Ver. 1.7)

14


Figure 1-8

:

Recording of the rotated polyline

1.3.4.2 Examples for the three-dimensional polyline

Example (Motion Mathematic Lib Samples\ Vector_3D \ Rectangle –

www.elmomc.com

)

Three-dimensional rectangle

SetAxisStartPos(a1, 0) //set coordinate x to 0

SetAxisStartPos(a2, 0) //set coordinate y to 0

SetAxisStartPos(a3, 0) //set coordinate y to 0

v2.vsc=2

v2.vsr=12000

v2.vsp = 70000

//max. vector velocity

v2.vse

=

70000

v2.starts()

v2.addline(50000, 50000, 0) //create line from current point to coordinate

v2.addline(50000,

50000,

50000)

v2.addline(0, 0, 50000)

v2.vse

=

0

v2.addline(0, 0, 0)

v2.ends()

Advertising