Author Topic: DF1COM Problems  (Read 4995 times)

mariley2250

  • Newbie
  • *
  • Posts: 31
    • View Profile
DF1COM Problems
« on: March 16, 2015, 10:01:03 PM »
Hi,

I have a micrologix 1500 connected via df1 serial to my pc which is using a USB to serial converter. I can connect to the PLC and have a great HMI running. However after a certain amount of time (not always the same) it hangs. I have tried two different USB to Serial converters and numerous configurations of baud rate etc. Am i missing something here??

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5317
    • View Profile
    • AdvancedHMI
Re: DF1COM Problems
« Reply #1 on: March 16, 2015, 10:02:57 PM »
Are you using version 3.98? If so, that one has a new SLC/Micro driver so there may still need to be a few bugs to work out. I can set it up tomorrow to see if I can replicate the problem.

mariley2250

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: DF1COM Problems
« Reply #2 on: March 16, 2015, 10:34:45 PM »
currently using 3.98

basically have 2 lines of code
1) a timer
2) a bit that resets the timer

I then have a panel meter that reads the timer acc and a push button that resets the timer.

All that works perfectly except for the following.
-comms times out after about 10 secs.
-the momentary button im using does not work when i put the address down to bit level (b3:0/0) it only works at word level (b3:0)

i am very impressed with this software. I would be more than happy to contribute to the development of it for instance a web interface that allows you to use it over the net.



DougLyons

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
DF1COM Problems
« Reply #3 on: March 17, 2015, 01:03:49 AM »
I had two different Serial-to-USB adapters that caused me problems.
One was a Dynex brand that came from Best Buy and the other was a Cables-To-Go brand.
These both had problems and they also both had Prolific chip sets in them.
There is a checkchipversion tool from here http://prolificusa.com/pl-2303hx-drivers that will confirm these chip sets.

I eventually found three solutions to my problems that really worked.
 1) Purchased a Dell E-Legacy adapter that has a real COM1 port that is mapped to the same Port and Interrupt that most software understands.
 2) Purchased a Tripp-Lite Keyspan model USA-19HS from Tiger Direct
 3) Purchased a FTDI CHIPI-X USB-to-Serial adapter from Digi-Key

All of these items worked just fine with a SLC-5/05 using the DF1 serial protocol.

mariley2250

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: DF1COM Problems
« Reply #4 on: March 17, 2015, 01:21:28 AM »
Thanks Doug.

I investigated what brands i had and one of them happens to be the FTDI CHIPI-X USB-to-Serial adapter from Digi-Key. I will reinstall the drivers tonight and let you know if it solves my problem.


mariley2250

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: DF1COM Problems
« Reply #5 on: March 17, 2015, 01:23:57 AM »
Doug,

Do you know what drivers you used from the FTDI website.

VCP Drivers
D2XX Drivers


mariley2250

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: DF1COM Problems
« Reply #6 on: March 17, 2015, 06:32:25 AM »
tried the updated drivers but still the same problem..


DougLyons

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
DF1COM Problems
« Reply #7 on: March 17, 2015, 07:38:37 AM »
For the FTDI CHIPI-X I just plugged in the device and my Windows 7 64-bit went to the Windows Update site and automatically downloaded two drivers. I am out of town and do not have this device with me but I will try and tell you what it is using when I get back.

I am sorry that you did not have the good luck that I did with your device. Also, I was using Advanced HMI Version 3.70 at the time of my tests I believe.


mariley2250

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: DF1COM Problems
« Reply #8 on: March 17, 2015, 10:31:02 PM »
Hi Archie,

Any luck with this??

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5317
    • View Profile
    • AdvancedHMI
Re: DF1COM Problems
« Reply #9 on: March 17, 2015, 10:41:36 PM »
I ran a test for a couple hours today with a MicroLogix 1100, but it all continued working ok. I'll set up a test to leave it run all night.

mariley2250

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: DF1COM Problems
« Reply #10 on: March 17, 2015, 10:44:17 PM »
do you remember what comms settings you used baudrate etc.

I tried it with a micrologix 1200 and i have the same issues.


Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5317
    • View Profile
    • AdvancedHMI
Re: DF1COM Problems
« Reply #11 on: March 17, 2015, 10:49:30 PM »
I just found the problem in the SLC/Micro driver and fixed it. Tomorrow a version 3.98a will be posted with the fix as long as the TwinCAT driver passes it's tests.

mariley2250

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: DF1COM Problems
« Reply #12 on: March 17, 2015, 10:50:32 PM »
excellent.. your a legend...

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5317
    • View Profile
    • AdvancedHMI
Re: DF1COM Problems
« Reply #13 on: March 18, 2015, 03:28:09 PM »
Version 3.98a is now available for download that has the fixes to the DF1 driver

mariley2250

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: DF1COM Problems
« Reply #14 on: March 18, 2015, 04:36:13 PM »
Just tested and working perfectly..

Awesome work... ;D ;D ;D ;D ;D