ML 1500 combine 16 bit registers into 32 bit

gtsuport

Member
Join Date
Feb 2005
Location
Grand Rapids, MI
Posts
1,322
Good Afternoon,

Have a co-worker trying to come up with a decent solution for the following problem.

Using a ML 1500 he is polling data via Modbus from a position controller. The actual position data comes back in two 16 bit registers. He needs to be able to combine the two registers into a single 32 bit register to properly display the position.

We have both looked (and probably overlooked) for an instruction that will perform this function.

Any assistance would be greatly appreciated.

Thanks,
gtsuport
 
I don't have any 1500's so I don't know how easy it will be to implement, but here's a generic solution for combining to 16 bit words into a 32 bit double or long word.

1. copy word1 to long word
2. multiply long word by 65536 to shift it 16 bits to the rights.
3. add word2 to the long word
 

Similar Topics

Can we use a Simotion D455 ethernet port x127 as a gate, to access S7-1500 plc Tia Portal program ? In the Simatic manager, we used Netpro to do...
Replies
2
Views
84
I have been working on this for a while now and I can't seem to get it. I was finally able to view the 1500 on the PanelView under the serial...
Replies
1
Views
79
Hello, I have a 1764 1500 LSP Series A that keeps failing with DTL_E_FAIL I/O error. Searching around it seems there's a weird issue specifically...
Replies
2
Views
103
Hi all Trying to remotely connect to a TIA Portal PLC. I can ping it without a problem but can't get my software to connect. I've opened port...
Replies
8
Views
324
Been fighting all morning with a stubborn HMI. It just won´t connect with the plc. attaching from settings. Have i missed anything? Both plc and...
Replies
5
Views
297
Back
Top Bottom