News:

  • August 28, 2026, 07:23:22 PM

Login with username, password and session length

Author Topic: designer  (Read 34536 times)

DLTimmons

  • Hero Member
  • *****
  • Posts: 232
designer
« on: February 05, 2013, 04:05:02 PM »
I seeing something I not sure what to think of

if you have several rungs with only out put coils when you accept them they are merged with the rung above it. They only to stop is to leave a nop rung.

Am I thinking wrong here or do you have to have a control element in every rung?

Donnie


BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6174
  • Yes Pinky, Do-more will control the world!
Re: designer
« Reply #1 on: February 05, 2013, 04:34:59 PM »
Stack based PLC...that's just the way they work. The merged result is the reality of how it executes. If you want something unconditional in a place that it can't be, I always use a contact with $On.

The only places that you can have no control elements in a rung is at the top of certain scopes...program blocks, task blocks, stages, loops, etc.
"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

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3843
    • Host Engineering
Re: designer
« Reply #2 on: February 05, 2013, 04:50:24 PM »
They only to stop is to leave a nop rung.
And you have to be careful with this one.  Technically, NOP means NUL-OPERATION or NO-OPERATION, hence

STR X0
OUT Y0
NOP
OUT Y1

when drawn, it looks like this:
Code: [Select]
.X0        Y0
-] [-----( OUT )

---------( NOP )

           Y1
---------( OUT )

Y1's state is NOT "ALWAYS ON" (even though it's tied to the power rail), but on the STATE of X0!!!

Do-more WARNS you with our Program Check utility:
W101 Rung mmm#rrr is missing input logic, powerflow state will be based on previous rung's power flow state.

see attached screen shot of Program Check output

DLTimmons

  • Hero Member
  • *****
  • Posts: 232
Re: designer
« Reply #3 on: February 05, 2013, 06:18:32 PM »
I'm not getting that warning with a check. Accept just shoves everything to the rung with the last control element.  Now that I know how it works I will put a NO element in every rung like that.



Just to many different PLC programs out there and everyone has something different.


franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3843
    • Host Engineering
Re: designer
« Reply #4 on: February 05, 2013, 06:35:18 PM »
I'm not getting that warning with a check. Accept just shoves everything to the rung with the last control element.  Now that I know how it works I will put a NO element in every rung like that.
Just to many different PLC programs out there and everyone has something different.
You'll only get the warning if you try your work-around and stick a NOP between the rungs.  If you DON'T stick a NOP, it WILL MERGE and will NOT generate that warning.

Oh, you also have to Accept the rungs F8 for Program Check to check the rung.

DLTimmons

  • Hero Member
  • *****
  • Posts: 232
Re: designer
« Reply #5 on: February 06, 2013, 11:42:16 AM »
That's going to drive the AB guys nuts in they use rungs without control elements all over the place. That is why I tried it over the last 12 month been doing more AB than AD I hope the Do-More changes that.

Donnie

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6174
  • Yes Pinky, Do-more will control the world!
Re: designer
« Reply #6 on: February 06, 2013, 12:01:05 PM »
It's not a matter of whether we'd like to, it's a function of the controller architecture. Stack-based execution just works that way. Koyo's CPUs are stack based and have worked that way forever. Texas Instruments (where we cut our teeth) was also stack-based. We'd love to change it...but we can't.
"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

PLCGuy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 677
Re: designer
« Reply #7 on: February 07, 2013, 06:23:07 AM »
Correct me if I am wrong, but if you organize your rungs with the uncontrolled elements first you should be fine. I put my uncontrolled rungs up on top then follow with others. Also using stage helps a great deal with this. I am doing a AB project, by force, and it is driving me nuts I can not use stage programming to separate out this condition. Get away from grouping all your rungs in one big heap and start to use stage.

plcnut

  • Hero Member
  • *****
  • Posts: 815
    • premiersi.com
Re: designer
« Reply #8 on: February 07, 2013, 06:45:37 AM »
I try to put them on top, but if I need them lower for whatever reason, I use ST1.
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
https://premiersi.com

deep6ixed

  • Hero Member
  • *****
  • Posts: 105
Re: designer
« Reply #9 on: February 07, 2013, 07:36:21 AM »
Wouldn't good practice be to always use ST1.  That way down the road someone who reads the project later can see that its meant to be on.

ATU

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 2126
  • YKPAIHA
    • ATU, Inc.
Re: designer
« Reply #10 on: February 07, 2013, 07:19:49 PM »
What I do for rungs that have to be on all the time is put them all at the top. However, I leave the first 10 stage numbers unused. Stage 0 only has variable initializations and jump instructions that turn on all other stages.  Then toward the end of the project, I look to see if there is any structure to those rungs that makes sense, then copy groups of them into Stages 1-10 setup as categories. Its more of an organizational tool.  You just have to be mindful to not put instructions in stages that shouldn't be.

PLCGuy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 677
Re: designer
« Reply #11 on: February 08, 2013, 12:27:33 PM »
yes I sometimes use the ST1 but some I-boxes will not allow that.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3843
    • Host Engineering
Re: designer
« Reply #12 on: February 08, 2013, 01:20:13 PM »
yes I sometimes use the ST1 but some I-boxes will not allow that.
There are a small number of instructions/IBoxes that "always" execute (that is they are not dependent upon power flow), hence they MUST NOT have any input logic.

Greg

  • HostTech
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 702
  • Hmmm...
    • Host Engineering, Inc.
Re: designer
« Reply #13 on: February 11, 2013, 11:48:37 AM »
And, I believe that all those IBoxes have their titles and instruction names bolded & italicized and bolded respectively. e.g....
There are two types of people in the world; those that can extrapolate from incomplete data sets.