General Discussions
Extract two 16 bit words from a 32 bit word

Can anyone point me in the direction to extract two INT from a DINT?

Can anyone point me in the direction to extract two INT from a DINT?
edited Feb 20 '20 at 7:45 pm

The bitmasks for MSB are 0xFFFF0000 and LSB is 0x0000FFFF.

The bitmasks for MSB are 0xFFFF0000 and LSB is 0x0000FFFF.

Nevermind i got it figured thanks.

And([Word1],0x0000FFFF)
And([Word1],0xFFFF0000) >> 16

Nevermind i got it figured thanks. And([Word1],0x0000FFFF) And([Word1],0xFFFF0000) >> 16
edited Feb 20 '20 at 9:24 pm
90
4
3
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft