DirectSoft 5 SubRoutine

gscott27325

Member
Join Date
Oct 2011
Location
North Carolina
Posts
4
I am programming a subroutine in Directsoft 5. The subroutine scrolls through different color indicator lights. When coming out of the routine, sometimes one of the lights stays on even though the input is off. It is random as to which light sticks on when it does. Any ideas? I have tried the Reset Immediate instruction to no avail. Thanks.
:confused:
 
First a few make-sures... only one "Out" per light, right? If yes, I'd try adding a NO contact, that is true when the subroutine is active, in the light control rungs... If no, make it so...!🍻

David:site:
 
Remember that NOT calling a subroutine is not the same as a rung of logic which evaluates to FALSE.

Also David's warning about multiple instances of the same output need to be checked carefully.

If you wish to zip and post your program we will look at it.
 
Directsoft 5 subroutine

I don't know why the rung is false but the output is still on in the subroutine. If I use the force command to turn the output off it turns off and stays off. Thanks.
 
That condition (output not agreeing with the logic of a rung) implies that the subroutine is not being called ... though there are other possibilities. Waiting the posting of the program. (Zip all the files which make up the program then post the zip file.)
 
....sometimes one of the lights stays on even though the input is off.
The input state is not as important as the Output and what type it is. If you are using Set and Reset (as most students do) to control your lights, then the last Set is what turns the Output on.

There is also a possibility that your subroutine is being called one or more times (after you thought it was finished) that leaves an Output ON. Does your main routine have some method that prevents continual jumping to the subroutine (even after you are done with it)?
 
Last edited:

Similar Topics

I am not a Automation Direct programmer. I have done a lot of RS500 I have the DS5 software and I am able to look at the program. I am reaching...
Replies
10
Views
1,194
Hello, I have a couple of problems with the directsoft 6 software. I couldn't find a previous answer, and uninstalling and reinstall hasn't...
Replies
4
Views
1,505
Hello all, We have an old AutomationDirect DL405 (CPU 440) PLC, and we've been using DirectSOFT 5.3. Since we are NOT upgrading this PLC for a few...
Replies
6
Views
2,287
Hey everyone, Working on a system with a Koyo DL06 processor and it's my first experience with them. I have DirectSoft 6 and we got the program...
Replies
5
Views
2,392
All, I have a program that I am adding the counter on Rung 83 (see attached). The reset logic is exactly the same as on rung 84, but I can't seem...
Replies
16
Views
4,008
Back
Top Bottom