Section 1. Programming Concepts; Introduction; The Sato Programming Language - SATO CX400 Programming Reference Manual

Desktop printer
Hide thumbs Also See for CX400:
Table of Contents

Advertisement

INTRODUCTION

This section presents the commands that are used with the SATO CX400 printers to produce
labels with logos, bar codes and alphanumeric data. All of the SATO Programming Language
commands use the same syntax. All of the CX400 commands are compatible with its larger
SATO industrial printer cousins. Exceptions include commands that are dependent upon the
print width and resolution of the printers. In these instances, the allowable ranges are specified
in the commands.
The following information is presented in this section:

• The SATO Programming Language

• Selecting Protocol Control Codes
• Using Basic
• The Print Area
• Command Codes
THE SATO PROGRAMMING LANGUAGE
A programming language for a printer is a familiar concept to most programmers. It is a group
of commands that are designed to use the internal intelligence of the printer. The commands,
which are referred to as SATO Command Codes, contain non-printable ASCII characters
(such as <STX>, <ETX>, <ESC>) and printable characters. These commands must be
assembled into an organized block of code to be sent as one data stream to the printer, which in
turn interprets the command codes and generates the desired label output. The programmer is
free to use any programming language available to send the desired data to the printer.
The command codes used by the printers are based upon "Escape" (1B hexadecimal)
sequences. Typically there are four types of command sequences:
These commands generally tell the printer to perform a specific action, like "clear the
memory."
Commands with this format tell the printer to perform a specific action which is dependent
upon the following data, like "print X labels", where the value for X is contained in the data.
These commands set the operational parameters of the printer, like "set the print speed to 3."
SATO CX400
SECTION 1.
PROGRAMMING CONCEPTS
<ESC>{Command}
<ESC>{Command} {Data}
<ESC>{Command} {Parameter}
<ESC> {Command} {Parameter} {Data}
PN 9001106 Rev. A
Page 1-1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents