
Originally Posted by
jetpr
hello this is my code of 3 Years off my hobbies Turbines for Models
A few things to note at first look at your code...
There's a few places where you've got a GOTO followed by a GOTO. The code isn't ever going to get to that 2nd GOTO. You might have actually meant to put a GOSUB followed by a GOTO...unless it's just a change that you haven't removed.
There's at least 1 IF/THEN statement that doesn't look right. I think it's in the Autostart file.
Code:
if (EGT > 300) and (RPM > PumpAdd +10) and (FlameOut_1=0) then FlameOut_1=1: gosub opengasoff 'Close Gas Valve
A single line If/Then with a colon in it generally doesn't work. If it was me, I'd use:
Code:
if (EGT > 300) and (RPM > PumpAdd +10) and (FlameOut_1=0) then
FlameOut_1=1 : gosub opengasoff 'Close Gas Valve
endif
Is that zip file the actual code you are programming into your PIC and using right now?
Oh...987 lines is what I got it down too
Bookmarks