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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Followup to problem with opskip

lococnc
1-Newbie

Followup to problem with opskip


Found where the problem is, just not sure how to fix it.
I have code in my FIL as follows;

$$ this routine will start the ROUTER PROCESS ENABLE G58
CIMFIL/ON,PIERCE
T4TH=POSTF(7,4)
CASE/T4TH
WHEN/ICODEF(ON) $$ Always want to turn pierce on when told to
INSERT/'M58$'
WHEN/ICODEF(OFF)
RSLT=POSTF(14) $$ Read the next command line to see if it turns pierce back on
RSLT=POSTF(20) $$ Save this read cL record
T5TH=POSTF(7,4)
IF(T5TH.EQ.ICODEF(ON)) THEN
$$INSERT/'DETECTED REPEAT$'
ELSE
$$INSERT/'NO REPEAT DETECTED$'
INSERT/'M59$'
RSLT=POSTF(21)
RSLT=POSTF(13)
ENDIF
ENDCAS
CIMFIL/OF

If I delete this code the opskip works perfect. What in the above code is causing the opskip to fail?
1 REPLY 1
JayCrook
5-Regular Member
(To:lococnc)

Hi,

Is there a line missing before the ELSE statement when performing the "IF" routine inside the "CASE" statement? Nothing is happening here that I see.

Jay Crook

Norse Dairy Systems

jcrook@norse.com

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

Top Tags