1. Field of the Invention
The present invention relates to a method of connecting manufacturing machines, and more particularly to the method of simultaneously connecting controllers of different branded manufacturing machines.
2. Description of Related Art
As information technology advances, remote monitor and control have become very popular and extensively used in CNC manufacturing machines. In particular, network transmissions become increasingly more popular, so that different branded manufacturing machines are equipped with a controller having the network transmission function. As long as the controller with the network transmission function is chosen, computers or other equipments can be used for remote monitor and control operations.
However, there are different models of controllers for various branded manufacturing machines, and the way of using libraries of different models and brands varies, and each branded controller comes with proprietary remote communication interface. In other words, manufacturers have their own interfaces respectively, and users need to be familiar with the communication interface of each manufacturer before the users can connect to the controllers of different manufacturers, and thus application developers have troubles on developing related software. A general manufacturing factor usually has different models of controllers and various branded manufacturing machines, and the model number of the controller of each manufacturer comes with a corresponding application program interface (API) and different branded controllers are connected in different ways, and thus causing tremendous inconvenience to the integrated operation of the manufacturers.
In view of the aforementioned problem of the prior art, it is a primary objective of the present invention to provide an integrated running module that can be connected to a web services runtime, and the web services runtime maintains an online status with a remote server automatically through a network, and the web services runtime can transmit information captured by the integrated running module to the remote server. After the integrated running module is connected with a predetermined controller, the web services runtime will automatically connect to the remote server, such that a user can start a browser to link to a web page created by the remote server. After selecting a specific option in the web page, the remote server will call the web services runtime to request the integrated running module to send predetermined information to the remote server.
The present invention discloses a method of simultaneously connecting controllers of different branded manufacturing machines, and the method is applied in a computer system as shown in
The integrated running module 10 is coupled to a common function runtime (CFR) 50, such that after the integrated running module 10 is integrated with each of the application program interfaces 30, a common application program interface 51 is created and installed in the common function runtime 50. The common function runtime 50 includes a plug-in interface which is an interface DLL file used for defining a function name and a data structure of the common function runtime 50 and provided for users to add references and create namespace to call and use the common function runtime 50.
The integrated running module 10 is coupled to a web services runtime (WSR) 60, and the web services runtime 60 maintains an online status with a remote server 61 through a network automatically, and the web services runtime 60 transmits the information retrieved by the integrated running module 10 to the remote server 61.
With reference to
(101): Execute a program.
(102): Select a controller 40 of a manufacturing machine to be connected through the user interface 20.
(103): Produce a thread by the integrated running module 10 according to the application program interface 30 of each controller 40 of the manufacturing machines.
(104): Retrieve required information from the controller 40 of the corresponding manufacturing machine through each thread by the integrated running module 10, and the retrieved information is utilization information including OFF, IDLE, RUN, and ALARM.
Based on the aforementioned method, if the ALARM status occurs, the integrated running module 10 will save the ALARM message as an XML text file automatically and provide the XML text file for the use by the user interface 20 during the process of examining the ALARM.
Based on the aforementioned method, after the manufacturing machine is turned on, the integrated running module 10 will accumulate the time of using the manufacturing machine through the corresponding controller 40 automatically to perform an equipment maintenance management.
Based on the aforementioned method, after the manufacturing machine is turned on, and situated at the RUN status, the integrated running module 10 will accumulate the RUN time of using the manufacturing machine through the corresponding controller 40 automatically to perform a knife life management.
Based on the aforementioned method, each thread uploads a part program to the controller 40 of the corresponding manufacturing machine.
Therefore, after a remote user can use a part program editor or a computer aided manufacture (CAM) to transfer the part program code, the integrated running module 10 provides the functions of directly uploading and downloading the part program, so as to upload the part program to the controller 40 of the corresponding manufacturing machine as shown in
After a factory worker sets a workpiece in front of the manufacturing machine, the system allows the factory worker to input related instruction codes from the controller 40 of the manufacturing machine directly without the need of operating at the computer end, so as to automatically upload the part program controlled by the integrated running module 10 to the controller of the manufacturing machine, and the factory worker can directly load the part program to perform the manufacture. The operation of this sort considers the integrated running module 10 as a part program server (as shown in
In
Therefore, developers can draft or expand the micro application on their own, since the common function runtime 50 and the plug-in interface allow the developers to use the function name and data structure defined by the plug-in interface without the need of knowing the application program interfaces (API) of the controllers of different brands, so as to decrease the number of program codes significantly and achieve the effect of developing the application quickly. Each customized micro application can be developed according to the different requirements to provide very convenient operations for users.
With reference to
In
Wherein, the user side 70 can be a desktop computer, a notebook computer, a tablet PC or a smart phone.
In
In addition, after the integrated running module 10 is connected to the predetermined controller 40 of the manufacturing machine, the web services runtime 60 will automatically obtain information of each thread from the integrated running module 10 and transmit the information to a service cache of the remote server 61, and when the remote server 61 receives a manufacturing machine alarm message, the remote server 61 will actively transmit a message to the user side 70 via the network.
It is noteworthy that the micro application (App) drafted according to different requirements can be saved in the remote server 61 and provided for users to download, installed and use as shown in