|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#9
|
|||||
|
|||||
|
Re: Problem in Pneumatics programming
The code necessary depends on the type of solenoid used and the method of wiring.
The code you posted is correct for a double solenoid (two red and two black wires) if the two red wires are wired to the spike and the grounds connect to ground elsewhere. A single solenoid has one red and one black wire going to the spike and is controlled by (as in Roger's example): Code:
if(p1_sw_trig)
{
relay1_fwd = 1;
relay1_rev = 0;
}
else
{
relay1_fwd = 0;
relay1_rev = 0;
}
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| programming pneumatics problem | program1 | Programming | 4 | 18-02-2008 17:35 |
| Pneumatics Rookie Problem | Squishylizard | Pneumatics | 4 | 06-02-2007 17:30 |
| pneumatics coding problem (or technical) | wildabyss | Programming | 2 | 22-02-2005 22:16 |
| pneumatics coding problem (or technical) | wildabyss | Pneumatics | 2 | 22-02-2005 22:16 |
| Pneumatics Problem + possible fix | Srkasner | Pneumatics | 4 | 24-02-2004 10:39 |