Download Axis HP-MIO 2 User`s manual
Transcript
Section 4: Advanced Functions User Definable Strings There are ten parameters in the Parameter List that can be programmed as User Definable String (Parameters #120 - #129). A common application is to program and store various printer control commands, and send them to the printer using string references rather than the commands themselves. Please refer to the manual for your PC type printer for information on ASCII printer commands. Programming the Strings Example: (HP LaserJet ): You want to store commands for underlining text. Assuming that you have an HP LaserJet, ‘start underline’ and ‘stop underline’ are defined by the ASCII codes $1B, $26, $64, $44 and $1B, $26, $64, $40 respectively: %P =120,$1B,$26,$64,$44 =121,$1B,$26,$64,$40 % Note: (Configuration lead-in sequence) (Program parameter # 120 to ‘start underline’) (Program paramemter # 121 to ‘stop underline’) (Configuration trailer sequence) Strings are programmed in Extended Emulation Mode. The maximum String length is determined by the Free String Area. ‘120’ and ‘121’ are the Parameter numbers. These are referred to as User Definable Strings ‘0’ and ‘1’ respectively. Using the Strings Example (HP LaserJet): To underline text in a document using strings number ‘0’ and ‘1’: This is %Z0underlined%Z1 text Note: 40 To use the Strings, Extended Emulation Mode must be entered. AXIS AX-3 Cobra+ User’s Manual