I know this, but it seems you do not fully understand.
I need to write code in arduino to understand what is send to it.
This macro basically sends
30 toolnumber 13
but in Hex format. This is what I'm asking, so I figured it out myself.
ToolCommand = &H1E 'Tells microcontroller the job is tool change
JobDone = &HB6 'Micro sends this value when the job is done
CReturn = &H3E 'Value of carriage return in Hexadecimal
This is in the macro and gets appended to be send as a complete message.
I need to know how this macro is send over RS232 (Not rocket science I assume)
which I did figure out without using Swahili.
&H1E this is the same as 0X1E which is Hex format for a Record Seperator
&H0D this is the same as 0X0D ehich is HEX format for Carriage Return
Now I can not just randomly try to Parse this in arduino as it will not work. but what I can do is use both of these as Start and end markers. That is what they were intended for but I can replace them with my own start and end markers
ex. "<" and ">"
That way I can use only the integer value that is returned between my markers. That is exactly how this macro was written when it was made for the microcontroller.
So when everything is done I can use this: JobDone = &HB6 'Micro sends this value when the job is done
but instead of &HB6 I can use my own HEX value to send back to Mach3 and tell it the tool change has been completed.
Visual Basics and C++ are worlds apart therefore for them to communicate takes a different approach
The easy answer would have been for you to say '30 toolnumber 13' in HEX format but it seemed you did not understand this either.