Citizen CMP-30II — команды управления принтером: установка и чтение CCL кода [41/48]
![Citizen CMP-30II [41/48] Printer escape commands](/views2/1842783/page41/bg29.png)
41
CMP-30 Command Manual
10. Printer Escape Commands
A. SET AND READ CODE Command
Printer command sessions normally start with the ‘!’ character. When the printer is used in Generic
Text Mode (or Line-Print Mode) and if the user expects to print the ‘!” character in that mode, then
the CCL code must be changed.
Set CCL Code
ESC(0x1b) ‘}’(0x7d) ‘W’(0x57) ‘1’(0x31) <new CCL code>
Where {new CCL code} is a one-bye character representing the new CCL code.
Once the CCL Code is changed, all CCL session should be stared with the new CCL code.
The printer will retain the new CCL code for as long as it remains powered.
Follow sequence to read the CCL code:
Read CCL Code
ESC(0x1b) ‘}’(0x7d) ‘R’(0x52) ‘1’(0x31)
After the above command is issued, the printer will return the one-character CCL code.
PRINTER ESCAPE COMMANDS FORMAT
Format
{escape} {command} [parameters]
Command & option
{escape}
The ESC characte (0x1b)
{command}
Choose from the escape commands in this section
[parameters]
Parameters for the escape commands
☞ NOTE: The escape commands should not be used while in a control/utility session
(“! UTILITIES … PRINT” or ! 0 … PRINT”)
B. STATUS/INFORMATION
1. Get Printer Status
ESC (0x1b) ‘f’(0x68)
This command requests a status byte form the printer. It should be called before loading or
printing a label in order to make sure that the host software is synchronized with the printer. A
status byte from the printer is as follows
Bit0 Status(0: ready, 1: busy)
Bit1 Paper(0: present, 1: out of paper)
Bit2 Latch(0: closed, 1: open)
Bit3 Battery Level(0: OK, 1: Low)
Bit4 ~ 7 Reserved
Bit8 ~ 11 Contrast(0 ~ 3)
Bit12 ~ 15 Reserved
Содержание
- Cpcl command manual p.1
- Cmp 30 p.1
- Table of contents p.2
- Cmp 30 command manual p.2
- Line print mode p.3
- Cmp 30 command manual p.3
- Advanced commands p.3
- Advanced utilities 35 p.4
- Printer escape commands p.4
- Others p.4
- Configuration control commands p.4
- Cmp 30 command manual p.4
- Programming introduction p.5
- Labelmaker p.5
- Getting printer information p.5
- Cmp 30 command manual p.5
- Printer commands p.6
- Cmp 30 command manual p.6
- A printer commands p.6
- D journal command p.7
- Cmp 30 command manual p.7
- C form command p.7
- B print command p.7
- E units command p.8
- Cmp 30 command manual p.8
- F using comments p.9
- Cmp 30 command manual p.9
- Cmp 30 command manual p.10
- A text commands p.10
- Cmp 30 command manual p.11
- B font group fg command p.11
- Cmp 30 command manual p.12
- C text concatenation command p.12
- D multiline ml command p.13
- Cmp 30 command manual p.13
- F setmag command p.14
- E count command p.14
- Cmp 30 command manual p.14
- A barcode command p.15
- Standard bar codes p.15
- Linear bar codes p.15
- Cmp 30 command manual p.15
- B barcode text command p.16
- Cmp 30 command manual p.16
- Two dimensional bar codes p.17
- Cmp 30 command manual p.17
- A pdf417 portable data file p.17
- Cmp 30 command manual p.18
- B maxicode p.18
- Cmp 30 command manual p.19
- Graphics p.20
- Cmp 30 command manual p.20
- B line commands p.20
- A box command p.20
- C inverse line commands p.21
- D pattern command p.21
- Cmp 30 command manual p.21
- E graphics commands p.22
- Cmp 30 command manual p.22
- F pcx commands p.23
- Cmp 30 command manual p.23
- Cmp 30 command manual p.24
- C justification commands p.24
- B tone command p.24
- Advanced commands p.24
- A contrast command p.24
- D page width command p.25
- Cmp 30 command manual p.25
- F no pace command p.26
- E pace command p.26
- Cmp 30 command manual p.26
- G wait command p.26
- J on out of paper command p.27
- I setsp command p.27
- H speed command p.27
- Cmp 30 command manual p.27
- L prefeed command p.28
- K on feed command p.28
- Cmp 30 command manual p.28
- N country code page command p.29
- M postfeed command p.29
- Cmp 30 command manual p.29
- P beep command p.30
- O using format files p.30
- Cmp 30 command manual p.30
- A setlp command p.31
- B setlf command p.31
- Line print mode p.31
- Cmp 30 command manual p.31
- D lmargin command p.32
- F setsp command p.32
- E setbold command p.32
- Cmp 30 command manual p.32
- C moving with x and y coordinates p.32
- J setff command p.33
- I special ascii characters p.33
- H page height command p.33
- G page width command p.33
- Cmp 30 command manual p.33
- L setlp timeout p.34
- K set tof command p.34
- Cmp 30 command manual p.34
- A version utility p.35
- D dir utility p.35
- Cmp 30 command manual p.35
- C del utility p.35
- B checksum utility p.35
- Advanced utilities p.35
- G baud utility p.36
- F type utility p.36
- E define file df utility p.36
- Cmp 30 command manual p.36
- H timeout utility p.37
- J lt command p.37
- I on low battery command p.37
- Cmp 30 command manual p.37
- L get time utility p.38
- K set time utility p.38
- Cmp 30 command manual p.38
- M set date utility p.38
- P printing a date stamp p.39
- O printing a time stamp p.39
- N get date utility p.39
- Cmp 30 command manual p.39
- Q paper jam utility p.40
- Cmp 30 command manual p.40
- Printer escape commands p.41
- Get printer status p.41
- Cmp 30 command manual p.41
- B status information p.41
- A set and read code command p.41
- Get user label count p.42
- Get printer information p.42
- Cmp 30 command manual p.42
- C power off command p.42
- Timeout command p.42
- Reset user label count p.42
- Off command p.42
- Setvar command p.43
- Getvar command p.43
- Do command p.43
- Configuration control commands p.43
- Cmp 30 command manual p.43
- B commands parameters p.43
- A command format p.43
- Cmp 30 command manual p.44
- Cmp 30 command manual p.45
- Cmp 30 command manual p.46
- Cmp 30 command manual p.47
- Gap sense bar sense commands p.48
- Cmp 30 command manual p.48
- Gap sense command example p.48
Похожие устройства
-
Citizen CL-E720DTРуководство по эксплуатации -
Citizen CL-E720DTCommand Reference DMX -
Citizen CL-E720DTУтилита для печати этикеток -
Citizen CL-E720DTCommand Reference ZPL -
Citizen CL-E720DTAutocutter -
Citizen CL-E720DTТехническое описание -
Citizen CL-E720DTСетевые карты -
Citizen CL-E331Руководство по эксплуатации -
Citizen CL-E331Command Reference DMX -
Citizen CL-E331Command Reference ZPL -
Citizen CL-E331Утилита для печати этикеток -
Citizen CL-E331Техническое описание
Изучите команды управления принтером, включая установку и чтение CCL кода. Узнайте, как правильно взаимодействовать с принтером для получения статуса и управления печатью.