Jump to content

Variable Clearance Group


---
 Share

Recommended Posts

I'm currently programming a job which requires a loop of multiple single points using the RTG +X clearance group and then a move to RTCP +X clearance group so a rotary table move can be made without colliding with anything. 

 

How is this done using the formula function as this doesn't seem to want to work?

 

The below is the code I have included:

 

Presettings:

Clearance = "RTG +X"

if LOOP1 == 10 then

    Clearance = "RTCP +X"

endif

 

The variable "Clearance" is then put into formula under Clearance Group.

 

This is not working as Calypso comes up with the error:

Invalid parameter name!
Clearance)   ->   "RTCP +X"

 

Can anybody point me in the right direction for this please?

Link to comment
Share on other sites

UPDATE:

The error may have been due to a typo, where a close bracket was left the code after the variable name.

However a new error message appears:

 

"Undefined Clearance Plane:  RTCP +X"

Link to comment
Share on other sites

 Share

×
×
  • Create New...