Skip to content
< All Topics

List and modify PLC Outputs

Changing or updating a Symbol name will result in overwriting current symbol name( or tag) on the Output.

string changefrom = "string1";
string changeto = "string2";

foreach (var o in Experior.Core.Communication.PLC.Connection.Outputs.Items)
{
    Log.Write("ID = " + o.ID + " Source = " + o.Source + " Symbol = " + o.Symbol + " Name = " + o.Name);
    o.Source = "0 - CON1";
    o.ID = "0 - CON1";
    o.Symbol = o.Name;
    o.Symbol = o.Name.Replace(changefrom, changeto);
    Log.Write("output name = " + o.Symbol);
}
Was this article helpful?
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.