Host Engineering Forum

General Category => Do-more CPUs and Do-more Designer Software => Topic started by: pbw on February 12, 2018, 06:44:53 PM

Title: Ladder needs to DO-More
Post by: pbw 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? :'( ??? :'(
Title: Re: Ladder needs to DO-More
Post by: franji1 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.
Title: Re: Ladder needs to DO-More
Post by: pbw on February 12, 2018, 08:49:17 PM
For now

I guess I will just wait until I can...um..Do-More! ;D
Title: Re: Ladder needs to DO-More
Post by: Mike Nash 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.
Title: Re: Ladder needs to DO-More
Post by: BobO 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.
Title: Re: Ladder needs to DO-More
Post by: pbw 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.
Title: Re: Ladder needs to DO-More
Post by: DLTimmons 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.
Title: Re: Ladder needs to DO-More
Post by: pbw 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.
Title: Re: Ladder needs to DO-More
Post by: BobO 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.
Title: Re: Ladder needs to DO-More
Post by: pbw 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