WWW.LIB.KNIGI-X.RU
    -
 


̲Ͳ ² , IJ ֲ Ͳ Ͳ ʲ ˲Ͳ һ Ͳ Dz ...

̲Ͳ ² ,

IJ

ֲ Ͳ Ͳ

ʲ ˲Ͳ һ

Ͳ Dz

050202

- 㳿

-

,

2 07.12.2011 .

ϲ

050202 - 㳿 / .: . . , . . , . . . .: ϲ, 2012. 56 .

: . . . . . . . . . . . . : . . , . . . , . .

- - 㳿 . () - .

- () CoDeSys V2.3 [1, 2] ( Controllers Development System), 3S - Smart Software Solutions GmbH (ͳ) [5]. [3, 4], Internet [6].

, (), ᒺ ( ) . ( ) ( ). , , . . .

- . : (ϲ- ) , . , ز-.

(), , .

1

Ͳ

в ٲ CODESYS

1.1.

, ;

100/150/154 CoDeSys V2.3;

CoDeSys V2.3 : , , , , .

1.2. . 1.1. : 1 , 2 , 3 (), 4 (R~), 5 , 6, 7 , 8

, 9 , 10 . :

1. -100 750 .

2. .

3. .

4. 0...1 .

5. 150-220.-L , , ᒺ /, : RS-232 ; RS-485 ;

Ethernet .

6. -6 .

7. .

8. -1-220 RS-485 RS-232 ModBus ASCII/RTU .

9. .

10. (). .

̲

   

1.1 .

1.2 , . 1.1 . . 1.3.

   

. SW7, SW8 . SW1SW6 DI1...6 , SW9SW12 .1, .2, .3 .6 . (./.), (./.) (/). , D4 , , 220/9 , D3 .

AI4 . 1479 AI3 . ϳ , , .

-6 -4

   

Codesys.exe C:\Program Files\3S Software\CoDeSys V2.3\*.*. , , .

, . , target- ( ) CoDeSys 2.3.

, CoDeSys 2.3, target-. InstallTarget.exe, , CoDeSys 2.3. . -, target- . -, Open, target-. Possible Targets (PLC150.I_L) plc.trg. , Install Close. . 1.4 - InstallTarget target .

1.4 ³ target- CoDeSys 2.

3 , . . , , (PLC 150I.L). ³ . . ϳ . , POU , CFC ( , ). ϳ . . 1.5.

ᒺ ³

1.5 ³

, .

:

lr_1_name.pro.

1.4.2 ( /). , , , -.

̲. - 糺 CoDeSys, 1. ˳ , L. - 360 , 122 (%I), 234 (%Q), 4 , (%). , ̻, - . (%I) (%Q) , 16, .

, CoDeSys 2.3 lr_1_name.pro 150-I.L CFC. . [4].

-, . Mincyclelength , , , 10 . +, PLC150.I-L, . ǒ , . 1.6.

1.6 ³ -, / .

, , +, : Discrete input 6 bit (FIX) Discrete output 6 bit (FIX) . ( ) : AT . ³ , , , .

, .

, -6. in1. , . , . , out1, out2, out3 out4. 1.7 ³ (. . 1.7).

Unifed signal sensor [SLOT].

:

( REAL Value) ( WORD Circular time).

, ϲ. : ( ), , () ( ). . . . , , , . 1.8. .

1.8 .

( , 020 ), . , ( -50, , 1.385), . ( (TPL)). [3] . , .

Contact sensor (. . 1.8).

, / . ز- .

. ز- [3, 4] 3.

(. .1.6). (Special output (FIX)) (Analog output (FIX)). , ( ). TRUE .

. :

, -, -;

, -;

, -.

150.-L 420 , . .

, , (. . 1.2). , , 01 . , . 1.9 .1.10.

1.9 ³ .

5000. (01 ) R0_5000 . ain4 , 01000 . , , 1000, 0200 . .

1.10 ³ , AO1, aout1.

, , (), () 璺 . , AI4. 420. .

1.4.3. . , (. .1.5), U, U PLC_PRG .

: , , .

.

420. , .

, , (. . 1.11).

   

1.15 ³ - 1.

16 ³ Ethernet- Ethernet- Communication Parameters: New Channel (. . 1.14) Tcp/Ip (Level 2). , , , Ethernet-. , .1.16. ³, Ethernet- TCP/IP . Address, IP- localhost Value.

, 10.0.6.10, . , . IP- SetIP 172.016.028.***, - . Debug RS , IP- EasyWorkPLC.exe, C:\Program Files\Owen\EasyWorkPLC\*.*. - . , .

10.0.6.10 , IP. , , , , Windows. 璺 (TCP/IP) ( , , 10.0.6.11) (255.255.255.0) . , , . IP- Enter (. . 1.16).

ϳ 璺 , . .

! 璺 , . , , .

1.4.5. CoDeSys 2.3 . ( , . . 1.5). , , , ᒺ . , vis1, CoDeSys 2.3 . ǒ ᒺ. .

, . 1.11, . in1, in2, in3; out3, out4; ain3, ain4; aout1. ustavka, vvod_ustavki temperatura.

г , POU, .

, . . . . + . , . ³ , . 1.17.

1.17 ³ ³ : 1.

, - , MicroSoft Word. , , . , (FALSE) , . (TRUE) . , .

. :. .in1 , F2. + Globale_Variables . .

ustavka. temperature , vvod_ustavki TRUE. , , . ϳ Ctrl+Enter. , %3.1f . . PLC_PRG.ustavka .

`_`,

_ .

vvod_ustavki ʻ. -. PLC_PRG.vvod_ustavki.

̲. , ᒺ, . , , PLC_PRG.vvod_ustavki.

, .1.18.

. F5 . , .

1.18

   

2) ᒺ: . :

- ᒺ;

ᒺ - ;

ᒺ , ;

ᒺ .

ᒺ (TEN VENT) LAMP () : PUSK, STOP, AVAR POGAR. TRUE, ᒺ . LAMP , ᒺ . ᒺ STOP AVAR POGAR. , . 1.3 . , . 1.19.

   

1.19

1.7.

1) 100\150\154.

2) CoDeSys 2.3?

3) CoDeSys 2.3?

4) ?

5) CoDeSys 2.3?

6) ?

2

Ҳ Ͳ

в ˲ʲ

2.1.

;

.

2.2.

:

1) (PRG) .

2) .

2.3. ճ 2.3.1. CoDeSys V2.3 , й1 (. 1 . 1.3 1.4.1 1.4.3). POU ST (, Pascal). POU PRG, , . POU , . 2.1.

POU

CFC.

, .

³ POU PRG count 2.1 ³ ers. POU . AND. ADD CTD , Counter STANDARD.lib. . . 2.2 , CTD (FB) AND, ( F2) drag-and-drop.

2.2 ³

, , (CTU) - (CTUD). ϳ .

counters , . 2.3. BOOL WORD .

POU PRG timers.

. 2.4 timers.

.2.5 RTC, POU PRG rtclock.

   

2.6 2.

7 ³ CoDeSys V2.3 , Windows. . , . : "C:\Program Files\3S Software\CoDeSys V2.3\ CoDeSysHMI\CoDeSysHMI.exe" /simulation"D:\OWEN\1_nas_vkl.pro".

CoDeSysHMI.exe, / simulation . simulation , . : D:\OWEN\. . 2.8. , 2.8 ³ CoDeSys V2.3 (.

CoDeSys HMI).

() .

2.3.3. : . ʻ . .

, . , . 2.9. lr_2_3_name.pro. (. . 2.7) , . 2.10.

   

2.6.

1) IEC61131.

2) IEC61131.

3) ?

4) Standard.lib.

3 ˲ֲ 2-ֲ ز-

3.1.

;

(ز) ;

ز- ;

ز- Util.lib.

3.2.

:

1) 2- .

2) ز- .

3) ز- BLINK Util.lib.

3.3. ճ 3.3.1. 2-

:

, ;

(), ( 150 );

, , ( 100 ).

, - 3.1 ³ AI4 ( 1000 , 0 200 ). , . 3.1.

lr_3_1_name.pro. :

PROGRAM PLC_PRG VAR ust1: REAL := 150;

ust2: REAL := 100;

END_VAR IF tempust1 THEN lamp:=TRUE;

END_IF IF tempust2 THEN lamp:=FALSE;

END_IF.

.

3.3.2. 2- , . : . , : .

, .

, .

, . .

, :

PROGRAM PLC_PRG VAR gist: REAL := 5;

rele_b.0: BOOL;

END_VAR IF (T_TX(ust-gist) ) THEN (* *) rele:=TRUE; (* *) rele_b.0:=TRUE; (* *) END_IF;

IF (T_TX(ust+gist) ) THEN (* *) rele:=FALSE; (* *) rele_b.0:=FALSE; (* *) END_IF;

, . T_TXust+gist, T_TXust-gist.

lr_3_2_name.pro .

3.3.3. ز- ز . ( ) .

, . , , ( . Duty cycle).

, : S T / 1 / D, S , D , T , .

, , .

E T T. (, ). Y, E. (ز).

(, , ), D:

T D Y, 100% D , ; , ( ); Y .

ز- Y . 3.2. . 3.3 ز- .

   

3.3.4. ز- ز lr_3_3_name.pro. 150.I-L. POU PLC_PRG CFC.

, . ز- ز-. . ³ . , Pulse-wide modulator. , Discrete output 4 bit [FIX] Pulse-wide modulator VAR.

. 3.4 ز.

3.4 ³ ز- , .

, . DO4, Number of output . 100 . 10000.

, :

=10010000=1. 3600000 , 360 . . .

2 .

. , REAL 0 1000 ( 5000). Pulse-wide modulator WORD 0 65535. ( й1, 1.4.2), WORD. . 3.5.

ز-. , , ز-. , . . ز- .

3.5 ز

3.3.5. ز- ز- (, Pulse-wide modulator), .

.

BLINK Util.lib.

, . . .

ǒ , . 3.6. : , , . : , . , , .

, .

Library, C:\Program Files\3S Software\CoDeSys V2.3\*.*. ³ . , , .

3.6 ³ , lr_3_4_name.

pro. 150.I-L. POU PLC_PRG CFC.

, . , DO4. rez REAL. TIME. REAL TIME. 1000. , 1000-rez. . POU PLC_PRG , . 3.7.

ز-. , . . ز .

<

3.7 ز

3.4.

1) . . .

2) Microsoft Office : , , 璺, , - .

3.5.

1) , .

. 3.1. . (10 % ) . .

3.1 / LAMP LAMP TEN VENT _TEN _VENT .

DO1 - +

- DO2 - + 2, 6, 10, 14, 18,

S_OUT S_IN / .

DO2 DO1 3, 7, 11, 15, 19, - DO1 DO2 4, 8, 12, 16, 20, U- , . ( TEN VENT).

, (LAMP_TEN LAMP_VENT) / , S_IN S_OUT.

. 3.1 :

, 2- ;

, 2- ;

- , ;

U- , .

, . 3.1 :

(), .

2) 2- ON_OFF_HIST_REG Util.lib. 35 , 5 1 .

3.6.

1) 䳿 2- .

2) .

3) 䳿 ز.

4) ز- ?

5) Util.lib.

6) ?

7) BLINK Util.lib.

8) ز?

9) ز?

4 ˲ֲ ϲ-

4.1.

ϲ-;

ϲ- UTIL.lib, PID_Rerulators.lib pid_reg2.lib.

4.2.

:

1) ϲ- 2- ز- .

2) ϲ- 2- ᒺ .

3) ϲ- 3- ᒺ.

4.3. ճ 4.3.1. ϲ- ϲ- CoDeSys . , , UTIL.lib controller, CoDeSys.

: -, ϲ- . , CoDeSys . , CoDeSys ϲ- : PID_Rerulators.lib pid_reg2.lib. , . , . ,

(PV) (SP) . ϲ- . 4.1.

   

X p ; ; Ei 1 ; t ; ; n <

   

4.3.2. UTIL.lib ϲ (, , ), - , ز- 2- () (). : / .

: . (+40 +50 ) . .

, lr_4_1_name.pro UTIL.lib . 150.I-L.

POU PLC_PRG CFC. . 4.2 . , . 4.2 璺 (.

. 4.2). . .

4.3 ϲ- .

<

4.3

3, 5 6 (. .

4.3) ϲ- ز- . , (0100 %) ز (065535 ) , , REAL WORD.

ϲ . , .

, . . .

4.3.3. PID_Rerulators.lib , ϲ- 2- ( ) ᒺ . , . 4.2.

lr_4_2_name.pro PID_Rerulators.lib . 150.I-L. POU PLC_PRG CFC.

. 4.4 ϲ- 2- ϲ-.

4.4 .

4.5 .

. , , , ϲ-.

4.5

   

4.7 , APID_VALVE pid_reg2.

lib, . 4.8. DIG_FLTR PID_Rerulators.lib, . .

. .

4.4.

1) . / , , . .

2) Microsoft Office : , , 璺, , - .

4.8

4.5.

1) ϲ- PID : , ز.

2) ϲ- PID_2POS_IM_ANR 2- , 420 .

3) ϲ- PID_PWM 2- , ز-.

4.6.

1) ϲ-.

2) ϲ .

3) ϲ- ?

4) ?

5) ?

˲

1. . . . / .. . . : , 2008. 256 .

2. CoDeSys V2.3. : , 2005, 453 .

3. 150.

. : , 98 .

4. / . . : , 119 .

5. . : http://www.3S-software.com.

6. . : http://www.owen.ru.

   

Ͳ Dz

050202 - 㳿

   

³ . . . . . . 2012 ., . 80 ϳ. __.__.2012. 6084 1/16. .

Riso-. . . . . 2,8.

100 . . _____. ֳ .

__________________________________________________________

ϲ.

3657 24.12.2009 .

61002, , . , 21.

__________________________________________________________

" "ϳ "ϲ".

3656 24.12.2009 .

61002, , . , 21.

:

" " 1. . . (XI- XX .) / . . ; . . -. .: , 2003. 304 .: . ). .: . 275-298.2. ...

. . - XVII-XIX . . . -...

, . , . ...

7.18.1/05 . . " " ...

XIV . . t (" ") "" ...

316.344.7(470 + 571) Volodina Natalia Anatolyevna , D.Phil. in History, Professor, Public Administration and Regional Sociology Department, Penza...

. 20 2009. 4 89 20 : 1 .. , . , .. ...

// . 2000. 7. 59 . , . / [. . . ; . . ]. ....

327 . . 6. 2011. . 1 . . , , . ...

1992 . .. " " , . ...

. . . . 66 2012. (120). 21/1 :339.5 ...

, , 70- 20-21 2015 . 20 2015 10.00-12.30 ...

. .. "" -2007 ....

. 63.3(0)3 75 931 (=924.5)+22 2- : . / , . . . .,...








 
<<     |    
2017 www.lib.knigi-x.ru - -

, .
, , , , 1-2 .