SATO GL408e Programming Reference Manual page 17

Sbpl
Hide thumbs Also See for GL408e:
Table of Contents

Advertisement

Unit 2: Programming Concepts
PRINTING WITH THE RS232C PORT
5 REM CL612 Parallel Example
10 E$=CHR$(27)
OPEN "COM1:9600,N,8,1,CS,DS"AS #1
30 PRINT #1,CHR$ (2);
50 PRINT #1,E$;"A";
60 PRINT#1, E$; "H400"; E$; "V100";
"XL1SATO"
50 PRINT #1, E$;"Q1";
60 PRINT #1, E$; "Z";
70 PRINT #1,CHR$ (3);
SATO GL4xxe SBPL Programming Reference
Identifies the program as a CL612e RS232C port
print label. The "REM" prevents this data from
being sent to the printer and displays it only on
the screen.
Sets the"E$"string as an <ESC>character.
Opens the COM1 port for output and sets the
parameters as 9600 baud, No parity, 8 Data bits,
1 Stop bit and instructs the port to ignore the CTS
and DSR control signals.
Sends an <STX> (ASCII Code a decimal "2") to
the printer instructing it to prepare to receive a
message.
Sends an "<ESC>A" command code to Print Port
#1 opened by statement 20 above.
E$;
Sends the data "SATO" to be placed 400 dots
horizontally and 100 dots vertically on the label
and printed in the "XL" auto smoothed font.
Instructs the printer to print a quantity of one
label.
Informs the printer that the last command has
been sent and printing can occur.
Sends an <ETX> (ASCII Code decimal "3")
informs the printer of message end.
Identifies the program as a CL612e RS232C port
print label. The "REM" prevents this data from
being sent to the printer and displays it only on
the screen.
Page 2-5

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gl412e

Table of Contents