So I’m getting a compile error when trying to run a program & script that has been working for a few years now, with no known changes.
The error message is that GageHomeInternal is not defined.
Here’s the pertinent parts of the script:
GageHomeInternal = GageHome
GageHomeInternal[2] = GageHomeInternal[2] + gage_width_mGageHomeInternal[2] = GageHomeInternal[2] + .0087 - .001
GageHomeInternal[1] = GageHomeInternal[1] + .0226GageHomeInternalZ = GageHomeInternal
GageHomeInternalZ[2] = GageHomeInternalZ[2] + width_m - finger_length + 0.01movej(GageHomeInternalZ, a=0.5, v=1, t=0, r=0)
x
xA bunch of modbus stuff with stepper motor
x
xmovel(GageHomeInternal, a=0.5, v=1, t=0, r=0)
sleep(.5)
If you notice, that point is generated by copying it from GageHome and then modifying the x and Z values. GageHome and gage_width_m are defined and good - I can send the robot to GageHome.
Also note that the supposedly undefined GageHomeInternal is used to define another point - GageHomeInternalZ, without an error.
It’s only when it gets to the movel command that it doesn’t like GageHomeInternal.
Again, this has been working fine.
The only thing that we know happened between the last time this was successfully run and now is that I backed up all the programs & scripts on that control using an ftp utility (WinSCP), then deleted all the .bak* and .old* files from the control (using the same app).
It’s possible that something got corrupted in the process, but I can’t think of what might cause this.
The default.variables and default.installation files look normal.
I’m debating whether to continue to play around with it (simple program calling a version of this script which only includes the pertinent stuff), or just erase all the backed up files from the control and copy them back.