Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3180
  • Last Modified:

OKI ML 3320 - how to send a 20 cpi code ?

After reading the manual for my OKI ML 3320 9 pin printer I know how to print a text file in 20 cpi font, you need to choose 20 cpi from the printer menu and it works on my printer. The problem is that I must choose 20 cpi from nside the printed file, using escape sequences, not using the menu. And here is what I have done.

At the beginning of a text file I entered:
ESC @ (hex 1B 40 - general reset)
ESC M (hex 1B 4D - choose 12 cpi)
ESC SI (hex 1B 0F - choose condensed mode, either ESC SI or just SI, the result does not change)
TEXT ONE
ESC P (hex 1B 50 - choose 10 cpi)
ESC SI (hex 1B 0F - choose condensed mode)
TEXT TWO
ESC g (hex 1B 67 - choose 15 cpi)
ESC SI (hex 1B 0F - choose condensed mode)
TEXT THREE

As a result, all 3 texts were printed in the same way, all were condensed but they were 17 cpi in my opinion, definitely not 20 cpi. So I must be doing something wrong. Could someone please tell me what escape sequences to send in order to obtain 20 cpi size, or just send me a short file with these sequences.
0
Bea
Asked:
Bea
  • 2
1 Solution
 
hdhondtCommented:
You say you added the commands to a text file. How did you send that file to the printer? Do not use any Windows or other drivers. Instead, if the printer is connected to the parallel port, send the file with:

COPY filename LPT1:

If the printer is connected via a printserver, send the file with:

LPR -S IP_address_of_printserver -P Remote_queue_name filename

You will need to find out the IP address and the romte queue name appropriate for your printserver.

If the printer is attached to a server PC, use:

NET USE LPT2: \\servername\printer_sharename
COPY /B filename LPT2:

If you browse your network, you should be able to find the server name and the share name.
0
 
BeaAuthor Commented:
I have already solved the problem myself. The solution is to set the Epson FX80 emulation mode in the printer instead of IBM Proprinter as it was by default. Now this 20 cpi font prints without problem. Thanks.
0
 
hdhondtCommented:
Good to see you're working. Post a comment in the Community Support area to reclaim your points - you may need them for another problem later. For help see http://www.experts-exchange.com/help.jsp#hi70
0
 
PashaModCommented:
Closed, 250 points refunded.
PashaMod
Community Support Moderator
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now