DR300 Operator Manual
Chapter 9 - Online Programming
CHAPTER 9
Online Programming
COMMAND SYNTAX
SAMPLE
<D01>
Command
Character to be printed
[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 · · · · ·
Character code (Hexadecimal 1 B H is
represented by [ESC$])
[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
46