Dear ALL,
I have created an event where I am calling a method to access the hardware and also sending a command to jog the machine. When this button is clicked the event is triggered and the motors connected to that hardware moves with the command given.
The problem here is that when I release that button it continues to move the motors and the command argument does not get updated so as to stop the motors from moving.
There is however a separate command to stop the motors from moving but, what changes would I need on the event generated for the button click. Following is my code:
private void Neg_X_Click(object sender, EventArgs e)
{
Globals.command = "Jog Negative";
Globals.Turbo.GetResponseEx(Globals.device_number, Globals.command, false,
out Globals.response, out Globals.status);
}

1 answers
This post was imported from csharpfriends, if you have a similiar question please ask it again.
All previous members have been migrated, hope you enjoy the new platform!