Вы находитесь на странице: 1из 260

RastrWin3

, ,
,
12.11.2012

.......................................................................................................................................................... 6
........................................................................................................................ 6
........................................................................................................................................................................ 8
.................................................................................................................... 8
................................................................................................................................................ 8
.................................................................................................................... 10
........................................................................................................................................ 11
- ......................................................................................................................................... 12
1.

.............................................................................................................................................13
1.1.
...................................................................................................... 13
1.2.
, ..................................................................................... 14
1.3.
.............................................................................................................................. 15
1.3.1.
................................................................................................................................. 16
1.4.
.................................................................................................................... 19
1.5.
..................................................................................................................... 20
1.6.
...................................................................................................................... 22
1.7.
.......................................................................................................... 24

2.

...........................................................................................................................................................26
2.1.
( ) ................... 26
2.2.
................................................................................................................................................ 27
2.3.
......................................................................................................................................... 28
2.4.
............................................................................................................................. 30
2.5.
...................................................................................................................................................... 32
2.6.
........................................................................................................................................ 42
2.7.
........................................................................................................ 45
2.8.
..................................................................................................................................... 45
2.9.
.................................................................................................................... 48
2.10. ............................................................................................................................................. 49
2.10.1.
................................................................................................................................. 49
2.10.2.
(, , ) .................................................. 51
2.10.3.
.................................................................. 52
2.10.4.
.............................................................. 52
2.10.5.
RastrWin3 ................................................................................................................ 56
2.10.6.
.............................................................................................................................. 60
2.11. ....................................................................................................................................................... 61
2.11.1.
PQ....................................................................................................................................... 62
2.11.2.
Qmax............................................................................................................. 63
2.12. ............................................................................................ 64
2.13. .............................................................................................................................. 66
2.14. .......................................................................................................................... 68
2.14.1.
................................................................................. 68
2.14.2.
.......................................................................................... 71
2.14.3.
.................................................................................................. 74
2.14.4.
............................................................................................................. 77
2.15. ............................................................................................ 79
2.15.1.
..................................................................................................................... 79
2.15.2.
, ................................................................................. 81
2.15.3.
..................................................................................................................................... 84
2.16. .............................................................................................. 87
2.17. ....................................................................................................................................... 95
2.17.1.
() ...................................................................................................... 95
2.17.2.
/ ............................................................................................................................ 95
2.17.3.
................................................................................................................................ 97
2.17.4.
................................................................................................................. 98

3.

................................................................................................................100
3.1.

................................................................................................................................................ 101

3.1.1.
.................................................................................................................................................. 101
3.1.2.
................................................................................................................................................. 106
3.2.
........................................................................................................................................................... 112
3.2.1 ...................................................................................................................................... 112
3.2.2 ..................................................................................................................................... 113
3.2.3.
................................................................................................................................. 113
3.2.4.
............................................................................................................................. 113
3.2.5.
.............................................................................................................................. 114
3.2.6.
.......................................................................................................................................... 115
3.2.7.
..................................................................................................................... 115
3.2.8.
....................................................................................................................... 115
3.2.9.
, .............................................................................. 116
3.3.
..................................................................................................... 117
3.4.
.......................................................................................................................................................... 120
3.5
......................................................................................................................................................... 122
3.6.
......................................................................................................................................... 123
3.7.
.............................................................................................................................. 125
3.8.
................................................................................................................................... 127
3.9.
.............................................................................................................................................................. 129
3.9.1.
.................................................................................................... 129
3.9.2.
............................................................... 132
3.10. / ............................................................................................................................... 132
3.11. () ............................................................................................................................................... 136
3.11.1.
......................................................................................................................... 136
3.11.2.
.................................................................................................................. 137
3.11.3.
..................................................................................................... 137
3.11.4.
.................................................................................. 137
3.11.5.
........................................................................................................ 138
3.11.6. .................................................................................................. 139
3.11.6.1 ................................................................................................... 139
3.11.6.2.
................................................................................... 144
3.11.7.
...................................................................................... 149
3.11.8.
................................................................................................................... 154
3.11.9.
(Undo/Redo)...................................................................................................... 155
4.

........................................................................................................................................................156
4.1.
................................................................................................................ 156
4.2.
................................................................................................ 157
4.3.
.................................................................................................................... 158
4.3.1.
............................................................................................................................. 158
4.3.2.
..................................................................................................... 159
4.3.3.
.......................................................... 164
4.3.4.
...................................................................................................... 167
4.4.
.......................................................................................................................................................... 168
4.5.
..................................................................................................... 169
4.6.
...................................................................................................................... 173
4.7.
............................................................................................................. 176
4.8.
..................................................................................................... 177
4.9.
......................................................................................................................................... 177
4.10. .......................................................................................................................................................... 180

5.

.......................................................................................................................................................183
5.1.
5.2.

6.

.....................................................................................................................................................186
6.1.
6.2.

7.

...................................................................................................................................... 183
..................................................................................................................................... 184

.................................................................................................................................... 186
.................................................................................................................................... 187

........................................................................................................................................188

8.

....................................................................................................190

9.

..................................................................................................................................................193

10.
10.1.
10.2.
10.3.
11.
11.1.
11.2.

..............................................................................................................194
......................................................................................................................................................... 194
..................................................................................................................................... 196
, ........................................................................................................................ 196
MS EXCEL .......................................................................................................198
MICROSOFT EXCEL ........................................................................................................................ 198
MS EXCEL ........................................................................ 203

12 ...........................................................................................................................206
12.1 ................................................................................................................................................................. 206
12.1.1 ...................................................................................................................................... 206
12.1.2.
VBScript................................................................................................................................... 207
12.1.3 Rastre ..................................................................................................................... 208
12.1.4 , ........................................................ 213
13.

COM RASTR ..................................................................................................213

13.1. RASTR .................................................................................................................................................. 213


13.1.1.
............................................................................................................................................... 213
13.1.2.
........................................................................................................................... 215
13.1.3.
Tables ................................................................................................................................. 217
13.2. TABL .................................................................................................................................................. 218
13.3. COLS .................................................................................................................................................... 220
13.4. COL ..................................................................................................................................................... 221
13.5. .......................................................................................................................................... 222
13.5.1.
SendCommandMain COMM_MAIN,p1,p2,pp ...................................................................................... 222
13.5.2.
......................................................................................................... 223
13.5.3.
..................................................................................................... 223
13.6. COM ....................................................................... 225
13.6.1.
CimCom .................................................................................................................................. 225
13.6.2.
Elements ............................................................................................................................ 228
13.6.3.
Element .................................................................................................................................. 228
13.6.4.
Props .................................................................................................................................. 229
13.6.5.
Prop ........................................................................................................................................ 229
13.6.6.
CreateObjectEx ..................................................................................................................................... 230
13.6.7.
Disconnect ............................................................................................................................................ 231
13.6.8.
Sleep ..................................................................................................................................................... 232
14.

...........................................................................................................................................234

14.1. .................................................................................................................................. 234


14.1.1.
.............................................................................................. 234
14.1.2.
......................................................................................................... 234
14.1.3.
.............................................................................................................. 235
14.1.4.
........................................................................................... 236
14.2. ............................................................................................................... 236
14.2.1.
........................................................................................................................................ 236
14.2.2.
................................................................................................................................... 236
14.2.3.
....................................................................................................................... 238
14.2.4.
.......................................................................................................................................... 238
14.2.5.
................................................................................................................................................... 240
14.2.6.
.................................................................................................................................................. 240
14.2.7.
.............................................................................................................................................. 241
14.3. ..................................................................................................................... 243
14.3.1.
............................................................................................................................... 243
14.3.2.
................................................................................................................................................ 248
14.3.3.
............................................................................................................................................ 249

14.3.4.
14.3.5.

......................................................................................................................................... 256
......................................................................................................................................... 257


RastrWin3 ,
. RastrWin
150 , , , ,
, , . ( ) ,
(), , -
(, , ..).


, ( 0.4 1150 ).
(, , );
;
;

;
,
;

;

,
;
, ,
;
( ) ;
, ,
;
PQ-;
Qmax(V) ;
,
;
,
;
,
, , ;

(, , )
;
.
:
1. . ,
, (, , ..). :
( ) ;
( );

;
;
(,
);
;
;
, (, ) ;

(, );
MS Excel;
CSV-.
2. .

. RastrWin3
:
. ;
() .
;
(/)
;
(, ).
3. ()
. , (, , ).
4. Visual Basic. .
RastrWin3, .

:
( , )
;

;
,
(, , ..).
(, , ..). , .
:
Windows
RastrWin3 COM-;
OLE-automation server,
OLE- (Excel, Access ..);
ActiveX.

, RastrWin3, :
WWW: http://www.rastrwin.ru
E-mail : support@rastrwin.ru
+7 (343) 362-60-01


RastrWin3 .
.
RastrWin3.
, , .

Help :
8

,
, , , (
).

, . :

, ( ,
). _license.dat RastrWin3.
RastrWin3
:

:
, ;
, ;
.


, .
, ,
, (Help ).

.
. .
.
/RastrWin3 _info.dat.
_license.dat, /RastrWin3.
,
. , .
. , ,
.
, , _license.dat .
...
10

rastr@rastrwin.ru .
, (
Simple MAPI). ,
. , .
. , , .
( ), . rastr@rastrwin.ru _info.dat,
RastrWin3.
, ,
. , .
, ,
, . _info.dat
, - ..
.
. , , .
,
, .
,
. :
, , ;
( );
;
, .
, ,
, .
_license.dat . . . ,
. .
(,
), _license.dat.

_info.dat .



60 .
11


11111. ,
.
.

-
-. .

12

1.


RastrWin3 , .

1.1.

, , RastrWin3.
:
;
, . ,
. . , . , , (7, 17, 107, 1007 ..). ;
;
. cos , ;
(, )
,
(Qmin Qmax) () (V).
().
( )
, .
Qmin cos = 0,96, , , cos = 0,85
( cos = 0,80).
RastrWin3 ;

() () ( ) ;
()
(
);

, ,
,
( , );
, ;

13

;
.
. 5 , 2 4 , .

1.2. ,


.
. , , 14

, , .
,
(, ).
.

(, , ).
(
(rg2)). (,

).

(rg2)

(grf)

(sch)

(anc)

(ut2)

(kpr)

(gra)

. , .
, .
.
(/) .
.

1.3.
,
.

.rg2.
:
.
, .
: .
.
. F2 Enter.

15

1.3.1.

1 2 147 483 647. 256 .
. () (U_). (_, Q_H).
(Q_min, Q_max), V_ () , , . (),
.

(, ) (, -)
. , , :
, , ..;
/;
, ;
;
N_ ():
16

0 ;
1,2 ( , . );
>2 .

;
;
U_ ;
P_, Q_ ;
P_, Q_ ;
Q_min, Q_max, V_ . V_,
Q_min < Q_max;
G_, B_ ( ), ;
V, Delta .
,
, ,
.
, , .
( ) , .


, _/r ( ):
, ( !). , .
( N_) , , , ( N_) .

17

N_ N_, .. , ,
.
, :
N_, N_ ;
N_ ;
R, X ;
G, B , . -
(B<0), (B>0);
_/r, _/i ;
I__25 ,
(. , .. 2.11 ).
, ,
.

( ).

, , .
.
.
.
:
TAB ;
Shift+TAB ;
Ctrl+PgUp, PgUp ;
Ctrl+PgDn, PgDn .
.

.
.
:
1.

( )
(, , ):
2.
, , , ( . ,
).

18

1.4.
.
( , , , ,
). ,
, ,
. :
, .. ,
;
19

, ;
, (
), ;
, .
,
, .
,
, ,
. , , .
, , ( ).


,
, , .

1.5.
()
, . .
, , :

20

.. (P
Q);
>V ) ;
(
<V ;
( )/
"" :

. , .
:

,
, , .
.
(
) (. ),
.
21

1.6.
, (, ..)
:
- ,
:

| |

| |

22

| |

| | .

| |

| |

| |

| | .

RastrWin3
. .
+. , + , , :

23


, .
, , (V) , (_, Q_), (_), (Q_), (V_)
(Q_min, Q_max) (Q_).
, , , (V_2, dDelta), (_, Q_), , (dP, dQ) ,
(I_) | |, (_,Q_) .
. , , , .

1.7.
, ( ). :
, , .
.
: ,
. ,
, ,
,
.
RastrWin3
, . 24

.
(
) . ( ).


( ),
.
, , , , .
RastrWin3 :

, 0,5
, 2
90;
.

;
;


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

, ( ,
..).

25

2.

RastrWin3.

2.1.
( )
, , , ( ). . .
, , -
.
. ( ). , . .

A ( );
;
. ;
;
;
.
, , ,
. .
.

.
- . , " .rbs".

26

2.2.
. , :

,
( ) ( (na)).
,
( 2 (npa)).

,
( N(no)).
:
, , .
, (. ), , .
, (.
), _. *dP
, (1-_)*dP . _
, , .
27


( 2 _).

+.

2.3.

( ), , , ..
: , ..
.
. .

:
() ()

:
, ;
, ;
, . , .
28

,
( O ) ( , ). (
), .
.
, .
.
, .
, , , ,
.
:
3. . :

,
. . ( )
.
4. .
:

.
, , ,
, .
, .
5.

, .
. .
( ), .. .
, :

29

;
. V . , ;
:
, ;
, ;
, [0-1] , [0-1] , ( ):
0 , 1 , [0-1]
;
, .
;
:
, ,
;

.

2.4.


, . ,

( , , ..).
. ( - ).

30


( - ).

( ), (, ). ,
(, (ny=1 vras
1)),
.
,
, - .kpr,
.

, , - :


.
31


.
.
:
1. (
- .kpr).
2. .
3. (/, , ..).
4. .
5. . 3 ..
:
.
(!).
.
(, , , , ).
.
.
, .
.
Mash .
RastrWin3 , :
1.

.rbs ( )
( , ,
..) , .
(common.kpr RastrWin3). , .

2.

.rbs ( ) , ( ).

2.5.

. . ( ) ( , , ..). 32

( , ). , , :
, ( , , , ),
. ;
;
, ( ):

, .
, , .
.
: ( ).

. .
( ).
.
, .

33

, . ,
(, ,
..). :

34

_,
_ .


RastrWin3.

(- ).

35

36

X Y:

X Y

40 ( V)

, ,
. , , 1.

37

38


, , ( ).

.
, . ,
.
. ,
( ):
: 1;
: 0;
: .
.
.
. ,
, , . , .
,
. ,
, ,
.

.
( ),
:
1) (2)
(1, 3);
2) (a b) (4)
;
3) , (4);
4) .

39

.
, , ( , ).
:
1. ( ).
2.
, ( , ..). .
3. ( )
( : ),
(: ).
4. .
. ( _ ) . (-) (dDelta).
_ :

40

DELTA_6/__6

-800
-850
-900
-950
-1000
-1050
-1100
-1150
-1200
-1250
-1300
-1350
-1400
-1450
-1500

-135

-130

-125

-120

-115

-110

-105

-100

.
U, P, I. --.

U, P, I.
U, I, P U, P, I.

:
41

node ("")

umax

U_max

umin

U_min

pg_max PG_max Pg
pg_min PG_min Pg
pn_min

pn_max

P max

,
vetv ("")

i_dop_r I_ I_
area (" ")

pn_min

pn_max

P max

pg_min

pg_max

P max

.
, .

.
: 1) ; 2) ( P P (Pmax)).
,
.

2.6.
( , , ).
( ).
:
1. (- --vrn).
2. ( - _ _).
3. (
... : - -.vrn).
42

_ ,
:
S ( );
;
.
_ , :
S ( );
, ;
( , ..).
:
N/Nb ;
Ne ;
Np ;
1, 2, .

1=0
1=1

RXB

1 R
2 X
3 B

/N

N_

1
2 N_a

N_

1 N-_
2 N-_

e .

1=0
1=1

PQ

1 _
2 Q_

PQ

1 _
2 Q_

VQlim

1 V_
2 Q_min

Q_max

BG


( )

1 V_

N_

1 N-

43

, ! (
, ,
).

()

1 16.
2 P 803.
3 ,
1676,
811 17.
44

(
).
. :
1. .
2. :

;
;
;
.

2.7.
RastrWin3 ( ) ( ):
1. ( , ):
G_, _ (
);
G_-, _- ;
N_- .
(_) :
_ = _ + N_-*_-.
, ( ), S_- , .
( ),
.
2. ( , ):
N-_ ;
G-_, -_ ;
N-_ ;
G-_, -_ ;
S ;
S .
.
( ).
, , .

2.8.

, . ,
(, , ).
( ,
..), .
.sv.
45

:
1. .sv.
2. (, ..):

( 2).
( 1).

3.

, .sv.

1.

:

( 2). .

46

2.
3.

.

CSV-.
s ( ).
:

1. .
. , (_) (_).
( ) ( ).
.
(
) . ( , ..)

.
.

2. .
, ..
. ( , ..).

47

837, 807 1

2.9.
4 , (, , ):

, . . :
48

, ( ,
), .

.


(vetv) V V .
, .

(. 2.7. ).

2.10.
2.10.1.

49

[] :
( )

( )

( )

, [] :
(

))

))

))

[]:

, -

: -250000/220/110.
,
(

,
,

,
(

,
,

(
(

]
[

50

,
[

)
(

]
[

))

(
(

)
)

))

(
(

)
)

))

(
(

)
)

[
)

]
[

].

Uk -
. Uk - , Uk .

2.10.2.

(, , )

,
. Rastr
: , , .
, .
,


. ,
,
, . ,
,


( )
(


,
,
( ).
( )
( ), . . .
51

! RastrWin 1.4 , ( , , ),
, (, , ) .
.
(

2.10.3.

,
, , . :
(

();
(

)
(

)(

)(

:
(

2.10.4.

,
,
52

, . .

.
.
: -125000/230/121/10.5.
, :
,
,

314
596

, , , :

.
:

(
),
.
. RastrWin3 .
RastrWin3

-125000/230/121/10.5

-125000/230/121/10.5

, 12162% (1974)

, 12162% (1974)

U=230 , I=314

U=230 , I=314

U,

I,

I,

U,

I,

106,5

678,2

364,2

0,46296

106.5

626

0.463

108,9

663,2

349,2

0,47348

108.9

626

0.473

111,3

648,8

334,8

0,48400

111.3

626

0.484

113,7

635,0

321,0

0,49452

113.7

626

0.494

116,2

621,7

307,7

0,50504

116.2

621

0.505

118,6

609,0

295,0

0,51557

118.6

609

0.516

79

121,0

596,9

282,9

0,52609

79

121.0

596

0.526

10

123,4

585,2

271,2

0,53661

10

123.4

585

0.537

53

11

125,8

573,9

259,9

0,54713

11

125.8

574

0.547

12

128,3

563,1

249,1

0,55765

12

128.3

563

0.558

13

130,7

552,6

238,6

0,56817

13

130.7

553

0.568

14

133,1

542,6

228,6

0,57870

14

133.1

542

0.579

15

135,5

532,9

218,9

0,58922

15

135.5

533

0.589

C:\% %\RastrWin3\test-rastr\\ 125000_

,
5-15 RastrWin3 .
-120000/220/121/11
RastrWin3

-120000/220/121/11

-120000/220/121/11

, 22022.5% (1959)

, 22022.5% (1959)

U=121 , I=574

U=121 , I=574

U,

I,

I,

U,

I,

231,5

300,0

274,0

0,52268

231.0

300

0.523

225,8

307,7

266,3

0,53599

225.5

308

0.537

220,0

315,7

258,3

0,55000

220.0

316

0.550

214,3

324,2

249,8

0,56476

214.5

324

0.564

208,5
333,1
240,9
0,58034
5
209.0
332
0.579
C:\% %\RastrWin3\test-rastr\\ 125000_

,
, , . , ,
, .

, , . .
,
, ,

,

.

,
. , 54

, ,
, .
.
:

+ (
. + )

55

2.10.5.

RastrWin3

. ,
, , . .
.

.
( /).
.
S (/).
N_, N_C, N_, N_0 //
.
U_, U_C, U_ .
Uk_C, Uk_, Uk_C -, -, - , () S, % .
dP_(-), dP_(-), dP_(-) -, -, .
dP_ ( ) .
I_ , % .
I_, I_, I_ // .
I_, I_, Io , .
. Io ( ).
N_, N_, N_ .
N_t . , , , .
_, _, _ .
Uk -, Uk - Uk -
( ).
/ ///
/3 .

56


. vetv, , : N_N_0; N_0N_; N_0N_. 4 ,
:

( )

,
4 ,0,C,

,
3 ,0,C

,
2 ,C

,
2 ,

! vetv
.


_ .
:
.
. , . , . , , .
X_, X_C, X_, R_, R_C, R_ .
I . , I . , I . , .
. (), . () .
U, Uc, U .
57


. .

-1,2

-1,2

2-90000/230/121/11
, 23022.5% (1963, 1962)
.

U,

I,

1
2
3
4
5

241.5
235.75
230.0
224.25
218.5

215
220
226
232
238

0.501
0.513
0.526
0.540
0.554

-125/35/35102.64%
,

1
2
3
4
5
6
7
8
9
10
1113
14
15
16
17
18
19
20
21
22
23

26.40
23.76
21,12
18.48
15.84
13.20
10,55
7,92
5,28
2,64
0
2.64
5.28
7.92
10.55
13.20
15.84
18.48
21.12
23.76
26.40

58


1
0.550
0.546
0.541
0.537
0.532
0.527
0.522
0.517
0.512
0.506
0.501
0.496
0.490
0.484
0.478
0.472
0.466
0.460
0.453
0.447
0.440

2
0.562
0.558
0.553
0.549
0.544
0.539
0.534
0.529
0.524
0.519
0.513
0.508
0.502
0.496
0.490
0.484
0.478
0.472
0.465
0.459
0.452

3
0.575
0.570
0.566
0.561
0.557
0.552
0.547
0.542
0.537
0.531
0.525
0.521
0.515
0.509
0.503
0.497
0.491
0.485
0.473
0.471
0.465

4
0.588
0.584
0.579
0.575
0.570
0.565
0.560
0.555
0.550
0.545
0.540
0.534
0.528
0.523
0.517
0.511
0.505
0.498
0.492
0.485
0.478

5
0.602
0.598
0.593
0.589
0.584
0.579
0.574
0.569
0.564
0.559
0.554
0.548
0.537
0.534
0.531
0.525
0.519
0.515
0.506
0.499
0.492

C:\% %\RastrWin3\test-rastr\\ 125000__.

.
. , ,
. , , .
,
, 1.

59

C:\% %\RastrWin3\test-rastr\\ 125000__


:
/

Kt . ,
R,X
I .

Kt .
R,X
I . C

Kt . ,
R,X
I . C
I .

Kt . ,
Kt . ,

Kt .
Kt .

Kt . ,
Kt . ,

Kt . ,
I .

Kt .
I . C

Kt . ,
I . C
I .

! _ /3 .
. , , vetv ,
.

2.10.6.

C:\% %\RastrWin3\testrastr\
-197.rg2 ( .rg2)
-cx197.trn ( .trn)
-197.anc ( .anc)
-197.grf ( .grf).
cx197_all ( ).
25000/500/220
: 19, 1516, 1524, 1500, ,
. .
.
. 60

. .

2.11.
() .

_. .
.
() ().

S (/).
.
N , .
P .
61

Pmin, Pmax / .
Qmin, Qmax / .
N_PQ PQ- ( ).
(_, PG_min, PG_max,
Qmin, Qmax)
:

Qmin/Qmax . N_PQ Q()


PQ ( ())

2.11.1.

PQ

PQ

PQ

62

2.11.2.

Qmax

.
:
1) ;
2)
( , )

.
:

(
(

):
)

() :

, , .
Qmax
/// Qmax.

Qmax

Qmax Qmax ; . .

63

, .;
;
( );
( , . . );
, ;
, .
Qmax ,
().

. , Q (
+), ( ).

2.12.
.
I__25 25 I__ .
. _I__ . ( ): , , , , . . .
64

1. 25

(
) :
N_I(t) (
_I__);
I__25 25 (
..);
I__ ( ), ;
;
:
I__ ;
I/I_(%) .

2.
:
() , (: , ,
);
() //, , (:
//, , );
, ,
. T;
N_I(t), I__ I__25;

, ( ).

65

I_


. T:
Num I(t);
Tc ;
I_ ( 1
25 )
3.

. T.

I_

, ///, (%)
. , .

2.13.
:
(, );
(, , /);
;
.

( ,
). :

66

:
U_ ;
dP ( );
dP_ ;
dP_Tp-p ;
;
_ ;
dP_- .
+ ( +). . :

:
Dp ;
dP_Harp ;
dP_ ;
dP_Tp ;
dP_noc ;
;
_- ;
dP_ .
+ :
67

2.14.

2.14.1.

:
(

)
)

)
)

( )
( )

, PQ-
,

, PV-

PQ- PV-.
PQ-.
PQ-, PV- PQ-. V V - PV-
V .
() - ( ).
( ) ,

13. :

68

-
(1, 2, 3)

:
1. PV- A
,
2. PQmax-
( ),
3. PQmin-
( ).

69


. . .
,
:
1. PV-

PQmax. , .
PV PQmax.
2. PV-
PQmin.
, .
PV PQmin.
3. PQmax-
PV.
,
. PQmax PV
4. PQmin-
PV.
,
. PQmin PV.

,
.

, (.. PQmin PV
PV PQmax), , (PV PQmin, PQmax PV), .
3 4 (PQmax PV PQmin PV, . Q(V) ) .
, .
,
.
.

: () (B)

70

. PV-. 3 , ,
1 2 (. Q(V) ) 67 ,
PV PQmax .
, 1 (
), , -, 2 ( 40 ) PV PQmin. 8- 2 3. .

( B). ,
, (PV, PQmax, PV, PQmin).
,
PQmax PV ,
. , ,
, . ,
.

2.14.2.

. :

1.
,
.
,

( )
.
: ( )
2.


: ( )

, ( )

3.

P=const, Q=const,
.

(),
( )

( )

) ]

) ]

. :



71


. .

RastrWin3 :

, , .. ,
.

N_

N_;

.
;

, .

72

-
:

- ( )

, , ,
. 1 2, ..
.
1:
( )

73

[
( )

(
(

) ]

)]

(
(

2:
( )

[
( )

)
(

) ]

) ]

)]

(
(

, , 110 ( 1) 35 ( 2),
:

2.14.3.


, . . . . , .
, ,
. -
. RastrWin3
.
74

( ) :
1.

.
. .


, , ,

2.

( )
:

( )

( ) ,
(_);
, (_)
;
, (PG_HOM) . ,

;
(PG_min, PG_max);
(
)
( [(
)
][(
)
] );
.
, . , ,
( ) .

75

3. :

.
( )
.

].


, .

.
, .
, ,


:
,
.
:

, , .

. , 7% 1 ,
. , , ,

, , . (
), :

, :
1.

2.

3.

4.

76

()
(). , ()
;
P_ ();
_ ( );
P_ P_
;
P_ ();
P_ ( );
P_P_
;
PG_ , Kct (. );
PG_min, PG_max .
( ) , :

,

. .

2.14.4.

, .

77

:
(dP) , . [0,11] ;
(It) , . 2050;
(Start)
, ; . ;
(.)
; . , . ;
Ma. V (dV-)
U. - , . ,
. [0,10,5] U;
Ma. V (dV+)
U. -
, .
, . [25] U;
Ma. (dDelta)
( ). -
, . c , . [90170];
(W) (. ..
2.13.3. );
. ;

78

2.15.

2.15.1.


( ) - ()
( ) , ()
().

(1)
. :


:
(

(2)

.
(

))

(3)

, .
. , , ;
(1), :

(4)
{
, .
:
- :
;

(5)

(6)

,
. ( 1).
79

2 3, (4);

.

(7)

( )
, :
1. (2):

(8)

, .
2. (
)

3. (1), (5), (6), (7)
.
4.
( ) , ( (
) ) ,
)
(
,

.


.
,
,
.
5. (
)
.
.
6.
7. , , , .

,
PQmax, PQmin. PV

, (5), (6), PQmax- PQmin- , PV-.

:
|

(9)

, :
|

(10)

. (9)(10)
,
,
- ,
.
80

2.15.2.

-
. ,

,
. (
)
,
. .
,
.

.
.

:

81

(DP)
;
. ;
, ;
()
;
. ;
/. () :
+. ,
;
;
. ;
()

();
;
,
(9) (10) ;
,
, [100200];
, , ;
_, (2),

. , (1),
, [20500];
V (1)
, [00.1];
(8), [110], ;


, , [310].
:

82

:
;
;
;
. . , . ;
dV%, - ( ..);
dVs% , ( ) (
..);
dKt% ,- ( ..).
(9)(10).
:
, .
.
, , ,
.
.
, .
, :
1. . :
; , ; V Q ; dV .

83

2. .
() , ,
.

2.15.3.

, , . , .
RastrWin3
.
:
1.

2.

_ .

3.

( _) .

4.

.
O
( : ).

84

, ,
N .
.

:
Nbd ;
();
E (% ). ,
%, , % ,
;
+/ : + , , (
+);
.
V(). 1, ( );
( ), 1;
V() ;
V() ;
Nanc , ;
(% ).

85

N
.
:
1. V(), :

.
2. ,
:

.
3. ,
:


. , .
4. ,
:
(
(

)
)

:
1. T 500/23081,4% , 1
+81,4%, .
2.

, 1 -

81,5%, 3 .
3. 220/110, 24,2 ,
1,86 92,48, 2 , , +24,2.
4. 500/230, 20
( +120).
5. 500/230, 20
( 120).

86

2.16.

, , , .

,
.

( , PV-) ( , ), ,
(, ). ,
:
1.

,
( ..).

2.

, ( ..).

:
1.

, .

2.

3.

() ,
.

4.

2 . ,
( PV). Q ,
( PQ-, PQmaxPQmin-).

87

:
P_ P (+ , );
Q_ Q ( );
V_ .
, N_y. , .

( ). .
. (dV_P), (dQ) (dDelta_P) .
88

:
V_ (N_y);
Q_ Q V (N_y);
Delta (N_y);
P_ (N_-N_-N_p);
Q_ (N_-N_-N_p). N_, N_ N_;
dP ( );
dP" (N_y);
.

. ( ).
.
5 :

89


.
.
3 1 .

90

( ,
, !) :

_ 3 1

, , ( ). , ( 15) 1. (d_Q d_V) .


100 ( ) + ( ).

_ 3 100

3
100 .

(, 14):

91

(
)

+ ,
2 20 14 5 ,
.

92

, 1, . , 10 :

_ 10

[ (

)]

, , (, 14 12).

, :

93


, ,
. , ,

, 3 :

14 1.
, " R.rbs",
.

94

2.17.
2.17.1. ()
() .
(I=const)
(P=const). (V=const).
(X) / (
). , , , ().
:

();

();

( P=const);
( I=const).

, \..

( ),
:
N_ , ;
N , ;
P [];
X_(), X_() ;
_(), _() [.].

2.17.2.

, ().
:
N ( );
;
S (/);
N_ , ;
95

/ ;
Snom (Q);
Unom ;
1 : V ; Q ; I ;
1 ( ),
(. );
T (% Snom, Q, B ( + ), X, I (+ ));
(
(Bmin Bmax));
(%) ( ).
( 510%).
( )
;
(
(Imin
Imax));
Xsh ( );
V, D Xsh.
, / (. ).
: Q,P, V, D.
,
(, HSV DC) :
|| . , ;
N_ , ( , );
2 ( ): ( ) P
( ); , P=0;
2 ( ).
:
1. , / .
, / .
2. / . .
3. /
.
4. .
96

5. .

2.17.3.

, ( ).

:
N ( );
N_1, N_2 , ;
( );
Snom (= Q);
Unom ;
1 : P , N2; Vq
, ( ); Qd ,
;
1 ( );
T (U);
(Umin Umax);
97

Xl ( );
|| ( , );
N_ , ( , );
2 ( ): ( ) Q
( ), Vq ( ,
); Pdv ( , ); (
) Pdv=0;
2 ( );
,
(,HSV DC) :
, (
, ).
: P, Q N_1 N_2 N_2.
: V , D , Up, Uq , (Pdv) (Qdv) .
R X ( !) .
N_1, N_2 ( ,
) Z = R+j (X+Xl)
.

2.17.4.

:
) 1=V, 2=( ), = ();
) 1=P, 2=( ), = ();
) ( )
, ,
1=V, 2=( ), = (). 1=P, 2=Q, = ();
) ( )
, .
1=P, 2=( ), = (). 1=P, 2=Q,
= ();
98

) ( )
, .
1=V, 2=( ), = ().
1=P, 2=Q, = ();
) ( )
, . 1=V, 2=( ), = (). 1=V,
2=P, = ().

99

3.

, ,
. RastrWin3.
.
, .
, .
CSV (Comma Separated Values) , ; ,
. (
Microsoft Excel).
,
.
.

. ,
,
. , " 14.07.06", .
" %d.%d.%d" , %d , , , , .
, , C /. % .
, . %s, %d %f.
,
. ,
"3.14159" %d ( ),
3.
, %30s. 30 , , 30 ,
. 30 ,
. . ,
3.14159 %5.3f 3.142.
%%.
, . , 0.
, .
. " %02d-[%s] %5.2f (%4.2f%%)".
2, "", 5.6,
0.136. :
" 02-[] 5.60 ( 0.14%)"
, %5.2f , 5.6,
%4.2f 0.136. %02d 0 2.
100

3.1.
3.1.1.


( ).
:

. , . ,
, .
.
101

( , ).
( ).

.
. . , DOS- (rge, cxe).
.

.
RastrWin3
, , :

,
.
"" , .
(rge, cxe) .

. . . 102

.
.

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

.
.


;
.
,
;
. , .
,
, (
).

.
.
.
rsln (rastr solution ), xml-.
,
.
rsln
- Load Save Rastr.
rsln .
rsln
.

103

, rsln . .
.

.
,
.
. , .

rsln .

. rsln .

rsln .

104


. :
1.
. , , .
2. , , .
3.
.
4. , ,
(.), ,
.
( ,
..). .

.
, . . , (
, ..). . 3.


.

.

105

.
.
, .

3.1.2.
: _tmp.all _tmp.all .

. _tmp.all
. _tmp.all
, , ( ). , .
, . ,
_tmp.all , .
_tmp.all ...
(*.*). .

.
.

106

, XML. () , , . XML. ,
.

, .
XML XML
XML,
. , .
, . .
.
.
. .
,
.

3.1.3.
, , , .

107

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

108

[-2147483648;2147483647]

[-1.8-10308;1.8-10308]

64000

0 1

RGB 0 255

16-

, ,
, .
.
, .
. , .

. . ,
.

.
.
/ . , , . ,

109

. ,
, .
. .
2.1
.
, (
). . ,
106.
,
.
, ,
(. /).
, .
FF .
/
( , ), .
,
( ),
| .

...
.

. . CustomDeviceMap
:

Id

Name

-200

-300

-500

Generator CustomMode
/ CustomDeviceMap.Name.Id.
CustomModel , -200, -300, -500.
CustomModel Id.
, /
. , , 0.
.
:
110

;();();
, 1, 0.
, 0 . .

. , .
, , .
, , . , 0,
, .
, . .
. ,
,
( Rastr).
. : 2,5;(1,3);(4,6);
0 5, 6 .
:

, 0,4 5 , 1,2
3 - .
2;(4, 5).
.

111

[].
,
. . node ():
ny

name

-500

-110

-220

vetv (), ip iq (
), ny node (). / ip iq node[ny].
. node 1 , , 10, vetv, . ip iq node. vetv name. name ip.name+""+iq.name. ,
.
. , , .
,
.

3.2.
.
( ) ,
.
: . .
, , .
, : ,
, , .

3.2.1
frm.
. frm-.
.

/ /.
,
. . . .

112

3.2.2
.
. ,
.
.
.

3.2.3.
, ,
.
, . .

3.2.4.


.
,
. .

, . . , . .
. (/ ). 113

, . , ,
. , , , .

3.2.5.
,
.
, , , ,
..
, .
, . , .
. , ,
, .
, .

, 90, , ..
,
. , . , , ..
+. : +, _2.
.
. +
:
ip=1|iq=1

1
ip=2|iq=2

2 .. , node , :
"ip="+str(ny)+"|iq="+str(ny)

( ).
node najact,
.
+ . vetv _tmpny , , :
_tmpny=ny

. _tmpny
vetv ny,
. , . vetv
, :
114

if(_tmpny=ip) iq:ip if(_tmpny=ip) #plb:-#ple if(_tmpny=ip) #qlb:-#qle

.. _2 , , , .

3.2.6.
,
. ,
, . ,
, , .
, . .
, . , .
.
, .
. , .

.

3.2.7.
,
. , , . , . rbs. ,
contextmacro .
,
. . . , . .

.

3.2.8.
. , , .
. : , . , , .
, :
1. , :
, :
115

( 5%);
. ( );
(
);
;

;
+ .
2. , :
, .
3. , :
;
+ ,
;
+ ,
( , .
. -, ).
4. (
) , :
.

., , .
,
.
,
(,
).

3.2.9. ,
, . . . , .

, . 6.2
.

116

, . 5.2
.

3.3.

.
. .

... . .

117

... . , .
, ,
. ,
. , , .
.

. , .
,
118

. ,
, .
,
. . ,
. .

,
.
, .
,
, , .
, .
,
.
, , .

.
.
.
. ,

. . ,
.
119

/ ( ). .
/ - CSV. / :
toCDU.rbs , fromCDU.rbs .

3.4.

.
.
.
.
. I_ (. . 2.11).
(. . ).
(. , .
).

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

120

: .

. ( , ), .
,
(. ).
.
%Rastr%/macro
rbs .
.

:
.

+.
CSV-.
CSV.
( ).
, .
, .
.
.
121

, . .. ( 10 ),
.
. ( ).
.
(),
.
,
(doc Word )
, :
1=100 4=7440 7=21 100-200=+1000 150=700 200=800 ..
1 100 , 4 7440 , 7 21, 100
200 1000, 150 700 ..

. , (.
) , , .
.
.

.

3.5

.
.
,
, ( 6. ).

.
, ( 5. ).
.
,
, .
.
, .

122

, . :

3.6.
( ). .

:
1. ( ).
2. ( ).
:

123

, , .

( ).
. ,
, .
.


:

, - Ctrl
. .
. ,
. :

, , . , ,
.
, , .

Shift (), Alt () Ctrl ().
.
.
.
124

.
, .
4 .
. , . Ctrl, .

.
(. . ).
:

. . . .
( ).
.
DXF
DXF (AutoCad).

3.7.

. .


, .
,
, , .
"ny= ",
"ip= | iq= ".
125

"ip= & iq= ", "ny= |


ny= ".

.
, .

. .. 4.5 .
(. .. 4.9 ).
126

( 17) ( 14). .
.
, .


( ) Windows (
WMF),
Windows.

3.8.
.
:
, (aRow);
, (aCol).
:
1. :
.
.
, . ,
.
.
[ ] , .

127

2. :

N_ <=> N_ .
.
[ ] , .
128

,
. , ().

3.9.
,
.
, , . . , : , .
, , .
. .

3.9.1.
, , .
: ,
. .
, .
, , .
.
. . . . .

. ,
. : ,
. , .
129

. , , , . . , .

, , , .
, .

. . , . .
130

, .
, , , :

.
:

, :

131


. , :

.
.
, .

3.9.2.

. / / .
, . . , , , .. XML area .

3.10. /
,
RastrWin3 //:

132

.
100510.804, (: *.kos,
) ( ,
).
, . , . :

133

;
;
, .


. ,
, .

, . ,
// // ,
. ( Dos,
Win). ,
.
(Enter) . , .
"node" "vetv" .
.
2007 :

, xml- .

134

135


. -- , .
Eurostag
. -- Eurostag, .
*.ech.

3.11. ()
3.11.1.

.
, , , .

136

3.11.2.

.
, . . ,
Ctrl. ,
Shift , ,
. Tab
. .

3.11.3.

, . , ,
. , Enter. , Enter.
Esc.
. . .
.
64000 .
. ,
, . ,
.
.

, . , , .
.
,
. ,
, , .
- .
.

3.11.4.

, , ,
. . :

Ctrl+A

Ctrl+I

Ctrl+R

137

Ctrl+D


. CSV.
Microsoft Excel .
, . -
,
.
. ,
, , . , , . , . .
,
.
.

, .

.
, , . .
,
. ,
.
. , , ..
, . ,
200 , , 220
510 .

3.11.5.

- ,
.
. .
. 138

Shift
. . ,
, . , Shift,
.
Shift.
- , ,
.
.
. , Shift.
.

3.11.6.
3.11.6.1

, .
(. .. 3.10.5 ).

, , . .
,
,
.
.
U_.

139

140

U_

,
.
.

.
. , .
( ), , .
. ,
.
.
.
,
, .
141

.

. . . , . .

, .
( ) ,
.
, , , , .
, ,
. , N_ :

142

N_

N_

, .

143

, ;
, ;
;
,
.

,
. ,
.
, ,
.
+
:

3.11.6.2.

, . .

144

, . ,
, .
,
. , , ,
. , .
, , , , 3, 4 5.

OK . , .
.

na=%d. %d ,
. , ,
area.


, ,
, .
, :

145

( |)
. n node. , ,
ny .
:

.

.

. ,
, Microsoft Excel ( . 11 MS Excel)
, CSV, .
Excel, , CSV
.
() .
, (, , ..),
. ,
, ,
Excel , .
, ,
146

, . , Excel
.
, ,
(, , , , ).
. , .
/
/ . 4.

147

/ :

Delta

148

. . (.. 2.4 ). .

, .
,
. , .
, . .
. .
. , VBScript, . , . ,
,
.
, . 12.1 .
.

3.11.7.

,
. ,
,
.
. . 149

. , .


. : . , .
(
). na=0
.
.
, .
( ) , . .
( , dV).
( ) ( ) , . 15
. 15 -5 ,
5. 5 +5 .
. ( dV ).
, .

150


, . . ,,
, .
.
.
:

,
. , , .
, .
. ,
.
.

.
,
, .
,
.
. .
. .
151

.
, .

. ,
, .
, , . ,
, .

. . , . - . , +. , . , .
, ,
. ,
(, ).

152

220
510 . U_
:

U_

U_.
220.

+
510

153

. , , 1 3.
, , :

. .
. , ,
, .
.
, .

3.11.8.

, . ,
- . +,
+, + ..
+/, . .
, . +/ ,
, . .

154

, , .
, ,
.

3.11.9.

(Undo/Redo)

, , ,
.
.


. . . , .
, , . (Undo) , .
Redo ( ) ,
.

155

4.

4.1.
Rastr , , , ( ). ,
, .
, , .


(, ) .
, :
,
:

4 ,
.
:
, , ,
;
;

.
, ,
. , . .
156

4.2.
.
Rastr :
: ;
(, , );
, , .
, :
:
;
;
, , , ;
, ;
:
, ;
( );
, .
:
;
(
, );
, , , .

( ), , .

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

.
. :
, , ,
;
, , ,
;
, , ,
;
157

, , .
, ,
. .
, - .
, , ,
.

4.3.

:
;
;
;
.
, .
. ,
.

4.3.1.
, .
:

. , ,
.

. ,
.
.
drag'n'drop,
. (..
)
. ,
, .
158

.
, . :

11 :
; ;


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

, 19:
;

.
, .
,
. , ,
,
.

, , .

4.3.2.

159

,
(. ).

1431 () ()

:
, , ;
, ,
, ,
. ,
0 180 . , ,
,
. 180 360
;
, , . ;
, ( );
,
( ).
:

803

160

( Ctrl)
: Alt Shift .
, , ,
,
, Ctrl ( Alt Shift),
.
(
Alt Shift). , (, ) .
, .

. , .
. :
( , . .4.6) :

,
, .
Shift Alt ,
. .
161

,
. ,
. :

;
, , ;
/ / .

, , . , :
, , .
, .

:
; ;

, ,
162

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

:
; ,

:
; ,

163

4.3.3.
,
, , , . (, , ), , ,
. , .

, , .
.

:
; ;

8 , :

164

Rastr
. .

, 7 ,
.

1, 2, 3, 7 , 4
, 5 6
165

( ). .
, :

, 11

3 . V

2,5,7,8

./.

2,5,7,8

./.

6 S

2,5,7,8

./.

46
. :

4
( )

, .
4 813.
, .
:

166


( )

. . .
,
, .
. , ,
, , ,
,
.
. Ctrl
,
Ctrl .
Ctrl Alt, Shift (
-).
, ,
. , . (
), .
.

,

.

4.3.4.

.
167

, (
80 ). ( ) .
Enter.

. ,
,
Enter. .
. , , , / .

.

4.4.

. ,

. .

, , . /
(, ) ,
() ().
/,
.

.

168

, N .

4.5.

.
( ), (
) . .
, .

169

.
:

, (, otv, ) :
7% (7%)
(+7%),
;

170

7 2% . , 3%
. 2 7%
;
2 2% ,
( ). ,
.
, , . , 1605 1680 ,
7.24
5.83 %. 1675 (6.68%), - . 1431 3.57%, .
-,
.
, .
,
, , . ( ) ,
1680, 1605 1627 .
, .
,
, , .
, . . , .
,
.
, .
, .
, 2 2%
. 2 2% , , , , .

( ) .
, . , .

. .

171

//
.
, .

.
, .

. ,
, . . , . :
, .
. ,
, .
, ,
, , ,
.
172

,
4 7, .

4.6.
Rastr
, .
.
.
.

. ,
.
, ( 7 (17) , 4 (813), (14)
).

:
, ;
;
X, Y ;
;
(
LITT), ;
,
(, ).
,
.
, , ,
, . ,
, , .
173

/
. . , . :

1 7;
;

.
/ .

, ,
. :
;
.
/ .

174

. :

:
, ;
() ()
( );
() () ( );
() () ( , );

. .
(,
);
(. );
, .
, ,
. :
(_, _);
175

(U- ), ;
(- ), ;
, (__, __
);
, (
7 );
, .

4.7.

.

, , (. ). Shift
( )
, .
() -
.
:
6. , (
).
176

2. .
.
3. , ( ).

4.8.

. , .
, .
,
:
1. , () . . ( ).
, .
,
. ( ).
2.
( ).
3. " .rbs".
4. .
, , " .rbs". . . ( ,
).

4.9.
,
.
,
.
, .
, , :
, .
, (, )
. (. ) , .

177

. , (, ), .

:
178

1. ( +).
2. ( +),
(. ) . .
, (, )
. .
3. , .
( Shift) .
, ,
,
( ).
,

.
( Windows metafile
*.wmf).
(, CorelDraw).
. ,
( ,
).
, X
Y.
,
wmf-. , ( ) ,
, ..
,
.
( ),
( graph2_block).

graph2_block

179

Stroutline.
. ';'.
.
:
1

(1 , 2 )

(1
, 2 )

x1 ()
;

y1 ()
;

x2 ()
;

y2 ()
;

, ( 1
). stroutline,
,
,

, ,
.

4.10.
, ,
(, ,
, ).
, .
, .
, .
,
( ). 180

181

182

5.

5.1.

, . , , ,
.
.

183

.
: .
,
, . .
, - .
. . , . -
, (.. 3.10.7 ).
. , .
, .

5.2.
,
. :
, .

,
. .
. - .
.
.
.
.
, . ,
184

, -
.

,
.
.
, . .
, .
, .
, :
, .
- , (
).
, .
.
, , .
.
,
. ,
. ,
, .
_, .
%[x1|x2|....| xn]p,
x1, x2, ... xn.
. x1,x2,...xn , |. . .
.
. , , .
, , ,
.
185


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

6.

6.1.
, . . , . . . , . ,
, .
:
. ,
, . , , . .
, . ,

.
. , . , . , ,
.
186

. .
, , .
. ,
. , , . , ,
.
. , , .. .

, , , .
,
, . . ,
, . ,
, .
, ,
.
.

6.2.

187

, , , .
. ,
. ,
.

, , .

. , . , . , . , . , (50-100 , ).
, .
, . .
XML ,
XML , . , .

7.


,
. , ,

. (
RastrWin 2.24).

, . ,
. , , , .
, /
.
, (, , , ),
.
(
) .
.
, .
.
.
.
188

, , . .
.
.
workspaces.xml, . ,
.

.
:

. , ,
.... .
, . .
.
.
. xml- (,
).
.
189

, , ,
.
... ( ).

8.

, . , .


.
. : "" "". "" , ,
1. : "ip=1|iq=1" (" 1
1"). , "" "" , ,
. . , , , , , , .
"ip=%d|iq=%d" "ny,ny" ("ny"
""). ,
.
:

.
, , 190

. :

( |) .
n node. , ,
ny.
:

,
. ,
. , , .
.
.
. . ,
. , ,
. , ,
. , ""
.
.
, .
, , , Ctrl.
.
,
: , ,
, "" .
191

192


, .
"/ // ".

9.

Ctrl+N

Ctrl+O

Ctrl+S

Ctrl+P

Ctrl+I

Ctrl+A

Ctrl+D

Ctrl+R

F4

F5

F6

F7

F8

F9

Shift+F6

WINDOWS :

Ctrl + TAB


TAB Ctrl

CTRL + F4

Shift+10

Ins, Del

Home,End,PgUp, PgDn

Ctrl+1,Ctrl+2 ....Ctrl+0

1,2, ...0

1,2,.... 0

1,2,...0

193

10.


10.1.

1. , ,
..:

=1,2,100-200
1, 2 100 200 . ( ). (=).
2. .
, . ,
:

sta
sta ( , ). sta=0 sta=1 .
. , .
:

sel
sel (0 , 1 ). .
.
:

nsx
;

pn
;

bsh
;

1
.
3. . >(), < (), != ( ), = (), ~ ( ) , 1,
, 0, . ,

pn>100
194

100;
uhom~220
, 220;
na=1

, 1;

dp>10

10;

tip>1
( 2, 3, 4);

tip=1
(tip=0 , tip=1 ).
4. . : ! ( ), & ( ), | ( ).
,

!sta

(. );

pn>100|qn>80
100 80;

r<0|x<0
;

nsx & qn

, , ,

nsx & (qn|pn) & tip!=2


, ,
, , . , .
5. . . ,

abs(otv) >5

195

(otv) (abs) 5.

6. .
. , ,
(ip, iq),
. ,

abs(ip.delta - iq.delta) > 0.1


, 0.1
. delta ;

ip.na !=iq.na

(, );

ip.uhom~500

500.

10.2.
,
:
1.

_() 1.2 :

pn*1.2
2.

N_ (na) 10000:

na+10000
3. ( ):

r*5

10.3. ,
, , .
, ( ) .
. ,
, .
1.

(psh, qsh)

qsh*vras*vras

bsh*vras*vras
.. .
.

196

2. , ,
. , :

pn-pg+psh
, .
4. .
cos_pi

cos(atan2(pn,qn))
atan2 pn/qn.
4. if (). , (pgr)

if(sta) 0:pg
if , :, , :. , (sta=1),
0, (pg).
:

if(ktr=0) (ip.vras-iq.vras)/ip.uhom*100:(ip.vras*ktr-iq.vras)/iq.uhom*100
, .
5.
. .
. , :

123+20.5
143.5. , :

"123"+"20.5"
12320.5 , .
. ,
:

ip.name+" - "+ iq.name


, :

ip.name+" - "+ iq.name + "_"+str(ip.uhom)


str, .
cmpl ( ). , Z:

cmplx(r,x)
197

sum , . ,
:

sum("node","pgr","na="+str(na))
sum : 1 ("node"), 2 ("pgr"), 3 . ,
"na="+str(na), ,
. , .
( ):

sum("vetv","1","ip="+str(ny)+"|iq="+str(ny))

11.

MS EXCEL
11.1. Microsoft Excel

Microsoft Excel . RastrWin Excel


, ().
Excel 10 (Office 2002) DDE. Excel , ,
. ,
, ,
Excel.
:
( ) ( RTD (Real Time Data)
). , Excel .
28 , ,
.
Excel ( ) , .
, Excel , , . Excel ,
, .
Excel ,
#/ ( ).
, ,
, , , : , - ,
, RastrWin. , Excel . RastrWin , , , .
Excel ,
. , ,
,

198

, 1 5
.
, Excel , . , Excel
, .
. -, Excel, . -, .
volatile- ( ). , Excel
,
, . , , , , , . , ,
, , ,
. ,
. -, Excel,
.
Excel
. , , , ( CtrlShiftEnter) .
. , , ,
.
. , Excel. Excel,
.
Excel:
1. , Excel.
2.
Excel. , Excel ,
.
Excel. . , ,
, Excel ( , . ).
.
3. Excel. Excel .
, Excel .

199

.

.
=("RastrRTD";"";"_";"";_";"_"
;""[;"_"])
, . (ProgID),
Exel, (),
. "RastrRTD" "".
"_"
"V" ( ).
"" , .
"$1", RastrWin.
Excel,
. .
"_", "_" "" ,
.
. .
, ( ,
), . , . .

Excel

"V"
. ,
3:

=("rastrrtd";;"";"vras";"ny=3";"")

200

. ,
A, B.
:

=("rastrrtd";;"";"vras";"ny="&$A1;"")
( ( ) &
).
A1, 3. A B.

, RastrWin3

, RastrWin,
Excel . ,
. , , "".
, .
RastrWin , Excel
. , "$1"
"$2".

CreateObject("Rtdserver.AstraServer.1").ServeRTD Rastr,X, X "$1", "$2".


Excel. ,
, $1, .
.
Excel .
, ,
Excel , ,
1 ( R1C1). Excel
201

.
Excel (
Microsoft
Office).

Excel

.
(, ).

.
, , , , Excel. , , .
, .
RastrWin3 Excel .

202

RastrWin3 Excel

, . ,
(, ,
..),
. , , , Excel , . ,
, , . , Excel
.
, ,
(, , , ,
).
. ,
. . .

11.2.
MS Excel
,
, MS Excel, , , ,
Excel. ,
/ . MS
Excel, 11 (Office 2003). , , 10 (Office 2002),
.
, Excel,
xladdin.dll . ,
COM- ,
Excel ,
MS Office.
(automation addin), COM (COM-addin),
. , , MS Excel Excel
(

Microsoft Office).
203

,
RTDMan Class.

Microsoft Office

,
Excel .

204

, COM-, .
RTDMan Class ( ) , . , COM-, MS
Excel ( Excel) .
,
COM....

MO Excel

MS-Exce.

COM...
, , ,
AstraData.

(COM)

,
..., .
xladdin.dll .

205

12
12.1
, .

12.1.1

.

.
. , printp.
, . rbs. .
. ,

:

206

.
.

12.1.2.

VBScript

Visual Basic Script Edition (VBScript) Visual Basic, Microsoft


( bat-),
.
VBScript ( Internet plorer,
4.0). VBScript ( )
http:://msdn.microsoft.com/scriping. VBScript
( vbs). exe- .
Rastr RASTR.
MS Excell VBA ( MACRO). VBScript:
'
delta=57.23
ind=0
dir="C:\tmp\"
d=delta+20.3
file=dir & "a.dat"

delta, ind, dir, d, file; 57.23 , 0, "C:\tmp\" ,


20.3, "a.dat"; = (), + ( ), & ( ), , '.
'
Option Explicit

'

dim a,b,i

'

a=Array(100,200,500,100) '
b=0
for i=0 to UBound(a)-1

' 0

b=b+a(i)

'

next

, (),
(a(0) , a(1) ..), UBound(a),
for ... next.
Option Explicit,
, .
, if ... elseif ... else end if,
.
VBScript
. MS Office (Excel, Word
..). RastrWin . 207

( ,
..). , (
).
"Scripting.FileSystemObject" (
):
Set fso = CreateObject("Scripting.FileSystemObject")
Set fldr = fso.CreateFolder("C:/MyTest")
MsgBox " : " & fldr.Name

CreateObject fso . CreateFolder fldr . Name.

12.1.3 Rastre
.
( Sub End Sub) ( ). .
1. . ,
, :
r=setlocale("en-us")
Sub GrCor(tabl,param,viborka,formula)
Set ptabl=Rastr.Tables(tabl)
Set pparam=ptabl.Cols(param)
ptabl.SetSel(viborka)
pparam.Calc(formula)
End Sub
'
' :
'GrCor -, -, ,
GrCor "node","pn","na=1","pn*1.15" ' 1 15%
GrCor "node","qn","na=1","pn*1.15"
GrCor "node","pq","na=2","pn*0.95"
GrCor "node","qg","na=2","pn*0.95"
GrCor "node","nsx","na=3","3"


( ),
r=setlocale("en-us")
Sub CorPQN(raion,koeff)
Set ptabl=Rastr.Tables("node")
Set ppn=ptabl.Cols("pn")
Set pqn=ptabl.Cols("qn")
208

ptabl.SetSel("na="&raion)
ppn.Calc("pn*"&koeff)
pqn.Calc("qn*"&koeff)
End Sub
'
' :
CorPQN 1,1.15 ' P Q 1 1.15
CorPQN 3,0.9 ' P Q 3 0.9

:
r=setlocale("en-us")
Sub CorPQ(ng,raion,koeff)
Set ptabl=Rastr.Tables("node")
Set ppn=ptabl.Cols("p"&ng)
Set pqn=ptabl.Cols("q" &ng)
ptabl.SetSel("na="&raion)
ppn.Calc("pn*"&koeff)
pqn.Calc("qn*"&koeff)
End Sub
'
' :
CorPQ "n",1,1.15

' ("n") P Q 1 1.15

CorPQ "g",2,0.95

' ("g") P Q 2 0.9

2. .
, (
). :
r=setlocale("en-us")
Sub CorPotr(raion,potr)
max_it=10 '
eps=0.001 '
reac_p=True '
Set pnode=Rastr.Tables("node")
pnode.SetSel("na="&raion)
Set pn=pnode.Cols("pn")
Set qn=pnode.Cols("qn")
Rastr.printp "=" & raion
Rastr.printp " =" & potr
for i=1 to max_it
pop=Rastr.Calc("val","area","pop","na="&raion)
209

koef=potr/pop
Rastr.printp " =" & pop
Rastr.printp " / =" & koef
if( abs(koef -1) > eps) then
pn.Calc("pn*"&koef)
if(reac_p) then qn.Calc("qn*"&koef)
kod=Rastr.rgm("")
if(kod <> 0) then
Rastr.printp "--------- ----------- "
exit sub
end if
else exit sub
end if
next
end Sub

' :
'
'CorPotr 1,2000 ' 1 2000
'CorPotr 7,17000 ' 7 17000

,
. (10) (0.001 ).
. . :
=1
=2000
=2219.1337961166
/ =0.901252553361102

Max..

>V

<V

26.5

1440

1.07

1605

0.87

1203

24.5

812-811

48.7

14.6

1418

1.07

1605

0.87

1203

24.5

812-811

42.1

3.7

802

1.07

1605

0.88

1203

24.3

812-811

2.4

72.6

1.07

1605

0.88

1203

24.3

812-811

0.0

0.9

1.07

1605

0.89

1203

24.3

812-811

0.2

=2004.12509379647
/ =0.997941698445252

210

Max..

0.9

>V

<V

1.07

1605

0.89

1203

24.3

812-811

0.9

=2000.15714284794
/ =0.999921434749013

.
:
n=Rastr.SendCommandMain(8," ","",0)
pop=Rastr.SendCommandMain(8," ","",0)

CorPotr n+0,pop+0

3. . (tip >1). (P_min


P_max) . . pg_nom.
r=setlocale("en-us")
Sub KorSech(ns,newp)
viborka="tip>1 &!sta & abs(dr_p) >0.01" '
eps=1
Set grline=Rastr.Tables("grline")
Set node=Rastr.Tables("node")
Set pg=node.Cols("pg")
Set pg_nom=node.Cols("pg_nom")
Set ip=grline.Cols("ip")
Set iq=grline.Cols("iq")
pg_nom.Calc("pg")
For inini=1 to 10
ps=Rastr.Calc("sum","sechen","psech","ns="&ns)
Rastr.printp " = " & ps
if ( abs(ps-newp) < eps ) then exit sub
Rastr.sensiv_start ""
grline.SetSel("ns="&ns)
k=grline.FindNextSel(-1)
While k <>-1
i=ip.Z(k)
j=iq.Z(k)
Rastr.sensiv_back 4,1.,i,j,0
k=grline.FindNextSel(k)
Wend
Rastr.sensiv_write ""
211

Rastr.sensiv_end
Set dr_p=node.Cols("dr_p")
db=Rastr.Calc("sum","node","dr_p",viborka)
if ( abs(db) < 0.000001 ) then
Rastr.printp " "
exit sub
end if
rd=(ps-newp)/db
node.SetSel(viborka)
pg.Calc("pg + dr_p*"&rd)
kod=Rastr.rgm("")
if(kod <> 0) then
Rastr.printp "--------- ----------- "
exit sub
end if
next
End Sub
'
'
' :
KorSech 1,1500 ' 1 1500
'

:
'
n=Rastr.SendCommandMain(8," ","",0)
pop=Rastr.SendCommandMain(8," ","",0)
KorSech n+0,pop+0

.
.
viborka="tip>1 &!sta & abs(dr_p) >0.01" '

, :
viborka="sel &!sta & abs(dr_p) >0.01" '

.
( ), (pg_nom) (dr_p, dr_q, dr_v).

212

12.1.4 ,
start.rbs:
dir=Rastr.SendCommandMain(3,"","",0)
prog=Rastr.SendCommandMain(5,"","",0) '
if prog="Rastr" then
Rastr.NewFile dir&"SHABLON\.rg2"
Rastr.SendCommandMain 4,dir&"common.fm","",0
end if
if prog="ActOpus" then
Rastr.NewFile dir&"SHABLON\.rg2"
Rastr.NewFile dir&"SHABLON\.SP"
Rastr.NewFile dir&"SHABLON\.sch"
Rastr.SendCommandMain 4,dir&"common.fm","",0
Rastr.SendCommandMain 4,dir&"Linkor.fm","",1
Rastr.SendCommandMain 4,dir&".fm","",1
'Rastr.SendCommandMain 4,dir&".fm","",1
end if

,
. (
Rastr ActOpus) .
Rastr.NewFile, Rastr.SendCommandMain , 4 ( , (0) (1) ).

13.

COM RASTR
13.1. Rastr

astra.dll. , , ,
VBScript:
Set Rastr=WScript.CreateObject("Astra.Rastr")

, , astra.dll
( ), .

13.1.1.

Load RG_KOD,name,shabl
name
shabl. shabl , name , name,
.
RG_KOD
:
213

RG_REPL=1 (
);
RG_ADD=0 , (
);
RG_KEY=2 , , . , (
);
RG_ADDKEY=3 , , . , ( ).
:

Rastr.Load RG_REPL,name,"" name.


.

Rastr.Load RG_KEY,"",shabl
shabl. .

Rastr.Load RG_REPL,name,shabl
name . shabl
, , . , ,
. , , .

LoadOldFile tip,name,shabl
(Rastr/Dos). : tip , OLD_RGE=0 ,
OLD_CXE=1 ; name ; shabl
. .rg2 (rge), .grf (cxe)
:

Rastr.LoadOldFile OLD_RGE,"C:\TMP\cx195.rge","C:\RastrWin\.rg2" RastrDos.

Save name,shabl
name shabl.
:

Rastr.Save name,"" name.


Rastr.Save "",shabl , , , . .

Rastr.Save name,shab ,
, name.

NewFile shabl
, . , (). , . , .
214

Commit
, Save.

RollBack
, Commit.

SendChangeData hint,tabl,col,long row


OnChangeData .
.

SendCommandMain COMM_MAIN,p1,p2,pp
OnCommandMain . .
.

printp str
prot str.

13.1.2.

rgm par , par .


:

"" c ;
"p" ;
"z" ;
"c" ;
"r" (
).
:
Rastr.rgm "" '
set node=Rastr.Tables("node")
set pn=Rastr.Cols("pn")
node.SetSel("na=1")
pn.Calc("pn*1.2") ' 1
Rastr.rgm "zcr" '

opt par , par .


ekv par .
kdd par .
: AST_OK=0 ( ),
AST_NB=1 ( ).
215

:
kod=Rastr.rgm("")
If kod<>0 then Rastr.printp " "

ClearControl .
AddControl -1,name name .

ApplyVariant num ,
num, .

kod=step_ut( param ) . (rgm), "i" ( ). : AST_OK(0)


; AST_NB(1) ,
; AST_REPT(2)
. " " : "" , ""
.

ut_FormControl , .
( "" ):
if(Rastr.ut_Param(0) = 0 then Rastr.ut_FormControl
Rastr.ClearControl
kod=Rastr.step_ut("i")
if kod=0 then
do
kd=Rastr.step_ut("z")
if (kd=0 and Rastr.ut_Param(1) = 0) or Rastr.ut_Param(2) = 1 then Rastr.AddControl -1,""
loop while kd=0
endif

Tables .
LockEvent OnChangeData.
:

Rastr.LockEvent=True
.
' "node"

Rastr.LockEvent=False
216

'
Rastr.SendChangeData HINTR_CHANGE_TABL,"node",0,

LockEvent=TRUE ( ), , LockEvent=FALSE OnChangeData
. .

RenumWP (True) (False)


(. ).

ut_Param(num) ( ): UT_FORM_P(0)
(0 , 1 ), UT_ADD_P(1) ; UT_TIP(2) (0 , 1 ) , UT_STATUS(3) (/).
:

prot message .
OnChangeData hint,tabl,col,row , hint.
:

HINTR_CHANGE_ALL=0,
HINTR_CHANGE_COL=1,
HINTR_CHANGE_ROW=2,
HINTR_CHANGE_DATA=3,
HINTR_ADD_ROW=4,
HINTR_DELETE_ROW=5,
HINTR_INS_ROW=6,
HINTR_CHANGE_TABL=7,

OnCommandMain COMM_MAIN,p1,p2,pp
, COMM_MAIN.

13.1.3.

Tables

Tables Rastr.
:

Add name name , ( Table).


Remove index c index (0 Count 1).
Remove name name.
:

Item index ( Table) index (0


Count 1) ( ).
217

Item name ( Table) name ( ).

Count .
:

Tabs=Rastr.Tables
For I=0 to Tabs.Count-1
Rastr.printp tabs(i).Name
Next
.

13.2. Tabl
Item Add Tables.
:

AddRow () .
InsRow row row (
0).
DupRow row row ( , 0).

DelRow row row.


SetSel viborka . ,
: 0 , 1 .
, .

DelRows , .
: , :

Set tvetv=Rastr.Tables("vetv")
tvetv.SetSel "ip.ny=0|iq.ny=0"
Rastr.printp " :" & tvetv.Count
tvetv.DelRows

WriteCSV CSV_KOD ,file,param, div CSV


file.CSV_KOD:
CSV_ADD(0) , ;
CSV_REPL(1) , ;
CSV_REPLNAMES(5) , .
CSV_REPL ;
param ;
div .
.
218

. .
.
file="c:\tmp\a.csv"

Set tvetv=Rastr.Tables("vetv")
tvetv.SetSel "sta"
tvetv.WriteCSV 1,file,"ip,iq,nameu",";"

WriteCDU CDU_KOD, file,param ,


. . 4- 8. $.
. :

file="c:\tmp\a.cdu"
Set tvetv=Rastr.Tables("vetv")
tvetv.SetSel "sta"
tvetv.WriteCSV 0,file,"0399,np,ip,iq"

ReadCSV CSV_KOD,file,param,div,defpar (file),


(div); param , ; defpar =.
:
CSV_ADD(0) ( );
CSV_REPL(1) ( );
CSV_KEY(2) . ,
( );
CSV_KEYADD(3) . ,
( ).
CSV_REPLNAMES(5) - CSV_REPL
, , ;
.
( ), / ( ),
(CSV_KOD) .
: (CSV_KOD=2) (pn, qn) CSV . (ny). :

file=c:\tmp\nag.csv
set tnode=Rastr.Tables(node)
tnode.ReadCSV 2,ny,pn,qn,sel=1

ReadCDU CDU_KOD,BSTR file,BSTR param,BSTR defparam


. , . CSV .
:
219

tvetv.SetSel("iq>0")
tvetv.ReadCDU 1,file,"0301,np,ip,iq,r,x,b,ktr,kti",""
tvetv.ReadCDU 0,file,"0399,np,ip,iq,r,x,b,ktr,kti","sta=1"
: 0301
. , "iq>0",
.
:

TestSel(long row) (0 1)
row ( ).

FindSel(long row) ,
(1, ).
Count , .
Name .
Description .
TemplateName ( ),
.

Size .
Key ( ), .

Cols .
SelString(long row) , row :

set tnode=Rastr.Tables("node")
ss=tnode.SelString(0)
Rastr.Printp ss
set tnode=Rastr.Tables("vetv")
ss=tnode.SelString(2)
Rastr.Printp ss
:
ny=805
ip=1&iq=42&np=0

13.3. Cols
. Cols Table.
:

Add name,tip name, tip.


(Col), tip :
PR_INT(0) ;
220

PR_REAL(1) ;
PR_STRING(2) ;
PR_BOOL(3) ;
PR_ENUM(4) ;
PR_ENPIC(5) ( );
PR_COLOR(6) .

Remove index index.


Remove name name.
Item index .
Item name .
:

Count ( ).
: node ()

Set cls=Rastr.Tables("node").Cols
For I=0 to cls.Count-1
Rastr.printp cls(i).Name
Next

13.4. Col
, Add Item Cols.
:

Calc formula ( ).
: .

set tvetv=Rastr.Tables("vetv")
set x=tvetv.Cols("x")
tvetv.SetSel("tip=0")
x.Calc "4*r"
:

Prop( tip) , tip


:
FL_NAME=0 (),
FL_TIP=1 (),
FL_WIDTH=2 (),
FL_PREC=3 (),
FL_ZAG=4 (),
FL_FORMULA=5 (),
FL_AFOR=6,
FL_XRM=7,
FL_NAMEREF=8 ( ),
FL_DESC=9 (),
221

FL_MIN=10 (),
FL_MAX=11 (),
FL_MASH=12 ().
:

set tvetv=Rastr.Tables("vetv")
set nameu=tvetv.Cols("nameu")
nameu.Prop(FL_FORMULA)= "str(ip.name)+"+"+str(iq.name)+"_"+str(ip.uhom)"

Name .
Z (I) / l.
ZN(I) / l.
ZS (I) / , .

13.5.
Astra.dll COM-,
, , ,
Rastr (RastrWin, ActOpus). Rastr
SendCommandMain COMM_MAIN,p1,p2,pp.

13.5.1.

SendCommandMain COMM_MAIN,p1,p2,pp

OnCommandMain
. (-), -.
COMM_MAIN. Rastr :

COMM_OPEN_FILE(1) :
, .

COMM_SAVE_FILE(2) : , .

COMM_CMDPATH(3) Rastr.
COMM_GET_NAME(5) (Rastr, ActOpus
..).

COMM_GET_FILENAME(6) , p1.

COMM_GET_DATE(7) :
.

COMM_GET_INPUT(8) : .

COMM_SET_FORM(9) p2 p1.
COMM_SET_PROP(10) .

222

COMM_IMP_CSV(11) SV-: p1
[] ( node[ny,na]); p2 .

COMM_EXP_CSV(12) CSV.
13.5.2.

COMM_LOAD_FORM(4) (pp=0) (pp=1)


(*.fm).

COMM_OPEN_TABL(0) : p1 p2.
COMM_FORM_TABL(14) p1
, p2, pp. . ,
"sel,sta,ny,name,pn,qn,pg,qg",
SendCommandMain COMM_FORM_TABL,"","bsh,gsh",3
: 4- , bsh,gsh,
"sel,sta,ny,bsh,gsh". .

13.5.3.

, -, , -,
. .

.
:
P = 0 P ( );
Q = 1 Q ( );
U = 2 .
(NY) (DD). :
:
d_delta ;
d_v ( );
d_q ( );
:
d_pb P ( ip);
d_qb Q ( ip);
d_pe P ( iq);
d_qe Q ( iq).
.
:

223

Rastr.sensiv_start ""

'

Rastr.sensiv_forw 0,54,1 ' 1 P 54


Rastr.sensiv_forw 1,54,0.7 ' 0.7 Q< 54
sensiv_forw
Rastr.sensiv_write ""

'


set dp=Rastr.Tables("vetv").Cols("d_pb")
for I=0 to Rastr.Tables("vetv").Size
Rastr.printp dp.Z(i)
next
Rastr.sensiv_forw 1,120,200 '
Rastr.sensiv_write ""

' . ..
Rastr.sensiv_end
: sensiv_start . sensiv_forw
. sensiv_write

. sensiv_end, .

Rastr.sensiv_forw 0,54,1
Rastr.sensiv_write ""
.

:
:
PL=4 P ;
QL=5 Q ;
DP = 6 ( );
DELTA =7 ;
DD_P=8 ( );
Q =1 ;
V=2 .
.
, , (IP, IQ, NP). 224

, . :
dr_p ;
dr_q ;
dr_v .
:

Rastr.sensiv_start "" '


' 1 PL 54-10/0 (0 )
Rastr.sensiv_back 4,1.,54,10,0
Rastr.sensiv_write "" "
'
set dp=Rastr.Tables("node").Cols("dr_p")
for I=0 to Rastr.Tables("node").Size
Rastr.printp dp.Z(i)
next
. ..
Rastr.sensiv_end
(dPL ).
1 ()
( ), 2 ()
( ), .. , .
:

Rastr.sensiv_start "" '


' 1 PL 54-10/0 (0 )
Rastr.sensiv_back 4,1.,54,10,0
Rastr.sensiv_write ""
Rastr.sensiv_forw 1,54,0.7
Rastr.sensiv_write ""
Rastr.sensiv_end
write back forw.

13.6. COM
13.6.1.

CimCom

substserver.dll.
SubstServer Rastr

225

set sb=Rastr.SubstServer CimCom.


, . Rastr, , CimCom.
CimCom,
(
).
, CimCom

Rastr.ShutDownSubstServer
:

GetSubstBar SubstBar, .
Use path path ( .mk4
.xml).

CreateNew path path .


Connect . , .
Disconnect .
Save .
SaveAs name (
).

RemoveLine Conneq1, Conneq2 ( ConductingEquipment ).


(, ), .
CIM. (id)
.

AddLine ConneqOrConnode, Conneq2


.
( ,
), id
ConnectivityNode ( ). AddLine RemoveLine

ConnectivityNode, VoltageLevel, Terminal, ( UML)
(Substation, Line ). .

SelectElement idElement
( )
:

TypeIdByName sVal sVal CIM .


. CIM ,
1.
:
226

set sb = Rastr.SubstServer
substId = sb.TypeIdByName(Substation)

Elements initalSel
. , . ,
( TypeIdByName).
InitalElements
Substation - ,
( ).

RemoteSubstByLineSegment excludeSubst, lineid, mode


mode ( RetriveType) . ,
.

SubstHistory
SubstHistory,
. ,
, .
.
.
, . :
1.
2.
3.
4.
,
(
, ). .4. , . , . , SubstHistory , .4, , .

Dimension
8 , (id) . id ( 8 16 ).

PickerState
( ). .

227

13.6.2.

Elements

CIM , . initalSel
InitalElements CimCom.
:

Add name, container name.


. CIM . id
, , .
, , (Breaker) (Substation). PQ- (MVArCapabilityCurve) (SynchronousMachine) .. , , CIM
EquipmentContainer.
.

ConductingEquipment Substation
PowerTransformer Substation
MVArCapabilityCurve SynchronousMachine
CurveData MVArCapabilityCurve
SwitchingOperation Switch
TransformerWinding PowerTransformer
SynchronousMachine GeneratingUnit

Find id .
Remove id
Remove index .
:

Item id
Item index Element
.

Count .
13.6.3.

Element

Element CIM .
:

Props .
Id .
Name CIM .
cType .
TypeIdByName CimCom.
228

SwitchState NewVal . Switch (.


CIM).
SwitchingOperation.

13.6.4.

Props

CIM .
:

Add Name .
.
Remove Name name.
:

Remove Name name.


Item Name
Item Index .
Count .
.
Find Name
.
FindByBindValue Id . .

13.6.5.

Prop

CIM .
:
;
;
;
;
();
.
:

Name .
Value Val .
SValue Val , .

DValue Val , .
.

229

IValue Val , .
.

Type :
0 -
1 -
2 -
4 -
8 -
16 - (/). ( 1,0)
32 - ()
64 -

CimName .
13.6.6.

CreateObjectEx

CreateObjectEx COM- (ProgID), , , .

CreateObjectEx(ProgID,[Prefix])

ProgID . .[.].
, . , . , .
Prefix .
. ,
, .
. CreateObjectEx .

Set oIE = CreateObjectEx("InternetExplorer.Application","IE_")


Microsoft Internet Explorer. ,
.
. ,
Internet Explorer ( , , ), Internet Explorer RastrWin:

oIE.Visible = True
oIE.Navigate "www.rastrwin.ru"
, , COM-.
, , CreateObjectEx.
, .
230

, . , Internet
Explorer:

Sub IE_Quit(p)
MsgBox "Internet Explorer "
End Sub
, :

Sub IE_ProgressChange(nProgress, nProgressMax)


Rastr.PrintP " & CDbl(nProgress)/nProgressMax*100 & % "
End Sub
, COM-, , ,
OleView ( Microsoft Visual Studio) TlbDoc ( ,
Internet).
Visual Basic For Applications Microsoft Excel (// Visual Basic/Tools/References...).
, ,
. ,
. .
,
. , ,
,
. -
, CreateObjectEx
. , , , , , . , ( ):
IProvideClassInfo2;
IProvideClassInfo;

TYPE-GUID

HKEY_CLASSES_ROOT\CLSID\<CLASS-GUID>\TypeLib\<TYPE-GUID>

(CLASS-GUID ).
,
Disconnect.
CreateObjectEx .

13.6.7.

Disconnect

Disconnect COM-,
CreateObjectEx, COM-
(ProgID), , , .
231

Disconnect (VarObject As Object)

VarObject . , COM- CreateObjectEx.


. Disconnect
COM-. , CreateObjectEx,
. , . , ,
, - .

Set oIE = CreateObjectEx("InternetExplorer.Application","IE_")


Disconnect oIE
oIE.Visible = True
Microsoft Internet Explorer . oIE -
Internet Explorer, , Disconnect ,
Internet Explorer.

13.6.8.

Sleep

Sleep
.

Sleep(Wait)

Wait . Wait .
. Sleep . ,
, . Sleep
,
Windows ,
. , :
Set oIE = CreateObjectEx("InternetExplorer.Application","IE_")

oIE.Visible = True
Do while (oIE.Busy)
Loop
Ready = 0
do while(Ready=0)
Sleep 1000 ' , Internet Explorer
loop
232

msgbox "Internet Explorer "

Sub IE_Quit(a)
Ready = 1
Disconnect oIE
End Sub
Internet Explorer,
, Internet Explorer ( , Ready ). Quit, Ready 1. ,
Sleep, , Internet
Explorer. Internet
Explorer Sleep, Internet Explorer
.

233

14.

14.1.
14.1.1.
RastrWin .
.
,
. ,
, . , . ,

.
, ,
( ).
, , ..., ,
, Shablon RastrWin.
Shablon,
Shablon,
.
.
.
, .
, . , , .
Shablon.
, . ,
,
.

14.1.2.

, , .

234

, A, B, C, D, E, F, , . .
, , , .

14.1.3.

:
1. , , .
2. , , .
3.
, .

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

235

14.1.4.

:
1. : .
2. (, .rg2): .rg2. .
, .
3. , .
4.
Shablon. , ... .
, , .

14.2.
14.2.1.

RastrWin . ()
( ).
.
( , ..). .
,
.
. , , ,
( , ),
, .
, .

14.2.2.


. / /.
236


//. (
)
. ,
,
. ( ) . ( ).
( ) .
.
( ), .

, , , .

. .

237

14.2.3.

, .
, .
.
.
,
(. ).

( )
.
.
-.
.
.
/
. ,
,
.
, , . , , .

. . ,
( / ).
FF

/
: , .
.

14.2.4.

238

( , ..).
(,
..).
. ( , ..).
,
:
(/, / ). , , ( ,
), ( ,
).
/ bmp-,
, :

, . /,
. 0, 1 .. ,
(tip) :

(node) :

0, 1 ..
.
, RGB-.
:

239

, ,
(, , ) .

14.2.5.

, . , (node)
(ny), (vetv) : (ip),
(iq) (np).

, , , CSV .

14.2.6.

. , , .
(
). : [].
(node) (vetv).

1. node

ny
...
delta

2. vetv

ip
iq
...
dij



...

240

node[ny]
node[ny]
...

ip.delta-iq.delta

(node) (vetv) , . , (ip) (iq)


(node)
(ny). .
(dij) .
(ip.delta):
1. ip delta.
2. ip
node, ny.
3. node
delta. .
. .

.
, (ny) , (ip,iq).

( , , , ).

14.2.7.

:
1. .
, .
2. , 0 ( )
1 ().
3.
.
. .
:
1. :
56 57.1928 -1.2e-4
-"text"- , .
2. .
3. : + , , * , / , ^ ( ).
4. : > , < , >= , <= , = , != , ~ ( ).
,
1, , 0, .
5. : & | !
& ; | ; ! .
241

6. if
if ( ) 1 : 2
, 1, 0,
2.
7. ( ) .
8. :
sin cos tan acos asin atan2 abs sqrt
9.
str num cmplx
str ; num ;
cmplx 2 1 + J2.
10.
#plb #qlb #ple #qle #dp #dq #ib #iq
. .
11. . ()
. , vetv,
ip, iq ( ), node[ny]
([ ]). , ,
, , ip.uhom ,
iq.name ..

.
12. sum (, , ) ,
. ,
sum(node,pn-pg,na=1)
(pn) (qn) ("node"), "na=1" (.. 1).
,
. , (area) : sum("node","pn","na="+str(na)).
"na="+str(n), na, 1
"na=1", 2 na=2 ..
max, min , . val
.

242

14.3.

14.3.1.

""

F(x)

Ref

ny<k>
name
na

area[na]

npa

area2[npa]

nsx
sel
sta
tip
uhom
pg
qg
pn
qn
gsh
bsh
vzd
qmax
qmin
umax
umin
vras
delta
kct
pg_max
pg_min
pg_nom

N_

U_
_
Q_
P_
Q_
G_
B_
V_
Q_max
Q_min
U_max
U_min
V
Delta
Kct
PG_max
PG_min
PG_

polin[nsx]
2

243




2-
()



|||+|

P
Q
P
Q
G
B

Q
Q




-
Pg
Pg
Pg

nrk
brk
bshr
psh
qsh
sta_r

N_-
B_-
B_
P_
Q_
S_-p

#bsh
if(sta) 0:gsh*vras*vras
if(sta) 0:bshr*vras*vras
brk!=0&nrk=0

otv

dV%

if(sta=0) (vras-uhom)/uhom*100:0

pnr
qnr
pgr
qgr

P_
Q_
P_
Q

nebal

nebal_q

Q_

dpn
dqn
na_name
na_pop
Ysh
sn
sg
uc
ssh
qmima
umima

P_-P_
Q_-Q_

if(sta) 0:#pnr
if(sta) 0:#qnr
if(sta) 0:#pgr
if(sta) 0:qg
pnr-pgr+pshsum("vetv","if(ip="+str(ny)+")#plb:#ple",#adj)
qnr-qgr+qshsum("vetv","if(ip="+str(ny)+")#qlb:#qle",#adj)
#pnr-pn
#qnr-qn
na.name
na.pop
cmplx(gsh*1000000,bshr*1000000,0)
cmplx(pn,qn,1)
cmplx(pg,qg,1)
cmplx(vras*cos(delta),vras*sin(delta),1)
cmplx(psh,qsh,1)
str(qmin)+" : "+str(qmax)
str(umin)+" : "+str(umax)

na.no

P-
Y_
S_
S_g
U
S_
_Q
_V

na_no
lp

L_P

lq
contr_v

L_Q
.V








P
Q
P
Q
P
Q
-
Q -Q







Q
V
P ( )
Q

244

reg_q
nga
dpg
grk

.Q
N-
P_-P_
G_-

gshr

G_

snr
sgr

S_
S_

cmplx(pnr,qnr,1)
cmplx(pgr,qgr,1)

Q

P_-P_
(G)

(G)

Ref

ngroup[nga]
#pgr-pg
#gsh

""

ip<k>
iq<k>
np<k>
sel
sta
tip
r
x
b
g
ktr
kr_max
kr_min
bd
n_anc
na
div
npa
div2
i_dop
kti
ki_max
ki_min

N_
N_
N_

S
T
R
X
B
G
/r
_max
_
_
N_
N
_
2
2
I_25
/i

F(x)

node[ny]
node[ny]

2;(4, 5);
if(ktr) 1:(if(r=0&x=0) 2:0)

ancapf[nbd]
area[na]
area2[npa]

245


|-|
R
X



( )
M ( )
N -




2
(t=25) I_

( )
( )

nr_ip
nr_iq

N-_
N-_

br_ip

B-_

br_iq

B-_

b_ip
b_iq
g_ip
g_iq
pl_ip
ql_ip
pl_iq
ql_iq
dp
dq
ib
ie
psh
qsh
name

B_ip
B_iq
G_ip
G_iq
P_
Q_
P_
Q_
dP
dQ
I_
I_
P_
Q_

if(ktr!=0) b:b/2+nr_ip*br_ip
if(ktr!=0) 0:b/2+nr_iq*br_iq
if(ktr!=0) g:g/2+nr_ip*gr_ip
if(ktr!=0) g:g/2+nr_iq*gr_iq
#plb
#qlb
#ple
#qle
#dp
#dq
#ib
#ie
#psb+#pse
#qsb+#qse
ip.name+" - "+ iq.name

cmplx(r,x,2)

slb
sle

Sl_
Sl_

zag_i

I/I_dop(%)

zag_it
kt_b

I/I_dop(%)
Kt/B

dv

dV%

dij

dDelta

cmplx(#plb*_zbg,#qlb*_zbg,1)
cmplx(#ple*_zen,#qle*_zen,1)
if(i_dop_r=0) 0:(if(#ib>#ie)
#ib/i_dop_r*100:#ie/i_dop_r*100)
if(i_dop_r=0) 0:i_msi/i_dop_r*100
if(ktr!=0) ktr:b*1000000
if(ktr=0) (v_ip-v_iq)/ip.uhom*100:(v_ip*ktrv_iq)/iq.uhom*100
d_ip-d_iq
if(abs(#plb) > abs(#ple) )
#plb*_zbg:#ple*_zbg
if(abs(#plb) > abs(#ple) )

plmax

slmax

246











P
Q
P
P
P ()
Q ()


P
Q





. B

cmplx(#plb*_zbg,#qlb*_zbg,1):cmplx(#ple*_
zbg,#qle*_zbg,1)
msi

i_msi
reg_kt
contr_i
nga
div3
dname

I_
.
.I
N-
3
..

if(msi) #ie:#ib

v_ip

v_iq

d_ip

d_iq

if(sta=0|sta=3) ip.vras : (if (sta=1) 0:


(if(sta=2) #v2 : 0 ))
if(sta=0|sta=2) iq.vras : (if (sta=1) 0:
(if(sta=3) #v2 : 0 ))
if(sta=0|sta=3) ip.delta : (if (sta=1) 0:
(if(sta=2) #d2 : 0 ))
if(sta=0|sta=2) iq.delta : (if (sta=1) 0:
(if(sta=3) #d2 : 0 ))
if (pl_ip>0) 0: (if (pl_ip<0) 1:2)
if (ql_ip>0) 0: (if (ql_ip<0) 1:2)
if (ql_iq>0) 0: (if (ql_iq<0) 1:2)

signP
signQip
signQiq
sr_ip

S-

sr_iq

S-

gr_ip

G-_

gr_iq

G-_

pl_bal

P_

i_dop_r
n_it
Tc

I_
N_I(t)
Tc

ngroup[nga]





(6,7)
(8,9)
(8,9)

#plb*div+#ple*(1-div)
graphikIT[Num]

247

|
-
-

I

.






(G)

(G)
/c

I_
N I(t)

" "

nsx<k>
p1
p2
p3
p4
q0
q1
q2
q3
q4
p0

N
P1
P2
P3
P4
Q0
Q1
Q2
Q3
Q4
P0

MT

F(x)

Ref

""

Num<k>

Qmax

Qmax

Qmin

Qmin

MT

F(x)

Ref

" "

Num<k>

Num

Tc

Tc

Idop

Idop

()

MT

F(x)

Ref

14.3.2.

" "

ns<k>

N_

sechen[ns]

ip<k>

N_

node[ny]

iq<k>

N_

node[ny]

pl

Pl

name

dv

sta

F(x)

Ref

#pgrl
ip.name+""+iq.name



01
2

248

""

ns<k>

N_

pmax

P_max

pmin

P_min

psech

P_

name

F(x)

Ref

sum("grline","pl","ns="
+str(ns))

n_oes
sta

tip

lmin

L_min

lmax

L_max

14.3.3.

" "

na<k>

N-

name

no

darea[no]

nng

nagr[nng]

pg

pn

qg

qn

dp

Dp

sum("node","pgr","na="
+str(na))
sum("node","pnr","na="
+str(na))
sum("node","qgr","na="
+str(na))
sum("node","qnr","na="
+str(na))
#dpa

dq

Dq

#dqa

pop

pn+dp

poq

qn+dq

vnp

pg-pop

F(x)

249

Ref

P
P
Q
Q
P

vnq

sta

sel

tip

qg-poq

dp_line

dP_

#dpart(0)

dp_tran

dP_

#dpart(1)

dp_shun
t

dP_

sum("node","psh","na="
+str(na))

sh_line

#spart(0)

sh_tran

#spart(1)

dp_nag

dP_

#dpart(0)+#dpart(1)

dp_xx

dP_

#spart(0)+#spart(1)

dq_line

dQ_

#dqart(0)

dq_tran

dQ_

#dqart(1)

dq_shun
t

dQ_

sum("node","qsh","na="
+str(na))

shq_line

Q_

#sqart(0)

shq_tra
n

#sqart(1)

Q_

dq_nag

dQ_

#dqart(0)+#dqart(1)

dq_xx

dQ_

#sqart(0)+#sqart(1)

pfull

Tc

Tc

250

""

npa<k>

N-

name

pg

sum("node","pgr","npa="+str(npa))

pn

sum("node","pnr","npa="+str(npa))

qg

sum("node","qgr","npa="+str(npa))

qn

sum("node","qnr","npa="+str(npa))

dp

Dp

#dpa2

dq

Dq

#dqa2

pop

pn+dp

poq

qn+dq

vnp

pg-pop

vnq

qg-poq

pfull

Tc

Tc

F(x)

Ref

251

" "

no<k>
name
pg
pp
pvn
qg
qp
qvn
dp
dq
dp_nagr
dp_line
dp_tran
dp_xx
sh_line
sh_tran
sh_shunt
dq_nagr
dq_line
dq_tran
dq_xx
shq_line
shq_tran
shq_shunt
Tc

P
Q
Q
Q
dP
dP
dP_
dP_
dP_
dP_

XX-
_
dQ_
dQ_
dQ_
dq_
Q__
Q_XX-
Q__
Tc

MT

F(x)

sum("area","pg","no="+str(no))
sum("area","pop","no="+str(no))
sum("area","vnp","no="+str(no))
sum("area","qg","no="+str(no))
sum("area","poq","no="+str(no))
sum("area","vnq","no="+str(no))
sum("area","dp","no="+str(no))
sum("area","dq","no="+str(no))
sum("area","#dpart(0)+#dpart(1)","no="+str(no))
sum("area","#dpart(0)","no="+str(no))
sum("area","#dpart(1)","no="+str(no))
sum("area","#spart(0)+#spart(1)","no="+str(no))
sum("area","#spart(0)","no="+str(no))
sum("area","#spart(1)","no="+str(no))
sum("node","psh","na_no="+str(no))
sum("area","#dqart(0)+#dpart(1)","no="+str(no))
sum("area","#dqart(0)","no="+str(no))
sum("area","#dqart(1)","no="+str(no))
sum("area","#sqart(0)+#sqart(1)","no="+str(no))
sum("area","#sqart(0)","no="+str(no))
sum("area","#sqart(1)","no="+str(no))
sum("node","qsh","na_no="+str(no))

252

Ref


Q
Q
Q

Q


-




Q
Q
Q -
Q
Q
Q
Q

" "

MT

F(x)

Ref

b_na<k>

area[na]

e_na<k>

area[na]

pb

sum("vetv"," if(ip.na="+str(b_na)+") pl_bal:-pl_bal","(ip.na="+str(b_na)+


"&iq.na="+str(e_na)+")|(ip.na="+str(e_na)+"&iq.na="+str(b_na)+")")

pe

pb

najact

np

sta

sel

tip

sb

pb*_zbg

se

pe*_zen

253

" "

MT

F(x)

Ref

Num<k>

uhom

U_

dp

dP

sum("area","#dparu("+str(uhom)+")+#sparu("+str(uhom)+")","1")

dp_line

dP_

sum("area","#dparut("+str(uhom)+",0)","1")

dp_tran

dP_-

sum("area","#dparut("+str(uhom)+",1)","1")

dp_sh

dP_-

sum("node","psh","uhom~"+str(uhom))

P ( )

dq

dQ

sum("area","#dqaru("+str(uhom)+")+#sqaru("+str(uhom)+")","1")

dq_line

dQ_

sum("area","#dqarut("+str(uhom)+",0)","1")

dq_tran

dQ_-

sum("area","#dqarut("+str(uhom)+",1)","1")

Q ()

Q

Q -

dq_sh

dQ_-

sum("node","qsh","uhom~"+str(uhom))

dpa_line

dP_

val("area","#dparut("+str(uhom)+",0)","na="+str(_tmp))

dpa

dP_

val("area","#dparu("+str(uhom)+")","na="+str(_tmp))

dpa_tran

dP_

val("area","#dparut("+str(uhom)+",1)","na="+str(_tmp))

spa_line

val("area","#sparut("+str(uhom)+",0)","na="+str(_tmp))

spa_tran

_-

val("area","#sparut("+str(uhom)+",1)","na="+str(_tmp))

spa

dP_

val("area","#sparu("+str(uhom)+")","na="+str(_tmp))

dpda

dP_

sum("area","#dparu("+str(uhom)+")","no="+str(_tmp))

dpda_line

dP_

sum("area","#dparut("+str(uhom)+",0)","no="+str(_tmp))
254

P ()



-

Q ( )

dpda_tran

dP_

sum("area","#dparut("+str(uhom)+",1)","no="+str(_tmp))

spda

dP_

sum("area","#sparu("+str(uhom)+")","no="+str(_tmp))

spda_line

sum("area","#sparut("+str(uhom)+",0)","no="+str(_tmp))

spda_tran

_-

sum("area","#sparut("+str(uhom)+",1)","no="+str(_tmp))

sp_line

sum("area","#sparut("+str(uhom)+",0)","1")

sp_tran

XX_

sum("area","#sparut("+str(uhom)+",1)","1")

dqa_line

dQ_

val("area","#dqarut("+str(uhom)+",0)","na="+str(_tmp))

dqa

dQ_

val("area","#dqaru("+str(uhom)+")","na="+str(_tmp))

dqa_tran

dQ_

val("area","#dqarut("+str(uhom)+",1)","na="+str(_tmp))

sqa_line

Q__

val("area","#sqarut("+str(uhom)+",0)","na="+str(_tmp))

sqa_tran

Q__-

val("area","#sqarut("+str(uhom)+",1)","na="+str(_tmp))

sqa

dQ_

val("area","#sqaru("+str(uhom)+")","na="+str(_tmp))

dqda

dQ_

sum("area","#dqaru("+str(uhom)+")","no="+str(_tmp))

dqda_line

dQ_

sum("area","#dqarut("+str(uhom)+",0)","no="+str(_tmp))

dqda_tran

dQ_

sum("area","#dqarut("+str(uhom)+",1)","no="+str(_tmp))

sqda

dQ_

sum("area","#sqaru("+str(uhom)+")","no="+str(_tmp))

sqda_line

Q__

sum("area","#sqarut("+str(uhom)+",0)","no="+str(_tmp))

sqda_tran

Q__-

sum("area","#sqarut("+str(uhom)+",1)","no="+str(_tmp))

sq_line

Q__

sum("area","#sqarut("+str(uhom)+",0)","1")

sq_tran

Q_XX_

sum("area","#sqarut("+str(uhom)+",1)","1")

255

14.3.4.

""

Num<k>
Name
Node

Pmax

Pmax

Pmin

Pmin

Pgconst

Type

Qmax

Qmax

Qmin

Qmin

Vgain
Vdrop

V
V

NodeState

SaldoCons
umer
NumXop
Pdem

N_
P .

P2

P2

Tarif
sta

Pnom

NumPQ

N_PQ

F(x)

Ref


||||




node[ny]

11,0,10

Node.
sta

Node

Consumer2[Num]

N Qmin-Qmax
P

graphik2[Num]

" "

NumXop<k>

N_

NumPnt<k>

N_

dB1

dB_1

dB2

dB_2

MT

F(x)

Ref
XopGen[Num]

256

14.3.5.

" "

MT

F(x)

Ref

nn<k>
ny
nv
na
pg
pn
dp
pby
ny_o
nv_o
nby
ngen
ntran
nlep
nvikl
dpsh
dv_min
dv_max

Ny
Nv
Na
Pg
Pn
dP
P_
Ny_
Nv_
N_
N_
N_
N_
N_.
dP_
dV_min
dV_max

sum("node","1","1")
sum("vetv","1","1")
sum("area","1","1")
sum("node","pgr","1")
sum("node","pnr","1")
sum("vetv","dp","1")
sum("node","pgr","tip=0")
sum("node","1","sta")
sum("vetv","1","sta")
sum("node","1","tip=0")
sum("node","1","tip>1")
sum("vetv","1","tip=1")
sum("vetv","1","tip=0")
sum("vetv","1","tip=2")
sum("vetv","psh","1")+sum("node","pshunt","1")
min("node","otv","1")
max("node","otv","1")

nt_max

I_

sum("vetv","1","tip=1&zag_it>0.1")

nl_nax

I_

sum("vetv","1","tip=0&zag_i>0.1")

max_il

I/I_

max("vetv","zag_i","tip=0")*1000

. (%)

max_it

I/I_-

max("vetv","zag_it","tip=1")*1000

. (%)

f_sum

F_sum

sum("Generator","(a2*P+a1)*P","1")

257

:
:
:
P_:
P_:
P ():
P_. :
:
:
. :
. V:
:
:
:
:
V (%)
V (%)
- (
I_)
(
I_)

" "

MT F (x)

Ref

nra<k>
selekv

ekvgen

pot_gen

dP_

kpn

d_

kpg

d_

zmax

Z_max

ek_sh

otm_n

|
:
|
. V
|

,

,

:
|

|

" P"

MT

F (x)

Ref

num<k>
centr


P| .Q|

tipr

it_max

I_

plos

P_s

status

potr

..

||

LP_max

LP_max

LP

LQ_max

LQ_max

LQ

LDPG_max

LDPG_max

. . L (PGmin/PGmax)

LPS_max

LPS_max

. . L (PSmin/PSmax)

LI_max

LI_max

. . L (I_max)

LV_max

LV_max

. . L (Vmin/V_max)

LDQ_max

LDQ_max

. . L (Qmin/Q_max)

LKT_max

LKT_max

. . L (KTmin/KT_max)
258

LP_dta

LP_dta

LP

LQ_dta

LQ_dta

LQ

LDPG_dta

LDPG_dta

L (PGmin/PGmax)

LPS_dta

LPS_dta

L (PSmin/PSmax)

LI_dta

LI_dta

L (I_max)

LV_dta

LV_dta

L (Vmin/V_max)

LDQ_dta

LDQ_dta

L (Qmin/Q_max)

LKT_dta

LKT_dta

L (KTmin/KT_max)

out_level

|||

LIO_max

LIO_max

. . L
(_min/_max)

LIO_dta

LIO_dta

L (_min/_max)

T_func

T_func

Tg_func

Tg_func

tarif

start_method St_m

PM|PC-PM

main_method Ma_m

PM|PC-PM

criteria1

Cr1

formula1

Fr1

R_it

R_it

R_it

start_sigma

start_sigma

main_sigma

main_sigma

R_ro

R_ro

R_ro

R_sigma

R_sigma

R_sigma

R_pdad

R_pdad

R_pdad

R_pdad_af

R_pdad_af

R_pdad_af

R_it>10

259

" "

min_pot

DP

irm_regul

regul

anc

dpot_max

dPmin

dshtr_max

dSmin

iter_mm

It_min

iter_max

It

MT

F (x)

Ref

|.|

|

+.||.
/.
|

iter_basis
koef_shtr

koef_kt

ud

divider

nopt<k>

" "

dP
dQ
It
dVdV+
dDelta

Start
.

status

gen_p

->P

neb_p
neb_q
it_max
dv_min
dv_max
dd_max
kfd
rr
fwc
wt
nrge<k>
start
flot

W
dF

MT

F (x)

Ref


Q

. V
. V
.
|
%:
|
|
|

|
P P

260