Our Brands

Welcome to the Schneider Electric Website

Welcome to our website.
		
How can we help you today?
What is the difference between PackedBool and MaskedBool?

The Device Importer in ION Enterprise/SPM7 has a selection for both "MaskedBool" and "PackedBool"
The ION Enterprise User Guide and SPM7 User Guide describe MaskedBool and PackedBool as the same thing in the glossary section of both guides. Here is a quote from the guides:

MaskedBool or PackedBool:

A 16-bit value that is interpreted according to the bit pattern described by the Mask attribute. Bits exposed by the
mask can be read or written without affecting the value of other bits. Unmasked bits are interpreted as 0 on a
read and are unaffected on a write. Undeclared bits of a mask are interpreted as unmasked (i.e., mask="0x7F"
is interpreted as 0x007F). The value that is read or written is determined by using enumeration ordinals,
described below. If used for read-only Boolean data, enumerations are not required. If no mask is specified, all
bits are relevant.

This is a good 'general' description, but there is a subtle difference:

- PackedBool is reading ALL bits of the register at once.

- MaskedBool is only reading a single bit of the register. So in order to read the entire register, all 16 bits would need to be read.

In the end, they will both accomplish the same goal, which is why the guide groups them together. So in any case where there is an option to select PackedBool OR MaskedBool, either selection should be acceptable.

Schneider Electric Ireland

What is the difference between PackedBool and MaskedBool?

The Device Importer in ION Enterprise/SPM7 has a selection for both "MaskedBool" and "PackedBool"
The ION Enterprise User Guide and SPM7 User Guide describe MaskedBool and PackedBool as the same thing in the glossary section of both guides. Here is a quote from the guides:

MaskedBool or PackedBool:

A 16-bit value that is interpreted according to the bit pattern described by the Mask attribute. Bits exposed by the
mask can be read or written without affecting the value of other bits. Unmasked bits are interpreted as 0 on a
read and are unaffected on a write. Undeclared bits of a mask are interpreted as unmasked (i.e., mask="0x7F"
is interpreted as 0x007F). The value that is read or written is determined by using enumeration ordinals,
described below. If used for read-only Boolean data, enumerations are not required. If no mask is specified, all
bits are relevant.

This is a good 'general' description, but there is a subtle difference:

- PackedBool is reading ALL bits of the register at once.

- MaskedBool is only reading a single bit of the register. So in order to read the entire register, all 16 bits would need to be read.

In the end, they will both accomplish the same goal, which is why the guide groups them together. So in any case where there is an option to select PackedBool OR MaskedBool, either selection should be acceptable.

Schneider Electric Ireland

Explore more
Range:
Users group

Discuss this topic with experts

Visit our community and get advice from experts and peers on this topic and more
Users group

Discuss this topic with experts

Visit our community and get advice from experts and peers on this topic and more
Explore more
Range:

Need help?

  • Where to buy?

    Easily find the nearest Schneider Electric distributor in your location.

  • Search FAQs

    Search topic-related frequently asked questions to find answers you need.

  • Contact Sales

    Start your sales enquiry online and an expert will connect with you.

  • All Support & Contact

    Find answers now. Search for a solution on your own, or connect with one of our experts.

I'd like to receive news and commercial info from Schneider Electric and its affiliates via electronic communication means such as email, and I agree to the collection of information on the opening and clicks on these emails (using invisible pixels in the images), to measure performance of our communications and improve them. For more details, please read our Privacy Policy.

  • Products Documentation
  • Software Downloads
  • Product Selector
  • Product Substitution and Replacement
  • Help and Contact Centre
  • Find our Offices
  • Where to buy
  • Careers
  • Company Profile
  • Report a misconduct
  • Accessibility
  • Newsroom
  • Investors
  • EcoStruxure
  • Job Search
  • Blog
  • Privacy Policy
  • Cookie Notice
  • Terms of use
  • Change your cookie settings
Your browser is out of date and has known security issues.

It also may not display all features of this website or other websites.

Please upgrade your browser to access all of the features of this website.

Latest version for Google Chrome, Mozilla Firefox or Microsoft Edgeis recommended for optimal functionality.