beautypg.com

Control code command functions, Introduction – Datamax-O'Neil Class Series II Programmer’s Manual User Manual

Page 23

background image

Class Series 2 Programmer’s Manual

9

2

Control Code Command Functions


Introduction

The printer requires a special “attention-getter” character in order to receive a command
sequence, informing the printer that it is about to receive a command and the type of
command it will be. Control Commands, System-Level Commands, and Font Loading

Commands have their own unique attention-getter, followed by a command character that
directs printer action.


Attention-Getters


The attention-getters (e.g., “SOH”) are standard ASCII control labels that represent a one
character control code (i.e., ^A or Ctrl A). Appendix A contains the entire ASCII Control

Code Chart.

Attention-Getter

ASCII Character

Decimal Value

HEX Value

Immediate Commands

SOH 1 01

System-Level Commands

STX 2 02

Font Loading Commands

ESC 27 1B

Table 2-1: Attention Getter Listings


Easy Control Codes

DPL has been enhanced to accept a 3-character SOH and STX sequence. Easy Control Codes
are always enabled, whether in Standard, Alternate, Alternate 2, or Custom Control Code

Mode. Two types of sequences have been created to meet any application’s requirements.
Use these sequences where you normally would use a single SOH or STX character.

Control Character

3 “%” Character

Sequence

3 “^”Character

Sequence

Command Type

SOH

%01

^01

Control

STX

%02

^02

System

Table 2-2: Easy Control Code Listings


This manual is related to the following products: