Help needed with PID control of analog valve

Vorian

Member
Join Date
Jul 2012
Location
Athens
Posts
12
Hi, I'm new here and horribly inept in working with Step7 and i have a problem.

I am trying to use PID control on two analog valves in order to achive steady force on a random surface. My main problem is that I can't get it to work.

My sensor measures from 0-50N and the valves take 0 to 6 bar.

I hve a main OB35 and call a FC which contains the following:

Code:
      L     4.000000e-001              // an example of desired value 0.4kg
      T     MD    50

  L     1.000000e+002
      L     0
      -R    
      L     MD    50
      *R    
      L     5.000000e+000  //5 kg maximum
      /R    
      T     MD    54            //set point

 

 L     "sensor"
  T     MW   100   //pv_per

 L     1.000000e+002
      L     0.000000e+000

      -R    
      L     1.000000e-005               // Dead Bandwidth 
      *R    
      L     5.000000e+000
      /R    
      T     MD    58     

 L     1.000000e+002
      L     0.000000e+000
      -R    
      L     5.000000e+000               
      *R    
      L     6.000000e+000
      /R    
      T     MD    62                    //             LMN_HLM 



      L     1.000000e+002
      L     0.000000e+000
      -R    
      L     0.000000e+000              


      *R    
      L     6.000000e+000
      T     MD    66           // LMN_LLM


v1:   CALL  "CONT_C" , DB41
       COM_RST :=FALSE                  
       MAN_ON  :=FALSE               
       PVPER_ON:=TRUE                   
       P_SEL   :=TRUE                  
       I_SEL   :=TRUE                   
       INT_HOLD:=FALSE
       I_ITL_ON:=FALSE
       D_SEL   :=FALSE                 
       CYCLE   :=T#100MS
       SP_INT  :=MD54                   
       PV_IN   :=0.000000e+000
       PV_PER  :=MW100                  
       MAN     :=0.000000e+000
       GAIN    :=6.000000e+002
       TI      :=T#500MS
       TD      :=T#500MS
       TM_LAG  :=T#1S
       DEADB_W :=MD58                   
       LMN_HLM :=MD62
       LMN_LLM :=MD66
       PV_FAC  :=1.000000e+000
       PV_OFF  :=0.000000e+000
       LMN_FAC :=1.000000e+000
       LMN_OFF :=0.000000e+000
       I_ITLVAL:=0.000000e+000       
       DISV    :=0.000000e+000
       LMN     :=MD70
       LMN_PER :=MW110
       QLMN_HLM:=
       QLMN_LLM:=
       LMN_P   :=
       LMN_I   :=
       LMN_D   :=
       PV      :=
       ER      :=MD74


L     MW   110

      T     "V1"                       


  BE


This only for one valve. I can't get the control to work for it at all. I imagine i have some pretty horrbile errors.


Thnx in advance I am getting desperate here!!
 

Similar Topics

Dear all, I have a problem tuning a PID loop. I am trying to control the temperature of a pasteurizer for beer cans and bottles. I am using S7-200...
Replies
8
Views
4,174
Hello, I have a problem with tuning my PID loop in my RS5000 project. In my program I am using a PID loop to control the KW output of an engine...
Replies
11
Views
4,309
Hi Experts; I attached an image of pid parameters setting. When i increase the speed of gas turbine the speed goes 1% up then come back 1% down...
Replies
17
Views
4,338
Hi experts; I have Ge 90-30 CPU 352. I use PID (ISA) and first set only the proportional and setting as under; Error term= SP-PV Upper clamp=32000...
Replies
4
Views
2,049
dear all: we have a automated vehicle which runs on a magnetic tape. we are taking analog input [0 to 10] volts from a reader this has a...
Replies
3
Views
3,689
Back
Top Bottom