Dear Team,
i have a problem with a MEM tag:
in the basic-ide i have this:
-INIT SECTION
ONCHANGE “MaterialCode”,"@EnuMaterialType()"
-in a my Section i have this
Function EnuMaterialType()
IF MaterialCode@ = “AL” THEN MaterialType@=1//Aluminum
IF MaterialCode@ = “CU” THEN MaterialType@=2//copper
IF MaterialCode@ = “AISI” THEN MaterialType@=3//stainless steel
IF MaterialCode@ = “CUZN” THEN MaterialType@=4//brass
IF MaterialCode@ = “FE” THEN MaterialType@=5//Iron
ENDFN
MaterialCode is a S7-300 string Tag
MaterialType is a MEM tag
Problem:
sometimes in the log file of the MaterialType (and same in datamailbox…) the tag show values like this:
1103103864
1103103544
1102054720
1102054520
1094715560
1094715872
1103103384
They are all with IQuality=3 and IsInitValue=0
Who set my mem tag to this strange values ?
note: ewon fw version 13.2s1
thank you and stay cyber-safe at home !