|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
programming pneumatics problem
we tried to load this program and after it finishes, the program does nothing, the spike we set the double compressor turns green but nothing happens,
heres our code we used: char flag00 = 1; char flag01 = 1; //set at top of program if(p2_sw_trig == 1 && flag00 == 1) { relay6_fwd = 1; relay6_rev = 0; flag01 = 0; } else if(p2_sw_trig == 1 && flag00 == -1) { relay6_fwd = 0; relay6_rev = 1; flag01 = 0; } else if (p2_sw_trig == 0 && flag01 == 0) { flag01 = 1; flag00 = flag00 * -1; } is there any problems within the program? |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| programming pneumatics | holty531 | Programming | 9 | 02-02-2008 22:03 |
| 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 |