SATO CT400 Operator And Technical Reference Manual page 47

Desk top printers
Hide thumbs Also See for CT400:
Table of Contents

Advertisement

2. If you are using the printer's RS232 interface, it is necessary to set the COM port on the
PC such that the CTS and DSR signals will be ignored. Send your OPEN "COM"
statement in the following way:
This sets the RS232 communication parameters of the host PC's COM1 port for 9600
baud, Even parity, 8 Data bits, 1 Stop bit and directing the port to ignore the
and
control signals.
3. You may want to minimize keystrokes and program size by assigning the
character to a string variable since this character is used quite often.
The following two examples in BASIC show a typical example using these hints. Both
of these examples use the Standard Protocol codes.
Printing with the Parallel Port
5
REM CT410 Parallel Example
10 E$=CHR$(27);
20 WIDTH "LPT1:",255;
30 LPRINT E$;"A";
40 LPRINT E$;"H400";E$;"V100";E$;"XL1SATO";
50 LPRINT E$;"Q1";
60 LPRINT E$; "Z";
Printing with the RS232 Port
5
REM CT410 RS232 Example
10 E$=CHR$(27);
20 OPEN "COM1:9600,N,8,1,CS,DS" AS #1;
SATO CT Series Printers
OPEN "COM1:9600,E,8,1,CS,DS" AS #1
9001069A
Section 4. Programming Reference
Identifies the program as a CT410
parallel 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
Sets the width of the output to 255
characters
Sends an "<ESC>A" command code to
the LPT1 parallel port
Sends the data "SATO" to be to be
placed 400 dots horizontally and 100
dots vertically on the label and printed in
the "XL" font.
Instructs the printer to print one label.
Tells the printer that the last command
has been sent. The printer can now
create and print the job.
Identifies the program as a CT410
RS232 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.
Page 4-3

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ct410

Table of Contents