Gs ( " Commands Group - Epson TM-L90 Developer's Manual

Hide thumbs Also See for TM-L90:
Table of Contents

Advertisement

Confidential

"GS ( " commands group

For an extended use in the future, the GS ( command group has been constructed so that various
parameters can be specified. Here is an explanation of a basic rule for specifying parameters of
the commands.
GS ( x pL pH[d1 d2 d3...dk]
J For x, a character such as "A", "B", or "C" of the command name is put.
J pL, pH specify the number of bytes after pH [d1 d2 d3...dk].
J Any value up to FFH (255 in decimal) can be out for pL and pH.
J The number of bytes can be calculated by pL + pH
specified. However, the maximum number of bytes will differ depending on the command
or function specified. Refer to each command description for details.
J For the data following d1, there are different cases: a value to be specified will be already
defined, a different value will be defined for each function, or it will not be necessary to
specify a value. When you input a value, follow the rule of specifying parameters for each
command.
The following shows how to specify parameters with function 1 of the GS ( C command.
GS ( C pL pH m a b [c1, c2] [d1...dk] (Edit User NV memory)
Function 1: stores data in a record specified by GS ( C pL pH m a b c1 c2 d1...dk
J Specified parameters:
m = 0 (fixed)
a = 1 or 49 (either is fixed)
b = 0 (fixed)
c1 = 32 to 126
c2 = 32 to 126
5 bytes have been already specified so far.c1 and c2 consist fo any 2 bytes with the ASCII
codes from 32 to 126 and they are keys to read or write data.
dk = 32 to 254
Data are any characters corresponding to ASCII code from 32 to 254.
J Example: Key code is "MK" and data is "EPSON"
GS ( C
10
pL
Note:
pL, pH specifies the total number of bytes for the parameters; therefore the total number of bytes is 10 and
pL = 10, pH = 0(10 + 0
4-10 Application Development Information
0
0
1
0
pH
m
a
b
256 = 10)

256; therefore, up to 65535 bytes can be

"MK"
"EPSON"
c1c2
d1 d2 d3 d4 d5
Rev. A

Advertisement

Table of Contents
loading

Table of Contents