Oki OKIPOS T410DT-Parallel Users Guide - Page 47
Protocol Control Codes, Using Basic
View all Oki OKIPOS T410DT-Parallel manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 47 highlights
These commands set the operational parameters of the printer, like "set the print speed to 3." {Command} {Parameter} {Data} Some commands can contain both Parameter and Data elements, such as "print a Code 39 symbol containing the data". PROTOCOL CONTROL CODES Protocol codes are the special control characters that prepare the printer to receive instructions. For example, the character tells the printer that a command code will follow and the character asks for the printer status. There are two pre-defined different sets of Protocol Control codes to choose from. Each set is made up of six special characters. The Standard Protocol Control codes are nonprintable characters, and the Non-Standard Protocol Control codes are printable characters. The Non-Standard set may be useful on host computers using protocol converters or in an application where nonprintable ASCII characters cannot be sent from the host. This manual uses the Standard Protocol Control codes for all of the examples. CONTROL CHARACTER SOH STX ETX ESC NULL ~ ENQ CAN DLE DC1 Off-Line HEX VALUE 01 02 03 1B 00 7E 05 18 10 11 40 Hex DESCRIPTION Status Request Start of Data End of Data Command code to follow Cutter command (Responds to either) Get printer status, Bi-Com Mode Cancel Print Job Print Stop Print Start Take printer Off-Line USING BASIC It may be useful to test your CT printer using a BASIC program on a PC. You may also write your actual production programs in BASIC. Whatever the reason, if you will be working in BASIC, some of the following hints may help you get started: 1. Set the WIDTH of the output device to 255 characters to avoid automatically sending and characters after every line. The command string should be continuous and uninterrupted by and/or commands. The examples given in this manual are printed on separate lines because they will not fit on one line and do not contain any and/or characters. If these characters are needed, they are explicitly noted by the inclusion of and notations. 38