|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Pneumatics Code Questions
Hey everybody,
I have two questions about the pneumatics code in C++. First of all, when you are initializing the solenoids with the "s = new Solenoid(x, y)" statement, what are the two arguments 'x' and 'y'? One of them is clearly the digital port on the cRIO but what is the other and what is the order of them? Also, on the cRIO, one of the PLCs (or whatever they are called) is made for the solenoid ports. Which slot does this go into on the cRIO board? Thanks for the help! |
|
#2
|
|||
|
|||
|
Re: Pneumatics Code Questions
The solenoid module goes into slot 8 on the cRIO by default. If you have a second solenoid module, put that into slot 7. Every solenoid connected to one module has to operate on the same voltage e.g. all 12V or all 24V.
Code:
Solenoid *m_solenoid_1; ... m_solenoid_1 = new Solenoid(1); |
|
#3
|
||||
|
||||
|
Re: Pneumatics Code Questions
for a solenoid on module 8, connected to the first set of pins, Solenoid(8,1), or you can abbreviate it Solenoid(1) if it is on module 8
|
|
#4
|
|||
|
|||
|
Re: Pneumatics Code Questions
thanks so much for the help everybody
Last edited by dnrobotics11 : 20-02-2010 at 10:45. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pneumatics Code | dnrobotics11 | C/C++ | 5 | 15-02-2010 19:29 |
| Pneumatics Code | nighterfighter | C/C++ | 16 | 12-10-2009 17:52 |
| questions regarding <R73> [pneumatics rules] | smcmahon | Rules/Strategy | 3 | 16-02-2009 12:47 |
| Pneumatics Questions | RAWdealer59 | Pneumatics | 1 | 17-02-2003 12:10 |
| Pneumatics parts list questions | archiver | 2000 | 1 | 23-06-2002 22:48 |