#set $ns=$ns #set $rr=$int($ns) #for $i in $range(0,$rr-1) http://localhost/$Assembly$str($i)/ #end for http://localhost/$Assembly/ i=1 i=2 i=3 i=4 i=5 i=6 i=7 i=8 i=9 i=10 i=11 i=13 i=12 i=15 i=14 i=16 i=17 i=18 i=20 i=21 i=19 i=22 i=26 i=27 i=28 i=47 i=46 i=35 i=36 i=48 i=45 i=40 i=37 i=38 i=39 i=884 #silent L=[] #silent N=[] #silent T=[] ${Assembly} The folder of the Assembly i=85 i=61 ${Assembly} Monitoring Variables The folder of the Assembly Monitoring Variables ns=${ns};i=1 ns=${ns};i=1 #for $idx in $range(0,$x["NRows"]) $x['OPC_UA node'][$idx] #end for ${Assembly} Setting Variables The folder of the Assembly Setting Variables ns=${ns};i=1 ns=${ns};i=1 #for $idx in $range(0,$y["NRows"]) $y['OPC_UA node'][$idx] #end for ${Assembly} Mode Variables The folder of the Assembly Setting Variables ns=${ns};i=1 ns=${ns};i=1 #for $idx in $range(0,$m["NRows"]) #if not $m['OPC_UA node'][$idx] in T $m['OPC_UA node'][$idx] #silent T.append($m['OPC_UA node'][$idx]) #end if #end for ${Assembly} Command Variables The folder of the Assembly Monitoring Variables ns=${ns};i=1 ns=${ns};i=1 #for $idx in $range(0,$c["NRows"]) #if not $c['OPC_UA node'][$idx] in T $c['OPC_UA node'][$idx] #silent T.append($c['OPC_UA node'][$idx]) #end if #end for #for $idx in $range(0,$x["NRows"]) #silent L.append($x["Short name"][$idx]) #if not $x['OPC_UA node'][$idx] in N #if ($x["OPC UA Data type"][$idx]).upper()[-1]==']' ## test for arrays #set $sp=($x["OPC UA Data type"][$idx].upper()).split("[") #set $type=$sp[0].capitalize() #if $type[0]=="U" #set $type=$type.replace("i","I") #end if #set $dim=$sp[1].replace("]","") $x['Name of command'][$idx] $x['Description'][$idx] i=63 ns=${ns};i=2 #else #set $type=$x["OPC UA Data type"][$idx].capitalize() #if $type[0]=="U" #set $type=$type.replace("i","I") #end if $x['Name of command'][$idx] $x['Description'][$idx] i=63 ns=${ns};i=2 #if $type!="String" and $type != "Boolean" #set $val=str($x['Default value'][$idx]) #if $val=="nan" or $val=="NA" #set $val="0" #end if #if $x["OPC UA Data type"][$idx].upper()=="INT16" or $x["OPC UA Data type"][$idx].upper()=="INT32" #set $val=str($val).split(".")[0] #end if $val #end if #silent N.append($x['OPC_UA node'][$idx]) #end if #end if #end for #for $idx in $range(0,$y["NRows"]) #silent L.append($y["Short name"][$idx]) #if not $y['OPC_UA node'][$idx] in N #if ($y["OPC UA Data type"][$idx]).upper()[-1]==']' ## test for arrays #set $sp=($y["OPC UA Data type"][$idx].upper()).split("[") #set $type=$sp[0].capitalize() #if $type[0]=="U" #set $type=$type.replace("i","I") #end if #set $dim=$sp[1].replace("]","") $y['Name of command'][$idx] $y['Description'][$idx] i=63 ns=${ns};i=3 #else #set $type=$y["OPC UA Data type"][$idx].capitalize() #if $type[0]=="U" #set $type=$type.replace("i","I") #end if $y['Name of command'][$idx] $y['Description'][$idx] i=63 ns=${ns};i=3 #if $type!="String" and $type != "Boolean" #set $val=str($y['Default value'][$idx]) #if $val=="nan" or $val=="NA" #set $val="0" #end if $val #end if #silent N.append($y['OPC_UA node'][$idx]) #end if #end if #end for #for $idx in $range(0,$m["NRows"]) #set $name=($m["OPC_UA node"][$idx].split(";")[1]).split("=")[1].replace(".","_") #if not $name in L #if not $m['OPC_UA node'][$idx] in N #set $type=$m["OPC UA Data type"][$idx].capitalize() #if $type[0]=="U" #set $type=$type.replace("i","I") #end if $name $m['Description'][$idx] i=63 ns=${ns};i=4 0 #silent N.append($m['OPC_UA node'][$idx]) #end if #silent L.append($name) #end if #end for #for $idx in $range(0,$c["NRows"]) #set $name=($c["OPC_UA node"][$idx].split(";")[1]).split("=")[1].replace(".","_") #if not $name in L #if not $c['OPC_UA node'][$idx] in N #set $type=$c["OPC UA Data type"][$idx].capitalize() #if $type[0]=="U" #set $type=$type.replace("i","I") #end if $c['Name of command'][$idx] $c['Description'][$idx] i=63 ns=${ns};i=5 0 #silent N.append($c['OPC_UA node'][$idx]) #end if #silent L.append($name) #end if #end for