How can we help you today?

How do you access a bit in a word in a M221 controller using Machine Expert Basic (former SoMachine Basic) software?

Article available in these languages:

The syntax to access a bit in a word is %MWx:X where X is the offset of the bit.
Example: to turn on bit 10 of %MW20 you can use a coil with address %MW20:X10


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 Australia

Explore more

Discuss this topic with experts

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

Explore more

Need help?

Product Selector

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

Get a Quote

Start your sales inquiry 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.