Solved

RS-485 communication with delphi 5

Posted on 2001-06-18
4
849 Views
Last Modified: 2010-04-06
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
Comment
Question by:sahkofinne
4 Comments
 
LVL 5

Expert Comment

by:TheNeil
Comment Utility
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
 

Author Comment

by:sahkofinne
Comment Utility
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
 
LVL 8

Accepted Solution

by:
TOndrej earned 100 total points
Comment Utility
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
 
LVL 3

Expert Comment

by:sburck
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now