Events

Events

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