logo
Jack H

9.5.2.0.1 - Language Examples

All comments follow a semi-colon at any position on a line

Statements are ended with a colon, and as long as colons are used, more than one statement can be used on a line.

Line numbering is required.

Dimensions are given in millimeters in the programs.

A sample program is given below with comments for explanation,

10 NT

20 SP 7 ; set speed

30 MO 10, C ;move to position 10 with the hand closed 40 MO 9, O ;move to position 9 with the hand opened 50 TI 40 ;stop for 4 seconds

60 GT 30 ;goto line 30