Double Divide (DDV)

sailsf00

Member
Join Date
Oct 2004
Posts
4
I am using RSLogix 500 and trying to figure out how the Double Divide function works. How does the 32 bit Math Register get it's initial value?
 
In MOST of the cases I have used the DDV instructions it has followed a MUL instruction where I was relatively confident that at some time the result would require a double integer. In the case of the MUL case the PLC loads the math registers (S:13 and S:14) with the results of the multiply as a normal part of operation. The DDV instruction assumes the math registers as it's 'Source A'. Status bit S:2/14 needs to be set to properly perform 32-bit math.

I have had situations where I have manually pre-loaded the math registers with the data I need. I had a situation where I needed to perform math on a double integer encoder count. This count came in to two successive integer locations. I just copied the contents of the integer registers into the math registers and then performed the double divide.

This second case is probably not as common as the 'double result of a MUL' case.

Keith
 

Similar Topics

I found the random generator in the blog section and was going to intergrate it into a program that i am writing to learn from. (Teaching myself...
Replies
7
Views
2,080
What is the simples way to do a double click of a button in a ladder logic. New here and I hope this has not been asked before.
Replies
22
Views
566
Hi All, I'm keep getting double quotes in between selections rather than the beginning and the end. Here's the script and please help to find...
Replies
7
Views
833
Hi! I am using a TM200CE40T PLC from Schneider to write data over Modbus. I have used Memory words (%MW) before using the Write variable...
Replies
1
Views
553
Hello All, IÂ’m starting a new project where the plc is connected throught LAN with external software which write some data on PLC db, obviously...
Replies
1
Views
529
Back
Top Bottom