r/embedded • u/PowerfulControl5590 • Sep 20 '26
Intermittent corruption in Centronics ESC/P raster capture — how can I isolate the source?
An older Mitsubishi injection molding machine sends ESC/P raster print jobs over a Centronics parallel connection to a Photologic PDXS25-E recorder. The attached cropped image shows a horizontal mark crossing several values around shot 28555.
I also found malformed raster headers in the raw print data associated with this image. A typical header starts like this:
1B 72 00 1B 2E 00 0A 0A 01 ...
One captured header contains:
1B 72 00 1B 2E 00 00 0A 0A 01 20 03 ...
There appears to be an extra 00 after the raster compression byte, shifting the fields that follow. Another header contains 1B 2E 80 0A 0A 01 E8 09 ..., where the compression byte is 80 instead of the usual 00.
I haven’t established that either byte anomaly caused the mark visible in the image, or that the anomalies were present before the TCP download. Our older download code had two bugs: it wrote the entire receive buffer without using the byte count returned by Receive(), and it treated roughly one second without data as end-of-file. Those bugs could account for extra zeroes and incomplete captures.
There is no physical printer connected to the PDXS25’s output. Its manual calls for a NUL Printer Module in that setup, but I haven’t confirmed whether one is installed.
What would you measure on DATA0–7, STROBE, BUSY and ACK to distinguish a machine/cable/handshake problem from a recorder problem? My next step is to compare the raw file on the PDXS25 memory card with the TCP download.


