Karac
Member
I'm trying to convert a millimeter value to an inch value in a micrologix 1100, writing the program with RSLogix 500. Multiplying the millimeter by 254 and then dividing that by 10 is successfull to a point - but can be off by as much as half an inch because the division result gets rounded.
I've been fumbling around with the division command and figured out that if I set the math register S:13 as the destination, then S:13 will hold the remainder and S:14 will hold the quotient - numbers I should be able to use to get to within .01 of an inch.
The problem I'm having is I can't figure out a command to pull the numbers from the S:13 and S:14 registers into the integer data file where I can store and use it. Could anybody give me a hand?
I've been fumbling around with the division command and figured out that if I set the math register S:13 as the destination, then S:13 will hold the remainder and S:14 will hold the quotient - numbers I should be able to use to get to within .01 of an inch.
The problem I'm having is I can't figure out a command to pull the numbers from the S:13 and S:14 registers into the integer data file where I can store and use it. Could anybody give me a hand?