Comtrade Rus
Comtrade Rus
Comtrade Rus
(COMTRADE).
1.
, ,
, ,
.
1.1. . ,
, .
1.2. .
, ,
, .
, ,
,
,
.
2. .
.
2.1. . , ,
, .
.
16-5-64 ()
. , - ,
.
2.2. ().
, .
. 32 .
,
.
.
.
2.3. . . ,
.
.
, ,
.
, .
2.4. , .
, ,
,
. ,
, .
,
, ,
.
,
.
2.5. .
,
, .
.
1-5 .
,
3. .
3.1. .
, .
.
,
.
. .
.
, ,
. ,
. ,
, ,
. , .
.
3.2. .
- , . ,
5.25 360
. , 3.5
720 . , 5.25 1,2
3.5- 1,44 . 5.25 3.5- .
. -
.
.
4.
4.1. . ,
.
, ,
. n-
.
, .
( ,
, ), ,
. ,
, 12- ,
16- .
. , 240
, , 120
.
, . ..,
960 ,
120 , '
960 ( ) .
4.3. . ,
( , )
.
( ; . 4.3. )
. ,
fs. ,
fs ,
(.1).
, L
L
M f0
LCM
(1)
f LCM - .
.2. , .2 FIR, -
(),
.1. ' Lf S . (1)
.
fg fo
fLCM, (1) (.2). -
,
fLCM. , n-
- n-
.
[.()]
, .2. -
. -
,
.
, . .CONVERT (.,
) .2, , 8.2., [B1].
-,
. .3 720
4320 .
, fLCM .
, -
fLCM. fLCM,
, , . ,
f1LCM f2LCM . ,
.
. ,
, , FLCM,
.
. 1 2 60 50 . ,
, "
" 1 2
50 60 .
: 2
.
, , ,
. , 1 2.
1. , FLCM =384fbase / .
/
f 60
f 50
384
23040
19200
192
11520
9600
128
7680
6400
96
5760
4800
64
3340
3200
48
2880
2400
32
1920
1600
24
1440
1200
16
960
800
12
720
600
8
480
400
6
360
300
4
240
200
2. , FLCM =3200fbase /
/
f 60 l
f 50
3200
192000
160000
1600
96000
80000
800
48000
40000
640
38400
32000
400
24000
20000
320
19200
16000
200
12000
10000
160
9600
8000
100
6000
5000
80,
4800
4000
64
3840
3200
60
3000
2500
40
2400
2000
32
1920
1600
20
1200
1000
16
960
800
10
600
500
8
480
400
4
240
200
4.3. . ,
,
. , ,
. ,
fS ,
. , ,
(n);
(), ..
(n) 1/4 [x(n)+x(n-l)+x(n-2)+x(n-3)] (2)
() (n):
(n) = 4()-(-1)-(-2)-(-3)
(3)
, ,
.. , .
(n)
z(n)-y(4n) (4)
[] , ..
(). ,
() , .
, .
(-), (2), ,
,
.
.
x (n) ,
fS /4, ,
. , , , .
,
.
5. .
ASCII .
(. ""
). : ,
.
".". "^" ,
, . FAULT1 TEST2. "" ,
, : ".HDR"
, ".CFG" , ".DAT" (. . 6.5.
).
5.1. (xxxxxxxx.HDR).
.
.
.
6.
.
,
. .
,
. "ASCII "
. ,
, .
5.2. (xxxxxxxx.CFG).
, , .
,
.
, , ,
, ..
6.
,
, ,
, .
,
ASCII , . 5.1.
5.3. (xxxxxxxx.DAT).
. , , ,
.
. ,
, , ,
-2000 +2000. , ,
, , 0 4000, 2000 .
, , ,
.
, , ,
" ".
, , ,
, , , .
.
"1" "0" .
6.
6. .
-
, , .
, .
, , :
1) , ;
2) ;
3) .
ASCII.
,
, .
, (, ,
, ) ,
, .
. ,
, , ,
. ,
, ASCII .
,
ASCII .
WG 34.01 CIGRE [B1].
CIGRE ,
. CIGRE
:
1)
, CIGRE
ASCII;
2)
, CIGRE
.
, ,
,
ASCII , .
. , 1
.
.
6.1. . ,
,
. .
6.1.1. .
:
3) ;
4) ;
5) , , , ,
;
6) ;
7) ;
8) ;
9) ;
10) ;
11) ;
12) ;
13) (,
oa .
14) , :
;
15) ;
16) ;
17) , .
,
CIGRE [B1]:
18) ;
19) .
6.1.2. . ".HDR", ,
, .
,
.
6.1.3. . - ASCII . ASCII-
.
6.2. . - ,
,
.
(, ), CIGRE |1].
, ,
. ASCII ,
, .
6.2.1. . :
20)
;
21)
.;
22)
, ;
23)
;
24)
;
25)
;
26)
;
27)
.
6.2.2. . ".CFG",
.
6.2.3. . - ASCII
. .
. : <CR,LF>.
.
.
,
6.2.3.1. - 6.2.3.6.
.
6.2.3.1. .
.
station_name,id<CR,LF>
:
station_name -
id=
6.2.3.2. .
:
"
TT,nnt,nnt<CR,LF>
:
- nn - t - ( / -)
6.2.3.3. . , .
:
nn,id,p,cccccc,uu,a,b,skew,min,max< CR,LF>
nn, id,p,cccccc,uu,a,b,skew,min,max< CR,LF>
nn,id,m< CR,LF>
nn,id,m< CR,LF>
:
nn -
id -
-
- / ,
uu - (kV, kA, ..)
- (. )
b - . [ ..,
(+b) , 1.
skew - . ( )
min - , ( ) .
max - , ( )
m - (0 1) ( ).
"nn,id,p,cccccc,uu,a,b,skew, min, max" ,
, , ,
, . ,
.
6.2.3.4. . :
lf<CR,LF> :
lf - (50 60)
6.2.3.5. .
,
.
nrates<CR,LF>
sssssl,endsampl<CR,LF>
sssss2,endsamp2<CR,LF>
sssssn.endsampn<CR.LF>
:
nrates -
sssss1 sssssn -
endsampl endsampn - .
6.2.3.6. /. / : - - . :
mm/dd/yy,hh:mm:ss.ssssss<CR,LF>
mm/dd/yy,hh:mm:ss.ssssss<CR,LF>
:
mm - (01-12)
dd - (01-31)
-
hh - (00-23)
mm - (00-59)
ss.ssssss - ( 0 59.999999 )
6.2.3.7. . <, ASCII
ft:
ft<CR,LF>
:
ft ASCII
6.2.4. .
Great Oaks Substation,25<CR,LF> 6,4A,2D<CR,LF>
1,Line 1 Phase A Voltage,AkV,200.,0..0.,0,4096<CR,LF>
2,Une 2 Phase Voltage,BkV,200.,0.,0.,0,4096<CR,LF>
3,Bus Current,A,,kA,100.,0.,0.,0,4096<CR,LF>
4,Une 2 Phase AVoltage,AkV,200.,0.,0.,0,4096<CR,LP>
1,Breaker #XX Open,0<CR,LF>
2,Breacer #YY Closed,0<CR,LF>
60<CR,LF>
2<CR,LF>
5184,1298<CR,LF>
2592,1400<CR,LF>
06/25/88,23:12:14,089045<CR,LF>
06/25/88,23:12:19,000011<CR,LF>
ASCIKCR,LF>
6.3. . -
. , ,
.
6.3.1. . ,
,
. , , ,
. .
6.3.2. . ".DAT",
,
. ,
, .
".DAT" ( "AT" .DAT )
, 99 .
6.3.3. . .
(n+2) , n - .
.
.
1- - ( 110), ,
. - , ,
. ,
( ).
( )
, ,
.
.
6.3.4. .
(I6), .
999999. (I1) .
6.3.5. . ASCII (EOF) ("1" )
" / " (<CR,LF>) .
6.3.6. . ,
. 6.2.4.
.
,
" / ".
( .. ) " /
". /
.
0000000001
0000000000
002090,001827,002090,002044 1-4
0,0 ( 5 6 ).
6.4. .
6.4.1. . IBM PC
MS DOS , [2].
ASCII .
6.4.2. . - ASCII,
.
ASCII .
, .
(- ),
.
6.4.3. . ASCII
, ,
MS DOS COPY.
.
6.5. .
COMTRADE .
,
COMTRADE ASCII .
ft, .6.2.3.7.,
. ASCII, BINARY.
, ASCII
: 16-
, :
n tt A1A2.... AD1D2.Dm
:
n - ,
tt - ,
A1.... A -
D1D2.Dm- 16 ( ) 16
.
:
1)
, 16 . , 0 D1 -
1, 1 D2 - 18.
2) ,
.
3) FFFF.
7. .
: ,
, .
ASCII. , SASK0l.HDR , ,
SASC01.CFG, -, ,
SASK01.DAT, .
7.1. SASC01.HDR
Saskatchewan Power Corporation
2025 Victoria Avenue
Regina Sask.
Canada S4P OS1
To, Condie
230 907 Condie Popular River.
Condie Regina Saskatchewan, Canada.
230 Condie.
.
( ),
Saskatchewan. . ,
, , .
, ,
. , ,
.
13.04.1983 13:53:23.
. ,
.
480 .
, ,
180 .
.
0, -10 4096,
+9,995B. 16.
.
3 - 6 .
7 - 10 . . 11-14
.
( 31).
15 -17 . ,
18. 16 .
36 .
.
.
.
7.2, SASK01.CFG
CONDIE,230<CR,LF>
32,16, 16 D <CR ,LF>
1,RC1 CURRENTA,907,A..7808,0.,0.,0,4096 <(;R,LF>
2,RC1 CURRENT,B,907,A,.7808,0.,0.,0,4096 <CR,LF>
3,RC5 CURRENT,C,907,A,.7808,0^0.,0,4096 <CR,LF>
4,RC1 CURRENT,N,907,A7808,0^0.,0,4096 <CR,LF>
5,AC4 CURRENT,A,907,A,.7808,0.,0<,0,4096 <CR,LF6,AC4 CURRENT,B,907,A,.7808,0,,0.,0,4096 <CR.LF>
7,AC4 CURRENT,C.907,A,.7808,0. ,0.,0.4096 <CR,LF>
8.4 CURRENT,N,A,.7808/L, 0. ,0,4096 <CR,LF>
9,4 CURRENT,A,907.A,.7808,0..0..0.4096 <C'R,LF>
10,BC4 CURRENT,B,907,A,.7808,0.,0.,0,4096 <CR,LF>
11,3C4 CURRENT,C,907,A,.7808,0.,0.,0,4096 <CR,LF>
12,BC4 CURRENT,N,907,A,.<7808.0.,0..0,4096 <CR.LF>
13,P VOLTAGE,A.907,kV,.0559,0.,0..0.4096 <CR,LF>
14,P VOLTAGE,B.907.kV,.0559.0..0..0,4096 <CR,LF>
15, VOLTAGE.C,907,kV,.0559,0.,0.,0,4096 <CR.LF>
16; TRANSDUCER POWER,MW,0.100.0.,0.,0.4096 <CR.LF:
17,BR 21-3 907L,0 <CR,LF>
18,R 2IN-1 907L,0 <C.R,LF>
19,Y 2JN-1 907L,0 <CR.LF>
20,B 2IN-1 907L.O <CR,LF>
21,Z1 TNST 2IN-1 907L-,0 <CR,LF>
22,Z2 START 2IN-1 907L,0 <CR,LF>
23,23 START 2IN-1 907L,0 <CR.LF>
24,Z2 TIMED 2IN-1 907L,0 <CR,LF>
25,23 TIMED 2IN-1 907L,0 <CR,LF:>
26,PST 21-1 907L,0 <CR,LF>
27, 94-IR 907L,0 <CR.LF>
28, 94-IY 907L,0 <CR,LF>
29, 94-IB 907L,0 <CR,LF>
30, 85-2 907L,0 <CR,LF>
31, 79X-1 907L,0 <CR.LF>
32, 77A-I 907L,0 <CR,LF>
60 <CR,LF>
1 <CR,LF>
480, 200 <CR,LF>
04/13/83.13:53:22.900000 <CR,LF>
04/13/83,13:93:23.000000 <CR,LF>
ASCII <CR,LF>
7.3 SASK01.DAT
1,0, 002090, 001827- 00202, 002044, 002024, 002052. 002052. 002040,
002260,001807,002056,002040,00663,003422,002054,001052,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0<CR,LF>
2,002083,002244,001936,001918,002044,002026,002038,002060,002042, 002302,001957,
..,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0<CR,LF>
..<CR,LF> ( ).
...... <CR,LF> ( ).
..<CR,LF> ( ).
IEEE 37.111-1991,
(COMTRADE),
.
[B1] "Digital Protection Techniques and Substation Functions", Final report, CIGRE Working
Group 34.01, A.G. Phadke (Convener), France, June 1989.
[B2] Duncan, R. Advanced MS DOS, Microsoft. Press. 1986.
[B3] "Programs for Digital Signal Processing", Edited by DSP Committee of the IEEE ASSP
Society, 0-87942-128-2. IEEE Press. 1870.
PROGRAM CONVERT
CONVERTS SAMPLES TAKEN AT ONE RATE TO A SECOND
RATE
USER SUPPLIED FILTER IS IN FOR020.DAT
DATA IS IN FOR2 I.DAT
OUTPUT IS IN FOR025.DAT
****************************************************************
C
C
C
WRITE (6,18)
18 FORMAT (1H$, 'ENTER TOTAL NUMBER OF SUMPLES TO BE $ PROCESSED')
READ (6,*) ITIME
30 WRITE (6,35)
35 FORMAT (1H$, ENTER THE DESIRED PROCESSING RATE')
READ (6.*)DRATE
MFAC=IFIX (FSAMP*LFAC/DRATE)
IF (MFAC*DRATE.EQ.FSAMP*LFAC) GO TO 40
C
DO 120 J-=1. NBF-l
INDX-NBF-H-J
120 ZTD1 (INDX)==ZTD1 (INDX-1)
ZTD1 (1)=X
N0=N0+LFAC
IF (N0.LT.MFAC) GO TO 500
N0=N0-MFAC
C
ZOUT=0
DO 130 J=1, NBF
INDX=J*LFAC-N0
130 ZOUT-ZOUT+HFIL (INDX) *ZTD1 (J)
ZOUT-ZOUT/FSAMP
WRITE (25.*) DT,ZOUT
500 CJNTINUE
STOP
END
C *************************************************
PROGRAM. FIR
C ***************************************************
IMPULSE INVARIANT DESIGN FOR SECOND ORDER
LOW PASS FILTER WITH REAL POLES AT S1 AND -S2
180000 AT 50 HZ
C
ONE CYCLE DURATION FINITE IMPULSE RESPONSE FILTER
OBTAINED BY WRITING THE PARTIAL FRACTION
EXPANSION OF THE TRANSFER FUNCTION AND FORMING
THE IMPULSE RESPONSE IN THE FORM
H (T)=-8UM {CI* EXP (-SI*T)}
C ***************************************************
DIMENTION H(3600)
S1=394
S2-2620
MAKE GAIN AT 60 HZ = 1
C G60= INVERSE OF THE 60 HZ GAIN
G60(SQRT((Sl**2+(377)**2)*(S2**2+(377)**2)))/(S1*S2)
C1=G60*S1*S2/(-S1+S2)
C2==G60*S1*S2/(S1-S2)
WRITE(20,*)1,3600
DO 100 I=1,3600
DT=(I-1)/21600
H (I)-C1*EXP(-DT*S1)+C2*EXP(-DT*S2) WRITE(20,*0H(I)
100 CONTINUE
STOP
END
- , .
, , ,
. .
1.
. 1
0. , .
, .
1.1. . 256 .
, 0 255,
, .
, 2 (16 ) 0 65535.
, .
Al.2. ASCII . 0 255,
255 .
(ASCII) - , , 127 8
. , 01000001 , . 01100001
. 127 ,
, . ASCII
. COMTRADE ASCII .
2. .
, .
.
, .
2.1. . ,
.
. COMTRADE .
2.2. . ,
SCII ( 1), ,
(, , 3, +).
, .
2.3. . .
ASCII .
, ,
(, 3
0 16,777,215 3 ASCII
0 999). ASCII ,
.
.
COMTRADE ASCII.
.
, .
.
A3.1. . ,
.
.
, .
COMTRADE.
A3.2. .
. COMTRADE