I got to fetch and poke data to an FX2n PLC.
I'm getting 32 bit register data that I get in terms of 2 signed words (lsw and msw) that I need to put back together as a Dword.
I also need to take a Dword and figure out the 2 words that make it and send back to the PLC.
It's MX Component and VB6. I got a formula but it does not work if the msw is a negative integer?
Any ideas? I need to do the conversion in VB6.
Thanks,
Mike
I'm getting 32 bit register data that I get in terms of 2 signed words (lsw and msw) that I need to put back together as a Dword.
I also need to take a Dword and figure out the 2 words that make it and send back to the PLC.
It's MX Component and VB6. I got a formula but it does not work if the msw is a negative integer?
Any ideas? I need to do the conversion in VB6.
Thanks,
Mike