Help with a Flip/Flop Type of Logic

Not bad Chelton, but if the cylinder coasts and stops at the fully retracted position, we might have an issue. This machine is a printing press (not that that matters) but the hydraulic pump is powered by one of the spinning cylinders/shafts and when the machine stops it will coast sometimes stopping on a limit switch.
 
Not bad Chelton, but if the cylinder coasts and stops at the fully retracted position, we might have an issue. This machine is a printing press (not that that matters) but the hydraulic pump is powered by one of the spinning cylinders/shafts and when the machine stops it will coast sometimes stopping on a limit switch.

Do you mean the cylinder coasts pasts the retract limit? The code I posted will not be affected if the limit switch is made when the machine stops.
 
Not bad Chelton, but if the cylinder coasts and stops at the fully retracted position, we might have an issue. This machine is a printing press (not that that matters) but the hydraulic pump is powered by one of the spinning cylinders/shafts and when the machine stops it will coast sometimes stopping on a limit switch.




Hmm, I don't see the problem. Chelton's code will never start up toward either limit switch if that switch is a 1.


Maybe there is a misunderstanding of what is meant by
Cylinder would always retract first if in unknown position.
i.e. the misunderstanding involves missing the significance of the highlighted clause i.e "if in unknown position" means "the ram position is in between the limit switches, i.e. both limit switches are 0?"


The only possible problem would be, as Chelton asks, if the ram coasts past the retract limit switch that is an (optical?) prox switch and the switch signal becomes a 0, but if that is the case, then any algorithm proposed to solve this thread would have the same problem with one switch or the other: having both limit switches as 0s mean that the ram is between them is, I am pretty sure, a necessary condition for this to be automated.
 
Last edited:
Yup guys, now that I slow down and take a good look, everyone is correct. I'm guessing the cylinder will retract first because the retract rung is first in the scan. Is that correct? Now just out of curiosity I will set up a test PLC and try them all but Chelton's will probably go into the real program. Thanks for everything !!!!!
 
Yup guys, now that I slow down and take a good look, everyone is correct. I'm guessing the cylinder will retract first because the retract rung is first in the scan. Is that correct? Now just out of curiosity I will set up a test PLC and try them all but Chelton's will probably go into the real program. Thanks for everything !!!!!




Yes, the order of the rungs determines which direction is chosen for the "both limits are 0" case, assuming the PLC obeys the "left-to-right, top-to-bottom" mantra*.

And I agree with your choice: four contacts and two coils cannot be beat!

* Apparently Siemens does not, in certain situations, according to a recent thread.
 
Just to throw a little figurative monkey wrench into your program: if you are using a double-acting valve, then when you (nearly) instantaneously switch one output on and the other off, there is a brief period when there is magnetic field on both sides of the solenoid, so they are both pulling, ergo they are fighting for the spool. I usually put a small delay between the turn-off A and the turn-on B, and vice versa - it is kinder to the valve.
 
Just to throw a little figurative monkey wrench into your program: if you are using a double-acting valve, then when you (nearly) instantaneously switch one output on and the other off, there is a brief period when there is magnetic field on both sides of the solenoid, so they are both pulling, ergo they are fighting for the spool. I usually put a small delay between the turn-off A and the turn-on B, and vice versa - it is kinder to the valve.




Ooh, noice.


So a TON on a branch in parallel with each coil, with each .Done bit driving a solenoid side?
 
Same. I'm sure some valves are different, but most you don't need delays for the valves sake. If anything you need dwells and delays for the mechanics. Same thing for FVR starters.

I agree with RoTaTech. A small delay after de-energizing one solenoid before energizing the opposite solenoid of the same spool is gentler on the solenoids and the spool. This practice was recommended to me by MAC Valves. I used a 50ms delay.
 

Similar Topics

Hi all, my first post here, I've been lurking for a while. I'm a beginner and I hit a wall on one of my first projects I'm working on. I know it...
Replies
6
Views
2,551
Hi all, hope you are having a great day, I am in need of your help to create a AOI or program that does this kind of job: I have a IO Link...
Replies
6
Views
107
please help me . I have to make this ladder diagram and I can’t figure it out :(
Replies
12
Views
343
Hi Everyone, i was hoping for a little help with this module. i have data that needs to be read from a different plc through the Modbus plus...
Replies
11
Views
222
Hello, I am trying to replicate a piece of logic on the PLC5 onto an SEL RTAC. I am using ladder on SEL and FBD. I am having issue on the ladder...
Replies
13
Views
229
Back
Top Bottom