Jump to content

Multiple schedules for one output


Antal

Recommended Posts

  • MVP 2023

I can't tell from your screenshot, but I'm guessing you've assigned the same output to all the schedules.  This is a programming no-no, as the state of the output will be determined by it's last instance in the program.  None of the others will count.

Are all 20 schedules active at the same time?  Not that it matters.

Is there any reason you can't create a different bit for each schedule output and OR them all together for your output?  

image.png.b7f7fcf699d4e9b8e4883a7e8d252431.png

 

I've never tried as many as 20 parallel contacts in one net, as Vision won't let you do it.  So I tried with UniStream, and it did compile without errors:

image.png.a27ac09a6a9af0f99bbcfb0bee94da5b.png

There are 20 contacts there - trust me.  The minimum zoom out on UniLogic is 70% so I was not able to truly capture the crazy of this network.  But it will work.

Joe T.

 

Link to comment
Share on other sites

Dear Antal,

the PLC will execute exactly each single command...so if you have 2 or more contiguous "simple coil" command the status of the last win.

to avoid this you have to use the SET and RESET coil; in this way if cois is SET a RESET event has to arise to set it to "0".

however my suggest is have only one place where a coil,  coupled with an output, is SET or RESET...following the relative conditions.

Link to comment
Share on other sites

  • MVP 2023

Antal, it is worth remembering/learning from this one that the same principle applies throughout PLC programming. 

If you have multiple references to any sort of output, the last one in the ladder is the one that is applied.  So if you need to have multiple references, you have to have all those references independently applied to the output in one rung as parallel like Joe says.  Sometimes on complex output involvement, this can even mean the need to "cascade" the individual references.  I do this to break it up into more easily referenced visually  for the human.  In programming, I always try to make it easy to follow the logic to facilitate troubleshooting, which sometimes means more elements seemingly arranged clumsily.  But they are there for a purpose!

All Programmers have their own preferences, but many keep all physical outputs ladder work until the very end of the program.

cheers, Aus

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...