If I print a batch of 200+ labels, sometimes they end up printing blanks. Especially if paper runs out and replaced to continue the job. I suspect that I'm overflowing the buffer. And my solution is to query U1 getvar memory.ram_free and ram_size to see a precentage of available memory left and pause sending data if it drops below 20%. Does all of this sound reasonable?
blank labels on big jobs// Expert user has replied. |
1 Replies
The best way is to check the printer status with the following SGD before sending a label, and parse the return code based on the definition in the ~HS section in the ZPL Programming Guide, by checking on the flag f, which is the buffer full flag (1 = receive buffer full).