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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Clamping subroutine for Fil

wolfymik
1-Newbie

Clamping subroutine for Fil

I am inexperienced at FIL programming and have been having difficulty
figuring out the correct code.

I would like to have the post do the following:

If ncl is showing clamp/manual,on,on
then insert m47
else if ncl is showing clamp/manual,off,off
then insert m46
end if

How do I represent this in FIL language.

Thank you,

Michael Wolf


The information contained in this communication may be CONFIDENTIAL and is intended only for the use of the recipient(s) named above. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please notify the sender and delete/destroy the original message and any copy of it from your computer or paper files.

1 REPLY 1
flamy
10-Marble
(To:wolfymik)

Michael,

Here is a basic FIL macro (not optimized but I do not know all the other options you may have for the CLAMP syntax) :

CIMFIL/ON,CLAMP
$$ start macro on CLAMP/....
ARG1=POSTF(7,4) $$ First argument
ARG2=POSTF(7,5) $$ second argument
ARG3=POSTF(7,6) $$ third argument
IF (ARG1.EQ.ICODEF(MANUAL)) THEN
$$ THis is a CLAMP/MANUAL ...
IF( (ARG2.EQ.ICODEF(ON)) .AND. (ARG3.EQ.ICODEF(ON)) ) THEN
$$ this is a CLAMP/MANUAL,ON,ON
INSERT/'M47$'
ENDIF
IF( (ARG2.EQ.ICODEF(OFF)) .AND. (ARG3.EQ.ICODEF(OFF)) ) THEN
$$ this is a CLAMP/MANUAL,OFF,OFF
INSERT/'M46$'
ENDIF
ELSE
$$ not CLAMP manual, process normally
XX=POSTF(13)
ENDIF
CIMFIL/OFF


Regards

<http: www.ptc.com="/> François Lamy
Director Manufacturing Products Management

Die Making <http: www.ptc.com=" go=" diemaking="> | Mold <http: www.ptc.com=" go=" mold="> | NC <http: www.ptc.com=" go=" cam="> | Inspection <http: www.ptc.com=" go=" cmm=">

Announcements
Business Continuity with Creo: Learn more about it here.

Top Tags