need some help with programming
b0ib0i07
Posts: 33
My intention is to program a motor with feedback.
I want to program it in such a way that if the feedback is between value A to value B, the motor will stop.
* If ????? THEN
pulsout 14, 750
Any1 can help me with the question mark??
* using BS2 and HB25 *
I want to program it in such a way that if the feedback is between value A to value B, the motor will stop.
* If ????? THEN
pulsout 14, 750
Any1 can help me with the question mark??
* using BS2 and HB25 *
Comments
Suppose it was a switch connected to pin 1: (this is not a compete program)
if in1 = 1 then
pulsout 14, 750
endif
Or, suppose you were tracking pulses from an encoder:
if pulscount > 400 AND pulscount < 500 then
pulsout 14, 750
endif
There are other possibilities.