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
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.
|