Announcement

Collapse
No announcement yet.

scaling an analogue input then scaling analogue output

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts


  • scaling an analogue input then scaling analogue output

    can anyone help i am trying to scale analogue 0-100% then inverse this to drive an analogue for varible speed drive.so far I got

    ld v2011
    bcd
    mul k100
    div 4095
    out v2027

    this gives me a value of 0 - 100 %

    how do i make an analogue output read 4095 when "v2027 = 0% and 0 when v2027=100%
    Help Please


  • #2
    chazsurfer, you have a BCD number in V2027 from 0 to 100 (no implied decimal point). And as that number goes from 0 to 100, you want a V-memory location to go from 4095 to 0. Correct?

    LD V2027 (0 to 100 BCD)
    MUL K4095
    DIV K100
    OUT V2000 (0 to 4095 BCD)


    LD K4095
    SUB V2000 (0 to 4095 BCD)
    OUT V2002 (4095 to 0 BCD)

    I'm wondering about your resolution? You may want to include implied decimal point for better resolution. Or...

    LD KFFF
    SUBB V2011 (0 to 4095 dec)
    BCD
    OUT V2002 (4095 to 0 BCD)


    Would this work for you?

    Comment



    • #3
      why kfff? what is kfff?

      Comment



      • #4
        kfff is equal to 4095 in the hexadecimal numbering system which would be the proper number format if the the analog input format were set to Binary.
        If you have an urgent issue, please contact AutomationDirect's Technical Support team.

        AutomationDirect.com Technical Support: 1(800) 633-0405 or (770) 844-4200 Email Tech Support

        Comment

        Working...
        X