Tietokoneiden näyttöjä, joissa näkyy kuvaa automaatiolaboratorion laitteistosta. Monitoreiden takana näkyy sama laitteisto kuin kuvissa.

timohei.net / Opintojaksot / Production Automation Project / Siemens S7 -ohjeita /
S7 PID

Katso myös sivu Tulosignaalin simuloiminen Force-toiminteella!

PID-lohko pitää aina sijoittaa Cyclic interrupt -lohkoon (ei siis OB1-lohkoon), jotta se suoritettaisiin tarkasti ennalta määrätyllä suoritusvälillä. S7-1200 -logiikan Cyclic interrupt -lohkon oletusarvoinen suoritusväli on 100 ms, joka sopii PID-säätimelle hyvin.

Katso lisätietoa PID_compact-lohkon versioinnista ja simuloinnista!

PID-toimilohko toimilohkokirjastossa

PID_CONT (S7-300)

PID Compact (S7-1200)

Otteita manuaalista

Olen lisännyt tekstin sekaan käännöksiä ja selvennöksiä [hakasulkuihin].

The calculation of the values in the control blocks is only correct if the block is called at regular intervals. For this reason, you should call the control blocks in a cyclic interrupt OB (OB30 to OB38). Enter the sampling time in the CYCLE parameter.

The setpoint is entered in floating-point format [REAL] at the SP_INT input.

The process variable [mittaussignaali] can be input in the peripheral (I/O) [INT-tyyppinen PV_PER-tulo analogiakortin tulokanavaan kytkettynä] or floating-point [REAL-tyyppinen tieto esimerkiksi laskennan tuloksena] format. The CRP_IN function converts the PV_PER peripheral value to a floating-point format of -100 to +100 % [4..20 mA -viesti skaalautuu oletusarvoilla PV_FAC = 1 ja PV_OFF = 0 asteikolle 0..100 %].

The difference between the setpoint and process variable is the error signal. To suppress a small constant oscillation due to the manipulated variable quantization, a dead band [kuollut alue] is applied to the error signal DEADBAND. If DEADB_W = 0, the dead band is switched off. [Kuollutta aluetta ei useimmiten käytetä.]

The PID algorithm operates as a position algorithm. The proportional, integral INT, and derivative DIF actions are connected in parallel and can be activated or deactivated individually. This allows P, PI, PD, and PID controllers to be configured. Pure I and D controllers are also possible.

It is possible to switch over between a manual and an automatic mode. In the manual mode, the manipulated variable is corrected to a manually selected value. [Manuaali- eli käsiohjauksessa PID-toimilohkon sisäinen säätölaskenta ohitetaan ja lähtöviestiksi asetetaan tulossa MAN oleva arvo.]

The manipulated value [lähtöviesti] can be limited to a selected value using the LMNLIMIT function. Signaling bits [yläraja/upper limit QLMN_HLM, alaraja/lower limit QLMN_LLM] indicate when a limit is exceeded by the input variable. The LMN_NORM function normalizes the output of LMNLIMIT [oletusarvoilla LMN_FAC = 1, LMN_OFF = 0 lähtö skaalataan alueelle 0..100 %].

The manipulated value is also available in the peripheral format. The CPR_OUT function converts the floating-point value LMN to a peripheral value [0..100 % -> 0..27648 eli analogiakortin lähtökanavalle sopivalle alueelle].

A disturbance variable can be fed forward at the DISV input [myötäkytkentätulo].

timohein PID-videot Youtubessa

Muita PID-videoita Youtubessa

Päivitetty 22.11.2022

<<  Edellinen
(9) Ajastin
Sivu 10/24Seuraava >>
(11) PID Compactin simulointi PLCSIM-ohjelmalla
© Timo Heikkinen | timo piste heikkinen at oamk piste fi