We are having trouble wiring the Festo Solenoid and getting the cRIO to recognize it. We plugged the two wire cables into the solenoid breakout in slots 1 and 2, but nothing on the breakout is lighting up. Any help would be appreciated.
What does the rest of your wiring look like in regards to the breakout? Where is your power coming from/going to?
Do you mean that none of the double-bank of green lights on the cRIO module are lighting up? That would mean your code is not ordering them to.
First, get the cRIO module’s green LEDs to respond to your code commands.
Second, wiring 24v power properly from the spare 24v connections on the Power Distribution Panel will get the power LED on the Solenoid Breakout to light up.
Third, wiring the Festo valve correctly to the Solenoid Breakout will get the lights on the valve to light up as it is set to Forward/Reverse. Wired backwards can still make the Festo valve lights light up, but the valve won’t move.
The Power light turns on, but I think the problem is in the coding. I used the example that was on 358’s site, but there are red boxes on the inputs of the solenoid open and the true/false block. Is this causing the breakout to not recognize the solenoid, and how would we go about fixing this?
If I understand your description, the red means the inputs were incorrectly formed and doesn’t match the type expected by the vi.
- Delete the ones with red
- Position your cursor over the input node on the vi, right-click and choose Create -> Constant
- You should get the correct input types.
You can post a VI snippet for me to double check if you like.
Highlight the section of code that has the red, then go to Edit -> Create VI Snippet from Selection
that creates a png image that has embedded code. I can then drag that onto a blank vi and have a working copy of your code problem to help debug.
Thanks! I’ll try that at our next meeting. If I do something wrong I’ll post the code.