EasyManua.ls Logo

Tormach PCNC 440 - Page 152

Tormach PCNC 440
183 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 7
152
UM10372_PCNC440_Manual_0221A
PROgRAMMiNg
While/endwhile Example:
(draw a sawtooth shape)
G00 X1 Y0 (move to start position)
#1 = 1 (assign parameter #1 the value of 0)
F25 (set a feed rate)
o101 while [#1 LT 10]
G01 X0
G01 Y[#1/10] X1
#1 = [#1+1] (increment the test counter)
o101 endwhile
M02 (end program)
The following statements cause an error message and abort the interpreter:
A return or endsub not within a sub denion
A label on repeat which is dened elsewhere
A label on while which is dened elsewhere and not referring to a do
A label on if dened elsewhere
A undened label on else or elseif
A label on else, elseif or endif not poinng to a matching if
A label on break or connue which does not point to a matching while or do
A label on endrepeat or endwhile no referring to a corresponding while or repeat

Table of Contents

Other manuals for Tormach PCNC 440