Internet PLC Forum

General => Technical support => Topic started by: Ben on March 12, 2004, 11:55:09 AM

Title: Saving a 32 bit Integer into two DM[x} variables
Post by: Ben on March 12, 2004, 11:55:09 AM
What is the simplest method of breaking a 32 bit integer into 16 bit halves and saving them to the DM
Title: Re:Saving a 32 bit Integer into two DM[x} variables
Post by: support on March 12, 2004, 02:01:23 PM
When you assign a 32-bit variable to a 16-bit variable, only the lower 16 bit will be assigned. So there is no need to do a logical AND to mask out the upper 16-bit.