Kevin Way posted Feb 20 '20 at 6:34 pm 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
Michael posted Feb 20 '20 at 7:16 pm The bitmasks for MSB are 0xFFFF0000 and LSB is 0x0000FFFF. The bitmasks for MSB are 0xFFFF0000 and LSB is 0x0000FFFF.
Kevin Way posted Feb 20 '20 at 8:29 pm What function would i use for this then? What function would i use for this then?
Kevin Way posted Feb 20 '20 at 9:23 pm 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
Mel Nevergold posted Feb 21 '20 at 4:03 am Have you considered reading it as a 16 bit word? https://www.vtscada.com/help/Content/D_Tags/Dev_DataSuffixesForTagIO.htm Have you considered reading it as a 16 bit word? https://www.vtscada.com/help/Content/D_Tags/Dev_DataSuffixesForTagIO.htm Century Control Systems, Inc. www.centurycontrolsystems-inc.com