adccommunitymod (AutomationDirect) asked a question.

Directsoft 5 PLC 05

Created Date: May 11,2011

Created By: Wallaby

**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****

Hi, This is my first time attempting to use Directsoft 5. This is what I am attempting to do for a final for an Automation Class I'm in: Normally Open >Switch(Closing the Open Circuit) > Timer (3 seconds) > Solenoid >Timer(10 Seconds) > Solenoid Reset Normally Open >Lever Action Microswitch(LAM)(Closing the Open Circuit) > IF Then Statement(IF 1st LAM tripped) >LED on > Confetti Cannon Normally Open > LAM(Closing the Open Circuit) > If Then Statement(If 1st LAM tripped) > LED on > Confetti Cannon I have managed to get a normally Open first rung with a Timer on the end of it, I have run into a wall trying to get the switch to close the circuit and anything further than that. We only had a single day of in class instruction on this programming hence why I'm running into these problems. Any Assisstance you could offer with this would be extremely appreciated. Thank You, Wallaby


  • adccommunitymod (AutomationDirect)

    Created Date: May 11,2011

    Created by: Wallaby

    Understand one part of it

    I figured out that there is no need for a coil or something that closes the normally open circuit so I have figured out all of my programming excepting the "if " statements. To make it more understandable what i am trying to accomplish here is the scenario. Two Cars are going down a track and when they hit the Lever Action Microswitch if they were the first of the two they will light up the LED above that lane signifying that it came in first place.

    Any assistance would be appreciated thanks in advance

    Wallaby.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: May 11,2011

    Created by: bcarlton

    Pinewood Derby?

    The solenoid is the release?

    It is possible for the two switches to be made on the same scan. Are 'ties ' allowed?

    Attached is one possible method

  • adccommunitymod (AutomationDirect)

    Created Date: May 11,2011

    Created by: Wallaby

    Yes, it is a pinewood derby.

    The solenoid is our release, and i suppose ties aren't going to be allowed for the simplicity of the project.

    How do you mean attached for a possible method?

    Thanks,

    Wallaby

  • adccommunitymod (AutomationDirect)

    Created Date: May 11,2011

    Created by: bcarlton

    In my post there is a zipped attachment. if you download that and unzip it you will see it is a DL05 project attempting to fulfill the requirements you described. It may provide some inspiration.

    A 'tie ' would have been if both switches are made in the same scan (check your scan time, on the order of 1/100th of a second). In my example Lane 1 would get the 'win ' in that case.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: May 16,2011

    Created by: Herman

    A 'tie ' would have been if both switches are made in the same scan (check your scan time, on the order of 1/100th of a second). In my example Lane 1 would get the 'win ' in that case.

    This shows that a PLC alone is inappropriate here, please add two DPDT relays that latch and switch each other off when energized.

    Two relay outputs could be connected to the PLC to indicate the winner.

    Then, the problem with false end results (If lane 2 beats lane 1, but in the same scan - Lane 2 'loses '...) will be gone.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: May 16,2011

    Created by: bcarlton

    Theoretically a tie could still result. Cross coupled switches would result in no car winning. It's all a matter of how finely you want to discriminate.

  • adccommunitymod (AutomationDirect)

    Created Date: May 16,2011

    Created by: Herman

    It's all a matter of how finely you want to discriminate.

    Well if I would have carefully worked hours on my son's Pinewood Derby car, to make it even faster than the other scouts ' (daddys ') cars, I'd make sure it would approach the theoretical finite Pinewood Derby car speed of more than 16 feet per second. Then, during the assumed 10 ms scan time, the cars would travel almost two inches.

    So, if the the judging were done by PLC alone, I'd make sure my (son's) car would be in Lane 1 because even if it would trail more than an inch behind the one in Lane 2, I (oops, I mean, my son) would likely win anyway.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: May 16,2011

    Created by: bcarlton

    Of course we had not advanced as far as using the interrupt capability of the DL05. I was saving that until at least the basics was understood.

    And 'same scan ' could have been programmed to be a tie.

  • adccommunitymod (AutomationDirect)

    Created Date: May 11,2011

    Created by: Wallaby

    Hi,

    This is my first time attempting to use Directsoft 5.

    This is what I am attempting to do for a final for an Automation Class I'm in:

    Normally Open>Switch(Closing the Open Circuit)> Timer (3 seconds)> Solenoid>Timer(10 Seconds)> Solenoid Reset

    Normally Open>Lever Action Microswitch(LAM)(Closing the Open Circuit)> IF Then Statement(IF 1st LAM tripped)>LED on> Confetti Cannon

    Normally Open> LAM(Closing the Open Circuit)> If Then Statement(If 1st LAM tripped)> LED on> Confetti Cannon

    I have managed to get a normally Open first rung with a Timer on the end of it, I have run into a wall trying to get the switch to close the circuit and anything further than that. We only had a single day of in class instruction on this programming hence why I'm running into these problems.

    Any Assisstance you could offer with this would be extremely appreciated.

    Thank You,

    Wallaby

    Expand Post