Axis Communications NPS 532 Printer User Manual


 
Section 8: Advanced Options
Axis NPS 530/532 User’s Manual 61
String Substitutions
The string substitution function performs search-and-replace operations
on the print data. The primary application is to replace printer control
commands. Up to 20 string substitutions may be specified individually
for each logical printer.
All strings must be entered as hexadecimal byte values, and each match
and substitute string must be preceded by a count byte.
Example 1: To replace the UNIX New Line (hex 0A) with an ASCII NewLine (hex
0D 0A) for logical printer PR1, edit the following entry in your config file:
‘01’ is the match string count byte (length of the match string), ‘0A’ is the
match string, ‘02’ is the substitute count byte, and ‘0D 0A’ is the substi-
tute string (This is the default setting for logical printers PR5 through
PR8).
Example 2: To replace the UNIX New Line (hex 0A) with an ASCII NewLine (hex
0D 0A), and the printer command
E
C
G1 (hex 1B 47 31) with
E
C
Y (hex
1B 59) for logical printer PR2, edit the following entry in your config file:
Note: Extensive use of string substitutions may decrease the throughput rate of
the NPS 530/532.
PR1_STR. : 01 0A 02 0D 0A
PR2_STR. : 01 0A 02 0D 0A 03 1B 47 31 02 1B 59