Click here to Skip to main content
15,889,852 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
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

C#
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.Open();
            sp.WriteLine ("                                        ");
            sp.WriteLine("Hi welocme here");

            sp.Close();
            sp.Dispose();
            sp = null;

        }
Posted
Updated 12-May-20 8:25am
v2
Comments
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?
--SA

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

try this
C#
sp.WriteLine("1st line"); 
sp.WriteLine((char)13 + "2nd line"); 

to clear display try
C#
sp.Write(Convert.ToString((char)12));


Almost all of them use similar command set, check this one from Bixolon for their bcd1000 Customer Display http://www.goodson.com.au/download/manual/samsung/user/bcd1000_Command_Manual.pdf[^]
 
Share this answer
 
Comments
farzadkazemi2085 13-Mar-16 6:13am    
Hi,
How can i write a farsi text on bixolon customer display bcd-1100.
with c# please.
tanks a lot
You should talk to the people who created it - http://www.riopos.com/[^] - 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!
 
Share this answer
 
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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900