
16
COMMANDS
ENGLISH
STANDARD Communication Protocol
Size
(bytes)
Block index
2
Block size
2
HEADER BLOCK:
Time/date
6 SSMMHHDDMMYY
Frequency
2
5007 50.07Hz
Captured channels
1
bit7=not used; bit6=not used; bit5=V1; bit4=V2;
bit3=V3; bit2=A1; bit1=A2; bit0=A3
1=captured; 0=not captured
Captured periods
1
1...200
Samples/period
1 08=8samples/period;
10=16samples/period;
20=32samples/period; 40=64samples/period;
80=128samples/period
Resolution
1
0=8bit;
1=10bit
V1 coeff
2
V2 coeff
2
V3 coeff
2
A1 coeff
2
A2 coeff
2
A3 coeff
2
PT integer
2
the integer part of PT expressed in hexadecimal
PT decimal
2
the decimal part of PT * 65536, expressed in hexadec.
CT
2
Wiring
2
Trigger
2
0000=manual trigger
0011=SP1...0018=SP8 (set point trigger)
0021=DO1...0026=DO6 (digital output trigger)
0031=DI1...0034=DI4 (digital input trigger)
R80.9 WAVEFORM CAPTURE RECORDING DOWNLOAD - BLOCK (ENH)
Answer
format:
<STX>00010030EEEDEEFCFCFC...<ETX><BCC>
0001
progressive number of the transmitted block
0030
total number of characters transmitted in this block
EEEDEEFCFCFC
sub-block. According to the Captured channels byte and
the Resolution byte, the sub-block can contain more or
less data. The byte length of each sample depends on the
Resolution byte value in the header. Voltage and/or current
samples values are expressed in two’s complement binary
representation
• Ex1:
V1 sample=$EE, V2 sample=$ED, V3 sample=$EE,
A1 sample=$FC, A2 sample=$FC, A3 sample=$FC
6parameters, 8bits Captured channels=00111111,
Resolution=0
• Ex2:
V1 sample=$00EE, A1 sample=$00FC 2parameters,
10bits Captured channels=00001001, Resolution=1
Data
conversion:
If (data)>$7FFF, in case of 10 bits resolution
•
if (data)>$7F, in case of 8 bits resolution
•
data value is always negative; formula: $0 - $data = $data -> -data (DEC)
10 bits resolution
Vx sample fi nal (word)=[(Vx sample*Vxcoeff)/(2*65536)]/PT
Ax sample fi nal (word)=[(Ax sample*Axcoeff)*1.2/(2*65536*100)]*CT
8 bits resolution
Vx sample fi nal (byte)=16*[(Vx sample*Vxcoeff)/(2*65536)]/PT
Ax sample fi nal (byte)=16*[(Ax sample*Axcoeff)*1.2/(2*65536*100)]*CT
x = 1, 2, 3 phase of voltage and/or current
PT = PTi (PTdecimal/65536)
Command Description
UBN310
UBN315
UBN3080