![]() |
No compressor light on PCM, no compressor power, no CAN recognition of compressor
I'm with a rookie team. We're programming in Java and trying to figure it out as we go. We have no real Java experts, and can't figure out if we have a hardware issue or a coding issue. All of lights on our PCM work except for the "Comp" light, which does not turn on at all. Our compressor works when we supply direct power, but we can't seem to power it through the PCM. When we run the self-test, the computer does not seem to recognize that a compressor is attached.
We tried creating a c.setClosedLoopControl for the compressor, and we tried to just create a DoubleSolenoid, but nothing responds. Can anyone tell me how to tell if we got a bad PCM, and what can I do about it if we did? Alternatively, is there any kind of very basic Java code we can plug in just to rule out bad programming as the issue? |
Re: No compressor light on PCM, no compressor power, no CAN recognition of compressor
We aren't doing pneumatics this year on my team, so I'm not familiar with the new system except that I've read some of the documentation. Here are some initial questions (sort of at the "is it plugged in" level) that might help solve your problem:
|
Re: No compressor light on PCM, no compressor power, no CAN recognition of compressor
Please take a picture of your PCM, solenoid, and PDP where the PCM wires to.
|
Re: No compressor light on PCM, no compressor power, no CAN recognition of compressor
Make sure you have at least one Solenoid or DoubleSolenoid decleared in your code. The compressor will not be initialized without having at least one:
Code:
Solenoid name = new Solenoid(1);Code:
package org.usfirst.frcEasyJ.team5122; |
Re: No compressor light on PCM, no compressor power, no CAN recognition of compressor
Just release a new PCM User's Guide today...
http://www.crosstheroadelectronics.c...ol_system.html ...please read section 4.1 and follow the steps in order to help troubleshoot. |
Re: No compressor light on PCM, no compressor power, no CAN recognition of compressor
I'm not sure if you can tell what's what on this photo, but I think everything pretty much matches the wiring diagrams with the exception of the CAN cables, which I reordered to match GeeTwo's suggestion to have the CAN bus terminate at the PCM. Based on the new manual, it looks like we may have software issues.
|
Re: No compressor light on PCM, no compressor power, no CAN recognition of compressor
Quote:
RoboRioThat said, my team wired the CAN bus wrong, and it still worked. |
Re: No compressor light on PCM, no compressor power, no CAN recognition of compressor
You're right. Thanks. I'll switch it back, but I honestly didn't notice any difference between the way the robot responded when wired with either of those two arrangements.
|
Re: No compressor light on PCM, no compressor power, no CAN recognition of compressor
If your CAN is hosed (disconnected of wired wrong) you will get a red light on the PCM status indicator. Make sure everything is green.
Check your pressure switch. It should be a normally closed switch, so you should sense continuity (using a meter) across the wires going into the PCM. If the status is green, and the switch if closed, but are the PCM indicator is flashing showly, and the compressor will not start, then it probably still disabled and you need to look into the code. Please also remember the code suggestions given above. The compressor WILL NOT start unless either the compressor/PCM is defined in the code or there is some pneumatic element (solenoid) defined. If you don't have any solenoids defined you will need to define the compressor: Code:
public status final Compressor myCompressor = new Compressor(0); |
| All times are GMT -5. The time now is 05:47. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi