Our Brands

Impact-Company-Logo-English Black-01-177x54

Welcome to the Schneider Electric Website

Welcome to our website.
		
How can we help you today?
How to convert bits to an Integer in Vijeo Designer?

Issue:
Looking for a script method to convert bits to an Integer in Vijeo Designer?

Product Line:
Vijeo Designer (all versions)

Resolution:
To convert bits to be used an Integer variable in Vijeo Designer, please use a script as shown below:

boolean bitArray[] = new boolean[16];

int value = 0;

bitArray[0] = true;
bitArray[1] = true;
bitArray[2] = true;
bitArray[3] = true;
bitArray[4] = true;
bitArray[5] = true;
bitArray[6] = true;
bitArray[7] = true;
bitArray[8] = false;
bitArray[9] = false;
bitArray[10] = false;
bitArray[11] = false;
bitArray[12] = false;
bitArray[13] = false;
bitArray[14] = false;
bitArray[15] = false;

for (int i = 0; i < 16; i++)
{
if (bitArray[i])
{
value += 1 << i;
}
}

//TestINT is a Vijeo Designer INT variable that I created. This was just used to test the output.
TestINT.write(value);

If this FAQ did not solve your issue, you can chat with us at chat with us or e-mail us at customer.services@se.com to create a case with our Technical Support Team.

If you are not located in North America, please contact your local Customer Care Center for assistance:

Support | Schneider Electric Global (se.com)

Schneider Electric Saudi Arabia

Explore more
Range:
Users group

Discuss this topic with experts

Visit our Community for first-hand insights from experts and peers on this topic and more.
Explore more
Range:

Need help?

  • Product Selector

    Quickly and easily find the right products and accessories for your applications.

  • Get a Quote

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

  • Where to buy?

    Easily find the nearest Schneider Electric distributor in your location.

  • Help Centre

    Find support resources for all your needs, in one place.

  • Product Documentation
  • Software Downloads
  • Product Selector
  • Product Substitution and Replacement
  • Help and Contact Centre
  • Find our Offices
  • Get a Quote
  • 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