Jump to content

- - - - -

help with rslogix 5000 programming (structured text)

  • Please log in to reply
1 reply to this topic

#1 fvtc_ams


    Hi, I am New!

  • MrPLC Member
  • Pip
  • 2 posts
  • Country:United States
    United States

Posted 14 May 2009 - 07:45 PM

Hi there, my lab partner and i are currently finishing up a school project and have run across a little snag in our programming. We are using five inputs. these five inputs will altogether trigger three/four outputs in various combination. We have set up in basic ladder/logic input bits that will trigger corresponding outputs and light indicators.


input1=1, output1=1, light1=1
so if input1 is true, it turns on output1 and light indicator 1, and so on for the next four sets as well.

our problems come in with our next output sets.

the inputs (inputs 1- 5) also trigger two dual acting pneumatic cylinders. these two are set up opposite each other and move opposite one another.


cylinder 1 cylinder2
----------> <-----------

when any of the input signal is true, one of the cylinders will move

cylinder1 cylinder2
then on the next cycle for the inputs, the next cylinder will move

cylinder1 cylinder2

hope this makes sense.

the goal is to have the cylinders only fire on momentarily, but if the input signal is true, what ends up happening is the cylinders will stay on, so the other cant move until the input signal that was on is false.

we are using a JSR to jump to a structured text logic for the cylinders.

if input1 or input 2 or input 3 or input 4 or input5 then


if input1 or input 2 or input 3 or input 4 or input5 then


after the 2nd transition, we just loop the instruction back to the first cylinder logic.

sorry if the post is kind of long. any help would be appreciated.
we have thought about using timers to control the output but are having problems setting that up in
structured text.

again, what we are trying to do is have inputs 1-5 trigger the two cylinders in sequence momentarily.


#2 Ken Moore

Ken Moore

    Principal Specialist

  • MrPLC Admin
  • 1711 posts
  • Gender:Male
  • Location:Upstate South Carolina
  • Country:United States
    United States

Posted 15 May 2009 - 04:24 AM

It's not the way I would have done it, but maybe yours works fine.
You need to add timers to your cylinder logic. So when the logic is true it starts a timer, the cylinder then extends while the timer is timing, once the timer is done, the cylinder output will go false. You will have to use trial and error to get the correct timer values, I would start with 1000 msec.

BTW, you could have done this all within ladder and you wouldn't need the JSR.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users