AmazingTrans
Member
Hi gurus,
I have a mathematical problem. I'm programming in RSLogix500 a Micrologix 1500. it does not have many functions, such as Bit distribute and such.
I'm trying to split a Double Int value into two Int value. then later when I send it through CIP message to my compactlogix, I want to concatenate them back to a double Int word. I'm doing this because when I'm reading a counter off the micrologix, it was fine, but when I send the DINT thru the communication into my ControlLogix, once in a while it has a spike up value.
I tried doing a no greater than 65535 then AND 65535 on the counter, then just move the DINT into INT, After that, The last 16bits, I thought of Bit shift right, then And again. Not sure what I'm doing> So please enlighten me. Thanks
I have a mathematical problem. I'm programming in RSLogix500 a Micrologix 1500. it does not have many functions, such as Bit distribute and such.
I'm trying to split a Double Int value into two Int value. then later when I send it through CIP message to my compactlogix, I want to concatenate them back to a double Int word. I'm doing this because when I'm reading a counter off the micrologix, it was fine, but when I send the DINT thru the communication into my ControlLogix, once in a while it has a spike up value.
I tried doing a no greater than 65535 then AND 65535 on the counter, then just move the DINT into INT, After that, The last 16bits, I thought of Bit shift right, then And again. Not sure what I'm doing> So please enlighten me. Thanks