9 Replies Latest reply on Mar 6, 2019 12:57 PM by Dmitry Prokhorov

    ZQ520: is there a cpcl command to download file to printer

    ashley cao

      Hi everyone,

       

      As titled, I would like to download a PCX file to printer via "!U1 xxxx " command.

       

      User Case:

       

      Potentially, there will be over 800 printers running in our system all over country. We would like to do it via app which could send command to download image to printer instead of using Zebra Utilities.

       

      The first input way in manual PCX command section will slow down the process.

       

      Thanks,

      Ash

        • Re: ZQ520: is there a cpcl command to download file to printer
          Dmitry Prokhorov

          Hello Ashley,

           

          Please, look here for details: QLn320 Images and CPCL

           

          Dmitry Prokhorov

          Software Engineer, Kutir Mobility

          Posted on behalf of Zebra Technologies

            • Re: ZQ520: is there a cpcl command to download file to printer
              ashley cao

              Hi Dmitry Prokhorov,

               

              I am not using Link-OS sdk. Just purely cpcl command.

               

              Please find PCX command as follows (apologise for long binary string):

               

              ! 0 200 200 440 1

              TEXT 4 1 0 0 TEST

              PCX 0 100

              Input 2 0000101000000101000000010000100000000000000000000000000000000000100011110000000001010000000000000110000000000000011000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111001000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111110011111111111011110000000001111100111111111111110011111111111011110000000001111100111111111111110011111111111011110000000001111100111111111111100111111111111101010000000001111001111111111111100111111111111101010000000001111001111111111111100111111111111101010000000001111001111111111111011101111111111010010000000001101000011111111110100100000000011101110111111111110111011111111110100100000000011010000111111111101001000000000111011101111111111101110111111111101001000000000110100001111111111010010000000001110111011111111111010011111111111001111000000001110000011111111110011110000000011101001111111111110100111111111110011110000000011100000111111111100111100000000111010011111111111101001111111111100111100000000111000001111111111001111000000001110100111111111111001101111111111001101000000001110101011111111110011010000000011100110111111111110011011111111110011010000000011101010111111111100110100000000111001101111111111100110111111111100110100000000111010101111111111001101000000001110011011111111111000111111111111001100000000001101001111111111110011000000000011010011111111111100110000000000111000111111111111100011111111111100110000000000110100111111111111001100000000001101001111111111110011000000000011100011111111111110001111111111110011000000000011010011111111111100110000000000110100111111111111001100000000001110001111111111111000001111111111001100000000001100110111111111110111100000000011001101111111111100110000000000111000001111111111100000111111111100110000000000110011011111111111011110000000001100110111111111110011000000000011100000111111111110000011111111110011000000000011001101111111111101111000000000110011011111111111001100000000001110000011111111110111011111111111001100000000001100101111111111111010000000000011001011111111111100110000000000110111011111111111011101111111111100110000000000110010111111111111101000000000001100101111111111110011000000000011011101111111111101110111111111110011000000000011001011111111111110100000000000110010111111111111001100000000001101110111111111110110111111111111001100000000001100100111111111111100000000000011001001111111111100110000000000110110111111111111011011111111111100110000000000110010011111111111110000000000001100100111111111110011000000000011011011111111111101101111111111110011000000000011001001111111111111000000000000110010011111111111001100000000001101101111111111110110011111111111001011000000001100100111111111111101100000000011001001111111111100101100000000110110011111111111011001111111111100101100000000110010011111111111110110000000001100100111111111110010110000000011011001111111111101100111111111110010110000000011001001111111111111011000000000110010011111111111001011000000001101100111111111110101111111111111001011000000001100100011111111111111000000000011001000111111111100101100000000110101111111111111010111111111111100101100000000110010001111111111111100000000001100100011111111110010110000000011010111111111111101011111111111110010110000000011001000111111111111110000000000110010001111111111001011000000001101011111111111110101011111111111001011000000001100100011111111111111110000000000000000110010001111111111001011000000001101010111111111110101011111111111001011000000001100100011111111111111110000000000000000110010001111111111001011000000001101010111111111110101011111111111001011000000001100100011111111111111110000000000000000110010001111111111001011000000001101010111111111110100111111111111001100000000001100011111111111111111110000000011000101000000001100011111111111110011000000000011010011111111111101001111111111110011000000000011000111111111111111111100000000110001010000000011000111111111111100110000000000110100111111111111010011111111111100110000000000110001111111111111111111000000001100010100000000110001111111111111001100000000001101001111111111110100101111111111001011000000001100011011111111111111110000000011001011000000001100011011111111110010110000000011010010111111111101001011111111110010110000000011000110111111111111111100000000110010110000000011000110111111111100101100000000110100101111111111010010111111111100101100000000110001101111111111111111000000001100101100000000110001101111111111001011000000001101001011111111110100001111111111001100000000001100011011111111111111110000000011001101000000001100011011111111110011000000000011010000111111111101000011111111110011000000000011000110111111111111111100000000110011010000000011000110111111111100110000000000110100001111111111010000111111111100110000000000110001101111111111111111000000001100110100000000110001101111111111001100000000001101000011111111110011111111111111001011000000001100011011111111110110110000000011000100111111111100111000000000110010001111111111011011000000001100011011111111110010110000000011001111111111111100111111111111110010110000000011000110111111111101101100000000110001001111111111001110000000001100100011111111110110110000000011000110111111111100101100000000110011111111111111001111111111111100101100000000110001101111111111011011000000001100010011111111110011100000000011001000111111111101101100000000110001101111111111001011000000001100111111111111110011101111111111001011000000001100010111111111110110110000000011000010111111110000000011010111111111110000000011000001111111111100001100000000110000101111111111000111000000001100100111111111110010000000000011000101111111111100101100000000110011101111111111001110111111111100101100000000110001011111111111011011000000001100001011111111000000001101011111111111000000001100000111111111110000110000000011000010111111111100011100000000110010011111111111001000000000001100010111111111110010110000000011001110111111111100111011111111110010110000000011000101111111111101101100000000110000101111111100000000110101111111111100000000110000011111111111000011000000001100001011111111110001110000000011001001111111111100100000000000110001011111111111001011000000001100111011111111110011001111111111001100000000001100010111111111110010000000000011010000111111111100001100000000110111001111111100000000110000011111111111000010000000001100111011111111110000100000000011000101111111111100011000000000110001011111111111001100000000001100110011111111110011001111111111001100000000001100010111111111110010000000000011010000111111111100001100000000110111001111111100000000110000011111111111000010000000001100111011111111110000100000000011000101111111111100011000000000110001011111111111001100000000001100110011111111110011001111111111001100000000001100010111111111110010000000000011010000111111111100001100000000110111001111111100000000110000011111111111000010000000001100111011111111110000100000000011000101111111111100011000000000110001011111111111001100000000001100110011111111110010111111111111001011000000001100011011111111110001100000000011000101111111111100001100000000110001111111111111000010000000001100001111111111110000100000000011011110111111111100001000000000110100101111111100000000110001001111111111000101000000001100011011111111110010110000000011001011111111111100101111111111110010110000000011000110111111111100011000000000110001011111111111000011000000001100011111111111110000100000000011000011111111111100001000000000110111101111111111000010000000001101001011111111000000001100010011111111110001010000000011000110111111111100101100000000110010111111111111001011111111111100101100000000110001101111111111000110000000001100010111111111110000110000000011000111111111111100001000000000110000111111111111000010000000001101111011111111110000100000000011010010111111110000000011000100111111111100010100000000110001101111111111001011000000001100101111111111110010101111111111001011000000001100010111111111110001100000000011000100111111110000000011001111111111110000000011000010111111111100001000000000110000011111111100000000110110111111111111000010000000001100000111111111000000001101001111111111000000001100001111111111110001010000000011000101111111111100101100000000110010101111111111001010111111111100101100000000110001011111111111000110000000001100010011111111000000001100111111111111000000001100001011111111110000100000000011000001111111110000000011011011111111111100001000000000110000011111111100000000110100111111111100000000110000111111111111000101000000001100010111111111110010110000000011001010111111111100101011111111110010110000000011000101111111111100011000000000110001001111111100000000110011111111111100000000110000101111111111000010000000001100000111111111000000001101101111111111110000100000000011000001111111110000000011010011111111110000000011000011111111111100010100000000110001011111111111001011000000001100101011111111110010011111111111001011000000001100010111111111110001010000000011000011111111110000000011010011111111110000000011000010111111111100001000000000110000011111111100000000110011001111111100000000110000111111111100000000110010001111111111000011000000001100001011111111000000001101010011111111000000001100001111111111110001000000000011000101111111111100101100000000110010011111111111001001111111111100101100000000110001011111111111000101000000001100001111111111000000001101001111111111000000001100001011111111110000100000000011000001111111110000000011001100111111110000000011000011111111110000000011001000111111111100001100000000110000101111111100000000110101001111111100000000110000111111111111000100000000001100010111111111110010110000000011001001111111111100100111111111110010110000000011000101111111111100010100000000110000111111111100000000110100111111111100000000110000101111111111000010000000001100000111111111000000001100110011111111000000001100001111111111000000001100100011111111110000110000000011000010111111110000000011010100111111110000000011000011111111111100010000000000110001011111111111001011000000001100100111111111110010001111111111001011000000001100010111111111110001000000000011000011111111110000000011010110111111110000000011000010111111110000000011000010111111110000000011001010111111110000000011000010111111111100001000000000110000011111111100000000110001111111111111000101000000001100000111111111000000001101100011111111110001000000000011000101111111111100101100000000110010001111111111001000111111111100101100000000110001011111111111000100000000001100001111111111000000001101011011111111000000001100001011111111000000001100001011111111000000001100101011111111000000001100001011111111110000100000000011000001111111110000000011000111111111111100010100000000110000011111111100000000110110001111111111000100000000001100010111111111110010110000000011001000111111111100100011111111110010110000000011000101111111111100010000000000110000111111111100000000110101101111111100000000110000101111111100000000110000101111111100000000110010101111111100000000110000101111111111000010000000001100000111111111000000001100011111111111110001010000000011000001111111110000000011011000111111111100010000000000110001011111111111001011000000001100100011111111110001111111111111001100000000001100010011111111110001000000000011011110111111111100001100000000110000011111111100000000110010101111111111000101000000001100000111111111000000001100011011111111110001100000000011010111111111110000000011000010111111111100010000000000110001001111111111001100000000001100011111111111110001111111111111001100000000001100010011111111110001000000000011011110111111111100001100000000110000011111111100000000110010101111111111000101000000001100000111111111000000001100011011111111110001100000000011010111111111110000000011000010111111111100010000000000110001001111111111001100000000001100011111111111110001111111111111001100000000001100010011111111110001000000000011011110111111111100001100000000110000011111111100000000110010101111111111000101000000001100000111111111000000001100011011111111110001100000000011010111111111110000000011000010111111111100010000000000110001001111111111001100000000001100011111111111110001101111111111001100000000001100010011111111110001000000000011000010111111110000000011011010111111110000000011000001111111111100001100000000110000011111111100000000110010101111111111000101000000001100001011111111000000001100010111111111110001100000000011000001111111110000000011010110111111110000000011000010111111111100010000000000110001001111111111001100000000001100011011111111110001101111111111001100000000001100010011111111110001000000000011000010111111110000000011011010111111110000000011000001111111111100001100000000110000011111111100000000110010101111111111000101000000001100001011111111000000001100010111111111110001100000000011000001111111110000000011010110111111110000000011000010111111111100010000000000110001001111111111001100000000001100011011111111110001101111111111001100000000001100010011111111110001000000000011000010111111110000000011011010111111110000000011000001111111111100001100000000110000011111111100000000110010101111111111000101000000001100001011111111000000001100010111111111110001100000000011000001111111110000000011010110111111110000000011000010111111111100010000000000110001001111111111001100000000001100011011111111110001101111111111001011000000001100010011111111110001010000000011000001111111110000000011001101111111110000000011001111111111111100001100000000110000011111111100000000110010101111111111000111000000001100000111111111000000001100010011111111110001100000000011000001111111110000000011001010111111111100001000000000110010111111111100000000110000101111111111000100000000001100010011111111110010110000000011000110111111111100011011111111110010110000000011000100111111111100010100000000110000011111111100000000110011011111111100000000110011111111111111000011000000001100000111111111000000001100101011111111110001110000000011000001111111110000000011000100111111111100011000000000110000011111111100000000110010101111111111000010000000001100101111111111000000001100001011111111110001000000000011000100111111111100101100000000110001101111111111000110111111111100101100000000110001001111111111000101000000001100000111111111000000001100110111111111000000001100111111111111110000110000000011000001111111110000000011001010111111111100011100000000110000011111111100000000110001001111111111000110000000001100000111111111000000001100101011111111110000100000000011001011111111110000000011000010111111111100010000000000110001001111111111001011000000001100011011111111110001011111111111001011000000001100010011111111110001100000000011000001111111110000000011001100111111110000000011000001111111111100001100000000110011001111111111000011000000001100000111111111000000001100101011111111110001110000000011000010111111110000000011000011111111111100011000000000110000011111111100000000110011011111111100000000110010101111111100000000110000101111111111000100000000001100010011111111110010110000000011000101111111111100010111111111110010110000000011000100111111111100011000000000110000011111111100000000110011001111111100000000110000011111111111000011000000001100110011111111110000110000000011000001111111110000000011001010111111111100011100000000110000101111111100000000110000111111111111000110000000001100000111111111000000001100110111111111000000001100101011111111000000001100001011111111110001000000000011000100111111111100101100000000110001011111111111000101111111111100101100000000110001001111111111000110000000001100000111111111000000001100110011111111000000001100000111111111110000110000000011001100111111111100001100000000110000011111111100000000110010101111111111000111000000001100001011111111000000001100001111111111110001100000000011000001111111110000000011001101111111110000000011001010111111110000000011000010111111111100010000000000110001001111111111001011000000001100010111111111110001001111111111001100000000001100010011111111110001100000000011000010111111110000000011001011111111111100010100000000110000011111111100000000110010011111111111000100000000001100000111111111000000001100100011111111000000001100000111111111110010010000000011000001111111111100001100000000110000011111111111000101000000001100000111111111000000001100101111111111110000110000000011001101111111111100010000000000110001001111111111001100000000001100010011111111110001001111111111001100000000001100010011111111110001100000000011000010111111110000000011001011111111111100010100000000110000011111111100000000110010011111111111000100000000001100000111111111000000001100100011111111000000001100000111111111110010010000000011000001111111111100001100000000110000011111111111000101000000001100000111111111000000001100101111111111110000110000000011001101111111111100010000000000110001001111111111001100000000001100010011111111110001001111111111001100000000001100010011111111110001100000000011000010111111110000000011001011111111111100010100000000110000011111111100000000110010011111111111000100000000001100000111111111000000001100100011111111000000001100000111111111110010010000000011000001111111111100001100000000110000011111111111000101000000001100000111111111000000001100101111111111110000110000000011001101111111111100010000000000110001001111111111001100000000001100010011111111110001001111111111001011000000001100010011111111110010000000000011001101111111111100011000000000110010101111111111000100000000001100000111111111000000001100100011111111000000001100000111111111110100110000000011000001111111110000000011001011111111111100010000000000110011011111111111000100000000001100010011111111110010110000000011000100111111111100010011111111110010110000000011000100111111111100100000000000110011011111111111000110000000001100101011111111110001000000000011000001111111110000000011001000111111110000000011000001111111111101001100000000110000011111111100000000110010111111111111000100000000001100110111111111110001000000000011000100111111111100101100000000110001001111111111000100111111111100101100000000110001001111111111001000000000001100110111111111110001100000000011001010111111111100010000000000110000011111111100000000110010001111111100000000110000011111111111010011000000001100000111111111000000001100101111111111110001000000000011001101111111111100010000000000110001001111111111001011000000001100010011111111110000111111111111001100000000001100001111111111110010100000000011000010111111110000000011001001111111111100011000000000110010101111111111000100000000001100000111111111000000001100100011111111000000001100000111111111110100110000000011000001111111110000000011001011111111111100001100000000110011001111111100000000110000011111111111000101000000001100001111111111110011000000000011000011111111111100001111111111110011000000000011000011111111111100101000000000110000101111111100000000110010011111111111000110000000001100101011111111110001000000000011000001111111110000000011001000111111110000000011000001111111111101001100000000110000011111111100000000110010111111111111000011000000001100110011111111000000001100000111111111110001010000000011000011111111111100110000000000110000111111111111000011111111111100110000000000110000111111111111001010000000001100001011111111000000001100100111111111110001100000000011001010111111111100010000000000110000011111111100000000110010001111111100000000110000011111111111010011000000001100000111111111000000001100101111111111110000110000000011001100111111110000000011000001111111111100010100000000110000111111111111001100000000001100001111111111110000101111111111001100000000001100010011111111110010110000000011001011111111111100011000000000110000011111111100000000110010001111111111000100000000001100000111111111000000001100100011111111000000001100000111111111110001010000000011000001111111111100001000000000110000011111111111001010000000001100000111111111000000001100101111111111110001010000000011001101111111111100010000000000110001001111111111001100000000001100001011111111110000101111111111001100000000001100010011111111110010110000000011001011111111111100011000000000110000011111111100000000110010001111111111000100000000001100000111111111000000001100100011111111000000001100000111111111110001010000000011000001111111111100001000000000110000011111111111001010000000001100000111111111000000001100101111111111110001010000000011001101111111111100010000000000110001001111111111001100000000001100001011111111110000101111111111001100000000001100010011111111110010110000000011001011111111111100011000000000110000011111111100000000110010001111111111000100000000001100000111111111000000001100100011111111000000001100000111111111110001010000000011000001111111111100001000000000110000011111111111001010000000001100000111111111000000001100101111111111110001010000000011001101111111111100010000000000110001001111111111001100000000001100001011111111110000101111111111001100000000001100001111111111110011000000000011001011111111111100011000000000110000011111111100000000110010011111111111000011000000001100000111111111000000001100101011111111110000110000000011000010111111110000000011000100111111111100100100000000110000011111111100000000110010111111111111000100000000001100110011111111000000001100000111111111110001010000000011000011111111111100110000000000110000101111111111000010111111111100110000000000110000111111111111001100000000001100101111111111110001100000000011000001111111110000000011001001111111111100001100000000110000011111111100000000110010101111111111000011000000001100001011111111000000001100010011111111110010010000000011000001111111110000000011001011111111111100010000000000110011001111111100000000110000011111111111000101000000001100001111111111110011000000000011000010111111111100001011111111110011000000000011000011111111111100110000000000110010111111111111000110000000001100000111111111000000001100100111111111110000110000000011000001111111110000000011001010111111111100001100000000110000101111111100000000110001001111111111001001000000001100000111111111000000001100101111111111110001000000000011001100111111110000000011000001111111111100010100000000110000111111111111001100000000001100001011111111110000101111111111001011000000001100010011111111110011000000000011001011111111111100011000000000110000011111111100000000110010001111111111000100000000001100000111111111000000001100101011111111110000110000000011000001111111110000000011000011111111110000000011000001111111111100100100000000110000011111111100000000110010111111111111000100000000001100110011111111000000001100000111111111110001010000000011000100111111111100101100000000110000101111111111000010111111111100101100000000110001001111111111001100000000001100101111111111110001100000000011000001111111110000000011001000111111111100010000000000110000011111111100000000110010101111111111000011000000001100000111111111000000001100001111111111000000001100000111111111110010010000000011000001111111110000000011001011111111111100010000000000110011001111111100000000110000011111111111000101000000001100010011111111110010110000000011000010111111111100001011111111110010110000000011000100111111111100110000000000110010111111111111000110000000001100000111111111000000001100100011111111110001000000000011000001111111110000000011001010111111111100001100000000110000011111111100000000110000111111111100000000110000011111111111001001000000001100000111111111000000001100101111111111110001000000000011001100111111110000000011000001111111111100010100000000110001001111111111001011000000001100001011111111110000011111111111001100000000001100001111111111110011010000000011001011111111111100011000000000110000011111111100000000110010001111111111000100000000001100000111111111000000001100100111111111000000001100100011111111000000001100000111111111110010010000000011000001111111110000000011001011111111111100011000000000110011011111111111000101000000001100001111111111110011000000000011000001111111111100000111111111110011000000000011000011111111111100110100000000110010111111111111000110000000001100000111111111000000001100100011111111110001000000000011000001111111110000000011001001111111110000000011001000111111110000000011000001111111111100100100000000110000011111111100000000110010111111111111000110000000001100110111111111110001010000000011000011111111111100110000000000110000011111111111000001111111111100110000000000110000111111111111001101000000001100101111111111110001100000000011000001111111110000000011001000111111111100010000000000110000011111111100000000110010011111111100000000110010001111111100000000110000011111111111001001000000001100000111111111000000001100101111111111110001100000000011001101111111111100010100000000110000111111111111001100000000001100000111111111110000011111111111001100000000001100001111111111110011010000000011001011111111111100011000000000110010101111111111000100000000001100000111111111000000001100101011111111000000001100001011111111000000001100011011111111110010010000000011000001111111110000000011001011111111111100011000000000110011011111111111000101000000001100001111111111110011000000000011000001111111111100000111111111110011000000000011000011111111111100110100000000110010111111111111000110000000001100101011111111110001000000000011000001111111110000000011001010111111110000000011000010111111110000000011000110111111111100100100000000110000011111111100000000110010111111111111000110000000001100110111111111110001010000000011000011111111111100110000000000110000011111111111000001111111111100110000000000110000111111111111001101000000001100101111111111110001100000000011001010111111111100010000000000110000011111111100000000110010101111111100000000110000101111111100000000110001101111111111001001000000001100000111111111000000001100101111111111110001100000000011001101111111111100010100000000110000111111111111001100000000001100000111111111110000011111111111001011000000001100010011111111110011010000000011001011111111111100011000000000110010111111111111000011000000001100000111111111000000001101010011111111110010010000000011000001111111110000000011001011111111111100011000000000110011011111111111000101000000001100010011111111110010110000000011000001111111111100000111111111110010110000000011000100111111111100110100000000110010111111111111000110000000001100101111111111110000110000000011000001111111110000000011010100111111111100100100000000110000011111111100000000110010111111111111000110000000001100110111111111110001010000000011000100111111111100101100000000110000011111111111000001111111111100101100000000110001001111111111001101000000001100101111111111110001100000000011001011111111111100001100000000110000011111111100000000110101001111111111001001000000001100000111111111000000001100101111111111110001100000000011001101111111111100010100000000110001001111111111001011000000001100000111111111110011000000000011000011111111111100111000000000110010111111111111000111000000001100101011111111110000110000000011000001111111110000000011010100111111111100100100000000110000011111111100000000110010111111111111000110000000001100110111111111110001100000000011000011111111111100110000000000110011000000000011000011111111111100111000000000110010111111111111000111000000001100101011111111110000110000000011000001111111110000000011010100111111111100100100000000110000011111111100000000110010111111111111000110000000001100110111111111110001100000000011000011111111111100110000000000110011000000000011000011111111111100111000000000110010111111111111000111000000001100101011111111110000110000000011000001111111110000000011010100111111111100100100000000110000011111111100000000110010111111111111000110000000001100110111111111110001100000000011000011111111111100110000000000110011000000000011000011111111111100111000000000110010111111111111000101000000001100101011111111000000001100000111111111110000110000000011000001111111110000000011010100111111111100100100000000110000011111111100000000110010111111111111000110000000001100110111111111110001100000000011000011111111111100110000000000110011000000000011000011111111111100111000000000110010111111111111000101000000001100101011111111000000001100000111111111110000110000000011000001111111110000000011010100111111111100100100000000110000011111111100000000110010111111111111000110000000001100110111111111110001100000000011000011111111111100110000000000110011000000000011000011111111111100111000000000110010111111111111000101000000001100101011111111000000001100000111111111110000110000000011000001111111110000000011010100111111111100100100000000110000011111111100000000110010111111111111000110000000001100110111111111110001100000000011000011111111111100110000000000110011000000000011000011111111111100111000000000110010111111111100000000110000011111111111000010000000001100000111111111000000001100101011111111110001000000000011000001111111110000000011010100111111111100100100000000110000011111111100000000110010111111111111000110000000001100110111111111110001100000000011000011111111111100110000000000110011000000000011000011111111111100111000000000110010111111111100000000110000011111111111000010000000001100000111111111000000001100101011111111110001000000000011000001111111110000000011010100111111111100100100000000110000011111111100000000110010111111111111000110000000001100110111111111110001100000000011000011111111111100110000000000110011000000000011000011111111111100111000000000110010111111111100000000110000011111111111000010000000001100000111111111000000001100101011111111110001000000000011000001111111110000000011010100111111111100100100000000110000011111111100000000110010111111111111000110000000001100110111111111110001100000000011000011111111111100110000000000110011000000000011000011111111111100111000000000110011001111111100000000110000101111111100000000110010011111111100000000110000011111111111000100000000001100000111111111000000001101010011111111110010010000000011000001111111110000000011001011111111111100011000000000110011011111111111000110000000001100001111111111110011000000000011001100000000001100001111111111110011100000000011001100111111110000000011000010111111110000000011001001111111110000000011000001111111111100010000000000110000011111111100000000110101001111111111001001000000001100000111111111000000001100101111111111110001100000000011001101111111111100011000000000110000111111111111001100000000001100110000000000110000111111111111001110000000001100110011111111000000001100001011111111000000001100100111111111000000001100000111111111110001000000000011000001111111110000000011010100111111111100100100000000110000011111111100000000110010111111111111000110000000001100110111111111110001100000000011000011111111111100110000000000110011000000000011000011111111111100111000000000110110001111111111000111000000001100000111111111000000001100100111111111000000001100001111111111000000001100011011111111110010010000000011000001111111110000000011001011111111111100011000000000110011011111111111000110000000001100001111111111110011000000000011001100000000001100001111111111110011100000000011011000111111111100011100000000110000011111111100000000110010011111111100000000110000111111111100000000110001101111111111001001000000001100000111111111000000001100101111111111110001100000000011001101111111111100011000000000110000111111111111001100000000001100110000000000110000111111111111001110000000001101100011111111110001110000000011000001111111110000000011001001111111110000000011000011111111110000000011000110111111111100100100000000110000011111111100000000110010111111111111000110000000001100110111111111110001100000000011000011111111111100110000000000110011000000000011000011111111111100111000000000110101111111111100000000110000011111111111000110000000001100000111111111000000001101001011111111000000001100000111111111110010010000000011000001111111110000000011001011111111111100011000000000110011011111111111000110000000001100001111111111110011000000000011001100000000001100001111111111110011100000000011010111111111110000000011000001111111111100011000000000110000011111111100000000110100101111111100000000110000011111111111001001000000001100000111111111000000001100101111111111110001100000000011001101111111111100011000000000110000111111111111001100000000001100110000000000110000111111111111001110000000001101011111111111000000001100000111111111110001100000000011000001111111110000000011010010111111110000000011000001111111111100100100000000110000011111111100000000110010111111111111000110000000001100110111111111110001100000000011000011111111111100110000000000110011000000000011000011111111111100111000000000110101101111111100000000110000101111111111000110000000001100000111111111000000001100100011111111000000001100000111111111110000110000000011000001111111110000000011000011111111110000000011000001111111111100100100000000110000011111111100000000110010111111111111000110000000001100101011111111000000001100001011111111110001100000000011000011111111111100110000000000110011000000000011000011111111111100111000000000110101101111111100000000110000101111111111000110000000001100000111111111000000001100100011111111000000001100000111111111110000110000000011000001111111110000000011000011111111110000000011000001111111111100100100000000110000011111111100000000110010111111111111000110000000001100101011111111000000001100001011111111110001100000000011000011111111111100110000000000110011000000000011000011111111111100111000000000110101101111111100000000110000101111111111000110000000001100000111111111000000001100100011111111000000001100000111111111110000110000000011000001111111110000000011000011111111110000000011000001111111111100100100000000110000011111111100000000110010111111111111000110000000001100101011111111000000001100001011111111110001100000000011000011111111111100110000000000110011000000000011000011111111111100111000000000110010111111111100000000110001001111111111000101000000001100001011111111110010000000000011000001111111110000000011001000111111110000000011000001111111111100001100000000110001011111111100000000110000011111111111001001000000001100000111111111000000001100101111111111110001000000000011001100111111110000000011000001111111111100011100000000110000111111111111001100000000001100110000000000110000111111111111001110000000001100101111111111000000001100010011111111110001010000000011000010111111111100100000000000110000011111111100000000110010001111111100000000110000011111111111000011000000001100010111111111000000001100000111111111110010010000000011000001111111110000000011001011111111111100010000000000110011001111111100000000110000011111111111000111000000001100001111111111110011000000000011001100000000001100001111111111110011100000000011001011111111110000000011000100111111111100010100000000110000101111111111001000000000001100000111111111000000001100100011111111000000001100000111111111110000110000000011000101111111110000000011000001111111111100100100000000110000011111111100000000110010111111111111000100000000001100110011111111000000001100000111111111110001110000000011000011111111111100110000000000110011000000000011000011111111111100111000000000110011001111111111010011000000001100000111111111000000001100100011111111000000001100000111111111110001000000000011000001111111110000000011000100111111111100100100000000110000011111111100000000110010111111111111000100000000001100111011111111110001110000000011000011111111111100110000000000110011000000000011000011111111111100111000000000110011001111111111010011000000001100000111111111000000001100100011111111000000001100000111111111110001000000000011000001111111110000000011000100111111111100100100000000110000011111111100000000110010111111111111000100000000001100111011111111110001110000000011000011111111111100110000000000110011000000000011000011111111111100111000000000110011001111111111010011000000001100000111111111000000001100100011111111000000001100000111111111110001000000000011000001111111110000000011000100111111111100100100000000110000011111111100000000110010111111111111000100000000001100111011111111110001110000000011000011111111111100110000000000110011000000000011000011111111111100111000000000110011001111111111010011000000001100000111111111000000001100100011111111000000001100000111111111110001000000000011000010111111110000000011000010111111111100101000000000110000011111111100000000110010111111111111000100000000001100101111111111000000001100001011111111110001110000000011000011111111111100110000000000110011000000000011000011111111111100111000000000110011001111111111010011000000001100000111111111000000001100100011111111000000001100000111111111110001000000000011000010111111110000000011000010111111111100101000000000110000011111111100000000110010111111111111000100000000001100101111111111000000001100001011111111110001110000000011000011111111111100110000000000110011000000000011000011111111111100111000000000110011001111111111010011000000001100000111111111000000001100100011111111000000001100000111111111110001000000000011000010111111110000000011000010111111111100101000000000110000011111111100000000110010111111111111000100000000001100101111111111000000001100001011111111110001110000000011000011111111111100110000000000110011000000000011000011111111111100110100000000110000101111111100000000110010101111111111010011000000001100000111111111000000001100100011111111000000001100000111111111110001010000000011000100111111111100101000000000110000011111111100000000110010111111111111000011000000001100000111111111000000001100110011111111110010000000000011000011111111111100110000000000110011000000000011000011111111111100110100000000110000101111111100000000110010101111111111010011000000001100000111111111000000001100100011111111000000001100000111111111110001010000000011000100111111111100101000000000110000011111111100000000110010111111111111000011000000001100000111111111000000001100110011111111110010000000000011000011111111111100110000000000110011000000000011000011111111111100110100000000110000101111111100000000110010101111111111010011000000001100000111111111000000001100100011111111000000001100000111111111110001010000000011000100111111111100101000000000110000011111111100000000110010111111111111000011000000001100000111111111000000001100110011111111110010000000000011000011111111111100110000000000110000011111111111001011000000001100010011111111110010110000000011000010111111110000000011001011111111111101001100000000110000011111111100000000110010001111111100000000110000011111111111010011000000001100000111111111000000001100101111111111110000110000000011001011111111110000000011000010111111111100011100000000110001001111111111001011000000001100000111111111110000011111111111001011000000001100010011111111110010110000000011000010111111110000000011001011111111111101001100000000110000011111111100000000110010001111111100000000110000011111111111010011000000001100000111111111000000001100101111111111110000110000000011001011111111110000000011000010111111111100011100000000110001001111111111001011000000001100000111111111110000011111111111001011000000001100010011111111110010110000000011000010111111110000000011001011111111111101001100000000110000011111111100000000110010001111111100000000110000011111111111010011000000001100000111111111000000001100101111111111110000110000000011001011111111110000000011000010111111111100011100000000110001001111111111001011000000001100000111111111110000011111111111001100000000001100001111111111110010100000000011000001111111110000000011001101111111111101001100000000110000011111111100000000110010111111111111010010000000001100000111111111000000001100101111111111110001000000000011001001111111110000000011000010111111111100100000000000110000111111111111001100000000001100000111111111110000011111111111001100000000001100001111111111110010100000000011000001111111110000000011001101111111111101001100000000110000011111111100000000110010111111111111010010000000001100000111111111000000001100101111111111110001000000000011001001111111110000000011000010111111111100100000000000110000111111111111001100000000001100000111111111110000011111111111001100000000001100001111111111110010100000000011000001111111110000000011001101111111111101001100000000110000011111111100000000110010111111111111010010000000001100000111111111000000001100101111111111110001000000000011001001111111110000000011000010111111111100100000000000110000111111111111001100000000001100000111111111110000011111111111001100000000001100001111111111110010100000000011001110111111111101010000000000110000011111111100000000110010111111111111010010000000001100000111111111000000001100101111111111110000100000000011001010111111110000000011000010111111111100100100000000110000111111111111001100000000001100000111111111110000011111111111001100000000001100001111111111110010100000000011001110111111111101010000000000110000011111111100000000110010111111111111010010000000001100000111111111000000001100101111111111110000100000000011001010111111110000000011000010111111111100100100000000110000111111111111001100000000001100000111111111110000011111111111001100000000001100001111111111110010100000000011001110111111111101010000000000110000011111111100000000110010111111111111010010000000001100000111111111000000001100101111111111110000100000000011001010111111110000000011000010111111111100100100000000110000111111111111001100000000001100000111111111110000101111111111001011000000001100010011111111110010010000000011010001111111111101000100000000110000011111111100000000110010011111111100000000110000011111111111010010000000001100000111111111000000001100110111111111000000001100100011111111000000001100001011111111110010010000000011000100111111111100101100000000110000101111111111000010111111111100101100000000110001001111111111001001000000001101000111111111110100010000000011000001111111110000000011001001111111110000000011000001111111111101001000000000110000011111111100000000110011011111111100000000110010001111111100000000110000101111111111001001000000001100010011111111110010110000000011000010111111111100001011111111110010110000000011000100111111111100100100000000110100011111111111010001000000001100000111111111000000001100100111111111000000001100000111111111110100100000000011000001111111110000000011001101111111110000000011001000111111110000000011000010111111111100100100000000110001001111111111001011000000001100001011111111110000101111111111001100000000001100001111111111110010010000000011000011111111110000000011001011111111110000000011000010111111111100111100000000110011001111111100000000110000101111111111010000000000001100111111111111000000001100100011111111000000001100001011111111110010100000000011000011111111111100110000000000110000101111111111000010111111111100110000000000110000111111111111001001000000001100001111111111000000001100101111111111000000001100001011111111110011110000000011001100111111110000000011000010111111111101000000000000110011111111111100000000110010001111111100000000110000101111111111001010000000001100001111111111110011000000000011000010111111111100001011111111110011000000000011000011111111111100100100000000110000111111111100000000110010111111111100000000110000101111111111001111000000001100110011111111000000001100001011111111110100000000000011001111111111110000000011001000111111110000000011000010111111111100101000000000110000111111111111001100000000001100001011111111110000101111111111001100000000001100010011111111110010100000000011000011111111110000000011001101111111111100110100000000110000101111111100000000110011011111111111001111000000001100001011111111000000001101010011111111000000001100001111111111110010100000000011000100111111111100110000000000110000101111111111000010111111111100110000000000110001001111111111001010000000001100001111111111000000001100110111111111110011010000000011000010111111110000000011001101111111111100111100000000110000101111111100000000110101001111111100000000110000111111111111001010000000001100010011111111110011000000000011000010111111111100001011111111110011000000000011000100111111111100101000000000110000111111111100000000110011011111111111001101000000001100001011111111000000001100110111111111110011110000000011000010111111110000000011010100111111110000000011000011111111111100101000000000110001001111111111001100000000001100001011111111110000111111111111001100000000001100001111111111110010110000000011000100111111110000000011001011111111111100110000000000110000101111111100000000110011001111111100000000110000101111111111001101000000001100001011111111000000001101010011111111000000001100001111111111110010110000000011000011111111111100110000000000110000111111111111000011111111111100110000000000110000111111111111001011000000001100010011111111000000001100101111111111110011000000000011000010111111110000000011001100111111110000000011000010111111111100110100000000110000101111111100000000110101001111111100000000110000111111111111001011000000001100001111111111110011000000000011000011111111111100001111111111110011000000000011000011111111111100101100000000110001001111111100000000110010111111111111001100000000001100001011111111000000001100110011111111000000001100001011111111110011010000000011000010111111110000000011010100111111110000000011000011111111111100101100000000110000111111111111001100000000001100001111111111110001001111111111001011000000001100010011111111110011000000000011000100111111111100001000000000110010001111111111001011000000001100001011111111000000001100111011111111000000001100001011111111110010110000000011000010111111110000000011010011111111110000000011000011111111111100110000000000110001001111111111001011000000001100010011111111110001001111111111001011000000001100010011111111110011000000000011000100111111111100001000000000110010001111111111001011000000001100001011111111000000001100111011111111000000001100001011111111110010110000000011000010111111110000000011010011111111110000000011000011111111111100110000000000110001001111111111001011000000001100010011111111110001001111111111001011000000001100010011111111110011000000000011000100111111111100001000000000110010001111111111001011000000001100001011111111000000001100111011111111000000001100001011111111110010110000000011000010111111110000000011010011111111110000000011000011111111111100110000000000110001001111111111001011000000001100010011111111110001001111111111001100000000001100010011111111110011100000000011000100111111111100001000000000110000111111111100000000110000011111111111001011000000001101010011111111110010110000000011010011111111110000000011000100111111111100110100000000110001001111111111001100000000001100010011111111110001001111111111001100000000001100010011111111110011100000000011000100111111111100001000000000110000111111111100000000110000011111111111001011000000001101010011111111110010110000000011010011111111110000000011000100111111111100110100000000110001001111111111001100000000001100010011111111110001001111111111001100000000001100010011111111110011100000000011000100111111111100001000000000110000111111111100000000110000011111111111001011000000001101010011111111110010110000000011010011111111110000000011000100111111111100110100000000110001001111111111001100000000001100010011111111110001011111111111001011000000001100010011111111110100000000000011001001111111111100101100000000110000011111111100000000110100101111111111001011000000001100111111111111110000100000000011000101111111111100111100000000110001001111111111001011000000001100010111111111110001011111111111001011000000001100010011111111110100000000000011001001111111111100101100000000110000011111111100000000110100101111111111001011000000001100111111111111110000100000000011000101111111111100111100000000110001001111111111001011000000001100010111111111110001011111111111001011000000001100010011111111110100000000000011001001111111111100101100000000110000011111111100000000110100101111111111001011000000001100111111111111110000100000000011000101111111111100111100000000110001001111111111001011000000001100010111111111110001101111111111001011000000001100010011111111111000110000000011010010111111110000000011000001111111111100101100000000110000101111111111001001000000001100100011111111110100010000000011000100111111111100101100000000110001101111111111000110111111111100101100000000110001001111111111100011000000001101001011111111000000001100000111111111110010110000000011000010111111111100100100000000110010001111111111010001000000001100010011111111110010110000000011000110111111111100011011111111110010110000000011000100111111111110001100000000110100101111111100000000110000011111111111001011000000001100001011111111110010010000000011001000111111111101000100000000110001001111111111001011000000001100011011111111110001101111111111001100000000001100010011111111111000100000000011000011111111111100001000000000110010101111111111000010000000001100001111111111110011000000000011001110111111111101010000000000110001001111111111001100000000001100011011111111110001101111111111001100000000001100010011111111111000100000000011000011111111111100001000000000110010101111111111000010000000001100001111111111110011000000000011001110111111111101010000000000110001001111111111001100000000001100011011111111110001101111111111001100000000001100010011111111111000100000000011000011111111111100001000000000110010101111111111000010000000001100001111111111110011000000000011001110111111111101010000000000110001001111111111001100000000001100011011111111110001111111111111001100000000001100010011111111111000110000000011010000111111111110111100000000110001001111111111001100000000001100011111111111110001111111111111001100000000001100010011111111111000110000000011010000111111111110111100000000110001001111111111001100000000001100011111111111110001111111111111001100000000001100010011111111111000110000000011010000111111111110111100000000110001001111111111001100000000001100011111111111110010001111111111001100000000001100010011111111111111110000000011100001000000001100010011111111110011000000000011001000111111111100100011111111110011000000000011000100111111111111111100000000111000010000000011000100111111111100110000000000110010001111111111001000111111111100110000000000110001001111111111111111000000001110000100000000110001001111111111001100000000001100100011111111110010011111111111001011000000001100010111111111110100010000000011000010111111111111100000000000110000101111111111010001000000001100010111111111110010110000000011001001111111111100100111111111110010110000000011000101111111111101000100000000110000101111111111111000000000001100001011111111110100010000000011000101111111111100101100000000110010011111111111001001111111111100101100000000110001011111111111010001000000001100001011111111111110000000000011000010111111111101000100000000110001011111111111001011000000001100100111111111110010101111111111001011000000001100010111111111110100000000000011000011111111111111011000000000110000111111111111010000000000001100010111111111110010110000000011001010111111111100101011111111110010110000000011000101111111111101000000000000110000111111111111110110000000001100001111111111110100000000000011000101111111111100101100000000110010101111111111001010111111111100101100000000110001011111111111010000000000001100001111111111111101100000000011000011111111111101000000000000110001011111111111001011000000001100101011111111110010111111111111001100000000001100010111111111110011010000000011000100111111110000000011000011111111111110111000000000110000101111111100000000110001001111111111001110000000001100010111111111110011000000000011001011111111111100101111111111110011000000000011000101111111111100110100000000110001001111111100000000110000111111111111101110000000001100001011111111000000001100010011111111110011100000000011000101111111111100110000000000110010111111111111001011111111111100110000000000110001011111111111001101000000001100010011111111000000001100001111111111111011100000000011000010111111110000000011000100111111111100111000000000110001011111111111001100000000001100101111111111110011001111111111001100000000001100010111111111110011000000000011000011111111110000000011000101111111111110101100000000110001001111111100000000110001101111111111001011000000001100010111111111110011000000000011001100111111111100110011111111110011000000000011000101111111111100110000000000110000111111111100000000110001011111111111101011000000001100010011111111000000001100011011111111110010110000000011000101111111111100110000000000110011001111111111001100111111111100110000000000110001011111111111001100000000001100001111111111000000001100010111111111111010110000000011000100111111110000000011000110111111111100101100000000110001011111111111001100000000001100110011111111110011101111111111001011000000001100010111111111110010100000000011000100111111110000000011000010111111110000000011000011111111110000000011000100111111111110000100000000110010001111111111000010000000001100010111111111110010100000000011000101111111111100101100000000110011101111111111001110111111111100101100000000110001011111111111001010000000001100010011111111000000001100001011111111000000001100001111111111000000001100010011111111111000010000000011001000111111111100001000000000110001011111111111001010000000001100010111111111110010110000000011001110111111111100111011111111110010110000000011000101111111111100101000000000110001001111111100000000110000101111111100000000110000111111111100000000110001001111111111100001000000001100100011111111110000100000000011000101111111111100101000000000110001011111111111001011000000001100111011111111110011111111111111001011000000001100011011111111110010000000000011000010111111111100001000000000110000111111111100000000110010011111111100000000110000111111111111010110000000001100000111111111000000001100001011111111110000100000000011000010111111111100001100000000110000111111111111000011000000001100010011111111110010000000000011000110111111111100101100000000110011111111111111001111111111111100101100000000110001101111111111001000000000001100001011111111110000100000000011000011111111110000000011001001111111110000000011000011111111111101011000000000110000011111111100000000110000101111111111000010000000001100001011111111110000110000000011000011111111111100001100000000110001001111111111001000000000001100011011111111110010110000000011001111111111111100111111111111110010110000000011000110111111111100100000000000110000101111111111000010000000001100001111111111000000001100100111111111000000001100001111111111110101100000000011000001111111110000000011000010111111111100001000000000110000101111111111000011000000001100001111111111110000110000000011000100111111111100100000000000110001101111111111001011000000001100111111111111110100001111111111001100000000001100011011111111110010100000000011000011111111110000000011000010111111110000000011000010111111111100001000000000110000101111111100000000110001001111111111000010000000001100010011111111000000001100010011111111000000001100010011111111000000001100001011111111110000100000000011000101111111110000000011000010111111111100001100000000110000111111111111000010000000001100010011111111110001110000000011000110111111111100110000000000110100001111111111010000111111111100110000000000110001101111111111001010000000001100001111111111000000001100001011111111000000001100001011111111110000100000000011000010111111110000000011000100111111111100001000000000110001001111111100000000110001001111111100000000110001001111111100000000110000101111111111000010000000001100010111111111000000001100001011111111110000110000000011000011111111111100001000000000110001001111111111000111000000001100011011111111110011000000000011010000111111111101000011111111110011000000000011000110111111111100101000000000110000111111111100000000110000101111111100000000110000101111111111000010000000001100001011111111000000001100010011111111110000100000000011000100111111110000000011000100111111110000000011000100111111110000000011000010111111111100001000000000110001011111111100000000110000101111111111000011000000001100001111111111110000100000000011000100111111111100011100000000110001101111111111001100000000001101000011111111110100101111111111001011000000001100011111111111110010010000000011000101111111110000000011000010111111110000000011000011111111110000000011001010111111110000000011000100111111110000000011001010111111111100001000000000110000101111111100000000110000101111111111000011000000001100010111111111110010010000000011000111111111111100101100000000110100101111111111010010111111111100101100000000110001111111111111001001000000001100010111111111000000001100001011111111000000001100001111111111000000001100101011111111000000001100010011111111000000001100101011111111110000100000000011000010111111110000000011000010111111111100001100000000110001011111111111001001000000001100011111111111110010110000000011010010111111111101001011111111110010110000000011000111111111111100100100000000110001011111111100000000110000101111111100000000110000111111111100000000110010101111111100000000110001001111111100000000110010101111111111000010000000001100001011111111000000001100001011111111110000110000000011000101111111111100100100000000110001111111111111001011000000001101001011111111110100111111111111001100000000001100011111111111110010000000000011000011111111111100001000000000110000101111111100000000110000101111111100000000110010101111111111000010000000001100001111111111110000100000000011000101111111110000000011000100111111111100001000000000110000101111111100000000110001011111111100000000110000111111111111001000000000001100011111111111110011000000000011010011111111111101001111111111110011000000000011000111111111111100100000000000110000111111111111000010000000001100001011111111000000001100001011111111000000001100101011111111110000100000000011000011111111111100001000000000110001011111111100000000110001001111111111000010000000001100001011111111000000001100010111111111000000001100001111111111110010000000000011000111111111111100110000000000110100111111111111010011111111111100110000000000110001111111111111001000000000001100001111111111110000100000000011000010111111110000000011000010111111110000000011001010111111111100001000000000110000111111111111000010000000001100010111111111000000001100010011111111110000100000000011000010111111110000000011000101111111110000000011000011111111111100100000000000110001111111111111001100000000001101001111111111110101011111111111001011000000001100100011111111110010110000000011000101111111110000000011000101111111111100001000000000110001001111111100000000110001001111111100000000110001001111111111000010000000001100010011111111110000100000000011000010111111111100001000000000110001001111111111001010000000001100100011111111110010110000000011010101111111111101010111111111110010110000000011001000111111111100101100000000110001011111111100000000110001011111111111000010000000001100010011111111000000001100010011111111000000001100010011111111110000100000000011000100111111111100001000000000110000101111111111000010000000001100010011111111110010100000000011001000111111111100101100000000110101011111111111010101111111111100101100000000110010001111111111001011000000001100010111111111000000001100010111111111110000100000000011000100111111110000000011000100111111110000000011000100111111111100001000000000110001001111111111000010000000001100001011111111110000100000000011000100111111111100101000000000110010001111111111001011000000001101010111111111110101111111111111001011000000001100100011111111110010110000000011000010111111111100001000000000110001011111111100000000110001011111111100000000110000111111111111000010000000001100010111111111110000100000000011000011111111111100001000000000110000101111111111001110000000001100100011111111110010110000000011010111111111111101011111111111110010110000000011001000111111111100101100000000110000101111111111000010000000001100010111111111000000001100010111111111000000001100001111111111110000100000000011000101111111111100001000000000110000111111111111000010000000001100001011111111110011100000000011001000111111111100101100000000110101111111111111010111111111111100101100000000110010001111111111001011000000001100001011111111110000100000000011000101111111110000000011000101111111110000000011000011111111111100001000000000110001011111111111000010000000001100001111111111110000100000000011000010111111111100111000000000110010001111111111001011000000001101011111111111110110011111111111001011000000001100100111111111110011010000000011000011111111111100001000000000110001011111111100000000110001001111111100000000110001011111111111000010000000001100001011111111110100000000000011001001111111111100101100000000110110011111111111011001111111111100101100000000110010011111111111001101000000001100001111111111110000100000000011000101111111110000000011000100111111110000000011000101111111111100001000000000110000101111111111010000000000001100100111111111110010110000000011011001111111111101100111111111110010110000000011001001111111111100110100000000110000111111111111000010000000001100010111111111000000001100010011111111000000001100010111111111110000100000000011000010111111111101000000000000110010011111111111001011000000001101100111111111110110111111111111001100000000001100101011111111110101010000000011000011111111111100001000000000110000011111111111010011000000001100101011111111110011000000000011011011111111111101101111111111110011000000000011001010111111111101010100000000110000111111111111000010000000001100000111111111110100110000000011001010111111111100110000000000110110111111111111011011111111111100110000000000110010101111111111010101000000001100001111111111110000100000000011000001111111111101001100000000110010101111111111001100000000001101101111111111110111101111111111001011000000001100110011111111111001100000000011001100111111111100101100000000110111101111111111011110111111111100101100000000110011001111111111100110000000001100110011111111110010110000000011011110111111111101111011111111110010110000000011001100111111111110011000000000110011001111111111001011000000001101111011111111111000001111111111001100000000001100111011111111110111000000000011001110111111111100110000000000111000001111111111100000111111111100110000000000110011101111111111011100000000001100111011111111110011000000000011100000111111111110000011111111110011000000000011001110111111111101110000000000110011101111111111001100000000001110000011111111111000111111111111001100000000001101010011111111110010100000000011010100111111111100110000000000111000111111111111100011111111111100110000000000110101001111111111001010000000001101010011111111110011000000000011100011111111111110001111111111110011000000000011010100111111111100101000000000110101001111111111001100000000001110001111111111111001101111111111001101000000001110101011111111110011010000000011100110111111111110011011111111110011010000000011101010111111111100110100000000111001101111111111100110111111111100110100000000111010101111111111001101000000001110011011111111111010101111111111001110000000001110000011111111110011100000000011101010111111111110101011111111110011100000000011100000111111111100111000000000111010101111111111101010111111111100111000000000111000001111111111001110000000001110101011111111111011101111111111010010000000001101000011111111110100100000000011101110111111111110111011111111110100100000000011010000111111111101001000000000111011101111111111101110111111111101001000000000110100001111111111010010000000001110111011111111111100111111111111101010000000001111001111111111111100111111111111101010000000001111001111111111111100111111111111101010000000001111001111111111111110101111111111011100000000001111101011111111111110101111111111011100000000001111101011111111111110101111111111011100000000001111101011111111

              FORM

              PRINT

               

               

              I am using Direct Communication on Utilities, which only print text part.

               

              Thanks,

              Ashley

                • Re: ZQ520: is there a cpcl command to download file to printer
                  Dmitry Prokhorov

                  Hello Ashley.

                   

                  What is a model of your printer? It doesn't matter  are you using Link OS SDK or not. More recent version of CPCL manual is about printers that have support for Link OS but you are free to communicate with those printers directly. That manual provides just a bit more details on PCX command and can be useful for all CPCL printers. Even if your printer has no support for Link OS and you are not using it you may additional details may help you:

                  https://www.zebra.com/content/dam/zebra/manuals/software/linkos/cpcl-link-os-pg-en.pdf#page=134

                   

                  As you can see in the manual:

                  "The PCX file must be a 2-color, 1-plane RLE-encoded PCX file. If it is not, command is aborted and the binary data of the PCX flows into the label data, often causing the printer to enter an unpredictable state."
                  "[Data] – The entire PCX file to be printed. This must include the header and the RLE compressed data. The data size to be transmitted is determined by the PCX file format itself, and does not need to be specified. The Data field must be terminated with a  after the last character of the binary data. Data may contain all binary values including NUL characters."

                   

                  Please, see section 13.3 on how to use CISDF commands to save your PCX file on printer flash memory:

                  https://www.zebra.com/content/dam/zebra/manuals/software/linkos/cpcl-link-os-pg-en.pdf#page=311

                   

                  Dmitry Prokhorov

                  Software Engineer, Kutir Mobility

                  Posted on behalf of Zebra Technologies

                    • Re: ZQ520: is there a cpcl command to download file to printer
                      ashley cao

                      Hi Dmitry,

                      Thanks for reply.

                      Printer model is ZQ520. I tried two ways to load image based on your feedback.

                      First, use pcx command as follow:

                      ! 0 200 200 280 1 <CR><LF>

                      CENTER <CR><LF>

                      T 7 0 0 0 PCX Command Example <CR><LF>

                      PCX 0 30 BinaryPCXData(raw binary data)

                      PRINT

                      It only printed out the text part. I assume it might be the converted binary data issue. Could you please provide a way to check/convert PCX file?

                      What I did was convert png(B&W) to pcx format --> change it to base64 string  --> change it to binary data.

                       

                      Second, use CISDF command.

                      For testing purpose, I used sample command on page 314 to load SAMPLEPCX.PCX and printed it.

                      Could not find it by use !U1 getvar command.

                       

                      Thanks,

                      Ashley

                        • Re: ZQ520: is there a cpcl command to download file to printer
                          Dmitry Prokhorov

                          Hello Ashley,

                           

                          The "change it to base64 string" step needs to be omitted. It should be a binary PCX data as it is. Please, see notes above and documentation.

                          On a page 314 in a sample code you may see strings like below:

                           

                          <SEQ 0A050101000000002F002F00480048000F0F0F0E0E0E0D0D0D0C0C0C0B0B0B0A>

                          <SEQ 0A0A090909080808070707060606050505040404030303020202010101000000>

                          <SEQ 0001060001000000000000000000000000000000000000000000000000000000>

                           

                          They are not a encoded binary data you need to send. Those are ASCII response from printer on raw binary data you are sending to printer.

                           

                          What exactly do you mean as "Could not find it by use !U1 getvar command."?

                           

                          Dmitry Prokhorov

                          Software Engineer, Kutir Mobility

                          Posted on behalf of Zebra Technologies

                            • Re: ZQ520: is there a cpcl command to download file to printer
                              ashley cao

                              Hi Dmitry,

                               

                              Thanks for your reply.

                               

                              1. I didn't find any way to convert PCX directly to raw binary data. That is why I chose to convert it to Base64 first. Is there any way to do it (convert ocx to binary)

                               

                              2. As for<SEQ xxxxxx>, sorry I misunderstood.

                               

                              3. As for "!U1 getvar command.", I tried to load a file to printer and checked if it exists( if load successfully)

                               

                              The reason I want to load image by cpcl command is we may have more than 800 zebra zq520 printers running on daily base. If I can load company logo via command then IT support don't need to set up all of them.

                               

                              Thanks,

                              Ashley

                                • Re: ZQ520: is there a cpcl command to download file to printer
                                  Dmitry Prokhorov

                                  Hi Ashley,

                                   

                                  I can see a reason why you need to load image on your printers.

                                   

                                  Your PCX file is already a binary file and you don't need to convert it. You need to read it  in binary mode in your program and then to send byte values in mentioned CISDF command. Also you will need to calculate and send a checksum (and probably a CRC16 value in case of CISDFCRC16 command usage) for your PCX file.

                                   

                                  Unsure I got it how did you use "!U1 getvar" command to check if PCX file exists on printer. Could you please to share exact command text?

                                   

                                  Dmitry Prokhorov

                                  Software Engineer, Kutir Mobility

                                  Posted on behalf of Zebra Technologies

                                    • Re: ZQ520: is there a cpcl command to download file to printer
                                      ashley cao

                                      Hi Dmitry,

                                       

                                      Thank you for your message.

                                       

                                      I tried your method and use bash command to convert pcx to bytes. Still got issue about checksum. Tried to set it up to 0000. But still failed.

                                       

                                      Here is my full command code:

                                       

                                      ! CISDF<CR><LF>

                                      Logo.PCX<CR><LF>

                                      00001f18<CR><LF>

                                      0000<CR><LF>

                                      <SEQ 050a080100000000008f00500060006000000000000000000000000000000000>

                                      <SEQ 0300009000010000000000000000000000000000000000000000000000000000>

                                      <SEQ fff900defff9fff900defff9fff900defff9fff300eafff3fff300eafff3fff3>

                                      <SEQ 00eafff3ffee00d2ffd000d2ffeeffee00d2ffd000d2ffeeffee00d2ffd000d2>

                                      <SEQ ffeeffe900cfffe000cfffe9ffe900cfffe000cfffe9ffe900cfffe000cfffe9>

                                      <SEQ ffe600cdffea00cdffe6ffe600cdffea00cdffe6ffe600cdffea00cdffe6ffe3>

                                      <SEQ 00ccffd300ccffd300ccffe3ffe300ccffd300ccffd300ccffe3ffe300ccffd3>

                                      <SEQ 00ccffd300ccffe3ffe000ccffcd00deffcd00ccffe0ffe000ccffcd00deffcd>

                                      <SEQ 00ccffe0ffe000ccffcd00deffcd00ccffe0ffdd00ccffcb00e8ffcb00ccffdd>

                                      <SEQ ffdd00ccffcb00e8ffcb00ccffddffdd00ccffcb00e8ffcb00ccffddffdb00cc>

                                      <SEQ 00dcfffa>

                                       

                                      Thanks for all your support but I may close this if there is no further solution. Sorry about this but I am not familiar with byte, binary file or  CISDF.

                                       

                                      Regards,

                                      Ashley

                                        • Re: ZQ520: is there a cpcl command to download file to printer
                                          Dmitry Prokhorov

                                          Hello Ashley,

                                           

                                          As a solution you may move from CPCL to ZPL language. CPCL is a legacy language and ZPL is definitely more advanced language with a lot of capabilities. Here is a quote from ZPL manual:

                                          Working with Hex Graphic Images

                                          ZPL II can be used to save graphic images in HEX format in DRAM, FLASH, or PCMCIA, depending

                                          on the type of memory installed in your printer. ZPL II can be used to save graphic images in HEX

                                          format in DRAM, FLASH, PCMCIA, or battery backed up SRAM, depending on the type of memory

                                          installed in your printer. The image might be created using a CAD program, a draw or paint program,

                                          or a scanner. These images can then be printed on the label. Graphic images may be created using

                                          a program that creates files in the .PCX format. These files must then be converted to ZPL II graphic

                                          format .GRF (pure hexadecimal data without headers or other extraneous information) for use as

                                          part of a label format.

                                          You can use ZebraDesigner or ZebraNet Bridge Enterprise to convert the .PCX graphic format into

                                          the pure hexadecimal .GRF graphic format. Hexadecimal data may also be directly input as part of a

                                          ZPL II program. Manually preparing a string of HEX code is possible but usually impractical.

                                          https://www.zebra.com/content/dam/zebra/manuals/printers/common/programming/zpl-zbi2-pm-en.pdf#page=1510

                                           

                                          Dmitry Prokhorov

                                          Software Engineer, Kutir Mobility

                                          Posted on behalf of Zebra Technologies