Here’s a tip sheet that I wrote for some of our guys
For inquiring minds…
Robot Studio 5.08 saves module files differently than 5.07x. This will not be a problem if you don’t edit them outside of Robot Studio or don’t use them on 5.07x robotware robots…
If you do, then you’ll likely run accross the phenomenon below and you may find this useful…
First,
Module files created on 5.08 are not loading on robotware 5.07x robots (example: Lipskin laser)
This will show up as an syntax error in line 4 at the robot… Line 4 is a blank line… as far as the casual observer is concerned. Actually line 4 is “OD OD OA” (hex)
In version 5.07x it was “OD OA”… note, one less “OD”
Second,
When editing out the problem in line 4 by using notepad or wordpad to delete the first 4 lines, the module has other syntax errors.
While removeing the first 4 lines is perfectly okay… what notepad and wordpad and Word do to the rest of the file is not okay.
Module files created on 5.08 have “line ends” that are made up of "OD OD OA "… again, note the extra “OD”
5.07 files modules have line ends that are made up of "OD OA " (one less “OD”)
When saving a 5.08 gen’d module file …
Notepad will replace the "OD OD OA " with “” (nothing… it just deletes it)
WordPad will replace "OD OD OA " with “20”(hex)
… the above 2 cases result in a file with 1long line and will not be loadable to the robot.
WORD will replace "OD OD OA " with "OD OA OD OA " (so long as you don’t select the wrong options when saving)… This is okay, so long as you don’t mind all the extra lines(basically Word is smart enough to know that OD OD OA is not a valid line ending sequence and will fix it by adding an OA between the two ODs,… thereby creating a second line after every line.)
FYI
OD == Carriage Return
OA == LineFeed
20(hex) == Space(visible character usually created by the spacebar)
OD OA == Carriage Return/LineFeed … an widely used method to end text file lines(non visible character sequence, usually created by the enter key.)
OD OD OA == a pain in neck
How to fix for 5.07x robotware robots!
Option 1
Use RS 5.08 (program editor) to delete the first 4 lines out and save the file from there.
Option 2
Edit with “Beyond Compare” … (delete first 4 lines…etc)
Option 3
Edit with Word,… (delete first 4 lines…etc) BUT perform an advanced replace of dual line ends prior to saving…
I’m sure there are other ways, let me know what they are if you come up with any.
till then…good luck,