beautypg.com

Appendix b: sample programs, Maestro – ElmoMC Multi-Axis Motion Controller-Maestro User Manual

Page 253

background image

Appendix B: Sample Programs

The following sample programs are described in this appendix:

Graphic Primitives

Page

Line

Line

B-3

Circle

Circle

B-3

Add Point

B-4

Line to Line

Line_to_Line

B-5

Line to Circle

LinetoCircle

B-5

LinetoCirclewithHoming

B-6

Circle to Line

CircletoLine

B-7

CircletoLinewithHoming

B-8

Polygon

Polygon

B-8

Motion Mathematics

Refer to the Motion Library Tutorial which can be viewed on the Elmo web site at

http://www.elmomc.com/support/Samples-Tutorial/MAN-MLT.pdf

.

Basic Programming

Page

Break-Continue-Return

B-9

Call

B-9

For

B-9

Global Variable

B-10

If

B-10

If-Else

B-11

If-Else-If

B-11

Label and GoTo

B-11

Order of Processing

B-11

Program Call

B-12

Switch

B-12

While

B-12

Maestro

Software Manual

MAN-MASSW (Ver. Q)

B-1