Could you explain more "I have no command (RX) not working AC motors. Could you tell me why (RX) does not work."Originally Posted by cesar35
RX has the value "X" and the servo works so how is RX not working?
Steve Earl www.datageo.co.uk
Hello
After modifying (DEC POS) The RX does not work
I can send data to the rx ac motors not working.
So the servant move
I used (Servo gosub)
The servant problem has already works better
Thank you all.
serin2 RX_inp,16468,500,PAR,[wait("PC"),RX,DEC POS]
IF RX = "A" THEN FRE
IF RX = "B" THEN TRA
IF RX = "C" THEN ESQ
IF RX = "D" THEN DIr
GOSUB SERVO
GOTO PROG
SERVO:
servo1 = 1
PAUSEUS 1000 + pos
servo1 = 0
Pause 16
RETURN
You are saying that POS is received and works but "X" is not received.
Steve Earl www.datageo.co.uk
I noticed he changed HIGH/LOW to 1/0.
Robert
Edit: (if I'm awake) a bipolar motor needs the 4 inputs to vary in a specific order (one for CW, one for CCW).
If you keep turning on the motor but these don't change state, I think you end up with the motor holding position.
Last edited by Demon; - 20th June 2014 at 12:55.
As I said the command RX does not work.
Here's a video made in proteus.
The code you are running is not the code in #5 and #19.
Please post the code you are using.
Steve Earl www.datageo.co.uk
RX is not a command. RX is a variable which is assigned an ASCII code when serin2 is executed.As I said the command RX does not work.
I see you changed IF THEN to SELECT CASE. SELECT CASE is for values and not ASCII characters like "A".
Did it stop working when you made these changes?
Did you make these changes because it did not work with IF THEN?
Is the servo working if not has the servo ever worked?
Steve Earl www.datageo.co.uk
Bookmarks