Ejemplo n.º 1
0
        private async void button1_Click(object sender, EventArgs e)
        {
            try
            {
                string address = textBoxAddress.Text;
                ushort length  = Convert.ToUInt16(textBoxLength.Text);

                var   response = melsecMc.ReadFloatAsync(address, length);
                await response;
                MessageBox.Show(response.ToJsonString());
            }
            catch (Exception ex)
            {
            }
        }