TW201339777A - Method to simultaneously connect with processing machine controllers of several brands - Google Patents

Method to simultaneously connect with processing machine controllers of several brands Download PDF

Info

Publication number
TW201339777A
TW201339777A TW101111326A TW101111326A TW201339777A TW 201339777 A TW201339777 A TW 201339777A TW 101111326 A TW101111326 A TW 101111326A TW 101111326 A TW101111326 A TW 101111326A TW 201339777 A TW201339777 A TW 201339777A
Authority
TW
Taiwan
Prior art keywords
processing machine
execution module
module
application
integrated execution
Prior art date
Application number
TW101111326A
Other languages
Chinese (zh)
Other versions
TWI493307B (en
Inventor
feng-qing Jiang
ke-chang Yao
Sheng-Zhe Chen
Original Assignee
Prec Machinery Res Dev Ct
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 Prec Machinery Res Dev Ct filed Critical Prec Machinery Res Dev Ct
Priority to TW101111326A priority Critical patent/TW201339777A/en
Priority to DE201310005473 priority patent/DE102013005473A1/en
Publication of TW201339777A publication Critical patent/TW201339777A/en
Application granted granted Critical
Publication of TWI493307B publication Critical patent/TWI493307B/zh

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • G05B19/41865Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM] characterised by job scheduling, process planning, material flow
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0426Programming the control sequence
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • General Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • General Factory Administration (AREA)
  • Stored Programmes (AREA)

Abstract

A method to simultaneously connect with processing machine controllers of several brands is disclosed, which is to be applied in a computer system. The computer system has an integration execution module and a user interface capable of interacting with the integration execution module. the integration execution module integrates multiple sets of application program interfaces that are capable of communicating with controller of specific brand, respectively, enabling the integration execution module to simultaneously connect with various controllers corresponding to each of the application program interfaces. The method is as followings: The to-be-connected processing machine is selected first through the user interface, then the integration execution module generates a thread of execution according to the application program interface corresponding to the controller of each processing machine, respectively, and the integration execution module acquires needed information respectively from corresponding controllers through the thread of execution.

Description

可與數廠牌加工機控制器同時連線之方法Method of connecting with several brand processing machine controllers at the same time

  本發明係與加工機之連線方式有關,尤指一種可與數廠牌加工機控制器同時連線之方法。The invention relates to the connection mode of the processing machine, in particular to a method which can be connected to the controller of the several brand processing machine at the same time.

  隨著資訊化的發展,目前十分流行的遠端監視與控制亦已被應用上在CNC加工機上,尤其是網路傳輸的普及化,各廠牌加工機所對應之控制器具備有網路傳輸的功能更早已成為主要的配備,只要選擇具有該項功能的控制器就可利用電腦或其他設備做遠端監測與遙控操作。With the development of information technology, the far-reaching remote monitoring and control has been applied to CNC processing machines, especially the popularization of network transmission. The controllers corresponding to each brand processing machine have a network. The function of transmission has become the main equipment earlier. As long as the controller with this function is selected, the computer or other equipment can be used for remote monitoring and remote operation.

  然而由於各廠牌加工機所對應之控制器型號眾多,且不同型號及不同廠牌的函式庫使用方法也不盡相同,而各家控制器廠商都有自行開發之遠端通訊介面,每家介面都不同,使用者想連線到各家控制器需要熟悉各家之通訊界面才能開發,而會造成應用程式開發者在開發軟體上之麻煩;再者,一般加工業者之廠區皆會同時擁有多種控制器型號及多種不同廠牌之加工機,且由於各家控制器型號皆分別具有相對應之應用程式介面(Application Programming Interface,API),以及不同廠牌之控制器也會有不同之連接方式,更會造成加工業者在整合操作上的困擾。However, due to the large number of controller models corresponding to each brand processing machine, and the usage methods of different models and different brands of library are also different, each controller manufacturer has its own remote communication interface, each The home interface is different. Users want to connect to each controller to familiarize themselves with the communication interface of each family to develop, which will cause application developers to trouble in developing software. In addition, the factory of the general processing industry will be at the same time. There are a variety of controller models and a variety of different brands of processing machines, and each controller model has a corresponding Application Programming Interface (API), and different brands of controllers will be different. The connection method will cause the processing industry to suffer from the integration operation.

  有鑑於此,如何提供一種可與數廠牌加工機控制器同時連線之方法,即為本發明之重點所在。In view of this, how to provide a method for simultaneously connecting with a number of brand processing machine controllers is the focus of the present invention.

  本發明目的之ㄧ,在於提供一種可與數廠牌加工機控制器同時連線之方法,其係利用整合各廠牌控制器之應用程式介面,而供使用者只要透過單一介面即可與各廠牌加工機控制器同時連線之功效。The object of the present invention is to provide a method for simultaneously connecting with a plurality of brand processing machine controllers, which utilizes an application interface integrating the brand controllers, and can be used by the user through a single interface. The effect of the serial processing machine controller at the same time.

  本發明目的之二,在於提供一種可與數廠牌加工機控制器同時連線之方法,其係利用整合各廠牌控制器之應用程式介面產生通用函式模組及外掛程式讓開發者可使用外掛程式所定義的函式及資料結構,使開發者不需了解各家廠牌控制器之應用程式介面,即可快速完成開發新的應用程式之功效。The second object of the present invention is to provide a method for simultaneously connecting with a number of brand processing machine controllers, which utilizes an application interface integrating various brand controllers to generate a universal function module and a plug-in program for developers to Using the functions and data structures defined by the plug-in allows developers to quickly develop new applications without having to understand the application interface of each brand controller.

  本發明目的之三,在於提供一種可與數廠牌加工機控制器同時連線之方法,其係具有可透過網路傳輸而使外部業者能在第一時間掌握加工機即時資訊之功效。The third object of the present invention is to provide a method for simultaneously connecting with a number of brand processing machine controllers, which has the function of being able to transmit the real-time information of the processing machine in the first time through the network transmission.

  為達前述之目的,本發明提供一種可與數廠牌加工機控制器同時連線之方法,該方法應用於一電腦系統,該電腦系統包括有一整合執行模組及一可與該整合執行模組互動之使用者介面,該整合執行模組中整合有多組可分別與一特定廠牌之控制器溝通之應用程式介面(Application Programming Interface,API),使該整合執行模組可與各該應用程式介面所對應的控制器同時連線,該方法包括:透過該使用者介面選定欲連線之加工機,該整合執行模組即依據各該加工機之控制器所對應的應用程式介面分別產生一執行緒,該整合執行模組並藉各該執行緒而可分別由所對應之控制器擷取所需資訊。In order to achieve the foregoing objects, the present invention provides a method for simultaneously connecting to a plurality of brand processing machine controllers, the method being applied to a computer system including an integrated execution module and an integrated execution module a user interface of the interaction, the integration execution module is integrated with a plurality of application programming interfaces (APIs) that can respectively communicate with a controller of a specific brand, so that the integrated execution module can be combined with each other. The controller corresponding to the application interface is simultaneously connected. The method includes: selecting a processing machine to be connected through the user interface, and the integrated execution module is respectively determined according to an application interface corresponding to each controller of the processing machine A thread is generated, and the integrated execution module and each of the threads can respectively obtain the required information from the corresponding controller.

  其中,該電腦系統中更具有一全域記憶體區與一傢動率資料庫,而每一執行緒可分別偵測相對應加工機之機台狀態,該機台狀態至少包含有OFF(關機)/IDLE(閒置)/RUN(加工中)/ALARM(警報)等傢動率資訊 ,該整合執行模組係將所偵測到之狀態儲存至該全域記憶體區中以供該使用者介面顯示,並紀錄至該傢動率資料庫中。Wherein, the computer system further has a global memory area and a momentum database, and each thread can separately detect the state of the corresponding processing machine, and the machine state includes at least OFF (shutdown) /IDLE (idle) / RUN (in process) / ALARM (alarm) and other home rate information, the integrated execution module stores the detected status into the global memory area for the user interface display And recorded in the home rate database.

  再者, 該整合執行模組更可與一通用函式模組(Common Function Runtime)相連結,該整合執行模組係將各該控制器之應用程式介面大幅簡化後,另行建置一通用型應用程式放置於該通用函式模組中,該通用函式模組具有一外掛程式(Plug-In Interface),該外掛程式用以定義該通用函式模組的函式名稱及資料結構 ,供使用者加入參考並建立命名空間以呼叫使用;當該整合執行模組與預定之控制器完成連線後,依據每一執行緒分別建立一相對應之通用型應用程式介面於該通用函式模組中,而開發者可依該外掛程式所定義的函式,呼叫此函式帶入該外掛程式定義的資料結構,撰寫成一微型應用程式(Application,App),該微型應用程式即可透過網路傳送至該通用函式模組,並由該通用函式模組負責向預定之控制器取得所需資訊,且該通用函式模組所取得之資訊係儲放在該外掛程式所定義的資料結構內,並傳回給該微型應用程式;另使用XML格式撰寫之微型應用程式,同樣可透過網路傳送至該通用函式模組,並經過該通用函式模組解碼後,即可直接與該整合執行模組溝通並向相對應加工機之控制器取得所需資訊,而所取得之資訊係經該通用函式模組編成XML碼後,再傳回給該微型應用程式。Furthermore, the integrated execution module can be further connected to a common function module (Common Function Runtime), which greatly simplifies the application interface of each controller, and then builds a general-purpose type. The application is placed in the versatile function module. The versatile function module has a plug-in program (Plug-In Interface), and the plug-in program is used to define the function name and data structure of the versatile function module. The user joins the reference and establishes a namespace to call the use; after the integrated execution module is connected with the predetermined controller, a corresponding universal application interface is established according to each thread to the universal function mode. In the group, the developer can call the function to enter the data structure defined by the plugin according to the function defined by the plugin, and write a micro application (Application, App), the micro application can be used through the network. The road is transmitted to the versatile function module, and the versatile function module is responsible for obtaining the required information from the predetermined controller, and the capital obtained by the versatile function module The system is stored in the data structure defined by the plugin and passed back to the micro application; the micro application written in XML format can also be transmitted to the universal function module via the network, and After the universal function module is decoded, the integrated execution module can be directly communicated with the corresponding processing machine controller, and the obtained information is encoded into the XML code by the universal function module. Then pass it back to the micro app.

  又,該整合執行模組更可與一遠端連線模組(Web Services Runtime)相連結,該遠端連線模組可透過網路自動與一遠端伺服器保持在連線狀態,且該遠端連線模組係可將由該整合執行模組所擷取之資訊傳送至該遠端伺服器中;當該整合執行模組與預定之控制器完成連線後,該遠端連線模組即自動與該遠端伺服器連線,而供一使用者端可經由啟動瀏覽器連入該遠端伺服器所架構之網頁,且於該網頁選定特定選項後,該遠端伺服器即會呼叫該遠端連線模組向該整合執行模組請求將預定資訊傳送至該遠端伺服器。Moreover, the integrated execution module can be connected to a Web Services Runtime, and the remote connection module can be automatically connected to a remote server through the network, and The remote connection module can transmit the information captured by the integrated execution module to the remote server; when the integrated execution module is connected to the predetermined controller, the remote connection is The module is automatically connected to the remote server, and a user terminal can connect to the webpage of the remote server via the launch browser, and after selecting a specific option on the webpage, the remote server That is, the remote connection module is called to request the integrated execution module to transmit the predetermined information to the remote server.

  當然,本發明在某些另件上,或另件之安排上容許有所不同,但所選用之實施例,則於本說明書中,予以詳細說明。Of course, the present invention may be different in some of the components, or the arrangement of the components, but the selected embodiments are described in detail in the present specification.

  本發明提供一種可與數廠牌加工機控制器同時連線之方法,該方法係應用於一電腦系統,如第1圖所示,該電腦系統包括有一整合執行模組10及一可與該整合執行模組10互動之使用者介面20(User Interface,UI),該整合執行模組10中整合有多組可分別與一特定廠牌加工機之控制器溝通的應用程式介面30(Application Programming Interface,API),使該整合執行模組10可與各該應用程式介面30所對應的控制器同時連線,如FANUC、MITSUBISHI、SIEMENS…等各家廠牌之加工機控制器,可經該整合執行模組10而分別與對應之控制器應用程式介面連線溝通,且該整合執行模組10依據各該加工機之控制器所對應的應用程式介面30分別產生有一執行緒。其中,該電腦系統中更具有一全域記憶體區與一傢動率資料庫(圖中未示),而每一執行緒可分別偵測相對應加工機之機台狀態,該機台狀態至少包含有OFF(關機)/IDLE(閒置)/RUN(加工中)/ALARM(警報)等傢動率資訊,該整合執行模組10係將所偵測到之狀態儲存至該全域記憶體區中以供該使用者介面20顯示,並紀錄至該傢動率資料庫中。The present invention provides a method for simultaneously connecting to a plurality of brand processing machine controllers. The method is applied to a computer system. As shown in FIG. 1, the computer system includes an integrated execution module 10 and a Integrating the user interface 20 (User Interface, UI) of the execution module 10, the integrated execution module 10 is integrated with a plurality of application interfaces 30 that can respectively communicate with the controller of a specific brand processing machine (Application Programming Interface, API), the integrated execution module 10 can be connected to the controller corresponding to each application interface 30, such as FANUC, MITSUBISHI, SIEMENS, etc. The execution module 10 is integrated and communicated with the corresponding controller application interface, and the integrated execution module 10 generates a thread according to the application interface 30 corresponding to each controller of the processing machine. Wherein, the computer system further has a global memory area and a momentum database (not shown), and each thread can separately detect the state of the corresponding processing machine, and the machine state is at least Contains home rate information such as OFF/IDLE/RUN/ALARM, and the integrated execution module 10 stores the detected status in the global memory area. It is displayed for the user interface 20 and recorded in the home rate database.

  該整合執行模組10並與一通用函式模組50(Common Function Runtime,CFR)相連結,該整合執行模組10係將各該應用程式介面30整合後,另行建置一通用型應用程式介面51放置於該通用函式模組50中,並於該通用函式模組50中具有一外掛程式(Plug-In Interface),該外掛程式為Interface DLL檔,其用以定義該通用函式模組50的函式名稱及資料結構,供使用者加入參考並建立命名空間以呼叫使用。The integrated execution module 10 is coupled to a Common Function Runtime (CFR). The integrated execution module 10 integrates the application interfaces 30 to create a general-purpose application. The interface 51 is placed in the versatile function module 50, and has a plug-in program (Plug-In Interface) in the versatile function module 50. The plug-in is an Interface DLL file, which is used to define the versatile function. The function name and data structure of the module 50 are for the user to join the reference and establish a namespace for calling.

  該整合執行模組10另與一遠端連線模組60(Web Services Runtime,WSR)相連結,該遠端連線模組60可透過網路自動與一遠端伺服器61保持在連線狀態,且該遠端連線模組60係可將由該整合執行模組10所擷取之資訊傳送至該遠端伺服器61中。The integrated execution module 10 is further connected to a Web Services Runtime (WSR). The remote connection module 60 can be automatically connected to a remote server 61 through the network. The remote connection module 60 can transmit the information captured by the integrated execution module 10 to the remote server 61.

  接著請參閱第2圖,本發明提供一種可與數廠牌加工機控制器同時連線之方法,其包括有以下步驟:Next, referring to FIG. 2, the present invention provides a method for simultaneously connecting with a number of brand processing machine controllers, which includes the following steps:

  (101)程式執行;(101) program execution;

  (102)透過該使用者介面20選定欲連線之加工機40;(102) selecting, by the user interface 20, a processing machine 40 to be connected;

  (103)該整合執行模組10依據各該加工機之控制器40所對應的應用程式介面30分別產生一執行緒;(103) The integrated execution module 10 generates a thread according to the application interface 30 corresponding to the controller 40 of each processing machine;

  (104)該整合執行模組10藉各該執行緒而可分別由所對應之加工機控制器40擷取所需資訊,所擷取之資訊至少包含有OFF(關機)/IDLE(閒置)/RUN(加工中)/ALARM(警報)等傢動率資訊。(104) The integrated execution module 10 can obtain the required information from the corresponding processing machine controller 40 by using the respective threads, and the captured information includes at least OFF (off) / IDLE (idle) / Home rate information such as RUN (in process) / ALARM (alarm).

  而依據上述方法,當發生ALARM(警報)狀態時,該整合執行模組10即將此一ALARM(警報)訊息自動存成一XML文字檔,供該使用者介面20於檢視ALARM(警報)歷程時使用。According to the above method, when the ALARM state occurs, the integrated execution module 10 automatically saves the ALARM message as an XML text file for the user interface 20 to use when viewing the ALARM (alarm) history. .

  另依據上述方法,當加工機開機後,該整合執行模組10即透過所對應之控制器40自動累積加工機之使用時間,以供進行一設備維護管理。According to the above method, after the processing machine is turned on, the integrated execution module 10 automatically accumulates the use time of the processing machine through the corresponding controller 40 for performing maintenance management of a device.

  另依據上述方法,當加工機開機後且是在加工狀態下,該整合執行模組10即透過所對應之控制器40自動累積此一加工時間,以供進行一刀具壽命管理。According to the above method, when the processing machine is turned on and in the processing state, the integrated execution module 10 automatically accumulates the processing time through the corresponding controller 40 for performing a tool life management.

  另依據上述方法,每一執行緒可分別將一加工程式上傳至相對應之加工機控制器40中。According to the above method, each thread can upload a processing program to the corresponding processing machine controller 40.

  藉此,遠端操作者使用加工程式編輯器或電腦輔助機械製造(CAM)轉出加工程式碼後,利用該整合執行模組10直接使用加工程式上傳、下載功能,將加工程式上傳至相對應之加工機控制器40,如第3圖所示,當選定加工程式後,按下向右箭頭,即可將加工程式上傳,當加工程式成功上傳後,加工機之控制器40即能讀取到此一加工程式。Therefore, after the remote operator uses the processing program editor or the computer assisted mechanical manufacturing (CAM) to transfer the processing code, the integrated execution module 10 directly uses the processing program to upload and download functions, and uploads the processing program to the corresponding program. The processing machine controller 40, as shown in FIG. 3, can select the processing program and press the right arrow to upload the processing program. When the processing program is successfully uploaded, the processing machine controller 40 can read This is a processing program.

  而當加工者在加工機前將工件架設完成後,系統允許加工人員可以不需到PC端操作,而可直接在加工機之控制器40上輸入相關命令代碼,即可自動將該整合執行模組10上所管轄的加工程式上傳至加工機之控制器,藉此加工人員即可直接載入加工程式,並進行加工。此種作業方式,可將該整合執行模組10視為加工程式伺服器(如第4圖所示);依此設定,該整合執行模組10可安裝於公司主要的檔案伺服器上,然後再將該整合執行模組10的加工程式指定位置指向到資料夾上;此時當該整合執行模組10啟動後,將即時監視控制器上的命令代碼,若有需要加工程式要上傳的命令代碼時,該整合執行模組10即會讀取所指定的加工程式,並直接上傳至加工機之控制器40上。When the processor sets the workpiece in front of the processing machine, the system allows the processing personnel to input the relevant command code directly on the controller 40 of the processing machine without the need to go to the PC, and the integrated execution module can be automatically executed. The processing program under the group 10 is uploaded to the controller of the processing machine, whereby the processing personnel can directly load the processing program and process it. In this way, the integrated execution module 10 can be regarded as a processing program server (as shown in FIG. 4); accordingly, the integrated execution module 10 can be installed on the company's main file server, and then Then, the processing program specified position of the integrated execution module 10 is pointed to the folder; at this time, when the integrated execution module 10 is started, the command code on the controller is immediately monitored, and if there is a command to be uploaded by the processing program When the code is executed, the integrated execution module 10 reads the specified processing program and directly uploads it to the controller 40 of the processing machine.

  另,如第5圖所示,當該整合執行模組10與預定之加工機控制器40完成連線後,該整合執行模組10依據每一執行緒分別建立一相對應之通用型應用程式介面51於該通用函式模組50,供開發者可依該外掛程式(Plug-In Interface)所定義的函式,呼叫此函式並帶入該外掛程式定義的資料結構,撰寫成一微型應用程式(Application,App),該微型應用程式即可透過網路傳送至該通用函式模組50,並由該通用函式模組50負責向相對應加工機之控制器40取得所需資訊,且該通用函式模組50所取得之資訊係儲放在該外掛程式所定義的資料結構內,並傳回給該微型應用程式。In addition, as shown in FIG. 5, after the integrated execution module 10 is connected to the predetermined processing machine controller 40, the integrated execution module 10 respectively establishes a corresponding general-purpose application according to each thread. The interface 51 is in the versatile function module 50, and the developer can call the function according to the function defined by the plug-in program (Plug-In Interface) and bring the data structure defined by the plug-in program into a micro-application. The application (App), the micro-application can be transmitted to the universal function module 50 through the network, and the universal function module 50 is responsible for obtaining the required information from the controller 40 of the corresponding processing machine. The information obtained by the versatile function module 50 is stored in the data structure defined by the plugin and transmitted back to the micro application.

  藉此,開發者即可自行撰寫或擴充微型應用程式,因為該通用函式模組50及外掛程式允許讓開發者可使用外掛程式所定義的函式名稱及資料結構,使開發者不需要再了解各家廠牌控制器的應用程式介面(API),而可大幅省略程式碼量,以達快速完成開發應用程式之功效,且亦可因應不同需求開發出各種客製化之微型應用程式,而方便使用者操作。In this way, the developer can write or expand the micro-application by itself, because the universal function module 50 and the plug-in program allow the developer to use the function name and data structure defined by the plug-in, so that the developer does not need to Understand the application interface (API) of each brand controller, and greatly eliminate the amount of code, so as to quickly complete the development of the application, and can also develop a variety of customized micro-applications according to different needs. It is convenient for the user to operate.

  另如第6圖所示,係用以顯示本發明之通用函式模組與XML格式撰寫之微型應用程式於執行時之流程圖。其中以XML格式撰寫微型應用程式,同樣可透過網路傳送至該通用函式模組50,並經過該通用函式模組50解碼後,即可直接與該整合執行模組10溝通並向相對應加工機之控制器40取得所需資訊,而所取得之資訊係經該通用函式模組50編碼後,再傳回給該微型應用程式。As shown in FIG. 6, it is a flow chart for displaying the general function module of the present invention and the micro-application written in XML format. The micro-application is written in the XML format, and can also be transmitted to the universal function module 50 through the network, and after being decoded by the universal function module 50, the integrated execution module 10 can be directly communicated with the phase. The controller 40 corresponding to the processing machine obtains the required information, and the obtained information is encoded by the universal function module 50 and then transmitted back to the micro application.

  接著請繼續參閱第7圖,當該整合執行模組10與預定之加工機控制器40完成連線後,該遠端連線模組60即自動與該遠端伺服器61連線,而供一使用者端70可經由啟動瀏覽器連入該遠端伺服器61所架構之網頁,且於該網頁選定特定選項後即會將此一訊息傳送至該遠端伺服器61之一服務快取(Service Cache),藉此當該遠端連線模組60擷取服務快取時,即可令該遠端連線模組60取得由該整合執行模組10內部各執行緒的資訊,再傳送至該遠端伺服器61之服務快取中,供使用者端70擷取並呈現至網頁上。Then, referring to FIG. 7, when the integrated execution module 10 is connected to the predetermined processing machine controller 40, the remote connection module 60 is automatically connected to the remote server 61. A user terminal 70 can connect to the webpage of the remote server 61 via a startup browser, and after the webpage selects a specific option, the message is transmitted to one of the remote server 61. (Service Cache), so that when the remote connection module 60 retrieves the service cache, the remote connection module 60 can obtain the information of the internal threads of the integrated execution module 10, and then It is transmitted to the service cache of the remote server 61 for the user terminal 70 to capture and present to the web page.

  其中,該使用者端70可為桌上型電腦、筆記型電腦、平板電腦或智慧手機其中之ㄧ。The user terminal 70 can be a desktop computer, a notebook computer, a tablet computer or a smart phone.

  如第8圖所示,當啟動一傢動率統計作業時,該整合執行模組10就能夠即時取得各該加工機的狀態、加工件數及時間等,並儲存到該傢動率資料庫內,爾後當傢動率檢視人員需要觀察時,即可透過遠端伺服器61將該傢動率資料庫內的數據進行運算統計,以利業者查出效率不彰的機台,尋找可能的原因,藉以提升加工機的效能。As shown in FIG. 8, when a motion statistics operation is started, the integrated execution module 10 can instantly obtain the status, the number of workpieces, and the time of each processing machine, and store them in the home rate database. Inside, after the kinetic rate examiner needs to observe, the data in the home rate database can be calculated and calculated through the remote server 61, so that the operator can find the inefficient machine and look for possible. The reason is to improve the efficiency of the processing machine.

  再者,當該整合執行模組10與預定之加工機控制器40完成連線後,該遠端連線模組60會自動取得該整合執行模組10內部各執行緒的資訊,並傳送至該遠端伺服器61之服務快取中,且於該遠端伺服器61接收到加工機警報訊息時,該遠端伺服器61即會主動透過網路發送一簡訊至該使用者端70。Moreover, after the integrated execution module 10 is connected to the predetermined processing machine controller 40, the remote connection module 60 automatically obtains information about the internal threads of the integrated execution module 10, and transmits the information to the integrated execution module 10. The remote server 61 is in the service cache, and when the remote server 61 receives the processing machine alarm message, the remote server 61 actively sends a short message to the user terminal 70 through the network.

  然於此必須提出說明的是,如第1圖所示,本發明亦可將因應不同需求所撰寫之微型應用程式(Application,App)封裝儲存於該遠端伺服器61中,以提供使用者下載安裝並使用。It should be noted that, as shown in FIG. 1 , the present invention can also store a micro application (Application, App) written in response to different requirements in the remote server 61 to provide a user. Download and install and use.

  惟,以上所述實施例之揭示係用以說明本發明,並非用以限制本發明,故舉凡數值之變更或等效元件之置換仍應隸屬本創作之範疇。The disclosure of the above-described embodiments is intended to be illustrative of the present invention and is not intended to limit the scope of the present invention.

  綜上所述,係可使熟知本項技藝者明瞭本發明的確可達成前述目的,實已符合專利法之規定,故本案發明人爰依法提出申請。In summary, it will be apparent to those skilled in the art that the present invention can achieve the foregoing objectives and is in accordance with the provisions of the Patent Law. Therefore, the inventor of the present invention filed an application according to law.

整合執行模組10    使用者介面20Integrated execution module 10 user interface 20

應用程式介面30    控制器40Application Interface 30 Controller 40

通用函式模組50    通用型應用程式介面51Universal Function Module 50 Universal Application Interface 51

遠端連線模組60    遠端伺服器61Remote connection module 60 remote server 61

使用者端70User end 70

第1圖係本發明之架構示意圖Figure 1 is a schematic diagram of the architecture of the present invention

第2圖係本發明之整合執行模組用以與數廠牌加工機控制器同時連線時之流程圖Figure 2 is a flow chart of the integrated execution module of the present invention for simultaneous connection with a number of brand processing machine controllers.

第3圖係本發明於進行NC程式上、下載時之使用狀態示意圖Figure 3 is a schematic diagram showing the state of use of the present invention for performing NC programs and downloading.

第4圖係本發明於進行NC程式上、下載時之架構示意圖Figure 4 is a schematic diagram of the architecture of the present invention for performing NC programs and downloading.

第5圖係本發明之通用函式模組於執行時之流程圖Figure 5 is a flow chart of the implementation of the universal function module of the present invention

第6圖係本發明之通用函式模組與XML格式撰寫之應用程式於執行時之流程圖Figure 6 is a flow chart of the execution of the universal function module and the XML format writing application of the present invention.

第7圖係本發明之遠端連線模組於執行時之流程圖Figure 7 is a flow chart of the remote connection module of the present invention during execution

第8圖係本發明透過遠端連線模組之使用狀態示意圖Figure 8 is a schematic view showing the state of use of the remote connection module of the present invention.

整合執行模組10    使用者介面20Integrated execution module 10 user interface 20

應用程式介面30    通用函式模組50Application Interface 30 Universal Function Module 50

通用型應用程式介面51 遠端連線模組60Universal Application Interface 51 Remote Connection Module 60

遠端伺服器61Remote server 61

Claims (14)

一種可與數廠牌加工機控制器同時連線之方法,該方法應用於一電腦系統,該電腦系統包括有一整合執行模組及一可與該整合執行模組互動之使用者介面,該整合執行模組中整合有多組可分別與一特定廠牌加工機之控制器溝通之應用程式介面(Application Programming Interface,API),使該整合執行模組可與各該應用程式介面所對應的控制器同時連線,該方法包括:透過該使用者介面選定欲連線之加工機,該整合執行模組即依據各該加工機之控制器所對應的應用程式介面分別產生一執行緒,該整合執行模組並藉各該執行緒而可分別由所對應之控制器擷取所需資訊。A method of simultaneously connecting to a plurality of brand processing machine controllers, the method being applied to a computer system, the computer system comprising an integrated execution module and a user interface capable of interacting with the integrated execution module, the integration The execution module integrates a plurality of application programming interfaces (APIs) that can be respectively communicated with controllers of a specific brand processing machine, so that the integrated execution module can control corresponding to each application interface. The method includes: selecting, by the user interface, a processing machine to be connected, wherein the integrated execution module generates a thread according to an application interface corresponding to each controller of the processing machine, the integration The execution module and each of the threads can respectively retrieve the required information from the corresponding controller. 依申請專利範圍第1項所述之可與數廠牌加工機控制器同時連線之方法,其中,該電腦系統中更具有一全域記憶體區與一傢動率資料庫,而每一執行緒可分別偵測相對應加工機之機台狀態,該機台狀態至少包含有OFF(關機)/IDLE(閒置)/RUN(加工中)/ALARM(警報)等傢動率資訊 ,該整合執行模組係將所偵測到之狀態儲存至該全域記憶體區中以供該使用者介面顯示,並紀錄至該傢動率資料庫中。According to the method of claim 1 of the patent application, the method can be simultaneously connected with a plurality of brand processing machine controllers, wherein the computer system further has a global memory area and a momentum database, and each execution The machine can detect the status of the corresponding processing machine, and the status of the machine includes at least the home rate information such as OFF (off) / IDLE (idle) / RUN (in process) / ALARM (alarm), the integration execution The module stores the detected status in the global memory area for display by the user interface and records it in the home rate database. 依申請專利範圍第2項所述之可與數廠牌加工機控制器同時連線之方法,其中,當發生ALARM(警報)狀態時,該整合執行模組即將此一ALARM(警報)訊息自動存成一XML文字檔,供該使用者介面於檢視ALARM(警報)歷程時使用。According to the method of item 2 of the patent application scope, the method can be simultaneously connected with the number of brand processing machine controllers, wherein when the ALARM state occurs, the integrated execution module automatically sends the ALARM (alarm) message automatically. Save as an XML text file for the user interface to use when viewing the ALARM (alert) history. 依申請專利範圍第2項所述之可與數廠牌加工機控制器同時連線之方法,其中,當加工機開機後,該整合執行模組即透過所對應之控制器自動累積加工機之使用時間,以供進行一設備維護管理。According to the method of the second aspect of the patent application, the method can be simultaneously connected with the controller of the plurality of brand processing machines, wherein when the processing machine is turned on, the integrated execution module automatically accumulates the processing machine through the corresponding controller. Use time for a device maintenance management. 依申請專利範圍第2項所述之可與數廠牌加工機控制器同時連線之方法,其中,當加工機開機後且是在加工狀態下,該整合執行模組即透過所對應之控制器自動累積此一加工時間,以供進行一刀具壽命管理。According to the method of the second aspect of the patent application, the method can be simultaneously connected with the controller of the plurality of brand processing machines, wherein when the processing machine is turned on and in the processing state, the integrated execution module transmits the corresponding control The machine automatically accumulates this processing time for a tool life management. 依申請專利範圍第2項所述之可與數廠牌加工機控制器同時連線之方法,其中,每一執行緒可分別將一加工程式上傳至相對應之加工機控制器中。According to the method of claim 2, the method can be simultaneously connected with the number of processing machine controllers, wherein each thread can upload a processing program to the corresponding processing machine controller. 依申請專利範圍第1項所述之可與數廠牌加工機控制器同時連線之方法,其中,該整合執行模組更與一通用函式模組(Common Function Runtime)相連結,該整合執行模組係將各該應用程式介面整合後,另行建置一通用型應用程式介面放置於該通用函式模組中,該通用函式模組具有一外掛程式(Plug-In Interface),該外掛程式用以定義該通用函式模組的函式名稱及資料結構,供使用者加入參考並建立命名空間以呼叫使用。According to the method of claim 1, the method can be simultaneously connected with a plurality of brand processing machine controllers, wherein the integrated execution module is further connected with a common function module (Common Function Runtime), the integration The execution module integrates the application interfaces, and a general application interface is placed in the universal function module. The universal function module has a plug-in interface (Plug-In Interface). The plugin is used to define the function name and data structure of the universal function module for the user to join the reference and establish a namespace for calling. 依申請專利範圍第7項所述之可與數廠牌加工機控制器同時連線之方法,其中,當該整合執行模組與預定之加工機完成連線後,依據每一執行緒分別建立一相對應之通用型應用程式介面於該通用函式模組,而開發者可依該外掛程式所定義的函式,呼叫此函式帶入該外掛程式定義的資料結構,撰寫成一微型應用程式(Application,App),該微型應用程式即可透過網路傳送至該通用函式模組,並由該通用函式模組負責向加工機取得所需資訊,且該通用函式模組所取得之資訊係儲放在該外掛程式所定義的資料結構內,並傳回給該微型應用程式。According to the method of claim 7 of the patent application, the method can be simultaneously connected with the number of processing machine controllers, wherein when the integrated execution module is connected with the predetermined processing machine, each thread is established according to each thread. A corresponding general-purpose application interface is connected to the universal function module, and the developer can call the function to bring the data structure defined by the plug-in program into a micro-application according to the function defined by the plug-in program. (Application, App), the micro-application can be transmitted to the versatile function module through the network, and the versatile function module is responsible for obtaining the required information from the processing machine, and the versatile function module obtains The information is stored in the data structure defined by the plugin and passed back to the micro application. 依申請專利範圍第1項所述之可與數廠牌加工機控制器同時連線之方法,其中,該整合執行模組更與一通用函式模組(Common Function Runtime)相連結,該整合執行模組係將各該應用程式介面整合後,另行建置一通用型應用程式介面放置於該通用函式模組中,且以XML格式撰寫之微型應用程式,可透過網路傳送至該通用函式模組,並經過該通用函式模組解碼後,即可直接與該整合執行模組溝通並向相對應加工機之控制器取得所需資訊,而所取得之資訊係經該通用函式模組編碼後,再傳回給該微型應用程式。According to the method of claim 1, the method can be simultaneously connected with a plurality of brand processing machine controllers, wherein the integrated execution module is further connected with a common function module (Common Function Runtime), the integration The execution module integrates the application interfaces, and then builds a general application interface to be placed in the universal function module, and the micro application written in XML format can be transmitted to the universal network through the network. The function module, after being decoded by the universal function module, can directly communicate with the integrated execution module and obtain the required information from the controller of the corresponding processing machine, and the obtained information is passed through the general letter. The module is encoded and then passed back to the micro application. 依申請專利範圍第1項所述之可與數廠牌加工機控制器同時連線之方法,其中,該整合執行模組更與一遠端連線模組(Web Services Runtime)相連結,該遠端連線模組可透過網路自動與一遠端伺服器保持在連線狀態,且該遠端連線模組係可將由該整合執行模組所擷取之資訊傳送至該遠端伺服器中。According to the method of claim 1, the method can be connected to a plurality of brand processing machine controllers, wherein the integrated execution module is further connected with a web service runtime (Web Services Runtime). The remote connection module can be automatically connected to a remote server through the network, and the remote connection module can transmit the information captured by the integrated execution module to the remote servo. In the device. 依申請專利範圍第11項所述之可與數廠牌加工機控制器同時連線之方法,其中,當該整合執行模組與預定之加工機完成連線後,該遠端連線模組即自動與該遠端伺服器連線,而供一使用者端可經由啟動瀏覽器連入該遠端伺服器所架構之網頁,且於該網頁選定特定選項後,即會將此一訊息傳送至該遠端伺服器之一服務快取,供該遠端連線模組擷取服務快取,並藉以令該遠端連線模組取得由該整合執行模組內部各執行緒的資訊後,傳送至該遠端伺服器之服務快取中,供使用者端擷取並呈現至網頁上。According to the method of claim 11, the method can be simultaneously connected with the number of processing machine controllers, wherein when the integrated execution module is connected with the predetermined processing machine, the remote connection module That is, the remote server is automatically connected, and a user terminal can connect to the webpage constructed by the remote server via the startup browser, and after the webpage selects a specific option, the message is transmitted. Providing a service cache to one of the remote server for the remote connection module to retrieve the service cache, and thereby enabling the remote connection module to obtain information about the internal threads of the integrated execution module And transmitted to the service cache of the remote server for the user to capture and present to the webpage. 依申請專利範圍第12項所述之可與數廠牌加工機控制器同時連線之方法,其中,當該整合執行模組與預定之加工機完成連線後,該遠端連線模組會自動取得該整合執行模組內部各執行緒的資訊,並傳送至該遠端伺服器之服務快取中,且於該遠端伺服器接收到一特定資訊時,該遠端伺服器即會主動透過網路發送一簡訊至該使用者端。According to the method of claim 12, the method can be simultaneously connected with a plurality of brand processing machine controllers, wherein when the integrated execution module is connected with a predetermined processing machine, the remote connection module The information of each thread in the integrated execution module is automatically obtained and transmitted to the service cache of the remote server, and when the remote server receives a specific information, the remote server will Actively send a short message to the user through the network. 依申請專利範圍第14項所述之可與數廠牌加工機控制器同時連線之方法,其中,該特定資訊為一加工機警報訊息。The method of simultaneously connecting with a number of brand processing machine controllers according to claim 14 of the patent application scope, wherein the specific information is a processing machine alarm message. 依申請專利範圍第12項所述之可與數廠牌加工機控制器同時連線之方法,其中,該使用者端可為桌上型電腦、筆記型電腦、平板電腦或智慧手機其中之ㄧ。According to the method of claim 12, the method can be simultaneously connected with a plurality of brand processing machine controllers, wherein the user terminal can be a desktop computer, a notebook computer, a tablet computer or a smart phone. .
TW101111326A 2012-03-30 2012-03-30 Method to simultaneously connect with processing machine controllers of several brands TW201339777A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW101111326A TW201339777A (en) 2012-03-30 2012-03-30 Method to simultaneously connect with processing machine controllers of several brands
DE201310005473 DE102013005473A1 (en) 2012-03-30 2013-03-27 Method for providing simultaneous connection of controllers for manufacturing machines of different manufacturers, involves generating threaded processes in integrated operating module according to respective manufacturing machines

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101111326A TW201339777A (en) 2012-03-30 2012-03-30 Method to simultaneously connect with processing machine controllers of several brands

Publications (2)

Publication Number Publication Date
TW201339777A true TW201339777A (en) 2013-10-01
TWI493307B TWI493307B (en) 2015-07-21

Family

ID=49154840

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101111326A TW201339777A (en) 2012-03-30 2012-03-30 Method to simultaneously connect with processing machine controllers of several brands

Country Status (2)

Country Link
DE (1) DE102013005473A1 (en)
TW (1) TW201339777A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI757926B (en) 2020-10-22 2022-03-11 財團法人工業技術研究院 Machine tool numerical controller software dynamic generating apparatus and method for the same

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3282470B2 (en) * 1995-11-08 2002-05-13 三菱電機株式会社 Numerical control device using personal computer and control method thereof
US7016759B2 (en) * 2002-08-23 2006-03-21 Siemens Aktiengesellschaft Active resource control system method & apparatus
TW200416508A (en) * 2003-02-25 2004-09-01 Chung Shan Inst Of Science A real-time control system using web technology to implement Computer Numerical Controller and method thereof
TWI346848B (en) * 2006-08-08 2011-08-11 Siemens Industry Inc Devices, systems, and methods for assigning a plc module address

Also Published As

Publication number Publication date
DE102013005473A1 (en) 2013-10-02
TWI493307B (en) 2015-07-21

Similar Documents

Publication Publication Date Title
JP6672141B2 (en) Mobile application interaction user interface for remote computing device monitoring test device
JP6171386B2 (en) Controller, information processing apparatus and program
CN110515821B (en) Event processing method based on buried point, electronic equipment and computer storage medium
US20150378773A1 (en) Communication system, programmable indicator, information processing device, operation control method, information processing method, and program
CN109361579B (en) Intelligent equipment control method, system and storage medium
TW202113769A (en) A control method, device and storage medium of machine equipment
CN114745448A (en) Multichannel protocol adaptation processing method, system and device
KR101431995B1 (en) Facility management device, screen display method, and recording medium
WO2011125280A1 (en) Debugging support device, debugging support method and debugging support program
JP5921781B2 (en) Programmable controller and control method of programmable controller
TW201339777A (en) Method to simultaneously connect with processing machine controllers of several brands
JP7131486B2 (en) Control system, programmable logic controller and information processing method
US20130310950A1 (en) Method of simultaneously connecting controllers of different branded manufacturing machines
TW201520715A (en) Method of concurrent connection with multiple machine center controllers
Al-Saedi et al. Industrial Cloud Monitoring System Based on Internet of Things
WO2016019732A1 (en) Method, device, and system for processing operation result
JP2019120998A (en) Control system and control unit
WO2017107159A1 (en) Industrial control method, device, and system for digital equipment
CN103376776B (en) Can with the method for several label processing machine controller line simultaneously
KR20160044703A (en) Method for Providing Supervisory Control Service Computer-Readable Recording Medium with Program therefore
Leszczynski OPC UA App development for Android
JP2006243936A (en) Programming device
JP6141542B2 (en) Control system
JP7509873B2 (en) Data management device and data management method
JP2012156600A (en) Remote operation system, and operation method of remote operation system