Jump to content

Power rail indication frustration/whinge.


Recommended Posts

  • MVP 2023

Hi again all,

 

I have been working on another brand of PLC lately and am now back to my Unitronics stuff.  The other brand treats sequential "groups" of ladder work as part of the main scan.

 

I spent hours yesterday trying to figure out why a linearisation wasn't working.  I was developing the next stage of a program and just had one element in the ladder, to work from there.  Double check everything and it should be working....hmmmm...why not?  Maybe I've forgotten how to do the X/Y relationships.  Change things around again, many many times and still no output to my MI.  What is going on?  Power is there and it all should be working.

 

Finally in frustration I looked up other work and noted the subroutine calls.  I hadn't put any into my ladder because of my using the other PLC type which didn't need them.  I was simply doing the same thing, where I had a number of routines but had separated them into the general idea of what was happening in that part of the ladder.  On the other PLC I didn't need to call them.  In this case I was starting on all the linearisation that is going to happen, wth it all in its own subroutine.

 

My big whinge is that Visilogic (9.7.0/0) shows the power rail as active across the ladder elements in a subroutine that isn't being called.  This is what was constantly throwing me off.  To my thinking this is a significant fault in the program.  If I had seen that there wasn't any power I would have twigged immediately.  But I was being told that it was there.

 

I know that I should have realised my error, but it is easy to get confused when working with other PLCs, as one has to remember so many different ways of doing much the same thing.  But having the power rail as showing didn't help at all!!

 

And the other thing that really bugs me, which perhaps should be in a separate thread, is that you can't do even the most minor alterations to a program on line.  This other brand lets it happen to a high stage of complexity.  Whilst online you can enter an edit mode and use most of the elements available.  It asks all the precautionary questions that one would expect when you tell it to commit, as I understand that in some instances such a capability has the possiblity of doing something catastrophic.  However, used sensibly it is fantastic. It makes it so much easier to change your ladder when you have made a dumb error, or want to try another way.  I wish Unitronics would try to find a way for this to happen......it is a right pain in the bum having to go through the entire download process if you just want to trial/change one tiny thing.

 

cheers,

 

Aus

  • Like 1
Link to comment
Share on other sites

Every class I've attended on PLC programming started out with the assumption the left power rail is always powered because PLCs are a digital version of hardware relay programming where you would always have that line powered.  Even working with some of the Allen Bradley controllers I've seen the same issue you're talking about.

 

Power always flows left to right through the rung, you use relays to control whether that power completes the circuit or not.  You're thinking more like a software programming that a function call doesn't do anything within the function until it's called which isn't always handled the same way depending on the PLC manufacturer.

 

Keep in mind subroutines are more for making the ladder program look better and help with the maintainability of the program but they are not needed.  There is nothing you can do with a subroutine that could not be put in the main program ladder. 

Link to comment
Share on other sites

  • MVP 2023

Keep in mind that when you go online in VisiLogic it's really only reading the state of each memory location and highlighting it in the ladder (at least that is what it looks like to me). It doesn't check anything about the logic - in fact it doesn't even care if it's the same program in the PLC as what you're looking at on your PC. In VisiLogic, never assume the power flow logic represents reality in the PLC.

 

All of that is changed with UniStream (and improved).

Link to comment
Share on other sites

  • MVP 2023

Thanks Cant and Flex.  I hear your opinions and take note.  Although no expert, I have been programming many brands of PLCs on and off for 20 years.

 

I use the subroutine method purely to make it easier to work on the many different aspects of the installs I do.  If I didn't break things up some of the ladders would be very large indeed!  I try to follow the descending method of Inputs, process/adjust, interpret, anything ultra important happened since I started?, outputs.  With many offshoots within each area being run as necessary.

 

If the now-defunct "20 year old but still good" system that I was working with can show what the power rail is actually doing over a slow serial connection, I can't see why something more modern shouldn't be able to do it as well.  I agree, Flex, that it just seems to show what each state is.

 

Another example of the old system's logical design is that my "fast" timer issue by being called twice doesn't happen in this older gear either.  If you set a timer running, it just bangs away correctly no matter how many times it is referenced or looped.

 

Don't get me wrong, I love Unitronics gear.  I re-accomodate to the different systems, but it just takes time to settle back into driving the different vehicle!

 

cheers,

Aus

Link to comment
Share on other sites

  • 1 month later...

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