Keyboard
Programming Manual
29
SATO Europe
PRINT…[USING]
Description
The PRINT command is used to output the numeric data and strings to the LCD
display. TSKL also supports formatted output to LCD display with the PRINT USING
command.
The maximum number of specified formats for the PRINT USING command is 15.
Syntax
PRINT list of expression [;]
Specify the numeric data output format:
PRINT USING “###.##”,A
Specify the string data output format:
PRINT USING “\ \”,A$
Remarks
A blank line is displayed on the LCD if there is no expression after the PRINT
command. The PRINT USING command sends (hex) 0D 0A (carriage return and line
feed) at the end of the expression if no “;” (semicolon) is at the end of the expression.
The “,” (comma) is used to separate the values by 8 spaces. There are no spaces
between the two values if the “;” (semicolon) is used between the two expressions. If
“;” (semicolon) is the last character of PRINT statement, the cursor will stop in this line.
The “#” (pound sign) and “\” (back slash) are used to specify the output format of
numeric data and string data respectively. If the actual value is greater than the
specified format, a “%” (percent) sign will be paced at the end of value.
Example
B=123.45
PRINT 12+3;ASC(“A”)
PRINT USING “###.##”,B;
Summary of Contents for Smart Keyboard
Page 1: ...SATO Smart Keyboard Programming manual...
Page 90: ...Programming Manual Keyboard SATO Europe 88...
Page 93: ......