CN114780090A - Interface development method applied to Siemens 840D numerical control system - Google Patents

Interface development method applied to Siemens 840D numerical control system Download PDF

Info

Publication number
CN114780090A
CN114780090A CN202210337972.4A CN202210337972A CN114780090A CN 114780090 A CN114780090 A CN 114780090A CN 202210337972 A CN202210337972 A CN 202210337972A CN 114780090 A CN114780090 A CN 114780090A
Authority
CN
China
Prior art keywords
module
interface
processing
dynamic link
link library
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210337972.4A
Other languages
Chinese (zh)
Inventor
廖世龙
龙跃山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changzhou Curve Cnc Technology Co ltd
Original Assignee
Changzhou Curve Cnc Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Changzhou Curve Cnc Technology Co ltd filed Critical Changzhou Curve Cnc Technology Co ltd
Priority to CN202210337972.4A priority Critical patent/CN114780090A/en
Publication of CN114780090A publication Critical patent/CN114780090A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Human Computer Interaction (AREA)
  • Numerical Control (AREA)

Abstract

The invention discloses an interface development method applied to a Siemens 840D numerical control system, and belongs to the technical field of human-computer interface development. The method comprises the following steps: the operating system comprises a data input and output module, an information feedback module, a parameter setting module, a fault processing module, a dynamic link library module and a help system module, and the design of an interface is carried out by using a VB language: thirdly, establishing a language dynamic link library: fourth, interface embedding: fifthly, data transmission between the NC/PLC/HMI: the system can conveniently store and manage the specific arithmetic parameter-R parameter of the Siemens numerical control system, compile and store processing programs, meet the self special requirements, adapt to the requirements of complex processing, give operation prompts, enrich display contents, simplify processing operation, effectively reduce misoperation in processing, improve processing precision, simplify operation, save processing time and improve productivity.

Description

Interface development method applied to Siemens 840D numerical control system
Technical Field
The invention belongs to the technical field of human-computer interface development, and particularly relates to an interface development method applied to a Siemens 840D numerical control system.
Background
The human-computer interface is a medium for mutually transmitting information between a user and the machine tool and is used for realizing the input and output of the information. The Siemens numerical control system is a control system integrating various numerical control system elements into a whole in an operation panel installation mode, but is only limited to simple application of a Siemens standard numerical control system and a shallow layer, so that special requirements of high-grade equipment such as a roller grinder cannot be met, the Siemens numerical control system cannot give full play to the performance, and meanwhile, the high-grade benefits of the numerical control machine cannot be given full play to.
Siemens 840D numerical control system provides OEM software and development environment including VB, VC + + interfaces.
The feeding resolution of the digital roll grinder is in nanometer level, the size error of the ground roll on the whole grinding surface is in micron level, the shape error of a workpiece is required to be extremely high, the diameter of the roll can have sine curve change or other curve change according to the process requirement of the roll, so that the Z-axis feeding and the X-axis feeding of the roll grinder are required to keep a special functional relationship, and due to the reasons, the roll grinder cannot directly adopt a standard interface and a general control mode provided by Siemens and must have a special human-computer interface.
Disclosure of Invention
The invention aims to provide a roll grinder human-computer interface development method of a Siemens 840D numerical control system to solve the problems.
The invention is realized by the following technical scheme:
an interface development method applied to Siemens 840D numerical control system comprises
One, the operating system:
the operating system comprises a data input and output module, an information feedback module, a parameter setting module, a fault processing module, a dynamic link library module and a help system module;
the data input and output module realizes the functions of data input and data output.
The information feedback module realizes that an operator strictly controls various conditions in the machining process.
The parameter setting module is mainly used for editing R parameters.
The fault processing module is used for processing various faults occurring in the processing process in time.
The coordination work of the software and the hardware of the control system is realized through a dynamic link library, and the uploading and the downloading of the data are also completed through the dynamic link library.
The help system module provides a method for using the operating system to a user.
Secondly, designing an interface by using VB language:
the content in each frame of the process is an interface, each interface comprises a form and a module, each window is used as an independent sub-function and is respectively called in the form of a sub-window, and a plurality of forms form the whole interface function together. The related attributes of the forms are set as follows, namely, a title (Caption), a Name (Name) and a label (Tag) are set as a content and are set according to the sequence of the forms or the names of the forms, so that the application and the calling of the program are facilitated. In VB environment, the windows and modules of the designed CNC grinding machine software interface control program are generated into exe execution programs so as to be embedded into standard sequence control provided by Siemens.
Thirdly, establishing a language dynamic link library:
the menu text of the horizontal soft keys of the standard control interface provided by siemens cannot be edited in the VB environment, and only the dynamic link library created by the VC language is written. The dynamic language DLL for creating the sequence control is created by VC + + according to the corresponding RC file. Before creating the dynamic link library, an RC source file, namely RC text edited by a writing board, is established.
Fourthly, embedding an interface:
1) establishing a program management file region. ini:
2) new folders are created under/OEM/and child window list files, MDI and state management files, ZUS are created in text form in the folders.
3) Edit the initialization file of the project, ini, move it to/OEM/down.
4) And embedding VB multi-window body execution files exe generated in the first two steps and dll and ini files generated in VC language into OEM.
Fifthly, data transmission between the NC/PLC/HMI:
after the designed interface is embedded, parameters such as coordinate values of axes, feeding speed and the like are displayed on the interface, and corresponding parameter settings and the like are read into a system program to realize the monitoring and operation of the numerical control grinding machine, a DDE link is required to be established to realize the data exchange functions, and a DDE interface provided by an OEM is required to access variables and files of NC, PLC and MMC 103. This may be achieved through OPC (OLE for process control) and Sinumerik-COM interfaces provided by OEM software.
The invention has the following beneficial effects:
based on OEM software and a development environment provided by a Siemens numerical control system, the invention utilizes object-oriented programming languages VB and VC + +, and designs a special operation interface of the roll grinder according to the technological requirements of the roll. The system can conveniently store and manage the specific arithmetic parameter-R parameter of the Siemens numerical control system, compile and store processing programs, meet the self special requirements, adapt to the requirements of complex processing, give operation prompts, enrich display contents, simplify processing operation, effectively reduce misoperation in processing, improve processing precision, simplify operation, save processing time and improve productivity.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of an operating system of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention relates to an interface development method applied to a Siemens 840D numerical control system, which comprises the following steps
One, the operating system:
the operating system comprises a data input and output module, an information feedback module, a parameter setting module, a fault processing module, a dynamic link library module and a help system module;
the data input and output module realizes the functions of data input and data output, the data input is mainly reflected in R parameters, the data are input into an operation system in an R parameter mode according to the machining parameters of the parts and then transmitted to the 840D numerical control system for machining, and the data output comprises the actual positions of all coordinate axes, the feeding rates of the axes and the like in the machining process.
The information feedback module realizes that an operator strictly controls various conditions in the machining process. These conditions include whether each coordinate axis reaches a predetermined position, an operation state of a feed shaft, a state of a PLC, alarm information, and the like.
The parameter setting module is mainly used for editing R parameters.
The fault processing module is used for processing various faults occurring in the processing process in time. When the system detects a fault, an alarm signal is displayed to prompt an operator which part has the fault, and the system has manual processing and automatic processing functions. The fault processing function module also needs to have a function of simulating a fault, namely, if a certain type of fault is assumed, whether a corresponding emergency measure is automatically taken by the diagnosis system or not is judged.
The dynamic link library module does not appear on the interface, but is an important link in the system, and the design of the dynamic link library module is related to the control function of the whole system. Due to the existence of the system, the software and hardware design is more independent in division of labor and stronger in modularization. The coordination work of the software and the hardware of the whole control system is realized through a dynamic link library, and the uploading and the downloading of the data are also completed through the dynamic link library.
The help system module provides a method for using the operating system to a user.
Secondly, designing an interface by using VB language:
the content in each frame of the process is an interface, each interface comprises a form and a module, each window is used as an independent sub-function and is respectively called in the form of a sub-window, and a plurality of forms form the whole interface function together. The related attributes of the forms are set as follows, the title (Caption), Name (Name) and mark (Tag) are all set as a content, and the setting is generally carried out according to the sequence of the forms or the Name of the forms, which is convenient for the application and the calling of the program. In VB environment, the windows and modules of the designed CNC grinding machine software interface control program are generated into exe execution programs so as to be embedded into standard sequence control provided by Siemens.
Thirdly, establishing a language dynamic link library:
the menu text of the horizontal soft keys of the standard control interface provided by siemens cannot be edited in the VB environment, and only the dynamic link library created by the VC language is written. The dynamic language DLL for creating the sequence control is created by VC + + according to the corresponding RC file. Before creating the dynamic link library, an RC source file, namely RC text edited by a writing board, is established.
Fourthly, embedding an interface:
1) establishing a program management file region. ini:
2) new folders are created under/OEM/and child window list files MDI and control files ZUS are created in text form in the folders.
3) Edit the initialization file of the project, ini, move it to/OEM/down.
4) And embedding the VB multi-window body execution file exe generated in the first two steps and dll and ini files generated in VC language into OEM.
Fifthly, data transmission between the NC/PLC/HMI:
after the designed interface is embedded, parameters such as coordinate values of the axis, feeding speed and the like are displayed on the interface, and corresponding parameter settings and the like are read into a system program to realize the monitoring and operation of the numerically controlled grinder. The DDE links must be established to implement these data exchange functions, requiring the DDE interface provided by the OEM to access variables and files of the NC, PLC, MMC 103. This may be achieved through OPC (OLE for process control) and Sinumerik-COM interfaces provided by OEM software.
The preferred embodiments of the invention disclosed above are intended to be illustrative only. The preferred embodiments are not intended to be exhaustive or to limit the invention to the precise embodiments disclosed. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the invention and the practical application, to thereby enable others skilled in the art to best understand the invention for and utilize the invention. The invention is limited only by the claims and their full scope and equivalents.

Claims (1)

1. An interface development method applied to Siemens 840D numerical control system is characterized by comprising
1, operating system:
the operating system comprises a data input and output module, an information feedback module, a parameter setting module, a fault processing module, a dynamic link library module and a help system module;
the data input and output module realizes the functions of data input and data output;
the information feedback module realizes that an operator strictly controls various conditions in the machining process;
the parameter setting module is used for editing R parameters;
the fault processing module is used for processing various faults occurring in the processing process in time;
the coordination work of software and hardware of the control system is realized through a dynamic link library, and the uploading and the downloading of data are also finished through the dynamic link library;
the help system module provides a method for using the operating system for a user;
2, designing an interface by using VB language:
the content in each frame of the process is an interface, each interface comprises a window and a module, each window is used as an independent sub-function and is respectively called in the form of a sub-window, a plurality of windows form the whole interface function together, and in a VB environment, the windows and the modules of a designed numerical control grinder software interface control program generate an exe execution program so as to be embedded into standard sequence control provided by Siemens;
3, establishing a language dynamic link library:
according to the corresponding RC file, the RC + + is used for creating; before a dynamic link library is established, an RC source file, namely an RC text edited by a writing board, is established;
4, interface embedding:
establishing a program management file region. ini:
new folder is established under-/OEM/and child window list file is established in the folder in text form MDI and state management file ZUS;
editing an initialization file of the project, ini, and moving the initialization file to/OEM/lower;
embedding VB multi-window body execution files exe generated in the previous two steps and dll and ini files generated in VC language in OEM;
5, data transmission between the NC/PLC/HMI:
the method is realized through OPC and Sinumerik-COM interfaces provided by OEM software.
CN202210337972.4A 2022-03-31 2022-03-31 Interface development method applied to Siemens 840D numerical control system Pending CN114780090A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210337972.4A CN114780090A (en) 2022-03-31 2022-03-31 Interface development method applied to Siemens 840D numerical control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210337972.4A CN114780090A (en) 2022-03-31 2022-03-31 Interface development method applied to Siemens 840D numerical control system

Publications (1)

Publication Number Publication Date
CN114780090A true CN114780090A (en) 2022-07-22

Family

ID=82427864

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210337972.4A Pending CN114780090A (en) 2022-03-31 2022-03-31 Interface development method applied to Siemens 840D numerical control system

Country Status (1)

Country Link
CN (1) CN114780090A (en)

Similar Documents

Publication Publication Date Title
EP0177164B1 (en) Method and apparatus for producing numerical control programmes
US4648028A (en) Color enhanced display for a numerical control system
US4513379A (en) Customization window for a computer numerical control system
US8688258B2 (en) Method of controlling a machine tool
US5506787A (en) Configurable man-machine communication structure for machine tool or robot control systems
US6345212B1 (en) Automatic variable linkage mechanism for integrating third party software components
US8881133B2 (en) Method for servicing a field device of automation technology
CN101093392A (en) Digital control system controlled based on computer online or off line method, and operation method
EP1062552B1 (en) Process control with activex
US7089531B2 (en) Method and device for generating or editing NC programs
CN114780090A (en) Interface development method applied to Siemens 840D numerical control system
WO2017101700A1 (en) Computer aided manufacturing method, device and system in direct communication with numerical control system
US20240152113A1 (en) CNC lathe control system based on graphic interaction and control method thereof
Robotics Operating manual robotstudio
JPS61212434A (en) Tool fixing and confirming method
KR100642182B1 (en) CNC system utilizing a central processing unit
Yihui Research of Integration Technology between CATIA and TOOLMANAGER Based on CAA
JPS5851301A (en) Programmable sequence controller
JP2000315104A (en) Management system for nc machine tool and its management program
CN118092317A (en) Numerical control method based on OpenPLC and LinuxCNC
JPS60168206A (en) Numerical control device
Fang Secondary Development of Human-Machine Interface Based on FANUC 0IMF CNC System
JP3216629B2 (en) Numerical control unit
CN116166348A (en) Man-machine interface machine control system and man-machine interface thereof
JPH03276302A (en) Pmc symbol defining system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination