Free DF1 driver

Jiri Toman

Member
Join Date
Jun 2002
Posts
498
I have posted a free DF1 driver on TomanTron's web site
at www.tomantron.com.
This is a .NET framework component (DLL). Use with Visual Studio.
It is not a demo that will expire, it's a completely free
piece of software.
It works with Micrologix and SLC500.

Very easy interface.
Adjustable polling rate.
Read and write 100 integers.
Supports embedded responses.
OnDataAvailable event.
No need for RSLinx.
Supports 8 COM ports.
Multithreaded for maximum speed.

Looking for some feedback.

Jiri Toman
 
Jiri,

You're an honor to industrial controls. Thanks for this valuable resourse!

Now I just wish I was still doing AB stuff and could make better use of it. :) Would have been able to quote more jobs if I had this a few years ago.

nOrM
 
Jiri,

Thanks for the DF1 driver. (y)

Me too do not have .net yet. Our MIS guys in the company is not ready for it yet due to some security reasons?.. which I do not know exactly what they mean (Virus attacks.....they definetely don't like Bill).

But I will take your advice and venture to .net at home. But I do not have a PLC at home to play with. It's alright, I have got a lot to learn. beerchug
 
Supports 8 COM ports.

Do you support COM1-COM8 only or it is possible to open up to 8 connections same time?

Limitation of COM8 may be a major problem with virtual serial ports like USB-serial why high COM numbers assigned by USB drivers.
 
Good Show!!!

I am sure this will help many people or businesses and contribute to the general productivity.

I read the documentation. It seems simple enough.

I don't have .net yet either, but we have spare copies of vb.net that I can obtain. If I don't get too bogged down in other things I will check our your dll. I have written DF1 drivers too, but only for embedded processors or DSPs. I found that I needed two threads per serial port to implement DF1 correctly.
 
I think it's cool that you wrote your own DF1 driver, but I would like to know how useful this is.

How is this better than using RSLinx Lite that comes with every other programming package? To communicate with a processor you (of course) need communications drivers, but you also need a program do do the communications/editing/etc.

If direct communications is not the objective, (the objective being PLC communications through some other program), why not distribute your source code? And even if you do, what is so special about your source code versus any other that is based on the (open) DF1 standard?
 
Give the Jiri some credit!

jimbo3123 said:
I think it's cool that you wrote your own DF1 driver, but I would like to know how useful this is.

How is this better than using RSLinx Lite that comes with every other programming package?

It probably, isn't but if it works and its free that is still pretty good. I know that RxLinx makes undocumented calls to the PLCs. Until one figures out these undocumented calls it will be hard to have all the features of RxLinx.

jimbo3123 said:
To communicate with a processor you (of course) need communications drivers, but you also need a program do do the communications/editing/etc.

If direct communications is not the objective,
(the objective being PLC communications through some other program), why not distribute your source code?

Would you understand if he did? If you could then you could write your own driver.

jimbo3123 said:
And even if you do, what is so special about your source code versus any other that is based on the (open) DF1 standard?

It is free. Is there free source code available that is useful? As I have said above, I have written a couple DF1 drivers. I know what it takes. Where is yours Jimbo? Where is anybody else's? I haven't seen anybody else post a DF1 driver. Give Jiri some credit for his contribution.
 
How is this better than using RSLinx Lite that comes with every other programming package?

Can you get PLC data directly into an excel spreadsheet or an Access database with RSLinx Lite? I'm not sure but I don't think so. Maybe Jiri can correct me if I'm wrong but having your own DLL should allow this. Now you might be able to create a free (except for you getting .NET if you don't have it) mini SCADA that works with legacy AB controller that are ubiquitous in many plants.
 
good work

Hi Jiri
That`s really something. Anyone that needs a small SCADA program should LOVE this as it will probaly save them about 12 to 15 hundred dollars. Not many can do this. :site:
 
Update

Contr_Conn,
It is possible to instantiate the component 8 times and theoretically
you can have 8 COMs running at the same time. They will have to be COM1 thru COM8.
I have not tested this, in fact I have only tested single COM operation.
There are no Static/Shared variables in the program so it should all
work.

Norm,
To use it with Excel spreadsheet I would have to provide real time data server. It's called RTD component. It's also a DLL
but it implements IRTDServer interface.
In Excel spread sheet you would use RTD function to update the cells.
According to Microsoft this is a better way (more flexible and robust) to get data into the spreadsheet.
It would be nice if there was a VS.NET guru here who could
use the .NET component and produce the RTD component?
I think that can be done.
Otherwise I would have to rebuild and recompile the existing
code into RTD COM. Believe me I have spent enough time on
this already.

Peter,
Since you have written the driver yourself you know that this isn't
a job for couple of afternoons. I have read statements on this forum and on control.net claiming that it doesn't take much effort to get DF1 going. Well I have spent fair amount of time coding and testing,
in order to make the data link layer bullet proof I had to run many tests. It is time consuming.
There are three threads in my driver apart from timeout and polling
timers.
Sharing the data between threads is not easy when done properly.


Jimbo,
RSLinx Lite is used with programming packages only.
You would need the Pro edition to get OPC/DDE.
That will cost you!
There are three distinct features in my driver :
1. It's free
2. It's very easy to use.
3. It interfaces to VS.NET
I do not plan to publish the source code.
 
limitation

This limitation is imposed by the SaxSoft DLL I am using for the
serial com.
Next version of VS.NET will have serial com support built in
and that will have support for lots of COM ports.
 

Similar Topics

Hi everyone, I'm in search of software for electrical drawings, preferably free but also interested in paid options. Any recommendations or...
Replies
33
Views
1,536
Hello, S7-200 is installed with dot matrix printer. its printer is not working. now I have changed the printer. Problem in new printer is that...
Replies
0
Views
206
We are to develop a first application in Codesys. It will contain motion (Softmotion) with drives on Ethercat (CSP mode). Off course there will be...
Replies
2
Views
905
Just started working with some HART loops and I'm trying out Pactware.I'm using Krohne and it works just fine recognizing my modem. I downloaded...
Replies
9
Views
1,326
Hi, There's a problem I face with upgrading the OS from XP which has the Step 7 Lite installed to windows 10. As I can't use a cracked version of...
Replies
2
Views
613
Back
Top Bottom