SATO DR300 Printer User Manual


 
DR300 Operator Manual
46
CHAPTER 9
Online Programming
COMMAND SYNTAX
[Command]
Above explanation means [Print characters “SAMPLE” in field 1].
Command D is not a character to be printed, but printer command code. Before
transmitting “D”, transmit code [ESC].
[ESC] : Designation code with hexadecimal character code (1B H). in explanation
hereinafter, <D> shows transmission of 2 characters, ESC • “D”.
BASIC language is utilized for explanation of program language.
Basic example of command:
10 ESC$+CHR$ (&H1B)
20 PRINT#1, ESC$; “A”
30 PRINT#1, ESC$; “M070 · · · · ·
[PRINT#1.] at the above example means that data is transmitted via the serial port.
COMMAND CONSTRUCTION RULE
Basic Construction Contents
Printer command is constructed in sequence such as initial designation, printing
designation and end designation.
Initial designation………………………STX<A>
Field designation……………………….Designated field No. and field parameter
Printing designation…………………….Field No. and data desired to be printed
End designation…………………………<Z>ETX
<D01>
Command Character to be printed
SAMPLE
Character code (Hexadecimal 1 B H is
represented by [ESC$])
Chapter 9 - Online Programming