-
VB.net and Picbasic Pro
Hi,
I have a Question ,did some one k'now how can I receive Bytes Values that are greater than 127 in Picbasic.
VisualBasic axample:
I use this SerialPort.Write("!" & Chr(1) & Chr(189) & vbCrLf)
This command work ! but When I put a Value In my CHR() Greater than 127 PicBasic dont recognize this Value.
I see on the Manual that I have on Picbasic just 127 Characters.
Ok but I need another simple solution to do this!
Picbasic:
hserin 10000,Receive,[WAIT("!"),Data[0],HEX Data[1]]
This work too but just when values are <=127.
Thank you for any Answer.
Regards
Pesti
-
Ok !
I have found the way,the Problem is in my VB.Net routine !
Maybe this help someone else!
Dim newMsg As Byte() = {33, 1, 189, 13, 10} ' 33 = !,1,Problem Byte 189,13,10
SerialPort.Write(newMsg, 0, newMsg.Length)
Regards Pesti