how to program with Pole display/CustomerDisplay using c# in window form application?
I am Using Postfix PD320
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
akhil bk28 reputationPosted Sep 19, 2018, 10:27 PM EDT
using System.Threading;
{
SerialPort sp= new SerialPort("COM4", 9600, Parity.None, 8, StopBits.One);
//Clear the Display
sp.Write(new byte[] { 0x0C }, 0, 1);
sp.Write("1st line="+textBox1.Text);
//Goto Bottem Line
sp.Write(new byte[] { 0x0A, 0x0D }, 0, 2);
sp.Write("2nd line=" + textBox2.Text);
Thread.Sleep(3000);
//Here it will sleep for 3 sec and then excecute again
sp.Write(new byte[] { 0x0C }, 0, 1);
sp.Write("3rd line=" + textBox3.Text);
//Goto Bottem Line
sp.Write(new byte[] { 0x0A, 0x0D }, 0, 2);
sp.Write("4th line=" + textBox4.Text);
sp.Close();
}
Sanwar RanwaRank #23 · 44.7K reputationPosted Feb 12, 2018, 10:22 PM EST
Ashish Kumar50 reputationPosted Feb 13, 2018, 11:02 PM EST