Jump to content

benoitbaillargeon

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by benoitbaillargeon

  1. Hey everyone,

     

      I am using a JZ10-11-R16 and I am coding a division (/) where the input can be in millions and the answer is in decimal. The "help" as a lack of information when it comes to Looping. How does it work exactly? I put the label and I jump to this label until my condition is respected?

     

    By the way, if you guys know any way to have a Totalizer and a Flow indicator using a HSC and a K Factor, please let me know!

  2. Hi,

     

     I successfully figured out the way to do a linear conversion (using the SI 80-85). Thing is, when i tried to code it myself, I found out that I was losing precision because of the result of (y2-y1)/(x2-x1) to find 'm' because most of the time the result is going to be a float but all we can use is an integer. So for example, if the result of your equation is 4.356, you are going to have 4 into your integer address. So that when you multiply this result to the X in "mx+b", the error is just getting bigger.

     

    4,356 * 2456 =  10 698.336

    4 * 2456 = 9824

     

    As you can see, this doesn't make any sense. 

     

    Now that I am trying to configure a Paddle Wheels wired on the HSC inputs, I need to find a way to use a float because of the K Factors.

     

    http://www.gfsignet.com/go/BB79FC98D60EB5FC00B3D2B195180094?action=GF_DocumentDownload&doc_uuid=BB79FC98D60EB5FC00B3D2B195180094

     

    I can't accept that big of an error. Any idea how i could "create" a float using signed integers with this module?

×
×
  • Create New...