Display data providing device
Through the cooperation of the two-way communication WEB server and the application server, updated display data is determined and generated, which solves the communication load problem caused by frequent requests in the existing technology and achieves more efficient display data update.
Patent Information
- Application Number
- CN202010054791.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-01-22
- Filing Date
- 2020-01-17
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-01-17
AI Technical Summary
The existing display data providing device still needs to send requests frequently when the display data is not updated, resulting in an increase in useless load in communication processing. It is desired to reduce the communication load.
The two-way communication WEB server is used to cooperate with the application server, and the data update management department determines whether the display data needs to be updated, and generates and provides updated display data without relying on the request of the display device to reduce invalid communication.
It effectively reduces invalid data transmission, reduces communication load, and improves the update speed and efficiency of display data on the WEB browser of the display device.
Smart Images

Figure CN111459427B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a display data providing device. Background Art
[0002] For example, in order to confirm information related to a numerical controller that controls a machine tool, a robot, or other equipment even at a location far from the machine tool, a display device such as a PC, a tablet, or a smartphone may be connected to the numerical controller via a network.
[0003] For example, a display data providing device is provided in such a numerical control device to provide display data related to the numerical control device to the display device. As such a display data providing device, a web server that complies with http (Hypertext Transfer Protocol) is known, which provides a script (script) of html (HyperText Markup Language) and an html file including display data to the display device. In this way, the display device can use a general web browser to display the display data (for example, refer to patent document 1) (refer to Figure 4 ).
[0004] In HTTP, a display device (client) uses a web browser to send a request to a web server, thereby obtaining display data from the web server and displaying the display data in the web browser. In order to obtain display data from the web server and update the display data displayed in the web browser, the display device (client) needs to send requests regularly. At this time, even if the display data is not updated, the display device needs to continue to send requests, so there are many useless processes in the communication process between the display device and the display data providing device.
[0005] Therefore, it is desired to reduce the communication load in the display data providing apparatus.
[0006] Patent Document 1: Japanese Patent Application Laid-Open No. 11-24716 Summary of the invention
[0007] One mode of the display data providing device disclosed in the present invention is a display data providing device that is connected to a display device having a WEB browser and provides display data related to a control device of a machine to the above-mentioned display device, and comprises: an application server that generates the above-mentioned display data; and a two-way communication WEB server, which responds to a request from the above-mentioned display device, provides the above-mentioned display data generated by the above-mentioned application server to the WEB server of the above-mentioned display device, and performs two-way communication with the above-mentioned display device, the above-mentioned application server comprises: a data update management unit that determines whether the above-mentioned display data needs to be updated; and a data generation unit that generates the above-mentioned display data when the above-mentioned data update management unit determines that the above-mentioned display data needs to be updated. When the above-mentioned two-way communication WEB server determines that the above-mentioned display data needs to be updated by the above-mentioned data update management unit, the above-mentioned display data generated by the above-mentioned data generation unit is provided to the above-mentioned display device without responding to a request from the above-mentioned display device.
[0008] According to one aspect, it is possible to reduce the communication load in the display data providing device. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 The configuration of a display data providing system including the display data providing device according to the present embodiment is shown.
[0010] Figure 2 The operation of the display data providing system including the display data providing device according to the present embodiment will be described.
[0011] Figure 3 The configuration of a display data providing system including a display data providing device according to a modified example of the present embodiment is shown.
[0012] Figure 4 The structure of a display data providing system including a conventional display data providing device (WEB server) is shown.
[0013] Description of Reference Numerals
[0014] 1: display data providing system, 10: application server, 12: data update management unit, 14: data storage unit, 16: client identification unit, 18: data generation unit, 20: two-way communication WEB server, 22: data storage unit, 100: display data providing device, 200: numerical control device, 201: numerical control unit, 202: I / O control unit, 211: motor control unit, 212: motor, 221: I / O device, 203: data transceiver unit, 300: display device, 400: upper server device, 403: data transceiver unit. DETAILED DESCRIPTION
[0015] Hereinafter, an example of an embodiment of the present invention will be described with reference to the drawings. In addition, the same reference numerals are attached to the same or corresponding parts in each drawing.
[0016] (Display data providing system)
[0017] Figure 1 The configuration of a display data providing system including the display data providing device according to the present embodiment is shown. Figure 1 The display data providing system 1 shown includes a display data providing device 100, a numerical controller 200, and three display devices 300. In this embodiment, the display data providing device 100 is provided on the numerical controller 200. The display data providing device 100 and the display devices 300 are connected via a wired or wireless network.
[0018] The numerical control device 200 is a device for controlling a machine such as a machine tool or a robot, and includes a numerical control unit 201 and an I / O control unit 202. The numerical control unit 201 controls a motor 212 such as a servo motor or a spindle motor of the machine by controlling a motor control unit 211 of the machine. The I / O control unit 202 sends and receives I / O information of a PMC (Programmable Machine Controller) with an I / O device 221.
[0019] The numerical control device 200 may include a display unit that displays numerical control data of the numerical control unit 201 and I / O data of the I / O control unit 202 .
[0020] The display device 300 is a different type of information terminal such as a PC, a tablet computer, or a smartphone, and is a client terminal with a web browser installed. The display device 300 uses the web browser to request the display data providing device 100 to read the display data. In addition, the display device 300 obtains the display data from the display data providing device 100 and displays the display data on the web browser.
[0021] The display data providing device 100 provides display data related to the numerical controller 200 to the display device 300. Hereinafter, the display data providing device 100 will be described.
[0022] (Display data providing device)
[0023] The display data providing device 100 includes an application server 10 and a bidirectional communication WEB server 20 .
[0024] The application server 10 generates and manages display data related to the numerical controller 200. The application server 10 includes a data update management unit 12, a data storage unit (second data storage unit) 14, a client identification unit 16, and a data generation unit 18.
[0025] The data update management unit 12 periodically acquires and manages display data related to the numerical control device 200 , specifically, numerical control data of the numerical control unit 201 and I / O data of the I / O control unit 202 .
[0026] The numerical control data (display data) includes information related to the operation of the numerical controller 200, and more specifically includes at least one of the control parameters of the numerical controller 201 (e.g., the number of axes, the name of each axis, the setting of acceleration and deceleration of each axis, etc.), the distribution pulse from the numerical controller 201 to the motor 212 of the machine (e.g., a servo motor or a spindle motor), the feedback pulse from the motor 212 of the machine to the numerical controller 201, and the alarm for notifying the abnormality of the numerical controller 201. The I / O data (display data) includes display data related to the operation of the numerical controller 200, and more specifically includes input and output signals of the PMC (Programmable Machine Controller) of the I / O controller 202, etc.
[0027] The data update management unit 12 determines whether the acquired data, specifically, whether the numerical control data and I / O data need to be updated. For example, the data update management unit 12 compares the display data sent to the display device 300 last time with the latest display data, and determines that the display data needs to be updated when the display data is changed.
[0028] The data storage unit 14 stores script files. The script files include HTML files.
[0029] The client identification unit 16 identifies the display device 300 based on the information on the display device acquired from the display device 300 , for example, client identification data such as the type of OS, display size, and MAC address.
[0030] The data generation unit 18 generates display data suitable for the type of display device identified by the client identification unit 16 for each display device 300 based on the display data obtained by the data update management unit 12, specifically, based on the numerical control data and I / O data and the script file stored in the data storage unit 14.
[0031] The data generating unit 18 generates display data when requested by the display device 300. When the data update management unit 12 determines that display data, specifically, numerical control data and I / O data, need to be updated, the data generating unit 18 generates display data.
[0032] The two-way communication WEB server 20 is a WEB server that performs one-way communication in accordance with the well-known http or the like or performs two-way communication in accordance with the websocket or the like. The two-way communication WEB server 20 responds to a request from the display device 300 and provides the display data generated by the data generation unit 18 of the application server 10 to the display device 300. In addition, when the data update management unit 12 of the application server 10 determines that the display data needs to be updated, the two-way communication WEB server 20 provides the display data generated by the data generation unit 18 to the display device 300 without responding to a request from the display device 300.
[0033] The two-way communication WEB server 20 has a data storage unit (first data storage unit) 22. The data storage unit 22 stores an html file including a script and display data. The html file describes a script for web socket (two-way communication) and a script for obtaining information of the display device 300. In addition, the html file includes simple screen display data.
[0034] The two-way communication WEB server 20 transmits the html file stored in the data storage unit 22 to the display device 300 in response to a request from the display device.
[0035] The display data providing device 100 and the numerical control device 200 (excluding the storage unit) are composed of a calculation processor such as a DSP (Digital Signal Processor) or an FPGA (Field-Programmable Gate Array). For example, the various functions of the display data providing device 100 and the numerical control device 200 are realized by executing predetermined software (programs, applications) stored in the storage unit. The various functions of the display data providing device 100 and the numerical control device 200 may also be realized by the cooperation between hardware and software.
[0036] The data storage unit 14 and the data storage unit 22 are, for example, a rewritable memory such as an EEPROM, or a rewritable magnetic disk such as an HDD (Hard Disk Drive) or an SSD (Solid State Drive).
[0037] Next, refer to Figure 2 The operation of the display data providing system including the display data providing device according to the present embodiment will be described. Figure 2 The operation of the display data providing system having the display data providing device of this embodiment is shown in FIG. Figure 2 Only indicates Figure 1One of the three display devices 300.
[0038] (Establishment of two-way communication)
[0039] (1) First, the display device 300 accesses the two-way communication WEB server 20 through a URL (Uniform Resource Locator) input to a WEB browser.
[0040] (2) The two-way communication web server 20 refers to the html file including the sctipt and display data stored in the data storage unit 22.
[0041] (3) Sending the html file corresponding to the requested URL to the display device 300. As described above, the html file describes a script for web socket (two-way communication) and a script for acquiring information from the display device 300. The html file also includes simple screen display data and the like.
[0042] In this way, the display device 300 analyzes the script of the network socket described in the received HTML file, identifies the network socket (two-way communication), and establishes a connection between the display device 300 and the two-way communication WEB server 20 (i.e., switching from one-way communication following http to two-way communication following the network socket).
[0043] In addition, the display device 300 displays the display data of the screen included in the received html file on the WEB browser.
[0044] (4) Next, the display device 300 analyzes the script (script for obtaining information about the display device) described in the received html file, and transmits client identification data (OS type, display size, MAC address, etc.) to the bidirectional communication WEB server 20 .
[0045] (5) Two-Way Communication The web server 20 transmits the received client identification data to the application server 10 .
[0046] (6) The client identification unit 16 of the application server 10 identifies the type of the display device 300 based on the client identification data, and transmits the identification result to the data generation unit 18 .
[0047] (7) The data generation unit 18 generates display data suitable for the type of display device 300 identified by the client identification unit 16 based on display data related to the numerical control device 200, specifically, based on the numerical control data of the numerical control unit 201 and the I / O data of the I / O control unit 202, and the script file stored in the data storage unit 14.
[0048] (8) The application server 10 transmits the generated display data to the two-way communication WEB server 20.
[0049] (9) Two-Way Communication The WEB server 20 transmits the generated display data to the display device 300. In this way, the display device 300 displays the received display data on the WEB browser.
[0050] (From web browser to display device)
[0051] (10) The data update management unit 12 of the application server 10 periodically acquires display data related to the numerical controller 200, specifically, acquires the numerical control data of the numerical controller 201 and the I / O data of the I / O control unit 202. As described above, the numerical control data (display data) includes information related to the operation of the numerical controller 200, and more specifically includes at least one of the control parameters of the numerical controller 201 (e.g., the number of axes, the name of each axis, the setting of acceleration and deceleration of each axis, etc.), the pulses distributed from the numerical controller 201 to the motor 212 of the machine, the pulses fed back from the motor 212 of the machine to the numerical controller 201, and the alarm for notifying the abnormality of the numerical controller 201. The I / O data (display data) includes information related to the operation of the numerical controller 200, and more specifically includes the input and output signals of the PMC of the I / O control unit 202.
[0052] The data update management unit 12 determines whether the acquired data, specifically, the numerical control data and the I / O data, need to be updated according to the connection with the display device 300. For example, when it is determined that the display data needs to be updated, the display data sent to the display device 300 last time is compared with the latest display data. When the display data is changed, the data update management unit 12 transmits the display data (numerical control data and I / O data) to the data generation unit 18.
[0053] (11) The data generation unit 18 processes the received display data, specifically, the numerical control data and the I / O data, and generates display data. At this time, the data generation unit 18 may process the display data according to the script file stored in the data storage unit 14, or may process the display data in a manner suitable for the type of display device identified by the client identification unit 16. The application server 10 sends the generated display data to the two-way communication WEB server 20.
[0054] (12) The two-way communication WEB server 20 transmits the received display data to the display device 300. In this way, when the data update management unit 12 determines that the display data needs to be updated, the two-way communication WEB server 20 provides the display data generated and updated by the data generation unit 18 to the display device 300 without a request from the display device 300.
[0055] (From display device to web server)
[0056] (13) The display device 300 transmits key operations and input values on the WEB browser screen, and data or requests that can be obtained by the script of the display device 300.
[0057] The two-way communication WEB server 20 can immediately respond to the display device 300 with the display data stored in the data storage unit 22 according to the request.
[0058] (14) Alternatively, the two-way communication WEB server 20 transmits key operations, input values, data that can be obtained through the script of the display device, or requests to the application server 10, and the data generation unit 18 of the application server 10 executes processing corresponding to each of them.
[0059] (15) For example, the data generation unit 18 processes the data from the two-way communication WEB server 20 into data for the numerical control device 200, such as numerical control data or I / O data that can be used by the numerical control unit 201 or the I / O control unit 202, and transmits it to the data update management unit 12, or stores it in the data storage unit 14 and transmits it to the two-way communication WEB server 20.
[0060] Here, in http, only one request can be sent in one connection, and the connection is cut off after receiving the response, so it is not suitable for processing executed periodically at high speed. In addition, the request can only be sent from the browser side.
[0061] In this regard, after a network socket has established a connection, both the server and the browser can send requests (two-way communication).
[0062] As described above, according to the display data providing device 100 of the present embodiment, the data update management unit 12 of the application server 10 determines whether the display data needs to be updated. When the data update management unit 12 determines that the display data needs to be updated, the data generation unit 18 of the application server 10 generates the display data, and the two-way communication WEB server 20 and the display device 300 perform two-way communication, and the display data generated by the data generation unit 18 is provided to the display device 300 without a request from the display device 300.
[0063] In this way, only when the display data related to the numerical controller 200 is updated, the display data can be sent from the two-way communication WEB server 20 to the display device 300, and the display content (screen) of the WEB browser of the display device 300 can be updated. Therefore, in the display data providing device 100, unnecessary data transmission can be suppressed, and the communication load can be reduced. In other words, the load on the network can be reduced. As a result, the display data of the numerical controller can be reflected on the WEB browser of the display device at a higher speed.
[0064] (Variation Example)
[0065] In this embodiment, the display data providing device 100 is provided on the numerical control device 200 (machine control device). Figure 3 As shown, when the upper server device 400 is provided between the numerical control device 200 and the display device 300, the display data providing device 100 may be provided on the upper server device 400 outside the numerical control device 200. In this case, the numerical control device 200 and the upper server device 400 respectively include the data transceiver 203 and the data transceiver 403 to perform data transmission and reception.
[0066] According to this, even when there are a plurality of display devices whose information of a target numerical controller is to be confirmed, only one connection is required for the numerical controller, and the communication load on the numerical controller can be reduced.
[0067] The above describes the embodiment of the present invention, but the present invention is not limited to the above embodiment, and various changes and modifications can be made. For example, in the above embodiment, a display data providing device that provides display data related to the control device of the machine to three display devices is exemplified, but the above embodiment can be applied to a display data providing device that provides display data related to the control device of the machine to one or more display devices.
[0068] In addition, in the above-mentioned embodiment, a display data providing device that provides display data related to a numerical control device that controls a machine such as a machine tool or a robot to a display device is exemplified. However, the present embodiment is not limited thereto, and can be applied to a display data providing device that provides display data related to various control devices that control various machines to a display device.
Claims
1. A display data providing device connected to a display device having a WEB browser and providing display data related to a control device of a machine to the above display device, characterized in that: The display data providing device comprises: An application server that generates the display data; and A two-way communication WEB server responds to a request from the display device, provides the display data generated by the application server to the WEB server of the display device, and performs two-way communication with the display device. The above application server has: a data update management unit that periodically obtains the display data and determines whether the display data needs to be updated according to the connection with the display device; and a data generating unit for generating the display data when the data update managing unit determines that the display data needs to be updated, The data update management unit compares the display data sent to the display device last time with the latest display data, and when the display data is changed, determines that the display data needs to be updated. When the data update management unit determines that the display data needs to be updated, the two-way communication WEB server provides the display data generated by the data generation unit to the display device without responding to a request from the display device. The display data includes information on numerical control data and I / O data related to the operation of the control device of the machine.
2. The display data providing device according to claim 1, characterized in that: The above two-way communication WEB server complies with web sockets.
3. The display data providing device according to claim 1 or 2, characterized in that: The application server further comprises: a client identification unit, which identifies the display device based on the information related to the display device obtained from the display device, The data generating unit generates the display data suitable for the type of the display device identified by the client identifying unit for each of the display devices.
4. The display data providing device according to claim 1 or 2, characterized in that: The display data providing device is provided on the control device of the above-mentioned device or on a server device above the control device of the above-mentioned device.
