plcopen/instances_path.ysl2
changeset 1946 95fa4e05e30f
parent 1945 90bf6bd94b94
child 1949 c266fbaae0f6
equal deleted inserted replaced
1945:90bf6bd94b94 1946:95fa4e05e30f
    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:types/ppx:pous/ppx:pou[@name=$type_name] |
    48                 apply """$all/ppx:types/ppx:pous/ppx:pou[@name=$type_name] | \
    49                          $all/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         }
    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:types/ppx:pous/ppx:pou[@name=$type_name] |
    86                 apply """$all/ppx:types/ppx:pous/ppx:pou[@name=$type_name] | \
    87                          $all/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         }