-
-
Notifications
You must be signed in to change notification settings - Fork 17
Description
Not sure if this is the appropriate place to ask but it seems like you are actively developing embroidery software and I have searched far and wide for more info on the .DSB format. From what I have been able to translate from .dst files this is how the bits are aranged:
Each embroidery stitch comes in 3 bytes. The first being machine commands, followed by Y and finally X value(s)
stitch | Y = - | X = - | END | Color | NA | NA | Jump
0 0 0 0 0 0 0 0
Y value
0 0 0 0 0 0 0 0
X value
0 0 0 0 0 0 0 0
X and Y are simple calculated using their literal binary value for a theoretical max stitch length of 255.
Machine commands are activated by having a 1 in its respective position
Here are some direct examples
10001000 or 88 = color switch and single stitch after wards
10000000 or 80 = single stitch
10000001 or 81 = jump
11111000 or f8 = end of machine file
The machine will always move BEFORE it stitches in a dsb file
Not sure if necessary but all existing examples show a single stitch after color change
UNIT CONVERSIONS
10 = 1mm so 1 = 0.1mm
1 inch = 25.4mm or 254
Is there any chance anyone here know what the two NA bits in the command byte could be for? I think one could be a PAUSE command for aplique or something similar, but am unwilling to test that theory live on my machine. Any tips on where to find this missing information would be very helpful. Hopefully this information can also help this project if it eventually wishes to support .DSB aswell.