Operator problem


Results 1 to 16 of 16

Threaded View

  1. #7
    Join Date
    Dec 2012
    Location
    Türkiye
    Posts
    103


    Did you find this post helpful? Yes | No

    Default Re: Operator problem

    Hi Henrik ,
    Sorry for the late answer .. I was busy with becoming a freak of PID
    Well , the first modification I did is removing the acceleration feedforward and velocity feedforward block of the PID routine just to see the raw PID feedback mechanism works without any help of those and also due to lack of the memory of my pic16f628a ..
    And I just added a line on the main routine where it applies the calculated P+I+D = pid output to the CCPM registers .. But unlike yours , I used such a code below ;
    '------------------------
    ..
    ..
    gosub PID
    duty=duty+pid_out
    ..
    ..
    '-----------------------------

    Yet there is one more question digging my mind like hell about one code that you wrote in the INTEGRAL routine ...

    IF pid_Eit>0 then pid_Ei=0

    ...........

    Shouldn't we have cleared the pid_Ei temporary integral error accumulator storage for also the condition pid_Eit<0 ??
    Last edited by gunayburak; - 4th April 2014 at 08:49.

Similar Threads

  1. Can someone please explain the operator */
    By triton99 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 29th November 2011, 14:16
  2. // Division Operator
    By Dick Ivers in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 9th September 2011, 14:27
  3. Exponential Operator
    By andrewroz in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 31st October 2007, 08:00
  4. '*/' operator
    By jblackann in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th January 2007, 20:00
  5. math operator LOG
    By Eyal in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 22nd July 2004, 23:45

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts