Skip to main content

Mask control

Back to Main Power Relay Module (PRM3) Product Page.

The eGauge PRM3 has 3 independently controlled relay contacts. When controlling polyphase loads such as single or three-phase loads, the multiple relay contacts used should be open and closed simultaneously to avoid damaging the equipment. Neutral conductors always remain connected and are not switched by a relay.

To control relay contact simultaneously, the PRM3 interface provides commands to be used with masks. The command used will vary based on the interface used.

Command
Description
Mask
Any relay bit set (1) will be CLOSED, any bit unset (0) will be OPENED
Set
Any relay bit set (1) will be CLOSED, any bit unset (0) will be UNAFFECTED
Clear
Any relay bit set (1) will be OPENED, any bit unset (0) will be UNAFFECTED


List of Masks

Mask (Decimal)
Mask (Binary)
Relays SET
0
000
None
1
001
1
2
010
2
4
100
3
3
011
1 and 2
5
101
1 and 3
6
110
2 and 3
7
111

1,  2, and 3

Understanding the mask

The mask value is a set of 3 bits. The lowest bit (position 0) is for the lowest numbered relay (#1). The middle bit (position 1) is for the middle numbered relay (#2), and the highest bit (position 2) is for the highest numbered relay (#3).

The decimal value is simply the binary value, which can be determined by adding the set bits (1) values.

Depending on the command used, the set and unset bits will affect their respective relays differently.


MASK is the binary mask value sent or received
RELAY is the relay for the respective column values
VALUE is the decimal value for that bit
BIT POS is the bit position

relay-mask-table-000.png

 Decimal Value: 0

relay-mask-table-001.png

Decimal Value: 1

relay-mask-table-010.png

Decimal Value: 2

relay-mask-table-100.png

Decimal Value: 4

relay-mask-table-011.png

Decimal Value: 3

relay-mask-table-101.png

Decimal Value: 5

relay-mask-table-110.png

Decimal Value: 6

relay-mask-table-111.png

Decimal Value: 7