[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 917
  • Last Modified:

RS-485 communication with delphi 5

My project is to print to 3 ink jet printers, which are connected to RS-485 network. Do you know any suitable components to use with delphi 5. I would also be grateful for any example code.
0
sahkofinne
Asked:
sahkofinne
1 Solution
 
TheNeilCommented:
Are the printers installed in Windows (sorry but networks aren't my thing)? If they are then you should be able to simply send the document to each of the printers installed by using the PrinterIndex property of TPrinter

FOR iCount := 0 TO (Printers.Count -1)
DO
BEGIN
  PrinterIndex := iCount;
  //Print the document
END;

The Neil =:)
0
 
sahkofinneAuthor Commented:
The printers are not istalled in windows.
They are special ink jet printers which prints article number to products, which are made in production line.
Each printer prints different article id.
I shoud send new data to all printers about every second.

I have done this before with RS-232 (one printer) interface but I don't know how to use RS-485 interface?

0
 
TOndrejCommented:
Go to http://www.rs-485.com/software.htm and download RS-485 driver and source code example in C. You can also find RS-485 specs on that site.
HTH,
TOndrej
0
 
sburckCommented:
I find the easiest thing to do with RS-485 to PC connections is to buy a cheap 485/232 adapter, and access them via RS232.  This is an easy way to go, especially if you don't need multipoint or long distances.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now