We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca560c0 commit d44c6a8Copy full SHA for d44c6a8
1 file changed
TiaCodegen/Commands/Signals/Signal.cs
@@ -153,6 +153,15 @@ public void AddXmlToStringBuilder(ulong id, StringBuilder sb)
153
sb.AppendLine("</Constant>");
154
sb.AppendLine("</Access>");
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
+ }
165
else if (SignalType == SignalType.ConstantString && !Name.StartsWith("#"))
166
{
167
sb.AppendLine("<Access Scope=\"LiteralConstant\" UId=\"" + id + "\">");
0 commit comments