Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website

Virtual data source, binary tags into word


  • hi,

    i needed to manipulate some binary data within the scada that is then encoded into the word...

    i.e.

    b0-b15 -> w0

    so i created a virtual data source, added some binary tags...

    then created a meta source word, added the b0-bx as context variables and then did...

    value=0;
    if (b0.value==1) value=value+1;
    if (b1.value==1) value=value+2;
    if (b2.value==1) value=value+4;
    if (b3.value==1) value=value+8;
    return value;
    word.value=value;

    this gave my word value...

    then i did a point link between meta source word and real slave device word...

    could i have done this in a more economical way?

    i did try adding the slave device word with direct binary tags, but it dint like that...

    but was quite happy with word to word control

    thanks

    Nei


  • I can't think of a better way to get it to work. Looks good to me.