Belt transmission system design digitization method based on VB programming

文档序号:1964013 发布日期:2021-12-14 浏览:16次 中文

阅读说明:本技术 一种基于vb编程的带传动系统设计数字化方法 (Belt transmission system design digitization method based on VB programming ) 是由 朱大昌 黄乐涵 杜宝林 梁远飞 崔翱东 于 2021-09-16 设计创作,主要内容包括:本发明公开了一种基于VB编程的带传动系统设计数字化方法,包括以下步骤:S1、将涉及到的平带和V带系统设计公式及平带和V带的国标数据,用VB编程写入程序内部;S2、使用VB编写用户使用界面,使用户能够在用户界面输入所需设计的平带传动系统环境参数或V带传动系统环境参数;S3、操作用户使用界面最终输出用户所需的平带传动系统设计数据或V带传动系统设计数据。本发明过建立人机结合的方式,应用多维数组表处理法和应用数据库管理方式等多种数据处理方法,极大简化设计过程,提高设计效率。(The invention discloses a belt transmission system design digitalization method based on VB programming, which comprises the following steps: s1, writing the design formulas of the related flat belts and V belt systems and national standard data of the flat belts and V belts into a program by VB programming; s2, compiling a user use interface by using VB, so that a user can input the environmental parameters of the flat belt transmission system or the V belt transmission system which are required to be designed on the user interface; and S3, operating the user interface to finally output the flat belt drive system design data or V belt drive system design data required by the user. The invention greatly simplifies the design process and improves the design efficiency by establishing a man-machine combination mode, applying a multi-dimensional array table processing method, applying a database management mode and other data processing methods.)

1. A belt drive system design digitization method based on VB programming, comprising the steps of:

s1, writing the design formulas of the related flat belts and V belt systems and national standard data of the flat belts and V belts into a program by VB programming;

s2, compiling a user use interface by using VB, so that a user can input the environmental parameters of the flat belt transmission system or the V belt transmission system which are required to be designed on the user interface;

and S3, operating the user interface to finally output the flat belt drive system design data or V belt drive system design data required by the user.

2. A VB programming based belt drive system design digitization method according to claim 1, characterized in that the following VB controls are specifically used when writing user interface:

the Option control writes the design of the flat belt transmission system or the design of the V belt transmission system into the Option control and is selected by a user;

the TextBox control is used for inputting user parameter data and outputting design data;

the ComboBox control writes the environmental parameters of the flat belt drive system or the V belt drive system into the ComboBox control and is selected by a user;

and the Command control writes the sequence of belt drive system design, the calculation of belt drive system design, the national standard data query of belt drive system and the storage of final data of belt drive system design into the control.

3. A method according to claim 2, wherein the user interface comprises a flat belt drive system design interface and a V belt drive system design interface, and the flat belt drive system design interface and the V belt drive system design interface each comprise a plurality of layers of different interfaces;

and when the user selects the flat belt transmission or V belt transmission Options control, entering a corresponding flat belt transmission system design interface or V belt transmission system design interface.

4. A VB programming based belt drive system design digitizing method according to claim 3, characterized by the Command control comprising:

starting a Command control and closing the Command control, wherein the starting Command control is used for entering a design interface after a user enters a design interface of a flat belt transmission system or a design interface of a V belt transmission system; closing the Command control for exiting the interface;

the computing Command control is used for computing after a user inputs design environment parameters of the belt transmission system, and outputting design data in the corresponding TextBox control;

the Command control is operated in the previous step and the next step and is used for entering a previous layer interface or a next layer interface of a flat belt transmission system design interface or a V belt transmission system design interface and automatically storing current interface design data;

inquiring a national standard data parameter Command control, and outputting inquiry data for a corresponding TextBox control;

and the saved data Command control is used for automatically saving the design result of the belt drive system into the Access table of the database connected to the control.

5. A VB programming-based belt drive system design digitization method according to claim 3, characterized in that the specific steps of programming environmental parameters of a flat belt drive system or a V belt drive system into a ComboBox control are as follows:

compiling belt wheel spacing requirements in List attributes of ComboBox controls of a second layer interface designed by the flat belt transmission system;

compiling load conditions, starting conditions and working hours per day in List attributes of ComboBox controls on the upper part of the last layer of interface of the flat belt transmission system design;

compiling a transmission form and an included angle between a central connecting line of two belt pulleys and a horizontal line in a List attribute of a ComboBox control at the lower part of a last layer of interface designed by a flat belt transmission system;

compiling load conditions, starting conditions and working hours per day in List attributes of ComboBox controls of a first layer interface of the V-belt drive system design;

the belt type, gear ratio and pulley spacing requirements are programmed into the List attributes of the ComboBox controls for the last layer of interface in the V-belt drive system design.

6. A VB programming based belt drive system design digitization method as claimed in claim 2, wherein the method for inputting user parameter data and outputting design data by the TextBox control is specifically as follows:

the TextBox control in the field of input parameters of a belt transmission system design interface is used for acquiring application environment parameters of the belt transmission system, which are input by a user and need to be designed;

the TextBox control in the field of output parameters of the belt drive system design interface is used for outputting a design result or a national standard data query result.

7. A VB programming-based belt drive system design digitization method according to claim 4, wherein the Command control calculation and query method specifically comprises the following steps:

and establishing a national standard data multidimensional array and a database Access table required by the design of the belt transmission system, connecting the national standard data multidimensional array and the database Access table to a control, and automatically acquiring data and calculating by clicking.

8. A VB programming based belt drive system design system, characterized by being obtained by the VB programming based belt drive system design digitization method according to any one of claims 1-7.

Technical Field

The invention belongs to the field of belt transmission system design, and particularly relates to a belt transmission system design digitalization method based on VB programming.

Background

In view of the disadvantages of the manual design method of belt drive, such as large workload, tedious design and the need for repetition of the design process, the development of the computer aided belt drive design system is still very important. The digital design of the belt drive system is beneficial to improving the design efficiency and reliability of the belt drive. In view of the powerful visual programming function and the database access function of the VB software, the VB software is used as a development tool, can obtain various belt-driven computer-aided designs and obtain corresponding design parameters, can effectively improve the design efficiency, reduces the workload of designers and realizes the belt-driven automatic design.

Disclosure of Invention

The invention mainly aims to overcome the defects of the prior art and provide a belt transmission system design digitalization method based on VB programming, which greatly simplifies the design process and improves the design efficiency by establishing a man-machine combination mode and applying a plurality of data processing methods such as a multidimensional array table processing method, a database management method and the like.

In order to achieve the purpose, the invention adopts the following technical scheme:

a belt drive system design digitization method based on VB programming includes the following steps:

s1, writing the design formulas of the related flat belts and V belt systems and national standard data of the flat belts and V belts into a program by VB programming;

s2, compiling a user use interface by using VB, so that a user can input the environmental parameters of the flat belt transmission system or the V belt transmission system which are required to be designed on the user interface;

and S3, operating the user interface to finally output the flat belt drive system design data or V belt drive system design data required by the user.

Further, the following VB controls are specifically used when the user use interface is written:

the Option control writes the design of the flat belt transmission system or the design of the V belt transmission system into the Option control and is selected by a user;

the TextBox control is used for inputting user parameter data and outputting design data;

the ComboBox control writes the environmental parameters of the flat belt drive system or the V belt drive system into the ComboBox control and is selected by a user;

and the Command control writes the sequence of belt drive system design, the calculation of belt drive system design, the national standard data query of belt drive system and the storage of final data of belt drive system design into the control.

Further, the user use interface comprises a flat belt transmission system design interface and a V belt transmission system design interface, and the flat belt transmission system design interface and the V belt transmission system design interface comprise a plurality of layers of different interfaces;

and when the user selects the flat belt transmission or V belt transmission Options control, entering a corresponding flat belt transmission system design interface or V belt transmission system design interface.

Further, the Command control comprises:

starting a Command control and closing the Command control, wherein the starting Command control is used for entering a design interface after a user enters a design interface of a flat belt transmission system or a design interface of a V belt transmission system; closing the Command control for exiting the interface;

the computing Command control is used for computing after a user inputs design environment parameters of the belt transmission system, and outputting design data in the corresponding TextBox control;

the Command control is operated in the previous step and the next step and is used for entering a previous layer interface or a next layer interface of a flat belt transmission system design interface or a V belt transmission system design interface and automatically storing current interface design data;

inquiring a national standard data parameter Command control, and outputting inquiry data for a corresponding TextBox control;

and the saved data Command control is used for automatically saving the design result of the belt drive system into the Access table of the database connected to the control.

Further, the specific steps of programming the environmental parameters of the flat belt drive system or the V belt drive system into the ComboBox control are as follows:

compiling belt wheel spacing requirements in List attributes of ComboBox controls of a second layer interface designed by the flat belt transmission system;

compiling load conditions, starting conditions and working hours per day in List attributes of ComboBox controls on the upper part of the last layer of interface of the flat belt transmission system design;

compiling a transmission form and an included angle between a central connecting line of two belt pulleys and a horizontal line in a List attribute of a ComboBox control at the lower part of a last layer of interface designed by a flat belt transmission system;

compiling load conditions, starting conditions and working hours per day in List attributes of ComboBox controls of a first layer interface of the V-belt drive system design;

the belt type, gear ratio and pulley spacing requirements are programmed into the List attributes of the ComboBox controls for the last layer of interface in the V-belt drive system design.

Further, the method for the TextBox control to be used for user parameter data input and design data output specifically comprises the following steps:

the TextBox control in the field of input parameters of a belt transmission system design interface is used for acquiring application environment parameters of the belt transmission system, which are input by a user and need to be designed;

the TextBox control in the field of output parameters of the belt drive system design interface is used for outputting a design result or a national standard data query result.

Further, the method for calculating and querying the Command control specifically comprises the following steps:

and establishing a national standard data multidimensional array and a database Access table required by the design of the belt transmission system, connecting the national standard data multidimensional array and the database Access table to a control, and automatically acquiring data and calculating by clicking.

The invention also provides a belt transmission system design system based on VB programming, and the system is obtained according to the belt transmission system design digitalization method based on VB programming provided by the invention.

Compared with the prior art, the invention has the following advantages and beneficial effects:

1. the design system obtained according to the method of the invention replaces the complicated design calculation of the manual belt transmission system, can automatically inquire the national standard data of the belt transmission coefficient design, saves the manual inquiry time, is proved by the example checking calculation that the system can correctly output the design data of the belt transmission system, and has absolute feasibility.

Drawings

FIG. 1 is a flow chart of a method of an embodiment of the present invention;

FIG. 2 is a main interface of the system according to an embodiment of the present invention;

FIG. 3 is a first layer interface of a flat belt drive system design interface of a system according to an embodiment of the present invention;

FIG. 4 is a second level interface of a flat belt drive system design interface of a system according to an embodiment of the present invention;

FIG. 5 is a final layer of the flat belt drive system design interface of the system of an embodiment of the present invention;

FIG. 6 is a first level interface of a V-belt drive system design interface of a system according to an embodiment of the present invention;

FIG. 7 is a second level interface of the V-belt drive system design interface of the system of an embodiment of the present invention;

FIG. 8 is a final layer of the V-belt drive system design interface for a system according to an embodiment of the present invention.

Detailed Description

The present invention will be described in further detail with reference to examples and drawings, but the present invention is not limited thereto.

Examples

As shown in fig. 1, a VB programming based belt drive design digitization method includes the steps of:

s1, writing the design formulas of the related flat belts and V belt systems and national standard data of the flat belts and V belts into a program by VB programming;

s2, compiling a user use interface by using VB, so that a user can input the environmental parameters of the flat belt transmission system or the V belt transmission system which are required to be designed on the user interface;

the following VB controls are specifically used when writing the user use interface:

the Option control writes the design of the flat belt transmission system or the design of the V belt transmission system into the Option control and is selected by a user;

the TextBox control is used for inputting user parameter data and outputting design data;

the ComboBox control writes the environmental parameters of the flat belt drive system or the V belt drive system into the ComboBox control and is selected by a user;

and the Command control writes the sequence of belt drive system design, the calculation of belt drive system design, the national standard data query of belt drive system and the storage of final data of belt drive system design into the control.

In this embodiment, the user interface includes a flat belt transmission system design interface and a V belt transmission system design interface, both of which include multiple layers of different interfaces;

and when the user selects the flat belt transmission or V belt transmission Options control, entering a corresponding flat belt transmission system design interface or V belt transmission system design interface.

In this embodiment, the Command control includes:

starting a Command control and closing the Command control, wherein the starting Command control is used for entering a design interface after a user enters a design interface of a flat belt transmission system or a design interface of a V belt transmission system; closing the Command control for exiting the interface;

the computing Command control is used for computing after a user inputs design environment parameters of the belt transmission system, and outputting design data in the corresponding TextBox control;

the Command control is operated in the previous step and the next step and is used for entering a previous layer interface or a next layer interface of a flat belt transmission system design interface or a V belt transmission system design interface and automatically storing current interface design data;

inquiring a national standard data parameter Command control, and outputting inquiry data for a corresponding TextBox control;

and the saved data Command control is used for automatically saving the design result of the belt drive system into the Access table of the database connected to the control.

The specific steps of programming the environmental parameters of the flat belt transmission system or the V belt transmission system into the ComboBox control are as follows:

compiling belt wheel spacing requirements in List attributes of ComboBox controls of a second layer interface designed by the flat belt transmission system;

compiling load conditions, starting conditions and working hours per day in List attributes of ComboBox controls on the upper part of the last layer of interface of the flat belt transmission system design;

compiling a transmission form and an included angle between a central connecting line of two belt pulleys and a horizontal line in a List attribute of a ComboBox control at the lower part of a last layer of interface designed by a flat belt transmission system;

compiling load conditions, starting conditions and working hours per day in List attributes of ComboBox controls of a first layer interface of the V-belt drive system design;

the belt type, gear ratio and pulley spacing requirements are programmed into the List attributes of the ComboBox controls for the last layer of interface in the V-belt drive system design.

The method for the TextBox control to be used for user parameter data input and design data output specifically comprises the following steps:

the TextBox control in the field of input parameters of a belt transmission system design interface is used for acquiring application environment parameters of the belt transmission system, which are input by a user and need to be designed;

the TextBox control in the field of output parameters of the belt drive system design interface is used for outputting a design result or a national standard data query result.

The method for calculating and inquiring the Command control specifically comprises the following steps:

and establishing a national standard data multidimensional array and a database Access table required by the design of the belt transmission system, connecting the national standard data multidimensional array and the database Access table to the control, and automatically acquiring parameters and calculating by clicking.

And S3, operating the user interface to finally output the flat belt drive system design data or V belt drive system design data required by the user.

In another embodiment, a VB programming based belt drive system design system based on the digitization method described in the previous embodiment is provided.

As shown in fig. 2, the main interface for the user of the system of this embodiment to use includes two options controls, which are "flat belt drive" and "V belt drive", respectively;

the two Command controls are respectively 'start' and 'close';

after "flat belt drive" is selected, the selection "start" will enter the first level interface of the flat belt drive system design as shown in fig. 3, and after "V belt drive" is selected, the selection "start" will enter the first level interface of the V belt drive system design as shown in fig. 6. And exiting if "close" is selected.

As shown in fig. 3, the first layer of interface for the flat belt drive system design interface of the system of the present embodiment includes: three TextBox inputs, which are respectively "driving wheel speed", "driven wheel speed", "transfer power";

three TextBox outputs, namely 'driving wheel reference diameter', 'driven wheel reference diameter' and 'belt speed';

the three Command controls are respectively 'compute', 'next step' and 'previous step'.

And after three parameters are input, selecting 'calculation', wherein the Command control acquires the input parameters, carries out multi-dimensional array table or Access table query, carries out calculation of the design of the flat belt transmission system, and displays the result at the output TextBox control.

And selecting 'next step' to enter a second-layer interface of the flat belt transmission system design, connecting the control to Microsoft Office Access through an sql statement in VB, and automatically storing query data and calculation data of the design link. And returning to the main interface if the previous step is selected.

As shown in FIG. 4, the second layer of interface for the flat belt drive system design interface of the system of this embodiment includes four TextBox inputs: respectively calculating the reference diameter of the driving wheel, the reference diameter of the driven wheel, the belt speed and the belt wheel spacing requirement obtained in the previous step;

two TextBox outputs;

a ComboBox control, which provides flat belt pulley spacing requirements with its List attributes as "no", "═", "<", ">", ">";

two Command controls, which are respectively 'calculating the reference belt length' and 'determining the actual center distance'; the two controls are written into a flat belt transmission system design formula, meanwhile, VB programming is utilized to establish a part of flat belt transmission system design national standard data multidimensional array, and an sql statement of VB is connected to different flat belt transmission system design national standard data Microsoft Office Access tables for providing the two controls for data query calculation, and finally, a design result is displayed in two output TextBox;

two Command controls, which are 'last step' and 'next step' respectively; and selecting 'next step' to enter the last layer of interface of the design interface of the flat belt transmission system, connecting the control to Microsoft Office Access through an sql statement in VB, and automatically storing query data and calculation data of the design link. And returning to the first layer interface of the design interface of the flat belt transmission system by selecting the 'previous step'.

As shown in fig. 5, the last layer of the interface is designed for the flat belt transmission system of the present embodiment, and the upper half of the interface includes: three ComboBox controls, with List properties, provide different flat belt drive systems:

"load condition": "small load variation", "large load variation";

"hours of operation per day": "< 10", "10-16", "> 16";

"start-up situation": "empty, light load start", "heavy load start";

one TextBox input is "deliver Power";

two output TextBox controls;

the two Command controls are respectively 'inquiry working condition coefficient' and 'calculation design power', wherein the control for 'inquiring the working condition coefficient' inquires a multi-dimensional array table of national standard data designed by using a flat belt transmission coefficient established by VB programming according to four inputs, and displays a result on the corresponding output TextBox control. And a control for calculating the design power is written into a design formula of the flat belt transmission system, a part of multi-dimensional arrays of the flat belt transmission system design national data and sql sentences of VB are established by VB programming according to the acquired input data and query data and are connected to different forms of the flat belt transmission system design national data Microsoft Office Access for providing the control for data query calculation, and finally, a design result is displayed in a corresponding output TextBox.

The lower half part of the interface comprises two ComboBox controls, specifically:

the 'transmission form': "automatic tensioning drive", "simple opening drive", "cross drive", "other drives";

"included angle between the central connecting line of the two pulleys and the horizontal line": "0-60 degree", "60-80 degree", "80-90 degree";

four input TextBox controls, respectively: "input driving wheel diameter", "input driven wheel diameter", "belt speed", "input center distance";

three output TextBox controls;

six Command controls, which are respectively 'inquiry arrangement coefficient', 'calculating sectional area of belt', 'calculating axial pressure', 'previous step', 'save data' and 'end'; the control for inquiring the arrangement coefficient designs a national standard data multi-dimensional array table by using a flat belt transmission coefficient established by VB programming according to four inputs, and displays a result on the corresponding output TextBox control. And writing the other two Command controls into a flat belt transmission system design formula, establishing a part of flat belt transmission system design national standard data multidimensional arrays and sql statements of VB by utilizing VB programming according to the acquired input data and query data, connecting the multidimensional arrays and the sql statements to different flat belt transmission system design national standard data Microsoft Office Access tables, providing the Microsoft Office Access tables for the two controls to perform data query calculation, and finally displaying a design result in a corresponding output TextBox.

The "previous step" is selected to enter the second level of the flat belt drive system design interface. And selecting 'save data', wherein the control is connected to Microsoft Office Access through an sql statement in the VB, and can save the query data and the calculation data of the design link. Selecting "end" then exits the flat belt drive system design.

As shown in fig. 6, the first layer of interface for the V-belt drive design interface of the system of the present embodiment includes: three ComboBox controls, utilizing the List property to provide different flat belt drive system "load cases": "small load variation", "large load variation";

"hours of operation per day": "< 10", "10-16", "> 16";

"start-up situation": "empty, light load start", "heavy load start";

one TextBox input is "rated power required to be delivered";

two output TextBox controls are respectively 'working condition coefficient' and 'calculation power';

the three Command controls are respectively 'compute', 'next step' and 'previous step'. Selecting 'calculation', wherein after the Command control acquires input parameters and carries out multi-dimensional array table or Access table query, the Command control carries out V-belt transmission system design data query and calculation, and displays results at a corresponding output TextBox control; and selecting 'next step' to enter a second-layer interface of the V-belt transmission system design interface, connecting the control to Microsoft Office Access through an sql statement in VB, and automatically storing query data and calculation data of the design link. And returning to the main interface if the previous step is selected.

As shown in fig. 7, the second layer interface of the V-belt drive design interface for the system of the present embodiment includes:

three TextBox inputs, namely the input calculation power, the input small pulley rotating speed and the input large pulley rotating speed obtained by the last step of calculation respectively;

five output TextBox controls are respectively 'belt type', 'belt speed', 'small pulley base alignment diameter', 'large pulley reference diameter' and 'transmission ratio';

four Command controls, which are respectively 'selecting belt type', 'calculating belt speed', 'determining belt wheel diameter' and 'calculating transmission ratio'; in the controls, a V-belt transmission system design formula is compiled, a VB programming is utilized to functionally process V-belt type selection images according to acquired input data and query data, a part of V-belt transmission system design national standard data multidimensional arrays are established, Sql sentences of VB are utilized to be connected to different V-belt transmission system design national standard data Microsoft Office Access tables, the Microsoft Office Access tables are provided for the four controls to carry out data query and calculation, and finally, design results are displayed in a corresponding output TextBox.

And selecting 'next step' to enter the last layer of interface of the V-belt transmission system design interface, and connecting the control to Microsoft Office Access through an sql statement in VB (visual basic) to automatically store the query data and the calculation data of the design link. And returning to the first layer interface of the V-belt transmission system design interface when the 'previous step' is selected.

As shown in fig. 8, the last layer of the interface designed for the V-belt drive of the system of the present embodiment includes:

four TextBox inputs, namely the reference diameter of the input small belt wheel, the reference diameter of the input large belt wheel, the rotating speed of the input small belt wheel and the input calculation power obtained by the first step;

five TextBox outputs;

three ComboBox controls, with their List attributes, provide different flat belt "pulley spacing requirements": "no", "<", ">";

the "tape type": "Z form", "A form", "B form", "C form", "D form", "E form";

"Transmission ratio";

seven Command controls, namely calculating the reference belt length and the actual center distance of the V belt, calculating the number of the V belts, calculating the initial tension, calculating the pressure on the shaft, performing the previous step, storing data and finishing;

the first five calculated Command controls are written in a V-belt transmission system design formula, meanwhile, VB programming is used for establishing a part of V-belt transmission system design national standard data multidimensional arrays, an sql statement of VB is connected to different V-belt transmission system design national standard data Microsoft Office Access tables for providing the five controls for data query calculation, and finally, design results are displayed in five output TextBox.

The "previous step" is selected to enter the second level interface of the V-belt drive system design interface. And selecting 'save data', wherein the control is connected to Microsoft Office Access through an sql statement in the VB, and can save the query data and the calculation data of the design link. Selecting "end" then exits the design of the V-belt drive system.

It should also be noted that in this specification, terms such as "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种复合煤层端帮开采煤柱参数设计方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类