Jump to content

Issues converting from Allen Bradley to Unilogic in regards to division block


Recommended Posts

In Unilogic when you divide a real number, say 7.0/3.0 it puts out 2.33333333. I understand using 7/3 = 2 and modulo function 7/3 will give you that 1 remainder, but there's no choice for easily getting the real decimal output, the whole number output and the remainder. This also doesn't work well when the remainder is greater than .5 and rounds up.

In RSLOGIX500 when you divide a real number, say 11000.0/375.0 it saves 29.3333333 to one register, 29 to S:14 and 125 = (11000 - (29x375)) to S:13. Are there math registers in Unilogic like this or do I have to build a formula?

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...