Slightly OT
I don't see a problem answering a question like this simply because the answer can also be found elsewhere.
Sure, 'bit-twiddling' is the preferred technique. When I'm working in C, bits are twiddled all over the place!
There are, however, situations where using an alternate technique may be warranted.
Not all PLC platforms are created equal, and not everyone has the knowledge or interest to implement the purist's solution. In many cases the larger process is of greater concern. A viable, working black-box-ish solution for the specific platform in use could be just what the doctor ordered.
In this case, I invested perhaps 5 minutes into my post, and it provided a much-needed morning break. It's a viable, working solution, as are some of the other suggestions above.
The next guy who searches this forum (or google, for that matter) now has an additional source of information that just might help.
Also - lately I've been getting a kick out of 'Let Me Google That For You':
Count Two Bits
Cheers,
Trevor