Defining Field Options 4-9
Using Option 30 (Pad Data)
You can add characters to one side of a field to “pad” the field. Padding allows you to fill in the
remaining spaces when the entered data does not fill an entire field. If a variable length field is
not completely filled with batch data, this option fills the remaining positions in the field with the
character designated by Option 30.
Syntax R,30,L/R,"character" |
R1. R Option Header.
R2. 30 Option 30.
R3. L/R Indicates type of padding. R is the default.
L Pad field on left side
R Pad field on right side
R4. “character” Pad character must be within the 0 to 255 decimal range and enclosed
inside quotation marks. “0” is the default.The pad character must be in
the same format specified in the RFID Data Field. See Defining the
RFID Data Field for more information. Do not use on fixed length
fields.
Example R,30,L,"X" |
Pads data with an “X” on the left side of the field.
Example X,2,24,0 |
R,30,R,"0" |
Pads the data in the RFID Data Field with a “0” on the right side of the data. This example uses
a 96-bit RFID tag.
Sample Use for Padding
If you have a variable length bar code that you want to occupy a fixed amount of space on the
supply, use pad characters. If the maximum number of characters in the bar code is 15, but the
batch record only has 10 characters, the padding option fills the remainder of the field with pad
characters.
Using Option 31 (Calculate Check Digit)
The printer generates a check digit if you apply Option 31 to the field. You cannot use this option
if the field contains a UPC, EAN, or Code 39 (with the MOD43 check digit) bar code.
Syntax R,31,gen/ver,check digit # |
R1. R Option Header.
R2. 31 Option 31.
R3. gen/ver Enter G to generate a check digit.
R4. check digit # Specifies a check digit scheme. Enter a number that identifies a check
digit scheme that has been defined. For more information, see “Using
Check Digits.” Range: 1 to 10. 1 is the default.
Example R,31,G,5 |
Generates a check digit using the previously defined check digit scheme 5.