Skip to content
< All Topics

List and set Normally Closed on photocells

  1. Search for all photocells in “Model”
  2. Set “Normally open/Normally closed” to “normally closed
  3. Print status and name
foreach (var item in Experior.Core.Assemblies.Assembly.Items.Values)
    if (item is Experior.Catalog.Logistic.PhotoEye)
        ((Experior.Catalog.Logistic.PhotoEye)item).plcActivation.NoNc = NormallyClosed;
        Log.Write("Photcell name = " + item.Name);
Was this article helpful?
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Previous List and modify PLC Outputs
Next Modify Motor Frequency Converter Symbol