plcopen/instances_path.ysl2
changeset 1945 90bf6bd94b94
parent 1939 db478d17bc3a
child 1946 95fa4e05e30f
equal deleted inserted replaced
1944:6162e34fb246 1945:90bf6bd94b94
    43             when "@typeName=$instance_type" {
    43             when "@typeName=$instance_type" {
    44                 value "ns:AddInstance($pou_instance_path)";
    44                 value "ns:AddInstance($pou_instance_path)";
    45             }
    45             }
    46             otherwise {
    46             otherwise {
    47                 variable "type_name" > «@typeName»
    47                 variable "type_name" > «@typeName»
    48                 apply """$all/ppx:project/ppx:types/ppx:pous/ppx:pou[@name=$type_name] |
    48                 apply """$all/ppx:types/ppx:pous/ppx:pou[@name=$type_name] |
    49                          $all/ppx:project/ppx:types/ppx:dataTypes/ppx:dataType[@name=$type_name]""" {
    49                          $all/ppx:types/ppx:dataTypes/ppx:dataType[@name=$type_name]""" {
    50                     with "instance_path" > «$pou_instance_path»
    50                     with "instance_path" > «$pou_instance_path»
    51                 }
    51                 }
    52             }
    52             }
    53         }
    53         }
    54     }
    54     }
    81             when "@name=$instance_type" {
    81             when "@name=$instance_type" {
    82                 value "ns:AddInstance($variable_path)";
    82                 value "ns:AddInstance($variable_path)";
    83             }
    83             }
    84             otherwise {
    84             otherwise {
    85                 variable "type_name" > «@name»
    85                 variable "type_name" > «@name»
    86                 apply """$all/ppx:project/ppx:types/ppx:pous/ppx:pou[@name=$type_name] |
    86                 apply """$all/ppx:types/ppx:pous/ppx:pou[@name=$type_name] |
    87                          $all/ppx:project/ppx:types/ppx:dataTypes/ppx:dataType[@name=$type_name]""" {
    87                          $all/ppx:types/ppx:dataTypes/ppx:dataType[@name=$type_name]""" {
    88                     with "instance_path" > «$variable_path»
    88                     with "instance_path" > «$variable_path»
    89                 }
    89                 }
    90             }
    90             }
    91         }
    91         }
    92     }
    92     }