^RA
^RA

^RA

Use this command to read the AFI or DSFID byte. The data can be returned to the host via the
^HV
command.

Read AFI or DSFID Byte

Format:
^RA#,f,r,m,b
Parameters
Details
#
= field number specified with another command
The value assigned to this parameter should be the same as the one used in the
^RT
command.
Values:
0 to 9999
Default:
0
f
= format
Values:
0
= ASCII
1
= Hexadecimal
Default:
0
r
= number of retries
Values:
0 to 10
Default:
0
m
= motion
Values:
0
= Feed label after writing.
1
= No Feed after writing. Other ZPL may cause a feed.
Default:
0
b = type of byte to read
Values:
A
= AFI byte
D
= DSFID byte
Default:
A
Example: This example reads the AFI byte in ASCII format and returns
AFI Byte:x
to the host. The printer will retry the command five times if necessary. A voided label is generated if the read is unsuccessful after these retries. The data read will go into the
^FN1
location of the recalled format.
^XA ^FO20,120^A0N,60^FN1^FS ^RA1,0,5,0^FS ^HV1,,AFI Byte:^FS ^XZ
Example:
This example reads the DSFID byte in ASCII format and returns
DSFID Byte:x
to the host. The printer will retry the command three times if necessary. A voided label is generated if the read is unsuccessful after these retries. The data read will go into the
^FN1
location of the recalled format.
^XA ^FO20,120^A0N,60^FN1^FS ^RA1,0,3,0,D^FS ^HV1,,DSFID Byte:^FS ^XZ