hi at all
how the subject says:
i want to change the icon of the MU's in addiction to an attribute (6 several) permanent
i already tried it with
@.BildNr := ....;
but this seems to be local and only for this object.
You access only one MU with @; so you change the icon only for this object. If you want to change the icon for all MUs of a class, then you need to adress the class and change the icon there. Plant Simulation changes by default the icons depend on the state of the MUs. If you don't want this behavior, you need to deactivate the use of the state icons in the icon editor.
it's the same MU but my MU's have an attribute (Prod) which could be (6, 007-003, 007-000,...)
and the method should change the symbol of the MU's in addiction to this attribute
So i created 6 different icons (0 .. 5) for one MU
if @.Prod = "6" or @.Prod = "007-003" then
@.BildNr := 3;
elseif @.Prod = "7" or @.Prod = "007-000" then
@.BildNr := 0;
elseif @.Prod = "007-001" then
@.BildNr := 4;
elseif @.Prod = "007-002" then
@.BildNr := 5;
elseif @.Prod = "007-006" then
@.BildNr := 2;
Plant Simulation changes between icons depend of the state of the MU. If the MU is waiting, Plant Simulation changes to the icon with the name "waiting", default is "operational".
So you can solve your problem in two ways: copy your icon in the icons waiting and operational or deactivate this behavior, icon editor in V.11
your model version_1 has only 2 sensors...
You need to deactivate the state icons in the icon editor for the bramme in the class library.