Jump to content

Recommended Posts

Hello everyone,

 

I am come back to the forum since too much time. I come back to Unitronics' PLC programming and I have got an issue with a routine.

 

I am currently working with a generator routine which looks like:

c0e0482d723a2534d6cbced050b72de5o.jpg

 

We have a panel with 9 bottons to select a state for each generator (Day, Night, Standby). Therefore we have 6 combinations:

  1. Day,Night,Standby
  2. Night,Day,Standby
  3. Standby,Day,Night
  4. Standby,Night,Day
  5. Day,Standby,Night
  6. Night,Standby,Day

And if it is not any of these ones,it will work with this state like standard one: ''Day,Night,Standby"

 

Now the problems come. Time functions:

 

Day-07:00-19:00

Night-19:00-07:00

Standby should work when there is a failure in one of the other ones.

 

I made a simple visual checker with 3 pictures simulating the state of the generators, but I do not know why routines Gen1,Gen2 and Gen3 are always "ON".

 

I have attached the file in this link.

 

 
Thanks for your help.

 

 

Link to comment
Share on other sites

  • MVP 2023

When MB20 turns off, you stop calling "StandardRoutine". When you stop calling Standard Routine, you stop calling "Gen1" routine. When you stop calling Gen1 routine, the PLC cannot turn off MB17, thus it stays on.

 

Even if MB20 stays on, when the time expires in StandardRoutine, ladder rung 1, then Gen1 subroutine is no longer being called and MB17 cannot be turned off.

 

Conditional subroutine calls can be very problematic. Design your logic to minimize (or eliminate) the need for conditional subroutine calls.

Link to comment
Share on other sites

Hi Sirs,

 

I rethink all the ladder logic, I would like to ask you if you notice at first look anything wrong, with ladder logic's LOGIC

 

I have the next pieces working. I am going to start working with a normal routine(Basic), generator 1 Day, generator 2 Night, generator 3 Standby and a transformer which is the main one.

 

I am simulating this program with bits instead with inputs and outputs.

 

I have the next componets:

 

Generator 1 start is MB5

Generator 2 start is MB6

Generator 3 start is MB7

 

Phase failure rele transformer is MB0

Phase failure rele Gen 1 is MB10

Phase failure rele Gen 2 is MB11

Phase failure rele Gen 3 is MB12

 

Breaker Switch Transformer is MB1

Breaker Switch Gen1 is MB2

Breaker Switch Gen2 is MB3

Breaker Switch Gen3 is MB4

 

Gen routine BIT MB8

 

PFR House  MB9

BUSBAR Alarm MB13

 

 

 

4a8db7107368c9cd9d32c4f15a1dbfbbo.jpg

 

 

This is my program idea, I will performance and I will simulate. Could anyone say me if there is some confict condition with ladder logic in this program?

 

Thanks

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...