INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Directsoft 5 Subroutine

Directsoft 5 Subroutine

(OP)

I am programming a subroutine in Directsoft 5. The subroutine scrolls through indicator lights when activated. When coming out of the subroutine, sometimes one of my indicator lights sticks on. It depends on when I flip the switch to come out of the subroutine as to which one of the lights stick on sometimes. I have tried the RSTI command in Directsoft 5 but to no avail. Can anyone help steer me in the right direction? Thanks.

RE: Directsoft 5 Subroutine

I would have to see you code to render a reply.

RE: Directsoft 5 Subroutine

I'm new to this too, so take this for what it's worth, but remember your sub only runs when it's called EACH cycle. If the the condition that calls the sub is no longer true, then the sub will not run and "clean up" at the end. I think a flag is the way to call the sub. That way you can make sure the sub finishes doing everything you want and then clears the flag.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close