Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit de8fe86

Browse files
[BUG] TcoSingalInfo does not retrieve full symbol path (#431)
* kind of fix to the issue with searching symbol path. Co-authored-by: PTKu <PTKu@users.noreply.github.com> Co-authored-by: Peter <61538034+PTKu@users.noreply.github.com>
1 parent 9088a93 commit de8fe86

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/TcoCore/src/TcoCoreConnector/pex/TcoSignalInfo/TcoSignalInfo.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ public IVortexElement Signal
3232
var plc_signal_symbol = this.SymbolPath.Synchron;
3333
if (!string.IsNullOrEmpty(plc_signal_symbol))
3434
{
35-
signal = this?.Connector?.OnlineTags?.Where(p => p.Symbol == plc_signal_symbol).FirstOrDefault();
35+
//Search changed to StartsWith because `Tc3_JsonXml.FB_JsonReadWriteDatatype`
36+
//in TcoSignalInfo is unable to retrieve complete path in some instances.
37+
// This can be a bug in `Tc3_JsonXml.FB_JsonReadWriteDatatype` that is outside our reach.
38+
signal = this?.Connector?.OnlineTags?.Where(p => p.Symbol.StartsWith(plc_signal_symbol)).FirstOrDefault();
3639
}
3740
}
3841
}

0 commit comments

Comments
 (0)