Skip to content

Commit 14260ae

Browse files
committed
LTT dump utility: extend list of commands
1 parent 7937ea2 commit 14260ae

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

util/dump-ltt-raw/dump-ltt-raw-print-file.py

+31-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,37 @@ def readPrintXY():
111111
print(s)
112112
raise Exception("did not get known start of command, but {:02X}".format(start))
113113

114-
commands={0x30: "Engrave line L2R", 0x31: "Engrave line R2L", 0x41: "Air Assist", 0x42: "end of file", 0x4A: "power", 0x4D: "job mode", 0x4E: "color", 0x50: "PPI", 0x53: "speed", 0x76:"version", 0x5041: "Pos. absolute", 0x5042: "Circle clockwise", 0x5043: "Circle counterclockwise", 0x5044:"Laser on", 0x5046: "End join", 0x504A: "Start join", 0x5045: "End speed", 0x5052: "Pos. relative", 0x5055: "Laser off", 0x5A41: "Focus?"}
114+
commands = {
115+
0x30: "Engrave line L2R",
116+
0x31: "Engrave line R2L",
117+
0x41: "Air Assist",
118+
0x42: "end of file",
119+
0x43: "set compression escape character",
120+
0x44: "pitch (raster engrave DPI = 4000 / pitch)",
121+
0x45: "pulse mode (for cutting dashed or dotted lines, 0 = normal)",
122+
0x4A: "power",
123+
0x4D: "job mode",
124+
0x4E: "color code (not used by lasercutter)",
125+
0x4F: "operation mode (autorun, autofocus)",
126+
0x50: "PPI (vector cut DPI = 4000 / PPI)",
127+
0x51: "number of copies (0 = normal)",
128+
0x52: "rotation unit: radius",
129+
0x53: "speed",
130+
0x54: "'rubber' (4bit raster engrave) power table",
131+
0x56: "Start of vector data -- once per file; rest of the file contains only vector; engrave must be before this command.",
132+
0x59: "do not use -- formerly: Y axis for rotary",
133+
0x76:"version",
134+
0x5041: "Pos. absolute",
135+
0x5042: "Circle clockwise",
136+
0x5043: "Circle counterclockwise",
137+
0x5044:"Laser on",
138+
0x5046: "End join",
139+
0x504A: "Start join",
140+
0x5045: "End speed",
141+
0x5052: "Pos. relative",
142+
0x5053: "Vector Pause flag (starts a group of vector paths, has no effect?)",
143+
0x5055: "Laser off",
144+
0x5A41: "Focus?"}
115145
print("\n■ Command {:02X} ".format(cmd) + commands.get(cmd, ""))
116146

117147
# two-byte commands:

0 commit comments

Comments
 (0)