如何使用极点显示/客户显示进行编程? [英] how to program with Pole display / customer display?

查看:67
本文介绍了如何使用极点显示/客户显示进行编程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用下面的代码来显示极点显示中的文字。但是我有一个问题,即如何在不同的行中显示消息(有2行)。我不知道如何设置光标位置。如果有人帮助我,我真的很感激。



我使用RPD-200SU.Speicification



显示方法 - VFD显示



字符数-20列x 2行



字符类型 - 5 x 7点阵



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

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

        }

推荐答案

而不是发送
sp.WriteLine ("                                        ");
            sp.WriteLine("Hi welocme here");



试试这个


try this

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



清除显示尝试


to clear display try

sp.Write(Convert.ToString((char)12));





几乎所有人都使用类似的命令集,请从Bixolon检查这个命令集,查看他们的bcd1000客户显示器 http://www.goodson.com.au/download/manual/samsung/user/bcd1000_Command_Manual.pdf [ ^ ]


您应该与创建它的人交谈 - http://www.riopos.com/ [ ^ ] - 他们应该提供技术支持,并且会比我们更了解他们的产品。如果没有,那就找另一个供应商并要求退款!
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!


很多这些极点显示器使用由微处理器驱动的标准控制器(如HD44780芯片)并通过连接通过串行链接或通过类似USB的FTDI芯片的USART到计算机。问题是显示器理解的控制语言不是标准的......意思是即使显示控制器想要在它的数据线上看到20H(顺便说一下)并不意味着微观正在寻找一个十六进制0x20发送到它以使显示空白并将光标发送到'home'。你不是直接与显示控制器说话,而是在驾驶显示控制器的micro。



因此也无法保证命令集的内容或事件micro会将你发送的内容换行。我的经验恰恰相反......他们通常只是将文本从显示屏上移开。



这里的关键是供应商应该有一个编程指南可用的命令......正如第一个解决方案所暗示的那样。您会发现需要将控制代码发送到显示器以使其执行操作。例如,将有一个清除显示代码,它将清除它并将光标置于0,0。将有一个代码来定位光标......它通常需要一个行号和一个将光标移动到的位置,随后的打印将开始。您还会发现应该有一个控制代码来打开或关闭光标并使其闪烁。一旦您知道所有这些信息,您就应该能够完全控制显示器。



不幸的是,供应商可能是唯一获取此信息的地方。由于他们可能编写了运行它的微代码(或购买了代码/控制器),因此他们应该能够为您提供信息。您可以尝试为其他基于串行的LCD和VFD显示寻找命令。你可能会很幸运,找到一个兼容的控制集。当他们提供这些东西时,这些家伙通常不会重新发明轮子。



如果这些家伙不放弃货物,找到一个会。 LCD / VFD杆显示器是一打一打......你应该能够找到一个对你的事业更友好的人。
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.


这篇关于如何使用极点显示/客户显示进行编程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆