Oki ML591 MICROLINE Reference Manual - Page 100
Programming Graphics in BASIC, Graphics Density Selection Commands IBM/E
View all Oki ML591 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 100 highlights
For optimum registration when printing graphics using bi-directional printing, use the Print Registration item in the printer menu to fine-tune the alignment of the vertical bars which print as part of the menu. Keep changing the setting until the lines of the vertical bar characters have the straightest vertical column. Programming Graphics in BASIC One important thing to remember when you're programming graphics is not to include extraneous line feeds in your programs. Using a semicolon after the data in an LPRINT statement will keep the print position on the same line. However, there is an additional complication: by default, BASIC assigns to all printers a maximum line length of 80 characters. After the printer has received 80 bytes of data, it will automatically perform a carriage return and line feed. Since graphics data typically consists of many bytes, it's quite easy to exceed this limit. The resulting output will be garbled. You can work around this problem by setting the line length to the maximum allowable value, 255. Put one of these statements at the beginning of your program: For parallel printers: WIDTH "LPT1:",255 For serial printers that have been opened as #1: WIDTH #1,255 Graphics Density Selection Commands (IBM/E) ߜ ML390 Turbo, ML391 Turbo ߜ ML590, ML591 Function Begin Single Density Graphics Double Density Graphics Command Double Speed/ Double Density Graphics Command Quadruple Density Graphics Command ASCII ESC K Ln Hn [data] ESC L Ln Hn [data] ESC Y Ln Hn [data] ESC Z Ln Hn [data] Dec 27 75 Ln Hn [data] 27 76 Ln Hn [data] 27 89 Ln Hn [data] 27 90 Ln Hn [data] Hex 1B 4B Ln Hn [data] 1B 4C Ln Hn [data] 1B 59 Ln Hn [data] 1B 5A Ln Hn [data] These graphics modes correspond to the 8-pin modes and are supported by most current DOS-based graphics software. Parameters Ln and Hn These parameters tell the printer how many bytes of graphics data to expect. Eight-pin graphics have one byte of data per column. To calculate the values for Ln and Hn, first determine how many columns of dots there will be in your graphics image. Divide this number by 256 and assign the whole number result to Hn; assign the remainder to Ln. 62 Chapter 7: Graphics Commands for 24-Pin Printers