GeorgeC
11-02-2007, 17:43
Can anyone help with an easyC mindbender?
I've used all of my available spike relay controllers and programming limit switches using them in easyC was straightforward.
Now i need to control a motor using PWM and a limit switch but I can't think of how to code in a limit switch.
What I want to do is program something like if limit==0 then PWM1 ==<127. However in easyC I can't see the actual variable to assign my values to.
I guess that PWM outputs are to program drive motors which don't usually need limit switches.
Anyone got any ideas?
I've used all of my available spike relay controllers and programming limit switches using them in easyC was straightforward.
Now i need to control a motor using PWM and a limit switch but I can't think of how to code in a limit switch.
What I want to do is program something like if limit==0 then PWM1 ==<127. However in easyC I can't see the actual variable to assign my values to.
I guess that PWM outputs are to program drive motors which don't usually need limit switches.
Anyone got any ideas?