Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Compressor (http://www.chiefdelphi.com/forums/showthread.php?t=134136)

DBaleta 07-02-2015 15:11

Compressor
 
Do we need to program the compressor in Labview? Is the compressor already programmed into the coding of the double solenoids?

Ben Wolsieffer 07-02-2015 15:14

Re: Compressor
 
When you open a solenoid, the compressor start running (and stops when it fills the tanks) automatically.

DBaleta 07-02-2015 15:36

Re: Compressor
 
Quote:

Originally Posted by lopsided98 (Post 1439780)
When you open a solenoid, the compressor start running (and stops when it fills the tanks) automatically.

So all i need to do is program the solenoid in the Begin vi, Telop vi, and the Finish vi, and when I do this the compressor will automatically turn on and stop without manually programming it to do so?

Mark McLeod 07-02-2015 16:12

Re: Compressor
 
Yes, just so.

If you want to see how it's done, double-click on the Solenoid Open and looking at the block diagram you'll see the compressor Open.

DBaleta 07-02-2015 16:19

Re: Compressor
 
2 Attachment(s)
We've added 2 double solenoids to our program and the compressor does not start. we added the compressor to the Begin vi and tested it and still no compressor. Attached is a copy of our coding in Begin and Telop that pertains to the compressor.

Mark McLeod 07-02-2015 16:26

Re: Compressor
 
The enums in Teleop are incorrect for Relay. That's why they have red dots.
Get a correct Relay Enum by
  • Deleting the wire into Relay (the one with the red dot)
  • Right-click on the now vacant Relay input node and choose Create->Constant
That's the correct Relay enum type.
  • Now make copies of the correct one and replace all the others
  • Finally, remove the Enum you created into Relay and wire Relay into the Select as it was before.
  • If done correctly all the red dots should be gone.

Separately, is the status light on the Pneumatics Control Module blinking green?

Alan Anderson 07-02-2015 18:51

Re: Compressor
 
Why does one of your double solenoids have a 0 wired to it, and the other a 1?

DBaleta 09-02-2015 17:40

Re: Compressor
 
Quote:

Originally Posted by Mark McLeod (Post 1439814)
The enums in Teleop are incorrect for Relay. That's why they have red dots.
Get a correct Relay Enum by
  • Deleting the wire into Relay (the one with the red dot)
  • Right-click on the now vacant Relay input node and choose Create->Constant
That's the correct Relay enum type.
  • Now make copies of the correct one and replace all the others
  • Finally, remove the Enum you created into Relay and wire Relay into the Select as it was before.
  • If done correctly all the red dots should be gone.

Separately, is the status light on the Pneumatics Control Module blinking green?

Okay I changed the program in telop. is there anything else I need to change? Like in the Begin vi?

DBaleta 09-02-2015 17:42

Re: Compressor
 
Quote:

Originally Posted by Alan Anderson (Post 1439915)
Why does one of your double solenoids have a 0 wired to it, and the other a 1?

In the begin vi the 0 and 1 corresponds with the channel in the Pneumatic Control Module that the double solenoids are using. Or at least that's what I think.

Mark McLeod 09-02-2015 18:28

Re: Compressor
 
Solenoid B in Begin.vi needs the "1" changed to a "0"

To check that the PCM is setup correctly, use a web browser and type into the address bar:
roboRIO-2001.local
That should bring up web page where you'll see PCM listed on the left side.
Click on PCM and verify that the CAN ID = 0

What are the status lights on the PCM doing?

DBaleta 09-02-2015 18:56

Re: Compressor
 
Quote:

Originally Posted by Mark McLeod (Post 1440896)
Solenoid B in Begin.vi needs the "1" changed to a "0"

To check that the PCM is setup correctly, use a web browser and type into the address bar:
roboRIO-2001.local
That should bring up web page where you'll see PCM listed on the left side.
Click on PCM and verify that the CAN ID = 0

What are the status lights on the PCM doing?

I changed Solenoid B to "0" and i can't find the pcm in the web browser. The status light on the PCM is blinking slow red. (No Can Com?)

Alan Anderson 09-02-2015 19:06

Re: Compressor
 
Quote:

Originally Posted by DBaleta (Post 1440869)
In the begin vi the 0 and 1 corresponds with the channel in the Pneumatic Control Module that the double solenoids are using. Or at least that's what I think.

That number corresponds to the CAN ID of the PCM itself. It defaults to zero, and should remain zero unless you're adding a second PCM to the system.

The enumerated "Solenoid 0", "Solenoid 1", etc. define which outputs of the PCM are connected to the solenoids.

If your PCM is blinking red, then you need to look at your CAN wiring and make sure it is correct. The yellow/green CAN terminals on the roboRIO should be wired to one pair of terminals on the PCM, and the other pair of PCM terminals should be wired to the CAN terminals on the Power Distribution Panel.

DBaleta 09-02-2015 19:19

Re: Compressor
 
Quote:

Originally Posted by Alan Anderson (Post 1440907)
That number corresponds to the CAN ID of the PCM itself. It defaults to zero, and should remain zero unless you're adding a second PCM to the system.

The enumerated "Solenoid 0", "Solenoid 1", etc. define which outputs of the PCM are connected to the solenoids.

If your PCM is blinking red, then you need to look at your CAN wiring and make sure it is correct. The yellow/green CAN terminals on the roboRIO should be wired to one pair of terminals on the PCM, and the other pair of PCM terminals should be wired to the CAN terminals on the Power Distribution Panel.

We rewired our CAN wires (They were wired incorrectly). Now the PCM is blinking green. We have yet to test the program though.

DBaleta 09-02-2015 19:38

Re: Compressor
 
We ran into a problem where the buttons do not retract the pistons. Did i program the buttons wrong?

Mark McLeod 09-02-2015 19:55

Re: Compressor
 
If some of the LEDs next to the solenoid ports 0, 1, 2, 3 light but do not change, then there is still something wrong with the code.
Want to post the latest?


All times are GMT -5. The time now is 10:22.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi