1. Technical Field
The present disclosure relates to monitoring systems and monitoring methods and, particularly, to a monitoring system and method for monitoring computerized numerical control (CNC) devices.
2. Description of Related Art
In a CNC machine, a plurality of programs corresponding to different processes is stored in a controller. A plurality of soft keys is arranged on an operating panel of the CNC machine, each corresponding to one of the plurality of programs. When an article is to be processed, a corresponding program is selected via a corresponding soft key. Conventionally, a number of CNC machines are used in a workshop to improve output. However, monitoring states of all these CNC machines is complex and difficult.
Referring to
Referring to
The computer 200 includes a processor 210, a second document module 220, and a display device 230. The second document module 220 is configured for storing the IP address of the CNC device 100 and the movement parameters of the CNC device 100 from the controller 130. The processor 210 is configured for receiving a second input instruction from the user and reading the movement parameters from the second document module 220 according to the second input instruction, and displaying the movement parameters via the display device 230. The state of the CNC device 100 can be monitored by the computer 200.
A network interface 201 of the computer 200 is electrically connected to a network interface 101 of the CNC device 100 via a network wire 300. If the computer 200 needs to connect to the plurality of CNC devices 100, a network router or a network hub can be added. The CNC device 100 communicates with the computer 200 through transmission control protocol/internet protocol (TCP/IP). In one embodiment, the first document module 140 and the second document module 220 are dynamic link library (DLL) documents.
In use, the IP address of the CNC device 100 can be preset in the first document module 140 of the CNC device 100. The CNC device 100 is booted up, the HMI 120 receives the first input instruction and sends the first input instruction to the controller 130. The controller 130 reads the related parameters from the first document module 140 according to the first input instruction to output the movement control instruction to the movement control unit 110 for controlling movement of the CNC device 100, and stores the returned movement parameters from the movement control unit 110 in the first document module 140. The processor 210 receives the second input instruction and reads an IP address from the second document module 220 according to the second input instruction, and sends the IP address to the CNC device 100. The CNC device 100 compares the IP address with its own IP address. If the IP addresses are identical, the CNC device 100 electrically connects with the computer 200. The CNC device 100 sends the movement parameters of the CNC device 100 stored in the first document module 140 to the computer 200. The processor 210 receives the movement parameters from the CNC device 100 and stores the movement parameters in the second document module 220, and displays the movement parameters to a user via the display device 230. The user can obtain states of the CNC device 100 by noting the movement parameters displayed in the display device 230.
Referring to
Step S1: presetting an IP address of each of the CNC devices 100 in the first document module 140 and the second document module 220, and presetting related parameters of the CNC device 100 in the first document module 140.
Step S2: starting up the CNC device 100.
Step S3: determining via the controller 130 whether the first document module 140 starts up successfully. If no, go back to step S1. If yes, go to step S4.
Step S4: reading the related parameter via the controller 130 from the first document module 140 according to a first input instruction from a user and outputting a movement control instruction to the movement control unit 110, the movement control unit 110 controlling movement of the CNC device 100 according to the movement control instruction and returning movement parameters to the controller 130, the controller 130 storing the returned movement parameters in the first document module 140. The CNC device 100 waits to connect with the computer 200.
Step S5: reading an IP address via the processor 210 from the second document module 220 according to a second input instruction from the user and sending the IP address to the CNC device 100, and determining whether the CNC device 100 connects with the computer 200.
Step S6: comparing the read IP address with the IP address of the CNC device 100, if the IP addresses are identical, the CNC device 100 connects with the computer 200 and waits for a request instruction from the computer 200, otherwise go back to step S4.
Step S7: determining whether receiving the request instruction from the computer 200 via the CNC device 100. If no, go back to step S6. If yes, go to step S8.
Step S8: sending the movement parameters from the first document module 140 via the controller 130 according to the request instruction to the computer 200, the computer 200 stores the movement parameters in the second document module 220, and displays the movement parameters via the display device 230.
The computer 200 connects with the CNC device 100 according to the IP address for controlling the CNC device 100 to send the movement parameters from the first document module 140 to the computer 200. The user may monitor the state of the CNC device 100 via the computer 200. The monitoring system can monitor a number of CNC devices conveniently.
The foregoing description of the exemplary embodiments of the disclosure has been presented only for the purposes of illustration and description and is not intended to be exhaustive or to limit the disclosure to the precise forms disclosed. Many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to explain the principles of the disclosure and their practical application so as to enable others skilled in the art to utilize the disclosure and various embodiments and with various modifications as are suited to the particular use contemplated. Alternately embodiments will become apparent to those skilled in the art to which the present disclosure pertains without departing from its spirit and scope. Accordingly, the scope of the present disclosure is defined by the appended claims rather than the foregoing description and the exemplary embodiments described therein.
Number | Date | Country | Kind |
---|---|---|---|
200810305954.8 | Dec 2008 | CN | national |