anthonycaldwell519 (Customer) asked a question.

Printing a QR code

I have a SATO S84NX Industrial Thermal Printer and i am using a Productivty2000 PLC connected via Ethernet, but i can use serial if i need to.

 

I am trying to send this ascii string to it... it's a QR code that says "TEST"

 

"$1BA$1BA3V+00000H+0000$1BCS6$1B#F5$1BA1V00180H0180$1BZ$1BA$1BPS$1BWKLabel%0$1BH0018$1BV00017$1B2D30,L,07,1,0$1BDN0004,TEST$1BQ1$1BZ"

 

What is the best way to do it?


  • ADC Community_02 (Automationdirect.com)

    Take a look at the P280 Custom Protocol Ethernet (CPE) instruction in the help topic. Since your string comes out to 131 bytes, you'll exceed our 128-byte limit for the string data type. Below is some example code showing a workaround for that limitation.

    image