Events

Events

This section explains how to capture and trigger internal events in the printer. Here is a quick list of these commands:
Available Events
A table that correlates a ZBI event with an identification number.
ZBI Key Names
Details the names of each printer’s control panel buttons, ZBI names, and ZBI event ID.
REGISTEREVENT
Sets up the
HANDLEEVENT
function to receive notification when the specified event has occurred.
UNREGISTEREVENT
Allows events that are currently set to be captured by the program to no longer be captured.
HANDLEEVENT
Once events have been registered, this function is used to see what events have occurred.
TRIGGEREVENT
Allows for control panel buttons to be triggered programmatically.
There are certain events in the printer that a ZBI 2.0 program can receive. To do this, the program first registers for the event. On a regular basis, call a function to handle events. When an event occurs that the program is registered for, the function will return the event’s identification number.

Available Events

ZBI Event ID
ZBI Event
1
menu key
2
pause key
3
feed key
4
cancel key
5
up arrow key
6
plus key
7
minus key
8
enter key
9
setup exit key
10
select key
11
cancel all event
12
config label
13
timer1
14
timer2
15
timer3
16
timer4
17
timer5
18
spare unused
19
previous key
20
next save key
21
calibrate key
22
paper out set
23
paper out clear
24
ribbon out set
25
ribbon out clear
26
head too hot set
27
head too hot clear
28
head cold set
29
head cold clear
30
head open set
31
head open clear
32
supply too hot set
33
supply too hot clear
34
ribbon in set
35
ribbon in clear
36
rewind full set
37
rewind full clear
38
cutter jammed set
39
cutter jammed clear
40
paused set
41
paused clear
42
pq completed set
43
pq completed clear
44
label ready set
45
label ready clear
46
head element bad set
47
head element bad clear
48
basic runtime set
49
basic runtime clear
50
basic forced set
51
basic forced clear
52
power on set
53
power on clear
54
clean printhead set
55
clean printhead clear
56
media low set
57
media low clear
58
ribbon low set
59
ribbon low clear
60
replace head set
61
replace head clear
62
battery low set
63
battery low clear
64
rfid error set
65
rfid error clear
66
any messages set
67
any messages clear
68
auto baud
69
factory default
70
networking default
71
networking factory
72
print width
73
darkness adjust
74
calibrate
75
scroll key
76
soft key 1
77
soft key 2
78
ribbon cartridge authentication error set
79
ribbon cartridge authentication error clear