Browse FAQs

How do you access a bit in a word in a M221 controller using SoMachine Basic software?

Published date: 05 September 2018

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

Was this helpful?

What can we do to improve the information ?

Can't find what you are looking for?

Reach out to our customer care team to receive information on technical support, assistance for complaints and more.