QUOTE
I guess i need to start fixing the Time Mode first
as I've already said, I'd STRONGLY recommend AGAINST that ...
if you don't know how to retune the loop, then you’ll be just asking for trouble (and embarrassment) by changing the timing mode ...
YOU NEED TO FIX EVERYTHING AT ONE TIME! ...
simply put: if you ONLY fix the timing mode issue and do NOT retune the system, then the system is probably (almost ASSUREDLY) going to work WORSE and not better ...
now you could try the following approach: ... make CAREFUL and DETAILED notes about how EVERYTHING is set up ... and make a BACKUP copy of the program ... then (and ONLY then) try to “fix the timing” ...
my best guess from here is that you’re going to want to put everything right back like it was REAL SOON because you’re not going to know how (no offense intended) to re-tune the loop to work “satisfactorily” using the correct timing arrangement ... did you read the post that I suggested about Bubba’s paycheck? ... if you did, and if you understood what I was saying, then you wouldn’t be in such a rush to trying fixing this system “one-step-at-a-time” ...
now I am NOT saying that you can’t learn to retune the loop ... and I’ll even do what I can to help you learn the necessary skills - for free ... but UNTIL you know how, I’d be very careful about upsetting the existing apple cart ...
here’s another shot at the Bubba’s paycheck idea:
QUOTE
suppose that my neighbor proudly tells me that he just got a raise - and now he’s making $2.00 per hour ...
“What?,” I say ... “How can you possibly live on such a low income?”
my neighbor explains, “There’s a problem with the computer. Instead of paying me just ONE paycheck for 40 hours ONCE a week, the company hands me a 40-hour paycheck EVERY single workday.”
math time: $2.00 per hour times 40 hours = $80 times 5 checks per week = $400 per week ... not too bad ...
“I’ve never heard of a crazy system like that. Why don’t they fix it?”
“The accountants say that it works ok - so why bother? As long as the money comes out the same, I don’t care.”
I just walk off shaking my head ... a couple of weeks later, my neighbor wants to borrow some money to pay his rent ...
he tells me, “Somebody finally fixed the computer problem. Well, at least they fixed PART of the problem. They stopped paying me every day - so now I only get ONE 40-hour paycheck a week. So at least they got that part right. But here’s the kicker - they’re still only paying me $2.00 per hour. They say it’s going to take awhile before they figure out how to re-adjust my hourly rate. In the meantime, I’m not making enough to live on.”
math time again: $2.00 per hour times 40 hours = $80 times 1 check per week = $80 per week ... not good at all ...
and now we come to your loop ... your PID is set up “wrong” ... and as a result of that, it’s calculating a “paycheck” EVERY time the rung gets executed ... but ... whoever originally tuned the system, didn’t know that the setup was wrong ... and somehow (obviously through trial-and-error) he got the system tuned well enough to work “ok” ...
now you want to “fix” the timing problem ... good idea ... but if you’re not careful, you’re going to only fix ONE PART of a TWO PART problem ... and until you figure out how to retune the system to work with the CORRECT timing, the system is NOT going to work better - it’s probably (almost assuredly) going to work WORSE ...
now here’s what I’m going to recommend - and I’m almost out of typing time ...
put the system in the manual mode ... ask if you don’t know how ... crank in a reasonable - but LOW - value for the CV - maybe 10% or so ... now let the system settle out - for HOURS if it takes that long ... but make SURE that the PV is dead level ... specifically, the PV is neither rising nor falling ... most people call this a “steady state” condition ...
you should already have a trend graphing the CV and the PV ... since we’re dealing with the manual mode, the SP doesn’t enter into this at all ... don’t even trend it ...
now (still in the manual mode) crank the CV up to a reasonable - but significantly HIGHER level ... maybe 60% if (but ONLY if!) that amount is safe for your system ...
watch the trend ... wait until the PV finally settles down again (give it HOURS if it takes that long) ... specifically, the PV must be neither rising nor falling ... another “steady state” condition ...
the graph should look something very close to this:
[attachmentid=4297]
once everything has “settled out” again, stop the trend and capture the data ... post the picture - and the data ... a LOT of folks will tackle your tuning problem “with great exuberance” - and soon you’ll have a series of suggested “tuning” values for your Kc, Ti, and Td settings ...
at THAT point, then you can try fixing the timing problem - and have a reasonable chance of successfully getting the system back into operation ... AND ... (most important) you’ll have a system that can be reliably tuned - and optimized - using commonly accepted tuning practices ...
QUOTE
how can i save as .dbx file ?
see if
this post helps ... some software versions are different - but this should get you started ...
finally ... PLEASE pick just ONE of your threads and stay in it ... it’s driving some of us crazy going back and forth to cover the same subject ... (well, at least I’M going crazy - but then that’s not a long trip for me)...