AkaHammer (Customer) asked a question.

Tank Level animation from analog input on C-More

What is best way to do tank level animation with analog level input on Cmore EA9, I tried Bar meter but it looks pretty crude.


  • AkaHammer (Customer)

    20210118_134103I thought you should be able to do what I wanted, it is not a true object fill, but turn the color on and it looks like it. It is scaling Y axis. I used the simulator in Cmore, got it working, had to set height used about number of pixels, transferred to screen height was wrong. To make right I used 0-4095 in both values for Y-Axis Scaling under size tab.

     

    Exactly how I want it to work on Real Screen.

     

    Thanks a bunch, I didn't know that was there for shapes, not quite as easy as a true object fill but with some magic looks the same.

    I just cut hole in tank so you see screen background gray made rectangle fill off same gray and fill on blue like water use SP1 always on for fill on so it will always be blue then basically 0-4095 changes Y- Axis scaling so the shapes height size is proportional to the 0-4095, so it goes from 0 no height to 4095 full height. Not sure that makes sense but it works. Like a couple people said you could add shape for the cutout hole if you want different color than screen background.

    Deleted Bar meter idea it looked goofy anyway you did it.

    Awesome Thanks again.

    Attached pic of screen work in progress you can see old bar meter above.

     

    Looks great I think.

    Expand Post
    Selected as Best
  • Garry (Customer)

    Hi AkaHammer,

    You could use a multi-state bitmap and show levels based on pictures.

    https://accautomation.ca/c-more-ea9-hmi-series-panel-object-list-bitmaps/

    The other option is to use a static bitmap with part of the picture transparent. This is done when you import your bitmap object. Then use a bar graph behind the image to show the level.

    I hope this helps you out.

    Regards,

    Garry

     

    https://accautomation.ca/series/c-more-hmi-series-panel/

    Expand Post
  • AkaHammer (Customer)

    Thanks Gary, I already thought of bitmap of different pic for levels, don't like that, plus that kind of defeats the purpose of analog tank level input. I guess I assumed I could create an object add fill animation an tie it to an analog. Guess not.

  • Bolt (Customer)

    I believe what Garry is proposing is to place a bar meter on the C-more screen, then place a transparent Bitmap (a picture of your tank with a "hole" in it) over the bar graph showing a tank of your choosing with a full resolution analog graph "in" it. Quick Google result. I've seen fancier versions.

  • AkaHammer (Customer)

    Thanks Bolt, I already did that, but thanks, don't like it wanted real looking tank with real level

  • AkaHammer (Customer)

    I really just wanted an object fill, tie it to analog done, did that in 2002 on Cimplicity can't believe this software does not have anything like that(feature request I guess) I don't do enough tanks to care. But if I did anything with tanks based on this I would not use C-More. I have made one the best I can and still don't like how it looks. The bar meter comes out with square corners and the tank is horizontal with round end caps does not look right unless tank was square or rectangle. The bar meter does not line up with tank either, very disappointed with how this looks. 20210111_115748

    Expand Post
  • AkaHammer (Customer)

    FYI here are the three versions so far, thank guys for input, I understand what you said, I just don't like any of the three, would prefer showing actually level in tank with some kind of scale or bar graph. Thanks again everyone.20210111_121215

    • PouchesInc (Customer)

      Not quite like those images. Right now you are putting your bar graph in front of the tank bitmap, when to look more clean and proper the bar graph should be the layer behind the bitmap. You need to take that bitmap and edit it in a program and cut out a section that you will make transparent. When placing your bitmap you can select your transparency color:

      https://www.automationdirect.com/videos/video?videoToPlay=tOp0F3DOI00

      So this will make it so you only see the tank, and the hidden bar graph hidden behind your image will make the tank look like it is filling up.

       

      I think it might look nice if you take your tank bitmap, and in your image editing program select with an oval shape rather than a plain circle or rectangle. Select the area and then delete it. Select a fill brush and fill that area with a solid color of your choosing. Save it, import into cmore, and select that solid color as transparent. Place a bar graph, right click it, and select "send to back".

       

       

      Edit: so basically your tank image would look like this in the file:renditionDownloadAnd the bar graph gets placed behind the image.

      Expand Post
  • AkaHammer (Customer)

    Thank You for Your Input. the images were just standard, the one on top right is if you let C-More do it in a single object, the other two were again two standard objects combined. I understand what Gary and you have said just really did not want to modify any images if possible or until I have to, again thank you for suggestions.

    • Bolt (Customer)

      It is really quite easy, download the image of the tank you like, open it in Paint, select a rectangle (or any other shape you desire), and fill the rectangle with a color, something like fuscia or lime green work well. Then save it as a bitmap, load it as a Static Bitmap in C-more, then Set Transparent Color to the fusica. Then add a Bar Meter, size it to fit the "hole" in your tank, remove label, etc, then Send Backward on the Bar Meter. Here's my quick rendition:tank hmi

      Expand Post
10 of 16