Hi,
I use visual basic 6 and arduino uno,
I need to send two number from vb6 to arduino first
and the arduino receive this 2 value then send to pc again .
from example:
in vb6 x= 44 and y= 55 ( I need to send 44 and 55 to arduino,)
when arduino receive 44 and 55 then resend to vb6.
i send number from vb6 to arduino, and arduino send to vb6 what receive.
not important if code in vb6 or other, if other i will try to convert to vb6, i need the idea of code, how can i send 2 thing.
Are you sending 44 as a string of two characters or as a single byte with the value 44? These require different approaches. You code only reads a single character.
I am working on a demo of how to do what you want (and similar stuff) which I hope to post later today.
A single byte for a numeric value for a CNC machine implies very limited movement.
Did you really mean send 44 as a single byte, or as two ASCII characters with the values 0x34 0x34?