Epson LQ-1500 User Manual - Page 107
Using the LQ-1500 Commands with BASIC, Control Codes by Function, <LF>
View all Epson LQ-1500 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 107 highlights
Using the LQ-1500 Commands with BASIC Most versions of BASIC use the LPRINT command and the CHR$(n) function to send codes to the printer. In the CHR!$(n) function the value n is the number of the code that you want to send to the printer. For example, to set a right margin at column 60, the LQ-1500 command is: "Q" 60 In BASIC it looks like this: LPRINT CHR$(27) "Q" CHR$(60); Control Codes by Function Vertical Spacing Commands "J" n "0" Produces a line feed. Advances the paper n/180 inches (0 Sets the line spacing to 1/8 inch. n $255). "2" Sets the line spacing to 1/6 inch. "3" n "A" n Sets the line spacing to n/180 inch (0 n Sets the line spacing n/60 inches (0 255). n 85). "C" n "C" n Produces a form feed. Sets the length of the page to n lines (1 Sets the page length to n inches (1 n 127). 22). "N" n Sets a bottom margin of n lines (1 127). "O" Sets the bottom margin to 0 lines. "B" nl n2 n3. "/ " c "b" c nl n2 n3 Produces a vertical tab. Sets up to 16 vertical tabs on lines nl, n2, n3, etc. (l n 254). Selects a vertical tab channel (0 c s 7). Sets up to 16 vertical tabs on lines n1, n-2, n3, etc. of vertical tab channel c (0 c 7)(1 n 254). Horizontal Spacing Commands Produces a carriage return. "Q" n Sets a right margin at n columns (1 n 255). "I" n Sets the left margin at n columns (0 n 160). Produces a horizontal tab. "D" nl n2 n3 ... Sets up to 32 horizontal tabs at character positions n1. n2, n3, etc. (1 n 137). n "$" nl n2 " \ " nl n2 Increases the space between characters by n dots (0 n 127). Moves the print head to an absolute horizontal position. Moves the print head a specified distance from the last character printed. Print Style Commands "x" n "I" n "M" "P" "p" n Selects between the draft mode (n=0) and the letter-quality mode (n=l). Selects multiple printing styles (Master Select command) (0 n 255). Selects elite pitch. Cancels elite pitch. Turns proportional printing ON (n = 1) or proportional printing OFF (n=0).