If the PC is not sending A, B, C and D in the proper sequence, the motor will not turn, MODATA will hold the motor in place.
Robert
If the PC is not sending A, B, C and D in the proper sequence, the motor will not turn, MODATA will hold the motor in place.
Robert
Hi,
Both are equally fine.CASE works with a value and not with strings but you can use the ASCII value.
So CASE "1" should be CASE 49
and CASE "A" should be CASE 65
CASE "A", CASE 65, CASE $41, CASE %01000001 all works and does the exact same thing.
/Henrik.
Last edited by EarlyBird2; - 22nd June 2014 at 10:34.
Steve Earl www.datageo.co.uk
Hi,
I have no idea... All I can say is that CASE "A" works perfectly fine for me, I use it extensively in several applications, as an example, here's a snippet:But CASE "A" did not work but CASE 65 does. Or does it?/Henrik.Code:Select Case CmdBuffer[0] ' Decide what to do based on the first character in the buffer CASE "A", "a" ' Set accleration feedforward GOSUB ReadCmdBuffer If ValueReceived then pid_Acc_kFF = RxValue MenuLine = 6 PrintLine = 1
Hello friends
Now I'm more confused
For example I do not understand anything too advanced for min
I do not know what else to mofificar my program
To control DC motors all works fine
I thank all of you for the tension
sorry for your time.
Thank you all for having me conpartilhado your knowledge at Pic basic pro
![]()
Last edited by cesar35; - 22nd June 2014 at 14:57.
Colega, você é do Brasil? Pelo programa (frente/tras/dir/esq) e pelo seu nome achei que sim! Se for fica mais fácil da gente trocar idéias pq meu inglês tá mto ruim, kkk!
Manda um email privado confirmando que a gente troca uma idéia. Eu uso servo com sucesso e acho que posso te ajudar. Abraço
Pimentel
Bookmarks