adccommunitymod (AutomationDirect) asked a question.

Printing ASCII Text

Created Date: February 09,2007

Created By: Glenn

**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****

I seem to remember this being asked before but I have been unable to locate the question in my search. When printing ASCII text to a serial printer how do I make any leading zeroes invisible?


  • adccommunitymod (AutomationDirect)

    Created Date: February 09,2007

    Created by: bcarlton

    Use the VPRINT command to format a string then send it using the PRINTV command. The VPRINT command is more talented than the options in the PRINT command. This includes supressing leading zeroes.

  • adccommunitymod (AutomationDirect)

    Created Date: February 11,2007

    Created by: Glenn

    Thanks Bernie, however I forgot to mention that I am using the D2-250-1 that does not have the VPRINT command.

  • adccommunitymod (AutomationDirect)

    Created Date: February 09,2007

    Created by: Glenn

    I seem to remember this being asked before but I have been unable to locate the question in my search.

    When printing ASCII text to a serial printer how do I make any leading zeroes invisible?