Go to Post A good teacher always needs to be a good student - Redhead Jokes [more]
Home
Go Back   Chief Delphi > Old Forum Archives > 2001
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-06-2002, 23:58
archiver archiver is offline
Forum Archival System
#0047 (ChiefDelphi)
 
Join Date: May 2001
Location: Pontiac, MI
Posts: 21,214
archiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond repute
Programming PBASIC for pneumatics

Posted by Will Korinek at 2/1/2001 9:44 AM EST


Student on team #646, Mechanical Animals, from Sayville High School and Computer Associates.



OKAY this may get complicated, for our robots arm, we chose to use pneumatics. We want to know if anyone has any idea what to include in our PBASIC code that will allow the air compressor to turn off when it reaches the specified PSI on the relay. And also turn it on when the PSI drops. Any help is much appreciated...we know that the code is dealing with the digital inputs and outputs, we just need to make some sense of the pbasic..

Thanks,
Will Korinek
Team 646 Sayville Mechanical Animals
Sayville High School
Sayville New York



__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
  #2   Spotlight this post!  
Unread 23-06-2002, 23:58
archiver archiver is offline
Forum Archival System
#0047 (ChiefDelphi)
 
Join Date: May 2001
Location: Pontiac, MI
Posts: 21,214
archiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond repute
Re: Programming PBASIC for pneumatics

Posted by Josh Vetter at 2/1/2001 9:59 AM EST


Student on team #548, Robostangs, from Northville High School and BOSCH.


In Reply to: Programming PBASIC for pneumatics
Posted by Will Korinek on 2/1/2001 9:44 AM EST:



Check out the white pages, there is one about wiring and programming pneumatics. But if you don't want to read all of that, here is what it says about programming it:

In this example, the pump is controlled by the spike relay 5 output, and the pressure switch is on robot controller digital input 1 (input – pin 1 and ground pin 3). This code is inserted in the main loop of the robot controller program.

' Test the state of the pressure switch
if rc_sw1 = 1 then pump_on ' jump if under the pressure limit

' 110 psi pressure limit has been reached
' turn pump off
pump_off:
relay5_fwd = 0
relay5_rev = 0
goto nextaction:

' turn pump on
pump_on:
relay5_fwd = 1
relay5_rev = 0

nextaction:

Josh Vetter
P.s. you may want to add a delay before the pump turns off so that the pump doesn't cycle.
__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
  #3   Spotlight this post!  
Unread 23-06-2002, 23:58
archiver archiver is offline
Forum Archival System
#0047 (ChiefDelphi)
 
Join Date: May 2001
Location: Pontiac, MI
Posts: 21,214
archiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond repute
Re: Programming PBASIC for pneumatics

Posted by Joe at 2/1/2001 9:28 PM EST


Student on team #506 from St. Anthony's HS.


In Reply to: Programming PBASIC for pneumatics
Posted by Will Korinek on 2/1/2001 9:44 AM EST:



I posted a question below about this. You may wish to take a look at it. The answers I recieved helped me alot. I'm sure they could help you too.





__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming with the PBASIC Tokenizer Raven_Writer Programming 12 05-01-2003 15:27
PBasic Question Melissa H. Programming 28 17-11-2002 18:53
Programming the second joystick in PBASIC archiver 2001 2 24-06-2002 00:25
pbasic programming punarhero Programming 4 21-01-2002 23:32
Simplifying PBasic IDiggles General Forum 16 06-11-2001 01:36


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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