He intentando comunicarme con una impresora zebra modelo GK420t por medio de puerto serie enviando codigos ASCII en formato HEXADECIMAL pero solo he logrado que me parpadee el LED sin imprimir nada. ¿Alguien de ustedes sabe que formato exacto debe ser para que la impresora pueda imprimir?
Pablo Atsira
Follow this steps:
1.- Confirm Baud Rate, Stop bits, etc. are equal on the printer and PLC. (ASCII Config for Port 0 or 2)
2.- You have to use AWT instruction to send "STRINGS" over Channel 0 or 2.
3.- If everything is ok, there's a trick for this PLC model on the ZPL Code, pls be advice that you have to add and \ before any ^. Here's an example for the printer I install yesterday.
4.- If you need the PLC program let me know i will send it to you.
zpl code for Zebra Printer (Strings on Micrologix PLC)
\^XA~TA000~JSN\^LT0\^MNW\^MTD\^PON\^PMN\^LH0,0\^JMA\^PR5,5~SD15\^JUS\^LRN\^CI0\^XZ
\^XA\^MMT\^PW609\^LL0203\^LS0\^BY80,80\^FT255,132\^BXN,5,200,0,0,1,~\^FH\^FDP
12345678S00001
\^FS\^FT198,176\^A0N,14,14\^FH\^FDDescripcion:
Quarter con Cap
\^FS\^FT304,154\^A0N,14,14\^FH\^FDHora:
12:12:12
\^FS\^FT198,154\^A0N,14,14\^FH\^FDFecha:
12/12/12
\^FS\^FT276,40\^A0N,28,28\^FH\^FDRH\^FS\^PQ1,0,1,Y\^XZ