private void btnOnOffServo1_Click(object sender, EventArgs e) { if (sender == btnOnServo1) { plc.SetServo1Up(); } if (sender == btnOffServo1) { plc.SetServo1Down(); } }