Home > other >  C#
C#

Time:01-26

, ladies and gentlemen, everybody is good, I ask, a question about PC software programming, I have now realized by PC to control the step motor start stop, send the specified pulse and speed control, but the next thing to realize is that it is sent after the specified pulse count is performed, and then execute that code, pulse didn't send complete, does not perform the back of the code, such as: I click run automatically, after receiving a trigger signal sensor, start sending 10000 pulse, such as 10000 after the pulse transmission, and then opens an output port to control the electromagnetic valve and stop work, I check the Internet for a long time, this problem has not find relevant case,, every brother please advice, I appreciate

CodePudding user response:

refer to the original poster qq_43102706 response:
, ladies and gentlemen, everybody is good, I ask, a question about PC software programming, I have now realized by PC to control stepping motor start stop, send the specified pulse and speed control, but the next thing to realize is that it is sent after the specified pulse count is performed, and then execute that code, pulse didn't send complete, does not perform the back of the code, such as: I click run automatically, after receiving a trigger signal sensor, start sending 10000 pulse, such as 10000 after the pulse transmission, and then opens an output port to control the electromagnetic valve and stop work, I check the Internet for a long time, this problem has not find relevant case,, every brother please advice, I appreciate

I use c # code, experienced big show just a little

CodePudding user response:

Don't understand the
 void motor automatically run events () 
{
Sensor signals, while (==false);
for(int i=0; I<10000; I++)
{
Pulse ();
}
Output port control solenoid valve ();
}

This is not to go? Still struggling with what?

CodePudding user response:

refer to the second floor dceacho response:
don't understand the
 void motor automatically run events () 
{
Sensor signals, while (==false);
for(int i=0; I<10000; I++)
{
Pulse ();
}
Output port control solenoid valve ();
}

This is not to go? Still struggling with what?

Thank you thank you, thank you for your bosses to give directions, I was a little white, teeth, let bosses laughed, thank you very much????????????

CodePudding user response:

If you want to know how output port control solenoid valve (), is to ask to the plate, it belongs to the single chip microcomputer/industrial

If is industrial PC, will set aside the IO mouth, you control an IO port control solenoid valve good
If it is an ordinary computer, you need to do a control panel and PC communication