Datasheet

STPMC1 Theory of operation
Doc ID 15728 Rev 7 53/77
Example 17: Parity calculation
Let us calculate parity of DMR, the first register of second group:
DMR: 02 80 00 C8
prty = grp = 1 /* prty set to 1 - group #*/
prty ^= *bp = 3 /* xor it with 1st byte of data 02 */
prty ^= *(bp+1) = 83 /* xor it with the 2nd byte 80 */
prty ^= *(bp+2) = 83 /* and with the 3rd byte 00 */
prty ^= *(bp+3) = 4B /* and last, with the 4th byte C8 */
prty ^= prty<<4 = FB /* and with B0 */
prty &= 0xF0 = F0 /* parity is ok */
9.18 Status bits map
The STPMC1 includes 12 status bits for 3-phase cumulative, and 3 8-bit status byte, one per
each phase. All of them provide information about the current meter status.
Table 31. 3-phase status bits description
Bit Name 0 1
0
BIL
No-load condition not detected in any phase No-load condition detected in all phases
1
BCF
ΣΔ signals alive in all phases ΣΔ signal stuck in at least one phase
2
BFF BFR
= 0 in all phases
BFR
= 1 in at least one phase
3 SIGN Three-phase active energy is negative Three-phase active energy is positive
4 PHR Phase 0 u
R
< π Phase π u
R
< 2π
5 PHS Phase 0 u
S
< π Phase π u
S
< 2π
6 PHT Phase 0 u
T
< π Phase π u
T
< 2π
7
HLT
Data records reading is valid
Data records are not valid.
A reset occurred and a restart is in progress.
8
PIN
The output pins are consistent with the data
The output pins are different from the data,
this means some output pin is forced to 1 or 0.
9
BCS
Sum of all phase currents is below threshold Sum of all currents above threshold
10
BSF
Phase sequence is R -> S -> T Phase sequence is not R -> S -> T
11
BIF
Phase energies have equal sign Phase energies do not have equal sign