Home > Software engineering >  Vb serial port control servo motor
Vb serial port control servo motor

Time:10-27

Want to use vb by + rs232 serial port receiving servo unit (inverter), to control the servo motor, just want to put a number in vb window, have a speed motor,,, but I don't know vb,,, ask everybody to give directions to think of it,,,

CodePudding user response:

This need with single chip microcomputer communication, communication rather than directly with the motor,
Specific it is received by single chip microcomputer communication pipeline command (such as serial, parallel, USB... And so on and so on), then the analysis command, according to the command parameter control drive motor drive circuit according to the way you specify,
So the whole process of communication control is mainly SCM on the communication protocol of upper machine based on single-chip computer communication control protocol again. Write the corresponding program to send relevant control command to the machine, so, you must first get single-chip computer parts, and then get PC part,

CodePudding user response:

Suggested the building Lord:
1, to clear up the hardware structure of servo motors, wiring definition,
2, understand communication protocol

This is the only two points clear, ability is qualified said programming control

CodePudding user response:

Can communicate between vb and inverter, inverter that a piece of basic wiring connected, can consider the vb programming now?

CodePudding user response:


reference 1st floor SupermanKing response:
this need with single chip microcomputer communication, communication rather than directly with the motor,
Specific it is received by single chip microcomputer communication pipeline command (such as serial, parallel, USB... And so on and so on), then the analysis command, according to the command parameter control drive motor drive circuit according to the way you specify,
So the whole process of communication control is mainly SCM on the communication protocol of upper machine based on single-chip computer communication control protocol again. Write the corresponding program to send relevant control command to the machine, so, you must first get single-chip computer parts, then get PC part,

Can communicate between vb and inverter, inverter that a piece of basic wiring connected, can consider the vb programming now?

CodePudding user response:

refer to the second floor Veron_04 response:
suggested building Lord:
1, to clear up the hardware structure of servo motors, wiring definition,
2, understand communication protocol

This is the only two points clear, ability is qualified said programming control

Wiring basic answered,,, you said the communication protocol of here refers to a serial port communication protocol, to see the next baidu encyclopedia, slightly to understand,

CodePudding user response:

reference u011917602 reply: 3/f
can communicate between vb and inverter, inverter that a piece of basic wiring connected, you can now consider the vb programming,


Read carefully the inverter specifications, understand communication protocol and the instruction format, using MsComm control with inverter communication,

CodePudding user response:

refer to 6th floor zdingyun response:
Quote: refer to the third floor u011917602 response:

Can communicate between vb and inverter, inverter that a piece of basic wiring connected, you can now consider the vb programming,


Reading inverter manual carefully and understand communication protocol and the instruction format, using MsComm control communication, implementation and converter

When programming in what framework, general idea of what

CodePudding user response:

refer to 7th floor u011917602 response:
what when programming framework, the general idea of what it


General idea about communication protocol is inverter specification and instruction format requirements, according to the VB code,

CodePudding user response:

reference 4 floor u011917602 response:
can communicate between vb and inverter, inverter that a piece of basic wiring connected, you can now consider the vb programming,

It's difficult to say, some of the equipment is not rely on command and control, but by the pulse signal of control, it depends on your specific instructions of the equipment, if the device itself is in command control, then you can send the corresponding data according to the equipment specified to the equipment, of course, VB can do such a thing, if your device is to rely on impulse control, it also need to get a single chip microcomputer to control the pulse signal and do your order processing, all is the application of this kind of things there is no standard, to do according to your actual situation, because your reality is not clear, I can only give you some advice, hope to help you,

CodePudding user response:

Equipment for motor control, if you do, suggest you still PLC, inexpensive (a small PLC is less than 2000), but the stability and easy to developmental are much stronger than singlechip, especially stability, in addition, based on the person's psychology of buy equipment, PLC is more rich,

CodePudding user response:

In addition, there are a lot of IO points and a handful of analog input and output, in fact, if you control the amount is more, the PLC is the best choice,

CodePudding user response:

references 9 f SupermanKing response:
Quote: refer to 4th floor u011917602 response:

Can communicate between vb and inverter, inverter that a piece of basic wiring connected, you can now consider the vb programming,

It's difficult to say, some of the equipment is not rely on command and control, but by the pulse signal of control, it depends on your specific instructions of the equipment, if the device itself is in command control, then you can send the corresponding data according to the equipment specified to the equipment, of course, VB can do such a thing, if your device is to rely on impulse control, it also need to get a single chip microcomputer to control the pulse signal and do your order processing, all is the application of this kind of things there is no standard, to do according to your actual situation, because your reality is not clear, I can only give you some advice, hope to help you,

I the inverter is controlled by controlling the input voltage frequency converter, this command control or impulse control,,,

CodePudding user response:

refer to 12 floor u011917602 reply:
me the inverter is controlled by controlling the input voltage frequency converter, this command control or impulse control,,,

输入电压控制的我还没用过,不过这在单片机开发当中也很容易解决,无非就是个A/D转换的输出问题,也可以理解成为影响上功放,就是一个电压控制喇叭的过程,估计你的设备如果是用电压控制,也不会涉及到太高的电压和电流,毕竟只是控制信号而已,所以应该用一些基本的D/A芯片就可以解决,这种模式控制起来和脉冲控制差不多,设备提供的是电子方面的开发接口(脉冲或电压),那么只要用相应的中转设备来与其接口,同时这个设备需要有与电脑的设备接口,如串口,USB信息控制接口等,通常这种设备都是自己开发的,可以用单片机,也可以用一些现成的工控机(可编程控制器),单片机方面可选择的东西很多,如51单片机,PLC,AVR等都可以,当然你上嵌入式的ARM也可以,这就是成本问题,相对来说,51单片机比较便宜,也容易开发,随便到网上买个51单片机的开发板,通常都有关于D/A转换的例子(包括软件和硬件方面的,至于脉冲式控制,其实就是用一个I/O口接一个可控硅或场效应管就可以实现这样的脉冲信号控制,在软件上就涉及点串口通讯和中断控制等技术),当然,如果你用PLC,甚至可以直接用I/O口直接来做这种脉冲信号控制,外接器件都不用,因为PLC的I/O口耐压和过流能力要比单片机大很多,所以很多东西可以直接用I/O口来驱动,不用外接器件来驱动,
In short, whether your device is controlled by voltage or pulse, if you want to a computer to control him, you must have a middle control equipment, and the equipment you can own development, also can use the ready-made programmable controller (more expensive, the software part of the hardware or to write their own, it's just not professional development language, note: "the flow chart of what way, of course, there is also a basic script or assembly available"), actually should have this kind of equipment is a body, but you are using is a drive control device, and as I said above part of the drive circuit, so much and computer communication must also be a such thing,

CodePudding user response:

Be careful, "returned empty error"

CodePudding user response:

On the 14th floor zhao4zhong1
reference response:
careful "empty return error"

On the PC and inverter to contact, general steps is what kind of,,,

CodePudding user response:

There are two kinds of general inverter control mode:
1, communication control (in fact is also a voltage control, built-in a DC10V voltage, communication setting voltage value)
2, manual or panel speed switch control, the setting voltage value is through the knob
3, external control voltage, the need for analog control,

More than just saying the setting of the frequency of frequency converter in fact inverter and there are many parameters, such as startup mode? Running state of the instructions? And so on,

On my personal experience, the inverter control has a very need to pay attention to the problem, it is low frequency interference, if you don't have a complete processing, severe cases, it will let you control system disorders

CodePudding user response:

I the inverter is controlled by controlling the input voltage, this command control or impulse control,,,
==================================================================

No,

nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related