Click here to Skip to main content
12,820,585 members (28,865 online)
Rate this:
Please Sign up or sign in to vote.
See more: .NET .NET4
I am using the below code to show the text in the pole display.But iam having one issue i.e how to display the message in different line (have 2 lines). I dont know how to set the cursor position.I really appreciate if any one help me.

Iam using RPD-200SU.Speicification are

Display method- VFD display

Number of character -20 columns x 2 lines

Character type-5 x 7 dot matrix

private void button1_Click(object sender, EventArgs e)

            SerialPort sp = new SerialPort();

            sp.PortName = "COM1";
            sp.BaudRate = 9600;
            sp.Parity = Parity.None;
            sp.DataBits = 8;
            sp.StopBits = StopBits.One;
            sp.WriteLine ("                                        ");
            sp.WriteLine("Hi welocme here");

            sp = null;

Posted 24-Jul-12 9:38am
Updated 24-Jul-12 9:40am
Sergey Alexandrovich Kryukov 24-Jul-12 14:53pm
What cursor? Why do you think such kind of display can have cursor? Did you try just to output the line of more than 20 characters? Are they simply wrap to the second line?
Rate this: bad
Please Sign up or sign in to vote.

Solution 4

Instead of sending
sp.WriteLine ("                                        ");
            sp.WriteLine("Hi welocme here");

try this

sp.WriteLine("1st line"); 
sp.WriteLine((char)13 + "2nd line"); 

to clear display try

Almost all of them use similar command set, check this one from Bixolon for their bcd1000 Customer Display[^]
farzadkazemi2085 13-Mar-16 6:13am
How can i write a farsi text on bixolon customer display bcd-1100.
with c# please.
tanks a lot
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You should talk to the people who created it -[^] - they should provide technical support and will know more about their product than we will. If they don't, then find another supplier and demand your money back!
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

A lot of these pole displays use a standard controller (like the HD44780 chip) driven by a microprocessor and connected via a USART to the computer via a serial link or thru something like the FTDI chip for USB. The problem is that the control "language" the display understands is not standard... meaning even though the display controller wants to see a 20H on it's data lines (parallel by the way) doesn't mean the micro is looking for a hex 0x20 sent to it to blank the display and send the cursor 'home'. You aren't talking directly to the display controller but the micro that is driving the display controller.

Therefore there is also no guarantee what the command set will be or event that the micro will line-wrap what you send. Quite the opposite has been my experience... they will often just run the text off the display.

The key here is that the vendor should have a programming guide with the commands available... just as the first solution implied. You will find that there are control codes you need to send to the display to get it to do things. For example, there will be a "clear display" code which will clear it and put the cursor at 0,0. There will be a code to position the cursor... It typically takes a line number and a position where it will move the cursor to and subsequent printing will begin. You will also find there should be a control code to turn the cursor on or off and make it blink. You should be able to have total control over the display once you know all of this information.

Unfortunately the vendor will probably be the only place to get this information. Since they likely wrote the code for the micro that runs it (or purchased the code/controller) they should be able to give you the info. You might try looking for commands for other serial-based LCD and VFD displays. You might get lucky and find a compatible control set. These guys don't typically reinvent the wheel when they offer one of these things.

And if those guys don't give up the goods, find one that will. LCD/VFD pole displays are a dime a dozen... you should be able to find one more friendly to your cause.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170308.1 | Last Updated 21 Jul 2015
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100