Exemple #1
0
        private void btnWriteBool_Click(object sender, EventArgs e)
        {
            txtData.Text    = "";
            mbmUdp.Hostname = txtHost.Text;
            bool   writeData      = Convert.ToBoolean(cbxBoolValue.Text);
            wmnRet _wmnReceiveRet = mbmUdp.WriteSingleCoil(0, 12288, writeData);

            txtData.Text = _wmnReceiveRet.Text;
        }