Sending printer "Esc/Pos" commands


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2005
    Posts
    21

    Angry Sending printer "Esc/Pos" commands

    I have a serial reciept printer, Its working fine with normal text. using the Serial out command.

    I would like to use some of the advance features like the "Underline, Double-strike" modes.

    The ansi commands are "ESC -" ( 1B 2D hex) to turn underline mode on/off, and "ESC G" ( 1B 47 hex) to Turn double-strike mode on/off.

    How can I send the commands using SerOut ?
    Help Please

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Kman View Post
    I have a serial reciept printer, Its working fine with normal text. using the Serial out command.
    I would like to use some of the advance features like the "Underline, Double-strike" modes.
    The ansi commands are "ESC -" ( 1B 2D hex) to turn underline mode on/off, and "ESC G" ( 1B 47 hex) to Turn double-strike mode on/off.
    How can I send the commands using SerOut ?
    Help Please
    Have you tried something silly, such as, oh, I don't know...checking the manual for syntax?

    serout seroutpin, n2400, [ 27 , 45 ] -there's your underline mode on/off

    You figure out the rest...

  3. #3
    Join Date
    Jan 2005
    Posts
    21


    Did you find this post helpful? Yes | No

    Default

    Thanks Skimask, the printer was defaulting to a special mode that would not eccept any "Esc" commands. Sending a $28 hex put the printer into a navative mode witch im getting a few of the commands to work.

    I Think I found a use for that 12c508a ( send FS command when the printer powers up )

    Kman

Similar Threads

  1. Anybody used EPSON M-42V Daisy wheel Printer
    By sougata in forum mel PIC BASIC Pro
    Replies: 34
    Last Post: - 7th September 2009, 20:58
  2. Sending Commands from Visual Basic about IR to Pic
    By tne_de in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th April 2009, 06:09
  3. Sending AT Commands using SEROUT
    By stuart_penman in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 9th May 2008, 20:38
  4. Using LPT port dot matrix printer with PIC
    By sougata in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 27th January 2007, 11:48
  5. Sending data over USB via VB
    By Tissy in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 12th September 2005, 01:00

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts