plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

Get the book!

If you're really looking to learn about PLCs, you NEED our book...

"Your Personal PLC Tutor - A Guide to Understanding PLCs"

Easy to read and uses 'plain' language!
Get $$FREE$$ priority mail shipping too!!!
You WILL be glad you did!!

Click Here now to order

Reply
 
Thread Tools Display Modes
Old September 17th, 2004, 08:06 AM   #1
Jiri Toman
Member
United States

Jiri Toman is offline
 
Jiri Toman's Avatar
 
Join Date: Jun 2002
Posts: 498
Free DF1 driver

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
  Reply With Quote
Old September 17th, 2004, 01:35 PM   #2
panic mode
Member
Canada

panic mode is offline
 
panic mode's Avatar
 
Join Date: May 2003
Location: Toronto, Canada
Posts: 1,945
Don't have .NET yet... Still VB6.
  Reply With Quote
Old September 17th, 2004, 02:00 PM   #3
ndzied1
Member
United States

ndzied1 is offline
 
ndzied1's Avatar
 
Join Date: Aug 2002
Location: Chicago, Illinois
Posts: 1,534
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
__________________
nOrM
======================
nOrM=Norman Dziedzic Jr.
  Reply With Quote
Old September 17th, 2004, 08:48 PM   #4
chavak
Member
Malaysia

chavak is offline
 
chavak's Avatar
 
Join Date: Jul 2002
Posts: 420
Jiri,

Thanks for the DF1 driver.

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
  Reply With Quote
Old September 17th, 2004, 09:12 PM   #5
Contr_Conn
Member
United States

Contr_Conn is offline
 
Contr_Conn's Avatar
 
Join Date: Sep 2003
Location: Ohio
Posts: 1,474
Quote:
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.
  Reply With Quote
Old September 17th, 2004, 09:16 PM   #6
Contr_Conn
Member
United States

Contr_Conn is offline
 
Contr_Conn's Avatar
 
Join Date: Sep 2003
Location: Ohio
Posts: 1,474
Quote:
Don't have .NET yet... Still VB6.
Watch promotions at Microsoft, few month ago they had free VB .NET for watching .NET tutorials.
  Reply With Quote
Old September 17th, 2004, 11:12 PM   #7
Peter Nachtwey
Member
United States

Peter Nachtwey is online now
 
Peter Nachtwey's Avatar
 
Join Date: Apr 2002
Location: Vancouver, WA, USSA, United Socialist States of America
Posts: 4,518
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.
  Reply With Quote
Old September 17th, 2004, 11:56 PM   #8
jimbo3123
Member
United States

jimbo3123 is offline
 
Join Date: Sep 2003
Location: Detroit Area
Posts: 489
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?
  Reply With Quote
Old September 18th, 2004, 12:30 AM   #9
Peter Nachtwey
Member
United States

Peter Nachtwey is online now
 
Peter Nachtwey's Avatar
 
Join Date: Apr 2002
Location: Vancouver, WA, USSA, United Socialist States of America
Posts: 4,518
Give the Jiri some credit!

Quote:
Originally posted by jimbo3123
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.

Quote:
Originally posted by jimbo3123
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.

Quote:
Originally posted by jimbo3123
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.
  Reply With Quote
Old September 18th, 2004, 05:12 AM   #10
Bitmore
Member
United States

Bitmore is offline
 
Bitmore's Avatar
 
Join Date: Dec 2003
Location: Automation Alley, Oakland County, Michigan
Posts: 470
Peter, you can please some of the people sometimes,......
  Reply With Quote
Old September 18th, 2004, 09:01 AM   #11
ndzied1
Member
United States

ndzied1 is offline
 
ndzied1's Avatar
 
Join Date: Aug 2002
Location: Chicago, Illinois
Posts: 1,534
Quote:
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.
__________________
nOrM
======================
nOrM=Norman Dziedzic Jr.
  Reply With Quote
Old September 18th, 2004, 09:45 AM   #12
Thomas Sullens
Member
United States

Thomas Sullens is offline
 
Join Date: Feb 2004
Location: Idabel, Ok
Posts: 389
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.
  Reply With Quote
Old September 19th, 2004, 11:59 AM   #13
Jiri Toman
Member
United States

Jiri Toman is offline
 
Jiri Toman's Avatar
 
Join Date: Jun 2002
Posts: 498
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.
  Reply With Quote
Old September 19th, 2004, 12:12 PM   #14
Contr_Conn
Member
United States

Contr_Conn is offline
 
Contr_Conn's Avatar
 
Join Date: Sep 2003
Location: Ohio
Posts: 1,474
Quote:
They will have to be COM1 thru COM8.
Why you have this limitation?
Windows 2K/XP supports up to COM255 and normally virtual COM numbers are high.
  Reply With Quote
Old September 19th, 2004, 04:27 PM   #15
Jiri Toman
Member
United States

Jiri Toman is offline
 
Jiri Toman's Avatar
 
Join Date: Jun 2002
Posts: 498
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.
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Please help with DF1 to DH+ Passthrough soop7667 LIVE PLC Questions And Answers 6 December 17th, 2004 07:30 AM
Windows NT Hard Drive Limitation elevmike LIVE PLC Questions And Answers 33 May 7th, 2004 03:38 AM
DF1 protocol - Micrologix 1200 fed007 LIVE PLC Questions And Answers 3 February 21st, 2004 09:53 AM
Problem with DF1 half duplex comm's lalion LIVE PLC Questions And Answers 6 January 30th, 2004 03:43 PM
DF! protocol master driver query shroffsp LIVE PLC Questions And Answers 5 August 4th, 2003 02:16 AM


All times are GMT -5. The time now is 12:00 AM.


.