The parsing module 110 is connected to the production device 10, and is used for receiving and parsing attribute data sent by the production device 10, determining whether the attribute data matches previous attribute data or has changed, and classifying the attribute data, and sending the classified attribute data if the attribute data has changed. In the exemplary embodiment, the parsing module 110 saves the previous attribute data of the production device 10, and determines whether the attribute data matches the previous attribute data to determine whether statuses of the production device 10 change. If the attribute data has changed, the parsing module 110 classifies the attribute data, and sends the classified attribute data to the data receiving module 120 and the performing module 130. In the exemplary embodiment, the attribute data includes operation signals, operation statuses, and production data.
In the exemplary embodiment, the operation signals are input/output signals of the machine tools of the production device 10, and each input/output signal corresponds to a machine tool. The operation statuses include control statuses and running statuses. The control statuses include a connectionless status, an initialization status, a manual slow-speed status, a manual full-speed status, an automatic switch status, an automatic status, and a manual-automatic switch status. The running statuses include an initialization status, a sleep status, a boot status, a closing status, a protection stopping status, an urgent stopping status, a protection rebooting status, and a sleeping reboot status. The production data includes product names, planned production amounts, finished amounts, and production hours per workpiece.
The data receiving module 120 is connected to the parsing module 110 and the database 200, and is used for receiving the classified attribute data sent by the parsing module 110 and determining whether the received attribute data needs to be saved. In the exemplary embodiment, the data receiving module 120 receives the classified attribute data, and compares the received attribute data with attribute data saved in the database 200. If the received attribute data is different from the attribute data saved in the database 200, the data receiving module 120 saves the received attribute data in the database 200 to update the database 200. In the exemplary embodiment, the classified attribute data received by the data receiving module 120 includes the production data and the operation status of the production device 10.
In the exemplary embodiment, the data receiving module 120 further determines whether a new production device 10 is added according to the operation statuses of the attribute data sent by the parsing module 110, and sends a new production device index to the database 200 if there is a new production device 10 added. Then, the database 200 sets a data table of the new production device 10 according to the new production device index.
The performing module 130 is connected to the parsing module 110, the database 200, and the monitoring device 300, and is used for receiving and processing a monitoring message sent by the monitoring device 300, receiving the classified attribute data of the production device 10 sent by the parsing module 110, and sending the classified attribute data to the monitoring device 300. In the exemplary embodiment, the monitoring message includes a querying request and a remote control request packet. In the exemplary embodiment, the performing module includes a querying sub-module 1301, a control sub-module 1303, and an image synchronization sub-module 1304.
The querying sub-module 1301 is connected to the parsing module 110, the database 200, and the monitoring device 300, and is used for receiving the querying request sent by the monitoring device 300 and querying according to the querying request. In the exemplary embodiment, the querying sub-module 1301 further determines a type of the querying request, and queries according to the type of the querying request. The querying sub-module 1301 determines the type of the querying request according to a querying field of the querying request. The querying request includes two types: a position querying request and a database querying request. The position querying request is used for querying positions of the robots of the production device 10, and the database querying request is used for querying attribute data saved in the database 200. If the querying request is a position querying request, the querying sub-module 1301 sends the position querying request to the parsing module 110 to make the parsing module 110 retrieve position data of the production device 10 according to the position querying request. If the querying request is a database querying request, the querying sub-module 1301 sends the database querying request to the database 200 to retrieve corresponding attribute data.
The control sub-module 1303 is connected to the parsing module 110 and the monitoring device 300, and is used for determining whether a remote control request packet sent by the monitoring device 300 is received and whether the monitoring device 300 has a control right and processing correspondingly. In the exemplary embodiment, if the control sub-module 1303 determines that a remote control request packet sent by the monitoring device 300 is received, the control sub-module 1303 further determines whether the monitoring device 300 has a control right. The control sub-module 1303 determines whether the monitoring device 300 has a control right via querying of a user name table in the database 200 by the querying sub-module 1301, and the user name table includes names of users having control rights. If the monitoring device 300 has the control right, the control sub-module 1303 sends the remote control request packet to the parsing module 110 to control the production device 10.
In the exemplary embodiment, the parsing module 110 further parses the remote control request packet sent by the control sub-module 1303 to retrieve a plurality of remote control requests therein, determines a type of the remote control requests, and processes correspondingly. The parsing module 110 determines the type of the remote control requests according to a value of a control field of each of the remote control requests. In the exemplary embodiment, the control field of the remote control requests includes an input/output field, a running status field, a control status field, and a position field. If the remote control requests have an input/output control request, the parsing module 110 sends the input/output control request to the production device 10 to change input/output data of the machine tools of the production device 10. If the remote control requests have a running status control request, the parsing module 110 sends the running status control request to the production device 10 to change the running statuses of the production device 10. If the remote control requests have a control status control request, the parsing module 110 sends the control status control request to the production device 10 to change the control statuses of the production device 10. If the remote control requests have a position control request, the parsing module 110 sends the position control request to the production device 10 to change the position data of the production device 10.
The parsing module 110 sends the classified attribute data to the image synchronization sub-module 1304. The image synchronization sub-module 1304 is connected to the parsing module 110 and the monitoring device 300, and is used for translating the received attribute data of the production device 10 into image data. In the exemplary embodiment, the image synchronization sub-module 1304 receives the attribute data of the production device 10 sent by the parsing module 110, translates the received attribute data into the image data, and sends the image data to the monitoring device 300.
In the exemplary embodiment, the performing module 130 further includes a file transmission sub-module 1300, a calculating sub-module 1302, and an input/output monitoring sub-module 1305.
The file transmission sub-module 1300 is connected to the parsing module 110, the database 200, and the monitoring device 300, and is used for determining whether a file transmission request sent by the monitoring device 300 is received. If the file transmission sub-module 1300 determines that a file transmission request is received, the file transmission sub-module 1300 establishes a connection between the monitoring device 300 and the production device 10, sends files sent by the monitoring device 300 to the production device 10 via the parsing module 110. The file transmission sub-module 1300 further compares versions or time of the transmitted files with files saved in the database 200, and saves the transmitted files in the database 200 if the versions and time are different. In the exemplary embodiment, the files include system files, configuration files, and program files of the production device 10.
The calculating sub-module 1302 is connected to the querying sub-module 1301 and the monitoring device 300, and is used for calculating an operating rate of the production device 10. In the exemplary embodiment, the calculating sub-module 1302 receives a calculating request sent by the monitoring device 300, sends a database querying request to the querying sub-module 1301 to query the operation statuses of the production device 10 from the database 200, and calculates the operating rate of the production device 10 according to the operation statuses.
In the exemplary embodiment, the parsing module 110 further sends the operation signals of the classified attribute data to the input/output monitoring sub-module 1305. The input/output monitoring sub-module 1305 is connected to the parsing module 110 and the monitoring device 300, and is used for monitoring the operation signals sent by the parsing module 110. In the exemplary embodiment, the input/output monitoring sub-module 1305 receives the operation signals sent by the parsing module 110, sets a mapping between the operation signals and the machine tools of the production device 10, and sends the mapping to the monitoring device 300.
In step S202, the data receiving module 120 determines whether a new production device 10 is added according to the operation statuses sent by the parsing module 110.
In step S204, if a new production device 10 is added, the data receiving module 120 sends a new production device index to the database 200, the database 200 sets a data table of the new production device 10 according to the new production device index, and saves the data table. Then, the process goes to step S206.
If no new production device 10 is added, in step S206, the parsing module 110 receives attribute data sent by the production device 10.
In step S208, the querying sub-module 1301 determines whether a querying request sent by the monitoring device 300 is received.
In step S210, if a querying request is received, the querying sub-module 1301 queries according to the querying request, and sends the querying results to the monitoring device 300. Then the process goes to step S212.
If the querying sub-module 1301 determines that no querying request is received, in step S212, the parsing module 110 parses the attribute data of the production device 10, and determines whether the attribute data matches previous attribute data saved therein.
If the parsing module 110 determines that the attribute data does not match the previous attribute data, in step S214, the parsing module 110 classifies the received attribute data, and sends the classified attribute data to the corresponding module. Then the process goes to step S216. In the exemplary embodiment, the parsing module 110 sends the operation signals to the input/output monitoring sub-module 1305 and the image synchronization sub-module 1304, and sends the operation statuses and the production data to the data receiving module 120 and the image synchronization sub-module 1304.
If the attribute data matches the previous attribute data, in step S216, the file transmission sub-module 1300 determines whether a file transmission request sent by the monitoring device 300 is received.
If a file transmission request is received, in step S218, the file transmission sub-module 1300 establishes a connection between the monitoring device 300 and the production device 10, and transmits files therebetween via the parsing module 110. Then the process goes to step S220.
If no file transmission request is received, in step S220, the control sub-module 1303 determines whether a remote control request packet sent by the monitoring device 300 is received. If no remote control request packet is received, the process ends.
If the control sub-module 1303 receives a remote control request packet, in step S222, the control sub-module 1303 determines whether the monitoring device 300 has a control right. In the exemplary embodiment, the control sub-module 1303 determines whether the monitoring device 300 has a control right via querying of a user name table in the database 200 by the querying sub-module 1301, and the user name table includes names of users having control rights. If the monitoring device 300 has no control right, the process ends.
If the monitoring device 300 has a control right, in step S224, the monitoring device 300 controls the production device 10 via the control sub-module 1303 according to the remote control request packet.
Sequence of the above steps S208, S212, S216, and S220 can be changed.
In step S302, the querying sub-module 1301 determines a type of the querying request. In the exemplary embodiment, the querying sub-module 1301 determines the type of the querying request according to a querying field of the querying request. The querying request includes a position querying request and a database querying request.
If the querying request is a position querying request, in step S304, the querying sub-module 1301 sends the position querying request to the parsing module 110, and the parsing module 110 retrieves position data of the production device 10 according to the position querying request.
In step S306, the parsing module 110 sends the position data to the image synchronization sub-module 1304, and the image synchronization sub-module 1304 sends the position data to the monitoring device 300 to display.
If the querying request is a database querying request, in step S308, the querying sub-module 1301 sends the database querying request to the database 200 to retrieve corresponding attribute data.
In step S310, the querying sub-module 1301 sends the corresponding attribute data to the monitoring device 300.
In step S402, the parsing module 110 determines whether the plurality of remote control requests have an input/output control request. In the exemplary embodiment, the parsing module 110 determines a type of the remote control requests according to a value of a control field of the remote control requests. In the exemplary embodiment, the control field of the remote control request includes an input/output field, a running status field, a control status field, and a position field.
If the remote control requests have an input/output control request, in step S404, the parsing module 110 sends the input/output control request to the production device 10 to change input/output data of the machine tools of the production device 10. Then the process goes to step S406.
If the remote control requests have no input/output control requests, in step S406, the parsing module 110 further determines whether the remote control requests have a running status control request.
If the remote control requests have a running status control request, in step S408, the parsing module 110 sends the running status control request to the production device 10 to change the running statuses of the production device 10. Then, the process goes to step S410.
If the remote control requests have no running status control request, in step S410, the parsing module 110 further determines whether the remote control requests have a control status control request.
If the remote control requests have a control status control request, in step S412, the parsing module 110 sends the control status control request to the production device 10 to change the control statuses of the production device 10 according to the control request. Then the process goes to step S414.
If the remote control requests have no control status control requests, in step S414, the parsing module 110 determines whether the remote control requests have a position control request. If the remote control requests have no position control requests, the process ends.
If the remote control requests have a position control request, in step S416, the parsing module 110 sends the position control request to the production device 10 to change the position data of the production device 10.
In the exemplary embodiment, sequence of steps S402, S406, S410, and S414 can be changed.
Operators can know data of the production device 10 in real-time, and can manage the production device 10 in real-time via the production monitoring system and method. Thus, the production monitoring system and method are efficient and convenient.
The foregoing disclosure of various embodiments has been presented for purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise forms disclosed. Many variations and modifications of the embodiments described herein will be apparent to one of ordinary skill in the art in light of the above disclosure. The scope of the invention is to be defined only by the claims appended hereto and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
200610062743.7 | Sep 2006 | CN | national |