Results 1 to 5 of 5

Thread: Bitmap Variables

  1. #1

    Default Bitmap Variables

    I've made a few applications using the CR0451 and never had an issue with displaying bitmap graphics. But the latest project I am building has a particular image with multiple variations, so I tried to use the Bitmap Variable to switch the graphic dynamically.

    I used the following code in 'ST'

    Case P_IMAGE_CASE of

    0: P_IMAGE:='P0RLE.bmp';
    1: P_IMAGE:='P1RLE.bmp';
    2: P_IMAGE:='P2RLE.bmp';
    3: P_IMAGE:='P3RLE.bmp';

    End_Case

    This works perfectly when simulated in codesys, but when loaded in the CR0451, the bitmaps don't display. The full path of the images are in a sub folder called resources, but according to the help file you don't need to declare the preceding folder(s) as long as the full path is declared in the bitmap list (in the extra menu - which I've done).

    Can anyone point me in the right direction? I'm really hoping to use the variable bitmaps as it would make this project and future ones much easier!

    Thanks in advance!

  2. #2
    Join Date
    May 2009
    Location
    Minneapolis, MN
    Posts
    295

    Default

    The CR0452 and CR0451 do not support bitmap lists. For that functionality you need to setup to the 7".

  3. #3

    Default

    Thanks for that, shame really as it would have made things easier!

    I'll just revert to the "Case Of" turning a Bool value on to make the graphic invisible instead.

  4. #4
    Join Date
    May 2009
    Location
    Minneapolis, MN
    Posts
    295

    Default

    I agree. There are quite a few times this feature would make life easier.

  5. #5

    Default Bitmap list works in CR0452

    I created a bitmap lists from 0 to 9 at bigger size because CR0452 supports up to 48 font size.

    The bitmap list works very well but it seems like that the total image quantity is limited to 10. I am right on the edge...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •