Jump to content


Photo
- - - - -

PID Instruction


  • Please log in to reply
6 replies to this topic

#1 lchamarthi

lchamarthi

    Sparky

  • MrPLC Member
  • PipPipPip
  • 155 posts
  • Location:India
  • Interests:Automation in Omron, Reading and listening to Music
  • Country:India
    India

Posted 07 July 2006 - 01:06 AM

Hello All,

Could anybody give quick help in PID instruction..?

PID(190)
Source value: B35
Control Word: C:DE4
C+1:64-----P
C+2:100----I
C+3:190---D
C+4: 30--Time
C+5: I kept 1000.....But really didn't understand what it is from manual..?
C+6: Kept 404......This also i didn't understand from manual waht it is doing?


With the above settings i didn't see any result in the output word.

I am using CJ1M-CPU13 & DA041 Module to take 0---FA0 as resolution


Please help me quick....

Thanks in advance
lchamarthi

#2 alberto05

alberto05

    Sparky

  • MrPLC Member
  • PipPipPip
  • 41 posts
  • Country:Spain
    Spain

Posted 07 July 2006 - 06:33 AM

[quote name='lchamarthi' date='Jul 7 2006, 08:06 AM' post='36513']
Hello All,

Could anybody give quick help in PID instruction..?

PID(190)
Source value: B35
Control Word: C:DE4
C+1:64-----P
C+2:100----I
C+3:190---D
C+4: 30--Time
C+5: I kept 1000.....But really didn't understand what it is from manual..?
C+6: Kept 404......This also i didn't understand from manual waht it is doing?


With the above settings i didn't see any result in the output word.

I am using CJ1M-CPU13 & DA041 Module to take 0---FA0 as resolution

hi,

The PID function is rellally strange, try with this values:

c+5:#0002
c+6:#1494 (there is an error in manual w340-e1-06 (seite 666, bits 04 to 07 of c+6, bits 00 to 03 of c+6, column 1, files 4 and 5), must be 4-->5 and 5-->4
c+4:put &0100
c+3:put &0000
c+2:put &9999
c+1:play with this, for example&0010 (c+1 is not P constant, is the proportional band (BP=100/P)

so, if you have: source &0002
control &0005
then error is 3, with a BP=100, P=1, so output must be &0003, if BP=50 ---output:&0006

the integer factor is, for example, if sampling period is &0100(1s, units in 10ms), and c+3=&0003, then, with the same source and control, you will have 3,6, 9,12,..., each second add 3 to the output.

sorry, i have not more time.

hope this help you, i am not sure how the pid works but.... For example, if the source change very fast ( an input step), the pid take a time to actuate (they call it overshooting prevention)

#3 lchamarthi

lchamarthi

    Sparky

  • MrPLC Member
  • PipPipPip
  • 155 posts
  • Location:India
  • Interests:Automation in Omron, Reading and listening to Music
  • Country:India
    India

Posted 09 July 2006 - 12:32 PM

Hello All,



I have implemented one PID instruction in the attached code. In the result word always it is giving &4095 constantly regardless of what ever the set value. My expectation i think it should give zero when the Process value is more than Set value.
I couldn't able to find what i am doing mistake in this. Can anybody help me out quickly in solving this.
Becuase I have to submit this project by tomarrow morning. I will be very thankful to them.

Please find the attached code.
Thanks in advance.....& hope to get reply.

Lchamarthi

Attached Files



#4 Bill Estey

Bill Estey

    Sparky

  • MrPLC Member
  • PipPipPip
  • 26 posts
  • Country:United States
    United States

Posted 10 July 2006 - 12:00 PM

[quote name='alberto05' date='Jul 7 2006, 07:33 AM' post='36517']
[quote name='lchamarthi' date='Jul 7 2006, 08:06 AM' post='36513']
Hello All,

Could anybody give quick help in PID instruction..?

PID(190)
Source value: B35
Control Word: C:DE4
C+1:64-----P
C+2:100----I
C+3:190---D
C+4: 30--Time
C+5: I kept 1000.....But really didn't understand what it is from manual..?
C+6: Kept 404......This also i didn't understand from manual waht it is doing?


With the above settings i didn't see any result in the output word.

I am using CJ1M-CPU13 & DA041 Module to take 0---FA0 as resolution

hi,

The PID function is rellally strange, try with this values:

c+5:#0002
c+6:#1494 (there is an error in manual w340-e1-06 (seite 666, bits 04 to 07 of c+6, bits 00 to 03 of c+6, column 1, files 4 and 5), must be 4-->5 and 5-->4
c+4:put &0100
c+3:put &0000
c+2:put &9999
c+1:play with this, for example&0010 (c+1 is not P constant, is the proportional band (BP=100/P)

so, if you have: source &0002
control &0005
then error is 3, with a BP=100, P=1, so output must be &0003, if BP=50 ---output:&0006

the integer factor is, for example, if sampling period is &0100(1s, units in 10ms), and c+3=&0003, then, with the same source and control, you will have 3,6, 9,12,..., each second add 3 to the output.

sorry, i have not more time.

hope this help you, i am not sure how the pid works but.... For example, if the source change very fast ( an input step), the pid take a time to actuate (they call it overshooting prevention)
[/quote]


Try these settings:

c+1 2000 (P)
c+2 10 (I)
c+3 10 (D)
c+4 100 sampling time)
c+5 0000 (Forward acting control)
c+6 1818 (Limit control-16 biti nput-sampling period-16 bit output)
c+7 0 (low output value)=0
c+8 0FFF (high output value)=4095

Good Luck

#5 alberto05

alberto05

    Sparky

  • MrPLC Member
  • PipPipPip
  • 41 posts
  • Country:Spain
    Spain

Posted 11 July 2006 - 01:50 AM

[quote name='Bill Estey' date='Jul 10 2006, 07:00 PM' post='36631']
[quote name='alberto05' date='Jul 7 2006, 07:33 AM' post='36517']
[quote name='lchamarthi' date='Jul 7 2006, 08:06 AM' post='36513']
Hello All,

Could anybody give quick help in PID instruction..?

PID(190)
Source value: B35
Control Word: C:DE4
C+1:64-----P
C+2:100----I
C+3:190---D
C+4: 30--Time
C+5: I kept 1000.....But really didn't understand what it is from manual..?
C+6: Kept 404......This also i didn't understand from manual waht it is doing?


With the above settings i didn't see any result in the output word.

I am using CJ1M-CPU13 & DA041 Module to take 0---FA0 as resolution

hi,

The PID function is rellally strange, try with this values:

c+5:#0002
c+6:#1494 (there is an error in manual w340-e1-06 (seite 666, bits 04 to 07 of c+6, bits 00 to 03 of c+6, column 1, files 4 and 5), must be 4-->5 and 5-->4
c+4:put &0100
c+3:put &0000
c+2:put &9999
c+1:play with this, for example&0010 (c+1 is not P constant, is the proportional band (BP=100/P)

so, if you have: source &0002
control &0005
then error is 3, with a BP=100, P=1, so output must be &0003, if BP=50 ---output:&0006

the integer factor is, for example, if sampling period is &0100(1s, units in 10ms), and c+3=&0003, then, with the same source and control, you will have 3,6, 9,12,..., each second add 3 to the output.

sorry, i have not more time.

hope this help you, i am not sure how the pid works but.... For example, if the source change very fast ( an input step), the pid take a time to actuate (they call it overshooting prevention)
[/quote]


Try these settings:

c+1 2000 (P)
c+2 10 (I)
c+3 10 (D)
c+4 100 sampling time)
c+5 0000 (Forward acting control)
c+6 1818 (Limit control-16 biti nput-sampling period-16 bit output)
c+7 0 (low output value)=0
c+8 0FFF (high output value)=4095

Good Luck
[/quote]

hi,


here is an example of PID configuration based on your program. Downoad the D memory area too

it is an error in my first reply, BP is in omron 999,9%, so you must multiply by 10 waht i said before.

play with diferent bp, i and d constant and try to understand how it works. First try with i=9999 and d=0000, ie no i and d action

hope this helps.

Attached Files



#6 lchamarthi

lchamarthi

    Sparky

  • MrPLC Member
  • PipPipPip
  • 155 posts
  • Location:India
  • Interests:Automation in Omron, Reading and listening to Music
  • Country:India
    India

Posted 17 July 2006 - 08:33 AM

Hi All,

I am struggling with PID with different problems since from the starting. Atlast I achievied the PID action but still my problem is not solved.

In One PID Loop, Max Result is coming &4095
In another PID loop, Max Result is going to &255 as attached in the snap shots. Both are giving good PID action.


I Couldn't able to find the reason. I kept the C to C+10 Parameters same for both. Just bit observaion in one PID process i observed #FFF and in another one #FF in after C+10 words.

Could anybody help me in achieving this?

Thanks in advance
Lakshmi

Attached Thumbnails

  • PID255.JPG
  • PID4095.jpg

Edited by lchamarthi, 17 July 2006 - 08:37 AM.


#7 Bill Estey

Bill Estey

    Sparky

  • MrPLC Member
  • PipPipPip
  • 26 posts
  • Country:United States
    United States

Posted 17 July 2006 - 01:16 PM

[quote name='alberto05' date='Jul 11 2006, 02:50 AM' post='36659']
[quote name='Bill Estey' date='Jul 10 2006, 07:00 PM' post='36631']
[quote name='alberto05' date='Jul 7 2006, 07:33 AM' post='36517']
[quote name='lchamarthi' date='Jul 7 2006, 08:06 AM' post='36513']
Hello All,

Could anybody give quick help in PID instruction..?

PID(190)
Source value: B35
Control Word: C:DE4
C+1:64-----P
C+2:100----I
C+3:190---D
C+4: 30--Time
C+5: I kept 1000.....But really didn't understand what it is from manual..?
C+6: Kept 404......This also i didn't understand from manual waht it is doing?


With the above settings i didn't see any result in the output word.

I am using CJ1M-CPU13 & DA041 Module to take 0---FA0 as resolution

hi,

The PID function is rellally strange, try with this values:

c+5:#0002
c+6:#1494 (there is an error in manual w340-e1-06 (seite 666, bits 04 to 07 of c+6, bits 00 to 03 of c+6, column 1, files 4 and 5), must be 4-->5 and 5-->4
c+4:put &0100
c+3:put &0000
c+2:put &9999
c+1:play with this, for example&0010 (c+1 is not P constant, is the proportional band (BP=100/P)

so, if you have: source &0002
control &0005
then error is 3, with a BP=100, P=1, so output must be &0003, if BP=50 ---output:&0006

the integer factor is, for example, if sampling period is &0100(1s, units in 10ms), and c+3=&0003, then, with the same source and control, you will have 3,6, 9,12,..., each second add 3 to the output.

sorry, i have not more time.

hope this help you, i am not sure how the pid works but.... For example, if the source change very fast ( an input step), the pid take a time to actuate (they call it overshooting prevention)
[/quote]


Try these settings:

c+1 2000 (P)
c+2 10 (I)
c+3 10 (D)
c+4 100 sampling time)
c+5 0000 (Forward acting control)
c+6 1818 (Limit control-16 biti nput-sampling period-16 bit output)
c+7 0 (low output value)=0
c+8 0FFF (high output value)=4095

Good Luck
[/quote]

hi,


here is an example of PID configuration based on your program. Downoad the D memory area too

it is an error in my first reply, BP is in omron 999,9%, so you must multiply by 10 waht i said before.

play with diferent bp, i and d constant and try to understand how it works. First try with i=9999 and d=0000, ie no i and d action

hope this helps.
[/quote]




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users