|
Re: Pneumatics Resources
Well I setup the system as has been described by more than a few threads on the last post, but I'm not having any luck still. I used this code:
if(p2_sw_aux1 == 1)
{
relay2_fwd = 1;
relay2_rev = 0;
relay3_fwd = 0;
}
if(p2_sw_aux2 == 1)
{
relay2_fwd = 0;
relay2_rev = 1;
relay3_fwd = 0;
}
else
{
relay3_fwd = 0;
relay2_fwd = 0;
relay2_rev = 0;
}
When I set it up, the piston will still immediately extend even if the button is immediately let go. Now I am using 2 double solenoids, (is this a problem?) So when I try it the other way (i.e. changing the side that is blocked or changing the side that relay3 is on) it moves a little bit then stops and won't move again. I assume this is because the exhaust is blocked on the wrong port so it moves a bit while the stop(a loop) is charging. After going back to the original setup I tried changing the speed with the SMC speed regulators and although it slowed it down a lot it wouldn't stop completely. Anyone have any ideas what I'm doing wrong?
Items of interest:
My system setup requires that the first double solenoid side B be wired up backwards in order for the piston to retract, it required this without using the second exhaust-blocking solenoid. Is there a problem with this?
As stated before, I am using 2 double solenoids, is there a problem with this?
During operation, when aux1 is pressed relay2 goes green and relay3 goes green. When aux2 is pressed, relay2 goes red and relay3 goes green. when no button is pressed, both relays are orange. the colors on the solenoid light up appropriately when the relays are actuated. So I assume the programming and the wiring up to the relays is correct.
|