Cliff, after some more experiments, it would appear that any comment character in my test script will “crash” my VXM. After I send one 0d59 (0x3B), I can’t recover the VXM with my app.
At that point, I then have to close the port, open up COSMOS, and simply execute an absolute position change (or other command). Then the VXM is “back to life” again. It’s as if the COSMOS is sending some magic packets that are undocumented.
Another question: does the COSMOS somehow format the comment character (semicolon) differently when it sends scripts?
--
You received this message because you are subscribed to the Google Groups "Velmex Controls" group.
To unsubscribe from this group and stop receiving emails from it, send an email to velmex-contro...@googlegroups.com.
To post to this group, send email to velmex-...@googlegroups.com.
Visit this group at http://groups.google.com/group/velmex-controls.
For more options, visit https://groups.google.com/groups/opt_out.
carriage_return := 13 ;CR - 0x0D
Loop
{
FileReadLine read_line, %output_script_file%, %A_Index%
if ErrorLevel ;break when reached end of file
break
Loop Parse, read_line ;now send the lines, one byte at a time
{
ascii_byte := Asc(A_LoopField)
Bytes_Sent := Serial_Write(COM_Handle, ascii_byte)
}
Bytes_Sent := Serial_Write(COM_Handle, carriage_return) ;send a carriage return at end of line! (comment strings without CRs will corrupt script load)
}