Beispiel #1
0
        private void inputBox1_KeyPress(object sender, KeyPressEventArgs e)
        {
            InputBox obj = (InputBox)sender;

            if (e.KeyChar == 13)
            {
                string symbol = FuncPLC.SymbolName(sender);

                this.m_glb_PLC.Write(symbol, obj.Text);
            }
        }
Beispiel #2
0
        private void Toggle(object sender, EventArgs e)
        {
            bool   wert       = false;
            string symbolName = FuncPLC.SymbolName(sender);

            wert = glb_plc.ReadBool(symbolName);
            if (wert == false)
            {
                glb_plc.Write(symbolName, "1");
            }
            else
            {
                glb_plc.Write(symbolName, "0");
            }
        }
Beispiel #3
0
 private void BtnUp(object sender, MouseEventArgs e)
 {
     glb_plc.Write(FuncPLC.SymbolName(sender), "0");
 }
Beispiel #4
0
 private void BtnDown(object sender, MouseEventArgs e)
 {
     m_glb_PLC.Write(FuncPLC.SymbolName(sender), "1");
 }