![]() |
Programming Limit Switch
I am the programmer for my team, and I am curious how to program a limit switch. I cant seem to find any documentation or code snippets elsewhere on the internet.
|
Re: Programming Limit Switch
Initialize limit switches as a digital input:
Code:
DigitalInput switch = new DigitalInput(channel)Code:
if(switch.get()) doSomething(); |
Re: Programming Limit Switch
What Signet said.
Also, if you ware using the Command Based structure with Java you can set the limit switch up to act as a button to fire a command. Code:
final DigitalInput limitSwitch = new DigitalInput(1); |
Re: Programming Limit Switch
Quote:
So you just need: Code:
Button limitSwitchButton = new DigitalIOButton(1); |
Re: Programming Limit Switch
Quote:
|
| All times are GMT -5. The time now is 22:35. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi