Skip to content
< All Topics

Set Output Bit From Code

public class Main
{
    public void On(object trigger, string symbol)
    {
        if (symbol == "Init")
        {  //Connection id
           /*Output.On(string Symbol)'*/
           /*Output.On(String Symbol,string source)'*/
           /*Output.On(int id, int byteno, int bitno)'*/
           /*Output.On(int id, string source, int byteno, int bitno)'*/
      
           //for AB plc
           Output.On(1, "Local_4", 231, 6);
           // connection id 1, source, Byte, bit
      
           //for Siemens
           Output.On(0, "1", 1, 6);
           // connection id 0, source (DB1), Byte, bit
        }
    }
}
Was this article helpful?
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.