CodePudding user response:
1. The first choice, you have to add a serial port control, such as MSCOMM2. Create a serial port variables, such as serial port initialization
3. Add a serial port receives the message function, OnCommMscomm
4. Remove the serial data of motor control, control of the motor
CodePudding user response:
Motor sportSpeed control, position control
CodePudding user response:
Is I use: PC + PLC + motor, control, computer via a serial port to read data from the PLC, according to the data state to write data to the PLC, control motor and reversing or stop,CodePudding user response:
MSCOMMThis control!!!! But under VS no, vc6 under this control, after you installed the vc6, VS the will also have the control!
But only 32-bit version of the control