SPL format

Top  Previous  Next

Beside the issue of the plot data on a plotter integrated in the operating system or printer the data can be given in the SPL format. SPL controls only few commands: Pen up, Pen down, colour choice, position start.

 

A SPL file has the construction:

M37<CR>

<Plot data>

M0<CR>

 

SPL files are pure text files without tax sign.

Several commands can stand in a line. No separators are arranged between the commands. Every command begins with a letter, a number follows as a parametre. All commands are stored and <>released at the end of the line, so by the <CR>.

 

Komandos

D<gerade number from 10>With this line a new pencil is chosen. there are no pencil widths. With D10 becomes the first pencil, with D12 second stift elective, etc. this command seems to have to stand alone in a line.
X<zahl >A new X position is given. The value has 1/100 mm as a unity. The left corner is 0. However, the pencil remains in the present position, until a <CR> has appeared.
Y<zahl>A new Y position is given. The value has 1/100 mm as a unity. The lower edge has the value 0. However, the pencil remains in the present position, until a <CR> has appeared.
D1The pencil is lowered.
D2The pencil is raised
<CR>With X and Y given position is started. Before the pencil is served according to the D2-Komando.

Example

With this plot file a square with 10-cm side and a cross is drawn in this square. The cross has the colour 2, the square the colour 1.

 

 

M37                        Start of the plot file

X0Y0D2                Position (0,0) with raised pencil

D10                        Colour 1 choose

Y10000D1                Pencil lower and 10 cm upwards

X10000                10 cm to the right

Y0D1                        10 cm down

X0                        10 cm to the left to the origin

D12                        Pencil 2 choose, pencil remains below

X10000Y10000        After diagonal (10 cm, 10 cm)

X0D2                        Other diagonal start with pencil raised

X10000Y0D1                2. Diagonal with lowered pencil

M0                        End of the file.