Skip to main content

Subsection: Wildcards

The Wildcard subsection is used to create wildcard devices for modules that are not yet known when the module is created. The devices should then be flexible to be specified by the user before or during generation.

SEC Device : <target>                                //optional: yes, modifier [UPDATE]
    Parent := <target ID>;                           //optional: yes, type: ID
    SEC Wildcard : <target>                          //optional: yes, modifier: [UPDATE]
            Desc := <description>;                       //optional: no, type: text
    END_SEC
END_SEC
. Specification:
  • The Identification, Wildcard, and FlexibleWildcard subsections cannot be used at the same time.

  • The target of the section Wildcard determines the type of the wildcard device. Different modules can use wildcard devices of the same type (example: "8inputs"). All wildcard devices of the same type are assigned to the same device.

  • Desc defines a (localized) description of the wildcard device (in a text list).

  • Parent defines the desired parent device. Wildcard devices are also possible here, provided they are already assigned to devices. If the device set for the wildcard device is not a compatible parent device, an error is issued during generation.

Example 34. Example
SEC Device : KlemmeAnalogOutput
        Parent := Buskoppler2;
        SEC Wildcard : KlemmeTyp
                Desc := TL.WildDesc;
        END_SEC
END_SEC