Hi,
I’m trying to programmatically load motor programs onto SM23 motors (class 4). I write a SMS file within the Smartmotor Interface, and then ‘CompileCompile Downloadable SMX File’, send a ‘LOAD’ command to the motor, and send the contents of the *.smx file 8 bytes at a time, and append xFF. This all works fine.
But I’d like to also read back the contents of the motor program to verify that the transmission succeeded. I use the ‘UPLOAD’ command to receive the contents, and compare it to the *.smx file. The only issue I have is that the SMX file is not 100% verbose, and replaces certain commands with other characters (i.e. ‘IF’ becomes ‘$I003F’). The uploaded program has the verbose, SMS text.
Do you have suggestions on how to verify a motor program’s contents? Is it possible to send a SMS file instead of a SMX file (I guess I could just try this)? I could do a search and replace on the SMX file, but swaps don’t appear to be consistent (i.e. ‘WHILE’ becomes ‘$W0059LE’ and ‘$W0083LE’ within the same file). Thanks for any help.
-Joe McFerron