Home AMX User Forum AMXForums Archive Threads AMX Hardware
Options

Send Level Value to DMS

sonnysonny Posts: 208
Any one clue me in on how to update a value from a master to a DMS keypad? I've tried SEND_LEVEL with no luck. Also tried to format the SET command, but pretty sure I'm not doing that right.

Thanks...

Comments

  • Options
    shr00m-dewshr00m-dew Posts: 394
    This works for me:
    SEND_LEVEL DMS_KITCHEN,1,V_KITCHEN_DMS
          (DMS ID) (level number) (VALUE ID)
    

    Make sure you have the level page created on the DMS file and have the level number correct.

    Now if you want to update variable text it's a little more complicated.

    First you need to create a two dimension array to hold the text like this
    VOLATILE CHAR DMS_KITCHEN_TEXT[10][20]
    

    First array is the total number of variable text areas you want, and the second is the total size of your largest area. You need to include this variable when you initialize the module. I believe you still have to include the variable even it's [0][0].

    Anytime you want to change ths value use this:
    DMS_KITCHEN_TEXT[10]="'CURRENT: ',ITOA(Z_KITCHEN)"
    

    In KPdesign, where you want the text area to be, create a new item and set the variable text to the correct value of the array. In the above example, variable text will be set to '10'.

    Hope that helps.

    Kevin D.
Sign In or Register to comment.