Satin Studio Manual

PEC

Status

FieldValue
Extension(s).pec
Common ecosystemBrother / Baby Lock
Format familyMachine-specific stitch payload
Satin Studio statusSupported for import; embedded in PES export
Open / importYes
ExportNo standalone export
ConfidenceHigh for the PEC payload shape Satin Studio imports/embeds.

What it is

PEC is an older Brother-family stitch payload. It carries the actual needle movement stream found inside many PES files, plus palette and preview/icon areas. See the PEC file structure for byte-level notes.

Satin Studio behavior

Satin Studio parses PEC payloads, usually through PES import, and writes PEC as the embedded stitch stream inside exported PES.

Versions and variants

PEC appears both as standalone .pec files and as the stitch payload inside PES files. Satin Studio imports both forms, preserving palette and icon records it does not need for stitch geometry. PES export embeds a PEC payload; standalone PEC export is not offered.

File identification notes

Standalone PEC files may start with #PEC0001. Embedded payloads may be found through a PES offset or an embedded #PEC0001 marker. Compatible embedded payloads usually begin with an LA: label area followed by a 512-byte header, encoded stitches, and graphics bytes.

Observed structure notes

Structure sketch

PEC is the stitch payload Satin Studio already parses and embeds. The detailed byte map lives in PEC file structure.

struct PecPayload<'a> {
    optional_signature: Option<[u8; 8]>, // b"#PEC0001" for standalone files
    label_area: &'a [u8],                // compatible payloads begin with b"LA:"
    header_512: [u8; 512],
    stitches: &'a [PecCommand],
    graphics: &'a [u8],
}

enum PecCommand {
    Stitch { dx: i16, dy: i16 },
    Jump { dx: i16, dy: i16 },
    Trim { dx: i16, dy: i16 },
    ColorChange,
    End,                                // 0xFF terminator in the stitch stream
}

Compatibility evidence

Compatibility checks cover signatures, metadata, command boundaries, malformed records, and files from the machines and software named above. Unsupported variants stop with a specific report instead of being silently rewritten.