14-35
IM 760401-01E
Communication Commands 2 (System of Commands Complying to the IEEE 488.2-1992 Standard)
14
Data Format/Output Format of Normal Measurement and Harmonic Measurement Data
<BINARY>
The data format and output format of normal measurement and harmonic measurement
data in binary format that are output by the MEASure[:NORMal]:BINary? or
MEASure:HARMonics:BINary? command are as follows:
Data Format
Measured data consists of a 2-byte header and 4-byte data (total of 6 bytes).
Header (2 bytes) Data (4 bytes)
Header structure
The header consists of a 1-byte status and 1-byte ASCII conversion information.
Status (1 byte) ASCII conversion information (1 byte)
• Status byte
b7 b6 b5 b4 b3 b2 b1 b0
• b7 to b4: Lead/Lag phase information
(This information is meaningful only when the data is a phase angle (DEGR).
For all other cases, the value is always 0000.)
0000: Lag 0001: Lead 0010: Cannot be detected
• b3 to b0: Data status
0000: Normal 0001: Overrange (--oL-) 0010: Voltage peak over
0011: Current peak over 0100: Power factor error (PFErr)0101: Phase angle error (dEGEr)
0110: Frequency error (ErrLo)0111: Frequency error (ErrHi) 1000: Computation overflow (--oF-)
1001: PLL error (FreqEr) 1010: No data (-----)
• ASCII conversion information
b7 b6 b5 b4 b3 b2 b1 b0
• b7 to b4: Prefix unit
0000: None (E+0) 0001: m (E–3) 0010: k (E+3)
0011: M (E+6)
• b3 to b0: Decimal point position
0000: _ _ _ _ _ . 0001: _ _ _ _ . _ 0010: _ _ _ . _ _
0011: _ _ . _ _ _ 0100: _ . _ _ _ _ 0101: . _ _ _ _ _
Data structure
Data is in 4-byte IEEE single-precision floating point format.
SEEEEEEEEMMMMMMMMMMMMMMMMMMMMMMM
The byte order is MSB first.
Physical value = (–1)
S
×(2(E
–127
))×(1+M/(2
23
))
S: Sign bit, 0 or 1
E: Exponent in the range of 0 to 254
M: Mantissa as a 23-bit binary value
• For elapsed integration time
Outputs the time in units of seconds. For example, 0x45610000(=3600) if the time is 1
hour (1:00:00).
• For overrange and computation overflow
0x7E94F56A (=9.9E+37)
• For no data
0x7E951BEE (=9.91E+37)
Output format
The output format (output order of measured data) is the same as the ASCII format.
14.3 Commands