Section 7: Advanced Options58 Axis NPS 650 User’s ManualString SubstitutionsThe string substitution function performs search-and-replace operationson the print data. The primary application is to replace printer controlcommands. Up to 20 string substitutions may be specified individuallyfor each logical printer.All strings must be entered as hexadecimal byte values, and each matchand substitute string must be preceded by a count byte.Example 1: To replace the UNIX New Line (hex 0A) with an ASCII NewLine (hex0D 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 thematch string, ‘02’ is the substitute count byte, and ‘0D 0A’ is the substi-tute string (This is the default setting for logical printers PR5 throughPR8).Example 2: To replace the UNIX New Line (hex 0A) with an ASCII NewLine (hex0D 0A), and the printer command ECG1 (hex 1B 47 31) with ECY (hex1B 59) for logical printer PR2, edit the following entry in your config file:Note: Extensive use of string substitutions may decrease the throughput rate ofthe NPS 650.PR1_STR. : 01 0A 02 0D 0APR2_STR. : 01 0A 02 0D 0A 03 1B 47 31 02 1B 59