adccommunitymod (AutomationDirect) asked a question.

math question

Created Date: March 02,2015

Created By: dumpsta

**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****

I'm not sure what the problem is here v2020 - temperature controller set point, input via touchpanel - data type bcd I now need a variable that's that setpoint minus 30. I have: sp1 ----- ldd v2020 subd k30 outd v2030 For some reason, v2030 is the same value as v2020. If i substitute subd for mul(multiply), i get the correct answer. I 've also tried inserting k30 into a v-variable, then using that with my subd, but that didn't work either. I think i have a number format type of issue, any help is appreciated.


  • adccommunitymod (AutomationDirect)

    Created Date: March 02,2015

    Created by: dumpsta

    ok, i tried using ld, sub and out instead of the double words, and it seems to be working.

  • adccommunitymod (AutomationDirect)

    Created Date: March 02,2015

    Created by: dumpsta

    I'm not sure what the problem is here

    v2020 - temperature controller set point, input via touchpanel - data type bcd

    I now need a variable that's that setpoint minus 30.

    I have:

    sp1 ----- ldd v2020

    subd k30

    outd v2030

    For some reason, v2030 is the same value as v2020.

    If i substitute subd for mul(multiply), i get the correct answer.

    I 've also tried inserting k30 into a v-variable, then using that with my subd, but that didn't work either.

    I think i have a number format type of issue, any help is appreciated.

    Expand Post