Announcement

Collapse
No announcement yet.

How to read/write bits to GS4 from Do-More without bit-of-word?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts


  • How to read/write bits to GS4 from Do-More without bit-of-word?

    I need to be able to write to the bits for direction, etc and read several things, but Do-More dropped bit of words. Without writing a bunch of scenarios for decimal conversion of binary, how exactly am I to do this?


  • #2
    I suppose I need to write unsigned integer 34 to run forwards, 18 to run reverse, 1, 17 or 33 to stop.....

    Comment



    • #3
      Bit of word is no longer a "type" (e.g. B2000.15) like DirectSOFT/DirectLOGIC. Do-more supports CASTing via the colon operator, which is much more powerful, and easier to use.

      To set the last bit (bit 15) of V2000, just do V2000:15 instead of B2000.15. Notice that you just use the regular V block type; and instead of a dot, use a colon. So you can do bit-of-word on ANY numeric block (D, N, V, your own), e.g. D2000:15, N2000:15, MyByteBlock42:7

      Here's a video on Do-more casting (very powerful tool!)

      There are 10 kinds of people in this world, those who know binary, and those who do not.

      Comment



      • #4
        will try that, thanks!

        Comment

        Working...
        X