Need a Subroutine?

Join Date
Jan 2016
Location
New York
Posts
5
Hello, I have a CLICK PLC and my main program is fine. It starts and stops two motors. I want the ability to break out of the main program and manually start and stop the feed pump with the start switch. In this case, the motor turns on when the switch is pressed, and off when the switch is released. I can't seem to figure out how to make the program do this. I created the subroutine for it but it did not work. Thanks.
 
Did you include a CALL instruction to invoke the subroutine? It won't run automatically.
 
Just zip and post (attach) your program, I'm sure someone can figure it out for you.
 
Yes, I did include a call and it was simultaneously pressing both stop switches. I will attach the program, but please note it is not complete. I deleted some contacts to do some testing. For example, I have motor overloads, but they are not currently in the program. This is temporary.
 
Simply branch around the conditions in rung 3 with your alternate conditions --- -][- X1, -]\[- X2, -]\[- X3

Do you mean one big branch? When the Feed pump Start is pressed the whole line of code should execute. How would a branch prevent that from happening? Once the Line 3 is executed, Lines 4 and 5 will execute assuming all conditions are met.
 
Do you mean one big branch? When the Feed pump Start is pressed the whole line of code should execute. How would a branch prevent that from happening? Once the Line 3 is executed, Lines 4 and 5 will execute assuming all conditions are met.

The stops being pressed would activate only the one branch. To finish release the 'start' then the 'stops'. As long as the start is released first the original part of the rung will not fire.

Oh yes, also add NC of stops in line on rung 4. You are right.
 
The stops being pressed would activate only the one branch. To finish release the 'start' then the 'stops'. As long as the start is released first the original part of the rung will not fire.

Oh yes, also add NC of stops in line on rung 4. You are right.

I think I need to see a picture of what you mean Bernie


Kwade, I will try this. Thanks for posting the link.
 

Similar Topics

I have an old Sentry Palletizer (S/O Number 3007 / Serial Number 1172) that has lost its program as the backup battery died years ago. I can...
Replies
0
Views
107
So i've been at this for a long while, i have Citect Scada 2018, i have full access to everything but i can't seem to find any option or...
Replies
0
Views
70
I've got this 3-phase 575V motor that we're controlling with a VFD (Variable Frequency Drive), which has been quite the learning curve in itself...
Replies
10
Views
316
I'm fairly new to Rockwell software, I've had some basic training in the past but nothing too advanced. My company and I use Reliable products for...
Replies
11
Views
383
Hi all, I am having issues accessing my Cimplicity software - the site code changed after re-install and I am no longer able to attain a new key...
Replies
10
Views
197
Back
Top Bottom