@@ -11,6 +11,7 @@ class Model(object):
11
11
This class represents a printer model. All specifics of a certain model
12
12
and the opcodes it supports should be contained in this class.
13
13
"""
14
+
14
15
#: A string identifier given to each model implemented. Eg. 'QL-500'.
15
16
identifier = attrib (type = str )
16
17
#: Minimum and maximum number of rows or 'dots' that can be printed.
@@ -92,7 +93,13 @@ def name(self):
92
93
model_code = 0x33 ,
93
94
product_id = 0x2029 ,
94
95
),
95
- Model (identifier = "QL-600" , min_max_length_dots = (150 , 11811 )),
96
+ Model (
97
+ identifier = "QL-600" ,
98
+ min_max_length_dots = (150 , 11811 ),
99
+ series_code = 0x34 ,
100
+ model_code = 0x47 ,
101
+ product_id = 0x20C0 ,
102
+ ),
96
103
Model (
97
104
identifier = "QL-650TD" ,
98
105
min_max_length_dots = (295 , 11811 ),
@@ -109,26 +116,47 @@ def name(self):
109
116
model_code = 0x35 ,
110
117
product_id = 0x2042 ,
111
118
),
112
- Model (identifier = "QL-710W" , min_max_length_dots = (150 , 11811 )),
113
- Model (identifier = "QL-720NW" , min_max_length_dots = (150 , 11811 )),
119
+ Model (
120
+ identifier = "QL-710W" ,
121
+ min_max_length_dots = (150 , 11811 ),
122
+ series_code = 0x34 ,
123
+ model_code = 0x36 ,
124
+ product_id = 0x2043 ,
125
+ ),
126
+ Model (
127
+ identifier = "QL-720NW" ,
128
+ min_max_length_dots = (150 , 11811 ),
129
+ series_code = 0x34 ,
130
+ model_code = 0x37 ,
131
+ product_id = 0x2044 ,
132
+ ),
114
133
Model (
115
134
identifier = "QL-800" ,
116
135
min_max_length_dots = (150 , 11811 ),
117
136
two_color = True ,
118
137
compression = False ,
119
138
num_invalidate_bytes = 400 ,
139
+ series_code = 0x34 ,
140
+ model_code = 0x38 ,
141
+ product_id = 0x209B ,
120
142
),
121
143
Model (
122
144
identifier = "QL-810W" ,
123
145
min_max_length_dots = (150 , 11811 ),
124
146
two_color = True ,
125
147
num_invalidate_bytes = 400 ,
148
+ series_code = 0x34 ,
149
+ model_code = 0x39 ,
150
+ product_id = 0x209C ,
126
151
),
127
152
Model (
128
153
identifier = "QL-820NWB" ,
129
154
min_max_length_dots = (150 , 11811 ),
130
155
two_color = True ,
131
156
num_invalidate_bytes = 400 ,
157
+ series_code = 0x34 ,
158
+ model_code = 0x41 ,
159
+ product_id = 0x209D ,
132
160
),
133
161
Model (
134
162
identifier = "QL-1050" ,
@@ -153,21 +181,35 @@ def name(self):
153
181
min_max_length_dots = (301 , 35434 ),
154
182
number_bytes_per_row = 162 ,
155
183
additional_offset_r = 44 ,
184
+ series_code = 0x34 ,
185
+ model_code = 0x43 ,
186
+ product_id = 0x20A7 ,
156
187
),
157
188
Model (
158
189
identifier = "QL-1110NWB" ,
159
190
min_max_length_dots = (301 , 35434 ),
160
191
number_bytes_per_row = 162 ,
161
192
additional_offset_r = 44 ,
193
+ series_code = 0x34 ,
194
+ model_code = 0x44 ,
195
+ product_id = 0x20A8 ,
162
196
),
163
197
Model (
164
198
identifier = "QL-1115NWB" ,
165
199
min_max_length_dots = (301 , 35434 ),
166
200
number_bytes_per_row = 162 ,
167
201
additional_offset_r = 44 ,
202
+ series_code = 0x34 ,
203
+ model_code = 0x45 ,
204
+ product_id = 0x20AB ,
168
205
),
169
206
Model (
170
- identifier = "PT-E550W" , min_max_length_dots = (31 , 14172 ), number_bytes_per_row = 16
207
+ identifier = "PT-E550W" ,
208
+ min_max_length_dots = (31 , 14172 ),
209
+ number_bytes_per_row = 16 ,
210
+ series_code = 0x30 ,
211
+ model_code = 0x68 ,
212
+ product_id = 0x2060 ,
171
213
),
172
214
Model (
173
215
identifier = "PT-P700" ,
@@ -183,12 +225,23 @@ def name(self):
183
225
number_bytes_per_row = 16 ,
184
226
series_code = 0x30 ,
185
227
model_code = 0x68 ,
228
+ product_id = 0x2062 ,
186
229
),
187
230
Model (
188
- identifier = "PT-P900W" , min_max_length_dots = (57 , 28346 ), number_bytes_per_row = 70
231
+ identifier = "PT-P900W" ,
232
+ min_max_length_dots = (57 , 28346 ),
233
+ number_bytes_per_row = 70 ,
234
+ series_code = 0x30 ,
235
+ model_code = 0x69 ,
236
+ product_id = 0x2085 ,
189
237
),
190
238
Model (
191
- identifier = "PT-P950NW" , min_max_length_dots = (57 , 28346 ), number_bytes_per_row = 70
239
+ identifier = "PT-P950NW" ,
240
+ min_max_length_dots = (57 , 28346 ),
241
+ number_bytes_per_row = 70 ,
242
+ series_code = 0x30 ,
243
+ model_code = 0x70 ,
244
+ product_id = 0x2086 ,
192
245
),
193
246
]
194
247
0 commit comments