Sign in to follow this  
Followers 0
Hunter

Allen Bradley-Double Integers

3 posts in this topic

Hi all.

In RS Logix 500. Does anyone know how to split a 32 bit double Integer into two single integers for Modbus transfers?

Share this post


Link to post
Share on other sites

What have you tried thus far and with what results?

My assumption is that you are talking about the L file (generally L9:xx) contained within MicroLogix1100.

Have you tried a COP where the first input is the L9:xx file and the second input is the first of the two consecutive INT elements N7:yy & N7:zz.?  Then look at the data table to see is it split the DINT into the two INTs.

Have you tried doing two MVM into the two INT elements?

Edited by pcmccartney1

Share this post


Link to post
Share on other sites

If it's an Lxxx register moving into 2 Nxxx registers, the COP instruction with length 2 should do it. It also works for floating point registers (Fxxx). Note that the COP instruction does a straight bit pattern copy, it doesn't move the numeric value. If you have to byte- or word-swap the registers, an MVM is where I would start but that will take a few steps to work.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0