Hi guys
I know PID has been well discussed hereabouts, but here's another I'm afraid.
I'm in a position where I need to effect PI control (I'll throw the D in for future-proofing) in a motion controller i.e. no luxury of ready rolled PID instruction (apart from the 500us servo loops, of course!). I'll be encrypting, I mean coding in BASIC.
Anywho, I've started from scratch, but have a few fundamental q's.
1. Starting with P. If the error is zero, then the P component of the output will be zero, but i need it to be maintaining 70% (say)
So, should the P component accumulate the current output each cycle?
2. What's opinion on whether the P gain should apply to the I and D too, or just the error. I've seen examples of both during my rooting around. Hope that makes sense.
Cheers, Pp
I know PID has been well discussed hereabouts, but here's another I'm afraid.
I'm in a position where I need to effect PI control (I'll throw the D in for future-proofing) in a motion controller i.e. no luxury of ready rolled PID instruction (apart from the 500us servo loops, of course!). I'll be encrypting, I mean coding in BASIC.
Anywho, I've started from scratch, but have a few fundamental q's.
1. Starting with P. If the error is zero, then the P component of the output will be zero, but i need it to be maintaining 70% (say)
So, should the P component accumulate the current output each cycle?
2. What's opinion on whether the P gain should apply to the I and D too, or just the error. I've seen examples of both during my rooting around. Hope that makes sense.
Cheers, Pp