News:

  • August 16, 2026, 03:19:22 PM

Login with username, password and session length

Author Topic: Ladder needs to DO-More  (Read 14574 times)

pbw

  • Hero Member
  • *****
  • Posts: 127
Ladder needs to DO-More
« on: February 12, 2018, 06:44:53 PM »
Why does this not work? I desperately want this to work. Is this a rule that can be ignored? If not why do other PLCs accept this and compile? Is there a specific reason why Host doesn't allow me to Do-More? :'( ??? :'(

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3843
    • Host Engineering
Re: Ladder needs to DO-More
« Reply #1 on: February 12, 2018, 08:29:41 PM »
Sadly, no.  Our PLCs utilize a Boolean stack and currently is unable to resolve that type of rung.

For now, you will have to duplicate the C100 contact across 3 separate rungs.  Sorry.

pbw

  • Hero Member
  • *****
  • Posts: 127
Re: Ladder needs to DO-More
« Reply #2 on: February 12, 2018, 08:49:17 PM »
For now

I guess I will just wait until I can...um..Do-More! ;D

Mike Nash

  • Hero Member
  • *****
  • Posts: 652
Re: Ladder needs to DO-More
« Reply #3 on: February 12, 2018, 09:27:48 PM »
Either of the two rungs below will give the desired result, though maybe not as easy to read.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6170
  • Yes Pinky, Do-more will control the world!
Re: Ladder needs to DO-More
« Reply #4 on: February 12, 2018, 09:40:24 PM »
We know what to do, but it isn't trivial to fix the ladder compiler and code generation. Controller side is simple though.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

pbw

  • Hero Member
  • *****
  • Posts: 127
Re: Ladder needs to DO-More
« Reply #5 on: February 13, 2018, 12:19:33 AM »
C'mon Bob make it Do-More!...I couldn't resist :D

So.....Is this an apology for the 20% you didn't do or for the 100% you did poorly? (runs away ducking...)
go easy on me.

DLTimmons

  • Hero Member
  • *****
  • Posts: 232
Re: Ladder needs to DO-More
« Reply #6 on: February 13, 2018, 09:16:26 AM »
If not being able to put that on one rung is a big bother. You never done one shots with other PLC's. Do-more makes more sense to me that AB that will let you put Coils in the middle of a rung or back to back coils at that. Have found issue with AB logic while teaching school and the only fix was to move rungs around.
« Last Edit: February 13, 2018, 09:28:06 AM by DLTimmons »

pbw

  • Hero Member
  • *****
  • Posts: 127
Re: Ladder needs to DO-More
« Reply #7 on: February 13, 2018, 10:44:19 AM »
It isn't a bother at all I was just curious if Host chose not to do it for a reason. I was joking more or less and wasn't meant to be taken literally.I apologize if I offended anyone, it was not my intention.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6170
  • Yes Pinky, Do-more will control the world!
Re: Ladder needs to DO-More
« Reply #8 on: February 13, 2018, 12:12:28 PM »
C'mon Bob make it Do-More!...I couldn't resist :D

So.....Is this an apology for the 20% you didn't do or for the 100% you did poorly? (runs away ducking...)
go easy on me.

LOL!

It's really neither. When the ladder compiler was written 2.5 centuries...er...decades ago, Koyo's controllers didn't have provision to execute the required logic. The required PUSH/POP is actually already in the controller now, but it takes some work in DmD code that hasn't been touched in *forever*, so there is some reluctance to do so. Every time it comes up we get shamed into talking about it, but just haven't had the courage to dive in.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

pbw

  • Hero Member
  • *****
  • Posts: 127
Re: Ladder needs to DO-More
« Reply #9 on: February 16, 2018, 12:28:29 AM »
Here's how to "Do-More"....(It never gets old)
https://jamesclear.com/how-to-stop-procrastinating
Hope to see it soon! :D