Axis Communications 540/640 manual PR1STR 0A 02 0D 0A

Models: 540/640

1 119
Download 119 pages 38.04 Kb
Page 78
Image 78

Section 7: Setting Up - UNIX

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.

See Appendix A, PR1_STR String Substitutions.

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:

PR1_STR. : 01 0A 02 0D 0A

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 substitute 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 ECG1 (hex 1B 47 31) with ECY (hex 1B 59) for logical printer PR2, edit the following entry in your config file:

PR2_STR. : 01 0A 02 0D 0A 03 1B 47 31 02 1B 59

Note: Extensive use of string substitutions will naturally decrease the throughput rate of the AXIS 540/640.

78

AXIS 540/640 User’s Manual

Page 78
Image 78
Axis Communications 540/640 manual PR1STR 0A 02 0D 0A