File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
TiaCodegen/Commands/Signals Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,15 @@ public void AddXmlToStringBuilder(ulong id, StringBuilder sb)
153
153
sb . AppendLine ( "</Constant>" ) ;
154
154
sb . AppendLine ( "</Access>" ) ;
155
155
}
156
+ else if ( SignalType == SignalType . ConstantReal && ! Name . StartsWith ( "#" ) )
157
+ {
158
+ sb . AppendLine ( "<Access Scope=\" LiteralConstant\" UId=\" " + id + "\" >" ) ;
159
+ sb . AppendLine ( "<Constant>" ) ;
160
+ sb . AppendLine ( "<ConstantType>Real</ConstantType>" ) ;
161
+ sb . AppendLine ( "<ConstantValue>" + Name + "</ConstantValue>" ) ;
162
+ sb . AppendLine ( "</Constant>" ) ;
163
+ sb . AppendLine ( "</Access>" ) ;
164
+ }
156
165
else if ( SignalType == SignalType . ConstantString && ! Name . StartsWith ( "#" ) )
157
166
{
158
167
sb . AppendLine ( "<Access Scope=\" LiteralConstant\" UId=\" " + id + "\" >" ) ;
You can’t perform that action at this time.
0 commit comments