Go to Post It's 9:00 Do you know where your bott is? - Michelle Celio [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 12-02-2009, 16:02
Zellboy Zellboy is offline
Registered User
FRC #1203
 
Join Date: Jan 2009
Location: West Babylon
Posts: 4
Zellboy is an unknown quantity at this point
Limit Switch problem

We're trying to program a digital input with a limit switch. How do we set the if statement?

This is what we have so far

Code:
if(Clamplimit -> Get() > 0)
{
       s[0] -> Set(false);
       s[1] -> Set(true);
}
Is it correct?

Last edited by Zellboy : 12-02-2009 at 16:29.
 


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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
limit switch solomason519 Programming 9 09-02-2010 08:50
Limit Switch Problem Boydean Programming 3 13-02-2008 16:32
Using a limit switch to limit motion ManicMechanic Programming 16 20-12-2007 00:54
limit switch wedellm Electrical 4 16-02-2007 13:01


All times are GMT -5. The time now is 02:24.

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