TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual
TOSHIBA TEC CORPORATION EAA-02450
27
1) Direct Output To Printer Device
Function
Directly sends a character string specified by pString to the printer device. The OPOS
Control directly sends the character string without processing it. Some escape sequences,
specific to the printer to which the character string is to be output, may affect the OPOS
properties and performance of methods.
Format
Parameter
Description
Command
TPTR_CMD_DIRECT_OUTPUT
pData
Not used (Set “0” (zero).)
pString
Specifies character string to be sent to the printer with
escape sequence specific to the printer.
2) File Data Output
Function
Outputs data in a specified file.
Directly sends a specified character string in a file to the printer device. The OPOS
Control directly sends the character string without processing it. Some escape sequences,
specific to the printer to which the character string is to be output, may affect the OPOS
properties and performance of methods.
Format
Parameter
Description
Command
TPTR_CMD_FILE_OUTPUT
pData
Not used (Set “0” (zero).)
pString
Specifies a name of file with full path, which stores the data
to be output to the printer.
3) Drawer Open
Function
Opens a cash drawer connected to the printer.
Opens a cash drawer. In Drawer Open status, the Drawer Open function ends
successfully without accessing the printer device. No checks, to see whether or not the
cash drawer is opened, are performed. Only a drawer open command is executed.
Format
Parameter
Description
Command
TPTR_CMD_DRAWER_OPEN
pData
Not used (Set “0” (zero).)
pString
Not used (Set null (“”).)
4) Acquisition of Drawer Status
Function
Obtains an open/close status of a cash drawer connected to the printer.
Format
Parameter
Description
Command
TPTR_CMD_DRAWER_STATUS
pData
A cash drawer open/close status data is stored.
0: The cash drawer is closed.
1: The cash drawer is open.
pString
Not used (Set null (“”).)