SdG313 (Customer) asked a question.

Using a bit of an INT data type

Hello,

 

I have a complex PLC program in which the previous programmer has defined many variables as INT data type when BOOL would have sufficed. A value of 0 or 1 is written to the INT variable. Different brands of HMI can set up a push button to trigger just one particular bit of the INT data type or write an integer value of 0 using a push button. Couldn't find an obvious way to do this on C-more unless I am missing something.

 

I would like to avoid altering the PLC code just because of how complex it is and will require too much time. Hopefully there is an easier solution directly through C-more

 


  • kewakl (Customer)

    Which cmore model / sw rev?

     

    EA9 has this construct:

    EA9 BoW

    Selected as Best
  • RBPLC (Customer)

    I take it by the description that you're modifying an older HMI program? How many bits do you need? You could potentially do this with the event manager but will be tedious if you have many of these.

  • kewakl (Customer)

    Which cmore model / sw rev?

     

    EA9 has this construct:

    EA9 BoW

    Selected as Best
    • RBPLC (Customer)

      Is User defined memory available for this functionality or is it just built in memory? I'm thinking it's just built in.

      • SdG313 (Customer)

        I can only see the basic data types. You are probably right.

      • Durallymax (Customer)

        Yes, at least the Psuite UDS come through fine. I use them for interlock indicators and visibility.

        Batch(1).Intlk.Cfg.01 for example is my manually created tag for bit 1 in Batch(1).Intlk.Cfg

        I assume this is what you meant by user data? I have not tried with Do-More.

  • SdG313 (Customer)

    That is exactly what I was looking for. I kept selecting the memory type as a Bool under PLC Address so it never worked