• RBPLC (Customer)

    Let me better explain what I'm doing. I've got a fault Word in BRX where each bit represents a specific machine fault. I want to display those faults to the operator based on which bit is on. There's no writing from the C-More to the BRX, just displaying the fault codes. After poking around, it looks like the Mult-State Text Indicator would do exactly what I want, except for the fact that it gets tripped up if multiple bits are on at the same time. The Multi-State would work perfectly fine if it could handle multiple bits being on at one time. Is there an alternative?

    • Durallymax (Customer)

      I've used the multistate based on the bit, but then wrote extra logic in the PLC to make sure only one bit was every active with things treed in a priority. I didn't really like it though.

      Can use the word but typing out every possibility is not practical.

      • RBPLC (Customer)

        Trying to display all faults, just not "priority" fault.

  • Garry (Customer)

    How about using the ENCO - Encode Bit Position instruction in the BRX?

    The Encode Bit Position instruction (ENCO) will locate the first bit that is ON in a 32-bit location starting at the least significant bit. For example, for the following bit string: "0000 0000 0000 0000 0001 0000 0000 0000" the Output Bit Position Value is 12. If the Bit Pattern has more than one-bit position set to a "1", the position of the least significant "1" will be encoded.

     

    You could then use the Multi-State Text Indicator without having to worry about multiple bits.

     

    Regards,

    Garry

     

    Expand Post
    • RBPLC (Customer)

      Trying to display all faults, just not "priority" fault.

  • z28z34man (Customer)

    in a micrologix i have used a for loop and indirect addressing to loop over a word to display errors one at a time. would that work for you

     

    EDIT

     

    I just went back and looked at my old program and i didn't use a for loop it was a timer that cycled a counter and i used comparisons to loop over. I can post screen shots if you would like but it is in logix 500.

    • RBPLC (Customer)

      Would potentially work but would cycle through faults. Not sure I want that for this application.

  • RBPLC (Customer)

    I just wound up coding an indicator light for every fault. Wasn't too bad as there were only about 100 different faults. It would be a nice feature addition if the Multi-State Text Indicator would display multiple bits at the same time.

    • Durallymax (Customer)

      I'd appreciate a way to work with bit of word as well. I use integers packed into an array to control input/outputs with BoW for sequencer steps. Usually build this in excel but a way to pin the matrix within the HMI would be a way to change the sequence visually in the HMI. Although it would also require support for using a tag as an array index also as I am not going to setup every instance with visibility tags.

10 of 14