Search the Community

Showing results for tags 'struct'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 4 results

  1. Hi  Is it not possible to use the datatype struct in Stuido 5000, when making a UDT?  Best regards  Jesper   
  2. Good morning all! I'm just getting into this world of controls and automation and need a way to simplify my life when it comes to discrete alarms. I do not care to separate them by tag so long as I can create a personalized for each bit/alarm triggered. What is the best way to list hundreds of alarms in a single tag? Can we make use of a struct data type? If so, what would this look like? I understand I can use something like a tag of data type word, such as "Faults" MW100 and then reference M101.0, M101.1... M100.0, M100.1 (notice the order), but this only allows me 16 total discretes per tag.  Sometimes I'll have more alarms than 16 and sometimes way less. I'd rather not seperate them in this manner if I can avoid it. Your assistance is much appreciated!   [edit] Siemens TIA and WinCC v15
  3. Struct as FB input

    Hello,  I am trying to define a struct as an input variable for a Function or Function Block. For example the function AddDelimiter (This is a standard Sysmac function), has a input variable with the variable type Struct, an it is possible to couple a struct to this input (See picture below). If i try to make my own function block with a struct or Structure as an input data type, i get the following error (See picture below). When I try to define a struct from the data types (In this case struct: Test) it doesn't give a error. But when I try to couple a struct to this input, that is a layer deeper than the function block struct i get the following error (See picture below). How can i define a struct as an function/ function block input? Thanks in advance.
  4. Currently, I am using the S_MOVE instruction to copy a string called "dbVariant".Variant1.PartNumber into "dbVariant".VariantInBuild.PartNumber. How would I go about copying the whole struct "dbVariant".Variant1 into struct "dbVariant".VariantInBuild? Thanks in advance!