Jump to content
OMRON Forums

SerialEncDataB Acc84E bits


Recommended Posts

I'd like to have a shorthand way to look at the bits in SerialEncDataB, for example looking at the CRC bit etc.  I thought something like this might work, but it doesn't seem to.  Is there a good way to do this without having to do all of the bit shifting in a PLC?


#define LENC1CRC Acc84E[0].Chan[0].SerialEncDataB.22.1

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

A user shared memory address could be used to hold the value of Acc84E[0].Chan[0].SerialEncDataB, and then individual bits in the user shared memory addresses could be accessed.

For example:

u.user:$3000 = Acc84E[0].Chan[0].SerialEncDataB

ptr LENC1CRC->u.user:$3000.4.1 // for reading bit 4

See under the headings User Shared Memory Buffer Variables and M-Variable Access  in the Power PMAC Users manual for details.


Edited by Gregs
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...