|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Double Solenoid Help
We have a double solenoid hooked up to a piston
It is hooked up to relays 1 and 2 We are trying to make it come out when the trigger is pulled and go back when it is pulled again What would I have to fix here? Code:
int pnu = 0;
...........
if(p3_sw_trig==1 && pnu==0)
{
relay1_fwd=0;
relay1_rev=1;
relay2_fwd=1;
relay2_rev=0;
pnu+=1;
}
if(p3_sw_trig==1 && pnu==1)
{
relay1_fwd=1;
relay1_rev=0;
relay2_fwd=0;
relay2_rev=1;
pnu=0;
}
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Single vs double solenoid valve operation | Scott358 | Pneumatics | 0 | 29-01-2005 11:47 |
| Creating no pressure with double solenoid? | Combat Chuck | Pneumatics | 7 | 29-02-2004 22:45 |
| Double Solenoid Leak | Darksun | Pneumatics | 4 | 18-02-2004 22:52 |
| using single solenoid like a double | SteveO | Programming | 14 | 02-02-2004 22:51 |
| Anyone willing to trade (something they need) for the SMC double solenoid? | Jeremy | Kit & Additional Hardware | 0 | 27-01-2004 20:14 |