What's new
What's new

Probe Macro Code issue

roamer

Aluminum
Joined
Dec 2, 2008
Location
Az
I have a 2005 VF-2 that I added probing to.
I have the spindle probe working great for X and Y, and Bore measuring.
Today I finally had a chance to finish up the wiring for the OTS.
I got the OTS calibrated, and the Spindle Probe calibrated to the OTS.
When I attempted to use the Spindle Probe to measure the Z surface I get an alarm,
522 ILLEGAL ASSIGNMENT VAR OR VALUE.
It appears the Macro is a newer version than what I need.
It looks like its trying to determine if the machine has Sigma 1 or Sirgma 5 motors.
I'm not as savvy as many with macros, but I'd like to eliminate this check and code it to be Sigma 1.
Looks like it's attempting to write to a variable that didn't exist on this control.
Any Macro Masters out there see an edit they can recommend?

Alarm.jpg
 

Attachments

  • Alarm.jpg
    Alarm.jpg
    91.5 KB · Views: 37
.
.
.
#179=1
#169=2500
GOTO500


I would put a block skip (/) in front of the other lines and test the probing cycle with Block Skip on.
If it works then just delete the lines.
 
That didn't work. It gave me a Feedrate Exceeded alarm.
From another forum I found this to work,,

"The macro is trying to read parameter 774 (X encoder type), which your control does not seem to have.
Try this:
- Erase the "#6996=774" line.
- Replace "#162=#6998" with "#162=7"
"
 
I got it to work by Not trying to read a variable thats not there. 774 is not available on my machine.
This macro is a later version than my control.
I just forced it to be Sigma 1 motors, witch it is.
 








 
Back
Top