cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Relation Syntax

dfdills
1-Visitor

Relation Syntax

need to write a conditional statement in the relations for NC sequence parameters. Specifically I need to know the if, then syntax.

For example;

if S >10000 then SPINDLE_SPEED = 10000

else SPINDLE_SPEED = S

Where S has already been set equal to an RPM calculation.

Joe Flock

CNC Programmer

joe.flock@machspec.com - please let me here, My friend is posting my question. thanks


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
1 REPLY 1

No conditional statements are allowed in the relations at the NC sequence parameters. However you can create if then relations at the nc sequence feature to control this. To do that, you can click on "Relations" (At MFG menu), in the field "Look in" select "Feature" and then click on the nc-sequence you want the custom relations. Then you can create this custom relation:



IF SPINDLE_SPEED > 10000
SPINDLE_SPEED = 10000
ELSE
SPINDLE_SPEED = SPINDLE_SPEED
ENDIF

However this method is not associative. If you change the max rpm the sequence will keep the last limit value calculated you set as the max rpm. I think it does not solve your problem.

Question: if you want to limit the max RPM of the NC-sequence, why don´t you set the max RPM you want for that sequence in particular at the parameter MAX_SPINDLE_RPM or setting the MAX RPM at the workcell?





























Daniel Santos
Suporte Aplicações CAM
GE Oil & Gas

T +55 11 4772-3565
M +55 12 8173-6567
F +55 11 4772-3775
-

Rodovia de Acesso João de Góes, 2300
Jandira - São Paulo - 06612-000 - Brasil
Vetco Gray Óleo e Gás LTDA

GE imagination at work
Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags