Technical FAQs

Ask a Question

How to apply a Register Mask in the IONE/SPM/PME Modbus Device Importer

A user would like to create a MDI driver that requires bitmasking registers.

Product Line
ION Enterprise 6.0.x
StruxureWare Power Monitoring 7.0.x
Power Monitoring Expert 7.2.x
Power Monitoring Expert 8.x

Modbus Device Importer

*Warning: Take backups of any files prior to modifying them. Ensure the backups are in a location that will not be overwritten (i.e. the Desktop).

A mask is applied to the raw data received from a register. The mask is applied in an AND fashion.
For example, if the mask “0x4” is applied, then the register value displayed is only nonzero if the 2nd most significant bit in the register is a 1 (X#XXXXXXXXXXXXXX).

You can apply masks to both numeric and Boolean data types. To apply custom masks, scroll down the list and select Custom. When prompted, enter the value in Decimal, Binary, or Hexadecimal format. Custom mask can be used to allow 1 or more bits to be visible from the register being masked.

Here is a chart for a visual of the mask

An end user with a Micrologic Trip Unit might want to know Breaker Status (closed, open).
Register 661 bit 0 is the status bit.

To create this register point we would use Register Mask 0x0001.
Was this helpful?
What can we do to improve the information ?