CN103064391A - Numerical control system long-distance direct numerical control (DNC) control method based on transmission control protocol (TCP) / internet protocol (IP) and linux network program - Google Patents

Numerical control system long-distance direct numerical control (DNC) control method based on transmission control protocol (TCP) / internet protocol (IP) and linux network program Download PDF

Info

Publication number
CN103064391A
CN103064391A CN2012105839216A CN201210583921A CN103064391A CN 103064391 A CN103064391 A CN 103064391A CN 2012105839216 A CN2012105839216 A CN 2012105839216A CN 201210583921 A CN201210583921 A CN 201210583921A CN 103064391 A CN103064391 A CN 103064391A
Authority
CN
China
Prior art keywords
control system
dnc
client
digital control
send
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN2012105839216A
Other languages
Chinese (zh)
Other versions
CN103064391B (en
Inventor
李志波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Numerical Control Equipment Co Ltd
Original Assignee
Guangzhou Numerical Control Equipment Co Ltd
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 Guangzhou Numerical Control Equipment Co Ltd filed Critical Guangzhou Numerical Control Equipment Co Ltd
Priority to CN201210583921.6A priority Critical patent/CN103064391B/en
Publication of CN103064391A publication Critical patent/CN103064391A/en
Application granted granted Critical
Publication of CN103064391B publication Critical patent/CN103064391B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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

  • Computer And Data Communications (AREA)

Abstract

The invention discloses a numerical control system long-distance direct numerical control (DNC) method based on a transmission control protocol (TCP) / internet protocol (IP) and a linux network program. The method includes the following steps: (1) starting a numerical system, creating a network thread, and binding a port and an IP; (2) monitoring all the time to know whether a client side is connected after the port and the IP are bound; (3) starting a timer and sending user-defined heartbeat packets to the numerical control system after the client side and the numerical control system are connected; and (4) a user listing network computer (NC) files, uploading NC programs, downloading the NC programs, deleting the NC programs, carrying out DNC transmission fabrication and stopping transmission fabrication on a user interface after the client side and the numerical system are connected. According to the method, the numerical system is used as a server, a user computer serving as the client side constructs a network environment with the TCP/IP as a bottom layer protocol and a twisted pair line as a communication medium, the TPC/IP is used as a communication protocol for sending information, data transmission rates and anti-interference capacity are improved, connection with an internet is convenient, and data sharing is achieved.

Description

Based on the long-range DNC control method of the digital control system of ICP/IP protocol and Linux network programming
Technical field
The present invention relates to the technical field of numerically-controlled machine, particularly the long-range DNC control method of a kind of digital control system based on ICP/IP protocol and Linux network programming.
Background technology
The development through two more than ten years in China of numerically-controlled machine network DNC technology has also been experienced from the paper tape to the unit, arrives simple network again, develops at last the arduous course of high-level network.21 century is the epoch of a network beyond doubt.Along with the continuous progress and deeply of embedded OS in this year, for the digital control system upgrading provides necessary prerequisite and condition.People improve the production efficiency of oneself more and more with these new and high technologies, the Adoption Network technology is managed numerically-controlled machine also just to be become inevitable.But digital control system adopts the RS-232 serial communication protocol mostly now.The shortcoming of RS-232 is more such as limited transmission distance system, networking difficulty, and transfer efficiency is low, need to dispose baud rate, poor anti jamming capability etc. before using.For this reason based on the digital control system of Linux adopt ICP/IP protocol realize long-range DNC transmission embodied be not subjected to distance limit, networking is easy, transfer efficiency is high, system compatibility and interoperability is good, resource sharing capability is strong, can realize easily control resource sharing on on-the-spot data and the infosystem, easily be connected with Internet, low cost, and the advantage such as the interface of computing machine, server is very convenient.For the unified management of digital control system and monitoring provide necessary prerequisite and environment.
Summary of the invention
The object of the invention is to overcome the long-range DNC networking difficulty of existing digital control system, transfer efficiency low, easily be disturbed, the shortcoming such as limited transmission distance, provide a kind of digital control system based on ICP/IP protocol and Linux network programming long-range DNC control method.
In order to achieve the above object, the present invention is by the following technical solutions:
The present invention is based on the long-range DNC control method of digital control system of ICP/IP protocol and Linux network programming, comprise the steps:
S1, unlatching digital control system create network thread, and in network thread the inside initialization network server end, carry out bundling port and IP,
After S2, port and IP bind, just monitor always, see if there is client and connect, such as nothing, then monitor always, if any, then set up and being connected of this client;
S3, when client with after digital control system is connected connection, start timer, send self-defined heartbeat packet to digital control system, if can not receive heartbeat packet, the digital control system termination then carries out the ping verification, if when carrying out the ping verification, can receive data then illustrate that network state is normal, if also obstructed explanation broken string of ping verification repeatedly;
S4, when client with after digital control system is connected connection, the user carries out the NC listed files in user interface, uploads the NC program, downloads the NC program, delete the NC program and carry out the operation (each operation is separate, is independent of each other) that processing was processed and stopped to transmit in the DNC transmission.
Describedly check that the concrete steps of NC file are as follows:
S21, client send packet to digital control system;
After S22, server end receive, in the inquiry of resolve command function the inside, find corresponding processing function, inside processing function, obtain NC listed files pointer;
S23, digital control system send command packet response data bag to client, distribute rear digital control system and begin the Transmit message list information to client;
S24, client just begin to prepare to receive the listed files content behind the return command of digital control system transmission, until finish receiving.
The concrete steps of described download NC program are as follows:
S31, choose a NC program in the NC listed files;
S32, client send the order that downloads to digital control system, and digital control system is resolved, and finds corresponding processing function to process after being parsed;
S33, send a reply the first pass information of order, appended document name and file size to client after having detected some network states, the data that then begin to read send to client;
S34, client just begin to receive receiving the order that client returns afterwards, and the data-bias during reception continues to receive during less than file size, finishes reception when equal.
It is described that to upload NC program concrete steps as follows:
S41, choose the file that to upload, obtain the relevant information of file size;
S42, client send order to digital control system, process in the function of correspondence after client is resolved to;
S43, after checking out some relevant quantity of states, postback order to client;
S44, client are after postback order; Open first the required NC program of uploading, then send an order to digital control system, digital control system begins to receive, until the file that receives finishes to receive when equaling the required file of uploading big or small;
S45, upgrade NC listed files information, and send NC program listing information after upgrading to client.
The concrete steps of described deletion NC program are as follows:
Program in S51, the selective listing item;
S52, send the deleted file order to digital control system, and will need the filename of the file deleted also to send over;
S53, digital control system are resolved after receiving order, then process in the function the inside of correspondence;
S54, detected file and whether can delete after then at node corresponding to NC file linked list the inside deletion;
S55, send NC listed files, more the NC program in the row-column list to client.
The concrete steps of described DNC transmission processing are as follows:
Then S61, at first client transmission DNC processing order send the query State order, and start two timers, a timed sending querying command, and a timed sending sends data command;
S62, digital control system are resolved after receiving querying command, then process in the respective function the inside; Detect first operational mode and IO passage, being false then sends information and returns client; The satisfied then network state of condition is set to wait for, then activates the DNC transmission, creates the DNC thread and then processes accordingly according to the DNC state machine;
Behind S63, the complete querying command of digital control system reception ﹠ disposal, receive again querying command, client sends this order always, and digital control system is inquired about operational mode, DNC state, network thread state after receiving and having resolved always, disconnection is incorrect if operational mode is not DNC, IO, the Socket of DNC is unripe, and perhaps network thread is unripe then directly returns, and does not process, client one straight hair, inquiry is until satisfy condition always;
S64, digital control system sends the order of beginning DNC to client when all satisfying, and begins to be ready for sending after client is received;
S65, client are after the order of beginning DNC, open first and read corresponding NC program, send SEND_FILE_DNC to digital control system after being ready to, process in corresponding function the inside again after digital control system receives and resolves, begin to read the DNC the transmission of data, and then receive data;
S66, the order that meeting is transmitted to digital control system transmission end DNC after client is sent completely, digital control system continues to send the 1s line number, guarantee then to reset the network identity amount synchronously, close Socket, the DNC state machine is set to close again, withdraw from the circulation of reading, discharge G code, and the corresponding data structure of initialization, withdraw from the DNC thread, finish processing.
Further, also comprise among the step S65, when network thread receives, the DNC thread reads the NC program in machine code according to corresponding network state amount, then decipher and process, the network mark is set to standby condition after reading one section NC code, whenever whether process the difference of the line number that can judge the current file pointed behind one section NC code and the line number initially the time greater than 1000, if the words initial pointer greater than 1000 points to 100 row after this pointer, so just discharged 100 codes that the front has processed, circulation all checks release at every turn.
Further, among the step S61, carrying out DNC two timers that added the client terminal start-up in man-hour, one sends querying command, whether inquiry can be transmitted, another transmission begins to send data command, after receiving and resolve, digital control system obtains the line number of current operation, then postback the order of returning line number to client first, sending corresponding operation line number, client is resolved the order of returning line number and is just begun to receive afterwards line number, and the line number of operation just sends to client always like this, and both sides interface display line number is synchronous.
Add man-hour carrying out DNC transmission, can stop DNC transmission processing, its concrete steps are as follows:
S101, client are destroyed first the DNC transmission and are added two timers that start man-hour;
Send first data command and an additional parameter if the S102 digital control system is being moved, send and finish the DNC transmission command, digital control system receives and sends data command and resolve laggard horizontal reset lathe;
103, receive end DNC transmission command, then finish the same end of DNC transmission command with top transmission and transmit.
The present invention has following advantage and effect with respect to prior art:
1, the present invention uses ICP/IP protocol to make the communication protocol of transmission information, and data transmission rate and jamproof ability are provided.
2, the present invention uses twisted-pair feeder as communication media, effectively improves transmission range.
3, the present invention uses ICP/IP protocol as communication protocol, conveniently is connected with Internet, realizes data sharing.
Description of drawings
Fig. 1 is digital control system end mixed-media network modules mixed-media frame diagram of the present invention;
Fig. 2 is network interaction process flow diagram of the present invention;
Fig. 3 is digital control system end DNC processing processing flow chart of the present invention.
Embodiment
The present invention is described in further detail below in conjunction with embodiment and accompanying drawing, but embodiments of the present invention are not limited to this.
Embodiment
As shown in Figure 1, based on the physical network card of LAN9111, transmit online the function of processing and the transmission of NC program file at the operating system realization DNC of built-in Linux.System interface at server end adopts the lightweight graphic user interface of embedded system to support that storehouse MiniGUI develops.File system then adopts the yaff file system, adopts the administrative mechanism of being association of activity and inertia at Memory Storage.At the self-defining application protocol of the ICP/IP protocol basis of standard exploitation, upper computer end sends packet to server (CNC end), and server end is made corresponding processing according to header packet information after resolving packet header, responds the operation of host computer.
As shown in Figure 2, take the digital control system end as server end, long-range DNC software is client.When starting (beginning), digital control system just creates network thread (thread_Socket), in network thread the inside initialization network server end (socket_init_server), bind (bind) port and IP, just monitor after binding is good always, see if there is client and connect, if without then monitor always.The words that have just connect.Connect the function (socket_select_response) of rear recursive call resolve command, carried out corresponding executable operations and command response according to the request command of client.
If client-side program is want to carry out communication with digital control system after starting, then click the connected system of menu item, corresponding IP is set, click and determine the rear socket (open) that creates, then client connects (connect) with numerical control shouting pain server end, connect and unsuccessfully then return, successful connection then creates receiving thread, starts timer.Corresponding operation and response are carried out according to our self-defining communications protocol resolution data bag in the receiving thread the inside.
When client (PC) with after digital control system is connected connection, start timer, send self-defined heartbeat packet (KEEP_ALIVE) to the digital control system end.If can not receive heartbeat packet, the digital control system termination then carries out the ping verification, if when carrying out the ping verification, can receive data then illustrate that network state is normal; If repeatedly the ping verification also not the generalist broken string is described.Like this with regard to having avoided because broken string or network signal is bad for the moment causes not receiving data and phenomenon that network disconnects for the moment, thereby reach anti-shake and the purpose of broken string for the moment.When the netting twine accident between client and digital control system is broken like this, plug within a certain period of time netting twine and can also proceed DNC processing.
When client (PC) with after digital control system is connected connection, the user can operate accordingly in user interface: check the NC listed files, upload the NC program, download the NC program, deletion NC program and carry out DNC transmission processing and stop transmission processing.
Establish after the connection when the user wants to check the NC listed files of digital control system, click [refreshing] button, client sends packet (GET_FILE_LIST) to digital control system, after server end receives, in the inquiry of resolve command function (socket_sel_ect_response) the inside, find corresponding processing function (socket_send_file_list), then obtain NC listed files pointer, digital control system sends command packet response data bag (SEND_FILE_LIST) to client, distributes rear digital control system and begins the Transmit message list information to client.Client just begins to prepare to receive the listed files content behind the return command (SEND_FILE_LIST) of digital control system transmission, until finish receiving.Client has just obtained digital control system NC listed files information like this.
When client will download to local host with the NC program of digital control system, choose a NC program in the NC listed files, click [downloading] button on the client, then client sends the order (GET_FILE) that downloads to digital control system, digital control system is resolved, and processes inside processing function (socket_get_file).Send SEND_FILE, appended document name, file size etc. to client and close first information after having detected some network states, the data that then begin to read send to client.Client just begins to receive after receiving the SEND_FILE order.Continue when all data-bias is less than file size during reception to receive, when equal, finish to receive.
When client will be to the upload file of digital control system end, click [uploading program] button.At first choose the file that will upload, obtain the relevant information such as file size after, client sends the UPDATE_FILE order to digital control system, processes in the function socket_update_file of correspondence after client is resolved to.After checking out some relevant quantity of states, postback order (GET_FILE) to client.Client is behind GET_FILE.Open first the required NC program of uploading, then send an order SEND_FILE to digital control system, digital control system begins to receive, until the file that receives finishes to receive when equaling the required file of uploading big or small.Then upgrade NC listed files information, and the NC program listing information after send upgrading to client.
When the NC program of needs deletions digital control system, then the program in the first selective listing item sends deleted file order (DELETE_FILE) to digital control system, and will need the filename of the file deleted also to send over.Digital control system is resolved after receiving order, then finds corresponding function socket_remove_file function the inside to process.Then node corresponding to deletion in the NC file linked list after having detected file and whether can deleting.Then send NC listed files (socket_send_file_list) to client, upgrade the NC program in the tabulation.
As shown in Figure 3, carry out the DNC transmission when client and digital control system and add man-hour, at first client sends DNC processing order (UPDATE_FILE_DNC), and then transmission query State order (QUERY_FILE_DNC), and start two timers, a timer sends querying command (QUERY_FILE_DNC) always, and a timed sending sends data command (SEND_DATA); Digital control system is resolved after receiving querying command, then processes in corresponding function (socket_update_file_dnc) the inside; Detect first operational mode, IO passage etc. closes first condition, is false then to send information and return client; The satisfied then network state of condition is set to wait for (SOCK_DNC_WAIT) state, then activates the DNC transmission, creates the DNC thread and then processes accordingly according to the DNC state machine; Behind the complete querying command of digital control system reception ﹠ disposal, receive again querying command (QUERY_FILE_DNC), client sends this order always, and digital control system is inquired about operational mode after receiving and having resolved always, the DNC state, the relevant informations such as network thread state do not satisfy and then return, and do not process, client one straight hair, inquiry is until satisfy condition always; Digital control system sends the order (GET_FILE_DNC) that begins DNC to client when all satisfying, and begins to be ready for sending after client is received.
Client is after the order (GET_FILE_DNC) of beginning DNC, open first and read corresponding NC program, send the order (SEND_FILE_DNC) that begins to send the DNC data to digital control system after being ready to, after receiving and resolve, digital control system prepares reception ﹠ disposal in corresponding function (socket_send_file_dnc) the inside again, then begin to read DNC the transmission of data (dnc_read_net), then at receive data (socket_recv_data).When network thread receives, the DNC thread reads NC program in machine code (dnc_gcode_load_buffer) according to corresponding network state amount, then decipher ... then process, the network mark is set to standby condition (SOCK_DNC_READY) after reading one section NC code, sends with regard to satisfying condition again when client next time sends querying command like this.Whenever whether process the difference of the line number that can judge the current file pointed behind one section NC code and the line number initially the time greater than 1000, if the words initial pointer greater than 1000 points to 100 row after this pointer, 100 codes that the front has processed have so just been discharged, circulation all checks release at every turn, the program that loaded of assurance can not surpass 1000 row like this, thereby has saved memory headroom.
Carrying out DNC two timers that added the client terminal start-up in man-hour, whether one send querying command (QUERY_FILE_DNC) inquiry and can transmit, another sends data command (SEND_DATA), after receiving and resolve, digital control system obtains the line number (socket_send_mac_info) of current operation, then postback the order (SEND_MAC_POS) of returning line number to client first, send again corresponding operation line number.Just begin to receive line number after the client resolve command, the line number of operation just sends to client always like this, and both sides interface display line number is synchronous.
After being sent completely, client can send the order (END_FILE_DNC) that finishes the DNC transmission to digital control system, digital control system continues to send the 1s line number, guarantee then to reset the network identity amount synchronously, close Socket(dnc_fopt-close), the DNC state machine is set to DNC_CLOSE again, withdraw from the circulation of reading, discharge G code, and the corresponding data structure of initialization, withdraw from the DNC thread, finish processing.
Add and to click [stopping transmission] button man-hour and stop DNC transmission processing when carrying out the DNC transmission.Client is destroyed first the DNC transmission and is added two timers that start man-hour, if digital control system is being moved order (SEND_DATA) order and additional parameter that sends first data, send again the order (END_FILE_DNC) that finishes the DNC transmission, digital control system is resolved laggard horizontal reset lathe after receiving and sending data command, then receive DNC transmission command (END_FILE_DNC), then finish the same with top transmission END_FILE_DNC transmitted.
Above-described embodiment is the better embodiment of the present invention; but embodiments of the present invention are not restricted to the described embodiments; other any do not deviate from change, the modification done under Spirit Essence of the present invention and the principle, substitutes, combination, simplify; all should be the substitute mode of equivalence, be included within protection scope of the present invention.

Claims (9)

1. the long-range DNC control method of the digital control system based on ICP/IP protocol and Linux network programming is characterized in that, comprises the steps:
S1, unlatching digital control system create network thread, and in network thread the inside initialization network server end, carry out bundling port and IP,
After S2, port and IP bind, just monitor always, see if there is client and connect, such as nothing, then monitor always, if any, then set up and being connected of this client;
S3, when client with after digital control system is connected connection, start timer, send self-defined heartbeat packet to digital control system, if can not receive heartbeat packet, the digital control system termination then carries out the ping verification, if when carrying out the ping verification, can receive data then illustrate that network state is normal, if also obstructed explanation broken string of ping verification repeatedly;
S4, when client with after digital control system is connected connection, the user carries out the NC listed files in user interface, uploads the NC program, downloads the NC program, deletion NC program and carry out DNC transmission processing and stop to transmit the operation of processing.
2. the long-range DNC control method of the digital control system based on ICP/IP protocol and Linux network programming according to claim 1 is characterized in that, checks that the concrete steps of NC file are as follows:
S21, client send packet to digital control system;
After S22, server end receive, in the inquiry of resolve command function the inside, find corresponding processing function, inside processing function, obtain NC listed files pointer;
S23, digital control system send command packet response data bag to client, distribute rear digital control system and begin the Transmit message list information to client;
S24, client just begin to prepare to receive the listed files content behind the return command of digital control system transmission, until finish receiving.
3. the long-range DNC control method of the digital control system based on ICP/IP protocol and Linux network programming according to claim 1 is characterized in that, the concrete steps of described download NC program are as follows:
S31, choose a NC program in the NC listed files;
S32, client send the order that downloads to digital control system, and digital control system is resolved, and finds corresponding processing function to process after being parsed;
S33, send a reply the first pass information of order, appended document name and file size to client after having detected some network states, the data that then begin to read send to client;
S34, client just begin to receive receiving the order that client returns afterwards, and the data-bias during reception continues to receive during less than file size, finishes reception when equal.
4. the long-range DNC control method of the digital control system based on ICP/IP protocol and Linux network programming according to claim 1 is characterized in that, described to upload NC program concrete steps as follows:
S41, choose the file that to upload, obtain the relevant information of file size;
S42, client send order to digital control system, process in the function of correspondence after client is resolved to;
S43, after checking out some relevant quantity of states, postback order to client;
S44, client are after postback order; Open first the required NC program of uploading, then send an order to digital control system, digital control system begins to receive, until the file that receives finishes to receive when equaling the required file of uploading big or small;
S45, upgrade NC listed files information, and send NC program listing information after upgrading to client.
5. the long-range DNC control method of the digital control system based on ICP/IP protocol and Linux network programming according to claim 1 is characterized in that, the concrete steps of described deletion NC program are as follows:
Program in S51, the selective listing item;
S52, send the deleted file order to digital control system, and will need the filename of the file deleted also to send over;
S53, digital control system are resolved after receiving order, then process in the function the inside of correspondence;
S54, detected file and whether can delete after then at node corresponding to NC file linked list the inside deletion;
S55, send NC listed files, more the NC program in the row-column list to client.
6. the long-range DNC control method of the digital control system based on ICP/IP protocol and Linux network programming according to claim 1 is characterized in that, the concrete steps of described DNC transmission processing are as follows:
Then S61, at first client transmission DNC processing order send the query State order, and start two timers, a timed sending querying command, and a timed sending sends data command;
S62, digital control system are resolved after receiving querying command, then process in the respective function the inside; Detect first operational mode and IO passage, being false then sends information and returns client; The satisfied then network state of condition is set to wait for, then activates the DNC transmission, creates the DNC thread and then processes accordingly according to the DNC state machine;
Behind S63, the complete querying command of digital control system reception ﹠ disposal, receive again querying command, client sends this order always, after digital control system receives and resolved, inquire about operational mode, DNC state and network thread state always, inquire about operational mode, DNC state, the relevant informations such as network thread state always, do not satisfy and then return, do not process, client one straight hair, inquiry is until satisfy condition always;
S64, digital control system sends the order of beginning DNC to client when all satisfying, and begins to be ready for sending after client is received;
S65, client are after the order of beginning DNC, open first and read corresponding NC program, send SEND_FILE_DNC to digital control system after being ready to, process in corresponding function the inside again after digital control system receives and resolves, begin to read the DNC the transmission of data, and then receive data;
S66, the order that meeting is transmitted to digital control system transmission end DNC after client is sent completely, digital control system continues to send the 1s line number, guarantee then to reset the network identity amount synchronously, close Socket, the DNC state machine is set to close again, withdraw from the circulation of reading, discharge G code, and the corresponding data structure of initialization, withdraw from the DNC thread, finish processing.
7. the long-range DNC control method of the digital control system based on ICP/IP protocol and Linux network programming according to claim 6, it is characterized in that, also comprise among the step S65, when network thread receives, the DNC thread reads the NC program in machine code according to corresponding network state amount, then decipher and process, the network mark is set to standby condition after reading one section NC code, whenever whether process the difference of the line number that can judge the current file pointed behind one section NC code and the line number initially the time greater than 1000, if the words initial pointer greater than 1000 points to 100 row after this pointer, so just discharged 100 codes that the front has processed, circulation all checks release at every turn.
8. the long-range DNC control method of described digital control system based on ICP/IP protocol and Linux network programming according to claim 6, it is characterized in that, among the step S61, carrying out DNC two timers that added the client terminal start-up in man-hour, one sends querying command, whether inquiry can be transmitted, another transmission begins to send data command, after receiving and resolve, digital control system obtains the line number of current operation, then postback the order of returning line number to client first, sending corresponding operation line number, client is resolved the order of returning line number and is just begun to receive afterwards line number, the line number of operation just sends to client always like this, and both sides interface display line number is synchronous.
9. the long-range DNC control method of the digital control system based on ICP/IP protocol and Linux network programming according to claim 1 is characterized in that, adds man-hour carrying out DNC transmission, can stop DNC transmission processing, and its concrete steps are as follows:
S101, client are destroyed first the DNC transmission and are added two timers that start man-hour;
Send first data command and an additional parameter if the S102 digital control system is being moved, send and finish the DNC transmission command, digital control system receives and sends data command and resolve laggard horizontal reset lathe;
103, receive end DNC transmission command, then finish the same end of DNC transmission command with top transmission and transmit.
CN201210583921.6A 2012-12-28 2012-12-28 Based on the long-range DNC control method of digital control system of ICP/IP protocol and Linux network programming Active CN103064391B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210583921.6A CN103064391B (en) 2012-12-28 2012-12-28 Based on the long-range DNC control method of digital control system of ICP/IP protocol and Linux network programming

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210583921.6A CN103064391B (en) 2012-12-28 2012-12-28 Based on the long-range DNC control method of digital control system of ICP/IP protocol and Linux network programming

Publications (2)

Publication Number Publication Date
CN103064391A true CN103064391A (en) 2013-04-24
CN103064391B CN103064391B (en) 2015-11-18

Family

ID=48107053

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210583921.6A Active CN103064391B (en) 2012-12-28 2012-12-28 Based on the long-range DNC control method of digital control system of ICP/IP protocol and Linux network programming

Country Status (1)

Country Link
CN (1) CN103064391B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015000229A1 (en) * 2013-07-04 2015-01-08 Wen Jie Heartbeat model-based method for detecting communication state of large rectifying apparatus
CN104281096A (en) * 2013-07-08 2015-01-14 广州中国科学院先进技术研究所 Construction method of numerical-control code compiler
CN104580434A (en) * 2014-12-26 2015-04-29 深圳市兰丁科技有限公司 Method and system for downloading firmware
CN106527353A (en) * 2016-12-12 2017-03-22 北京兰光创新科技有限公司 Remote control method and device for machining of numerical control machines based on multiple protocols
CN106647615A (en) * 2016-12-22 2017-05-10 广州数控设备有限公司 Numerical-control machine tool servo adjustment method based on TCP/IP protocol
CN106895850A (en) * 2016-12-30 2017-06-27 中国船舶重工集团公司第七0七研究所 A kind of battle state display method for supporting multi-source object filtering
TWI657325B (en) * 2017-08-01 2019-04-21 財團法人台灣發展研究院 CNC tool machining program sharing method
CN109991924A (en) * 2017-12-29 2019-07-09 沈阳高精数控智能技术股份有限公司 A kind of means of communication and system for digital control system Terminal Server Client real time monitoring
WO2019179329A1 (en) * 2018-03-21 2019-09-26 阿里巴巴集团控股有限公司 Application program wake-up method and device, terminal and medium
CN113296475A (en) * 2021-05-17 2021-08-24 福州大学 Linux-based STEP-NC decoder development method for open type numerical control system
CN113556268A (en) * 2021-07-23 2021-10-26 芯河半导体科技(无锡)有限公司 Method for realizing tcping

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5388051A (en) * 1991-11-25 1995-02-07 Fanuc Ltd. Direct numerical control (DNC) system including one high-speed data processing unit for each NC machine tool
CN101170472A (en) * 2007-10-26 2008-04-30 华中科技大学 A digital control communication method based on Ethernet technology
KR20100031801A (en) * 2008-09-16 2010-03-25 삼성중공업 주식회사 Dns system for remotely controlling nc machine and method thereof
CN102043394A (en) * 2009-10-09 2011-05-04 卢健华 Direct numerical control (DNC) information acquisition method
CN102662352A (en) * 2012-05-29 2012-09-12 重庆大学 System and method for automatically recording geometric parameters of numerical-control tools

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5388051A (en) * 1991-11-25 1995-02-07 Fanuc Ltd. Direct numerical control (DNC) system including one high-speed data processing unit for each NC machine tool
CN101170472A (en) * 2007-10-26 2008-04-30 华中科技大学 A digital control communication method based on Ethernet technology
KR20100031801A (en) * 2008-09-16 2010-03-25 삼성중공업 주식회사 Dns system for remotely controlling nc machine and method thereof
CN102043394A (en) * 2009-10-09 2011-05-04 卢健华 Direct numerical control (DNC) information acquisition method
CN102662352A (en) * 2012-05-29 2012-09-12 重庆大学 System and method for automatically recording geometric parameters of numerical-control tools

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
马颖等: "TCP/IP协议栈在DNC数控加工网络中的研究", 《电机工程技术》, vol. 35, no. 2, 28 February 2006 (2006-02-28) *

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015000229A1 (en) * 2013-07-04 2015-01-08 Wen Jie Heartbeat model-based method for detecting communication state of large rectifying apparatus
CN104281096A (en) * 2013-07-08 2015-01-14 广州中国科学院先进技术研究所 Construction method of numerical-control code compiler
CN104580434A (en) * 2014-12-26 2015-04-29 深圳市兰丁科技有限公司 Method and system for downloading firmware
CN104580434B (en) * 2014-12-26 2018-05-08 深圳市海蕴新能源有限公司 The method and system that a kind of firmware is downloaded
CN106527353A (en) * 2016-12-12 2017-03-22 北京兰光创新科技有限公司 Remote control method and device for machining of numerical control machines based on multiple protocols
CN106647615B (en) * 2016-12-22 2019-09-03 广州数控设备有限公司 Numerically-controlled machine tool service regulation method based on ICP/IP protocol
CN106647615A (en) * 2016-12-22 2017-05-10 广州数控设备有限公司 Numerical-control machine tool servo adjustment method based on TCP/IP protocol
CN106895850A (en) * 2016-12-30 2017-06-27 中国船舶重工集团公司第七0七研究所 A kind of battle state display method for supporting multi-source object filtering
TWI657325B (en) * 2017-08-01 2019-04-21 財團法人台灣發展研究院 CNC tool machining program sharing method
CN109991924A (en) * 2017-12-29 2019-07-09 沈阳高精数控智能技术股份有限公司 A kind of means of communication and system for digital control system Terminal Server Client real time monitoring
CN109991924B (en) * 2017-12-29 2021-05-25 沈阳中科数控技术股份有限公司 Communication method and system for real-time monitoring of remote client of numerical control system
WO2019179329A1 (en) * 2018-03-21 2019-09-26 阿里巴巴集团控股有限公司 Application program wake-up method and device, terminal and medium
CN110297663A (en) * 2018-03-21 2019-10-01 阿里巴巴集团控股有限公司 Awakening method, device, terminal and the medium of application program
CN113296475A (en) * 2021-05-17 2021-08-24 福州大学 Linux-based STEP-NC decoder development method for open type numerical control system
CN113556268A (en) * 2021-07-23 2021-10-26 芯河半导体科技(无锡)有限公司 Method for realizing tcping
CN113556268B (en) * 2021-07-23 2023-12-26 芯河半导体科技(无锡)有限公司 Method for realizing tcping

Also Published As

Publication number Publication date
CN103064391B (en) 2015-11-18

Similar Documents

Publication Publication Date Title
CN103064391B (en) Based on the long-range DNC control method of digital control system of ICP/IP protocol and Linux network programming
CN101582794B (en) System and method for unified configuration of network equipment
CN102855236B (en) File transmitting system and file transmitting method
CN107800621B (en) Novel intelligent home gateway supporting multiple access protocols
CN102111419B (en) Message middleware-based client automatic reconnection method
CN107547589A (en) A kind of data acquisition treatment method and device
CN103024081B (en) Be applicable to the terminal scheduling method of the point-to-point communication of effective guarantee communication system
CN103024060A (en) Open type cloud computing monitoring system for large scale cluster and method thereof
CN108600095A (en) A kind of embedded Internet of Things gateway system and its hardware circuit based on IPv6
CN108418903B (en) Remote access system and access method for embedded software log
CN103023939A (en) Method and system for realizing REST (Radar Electronic Scan Technique) interface of cloud cache on Nginx
CN110166547B (en) Terminal remote access control method
CN105897475A (en) Remote configuration method of router and router
CN100571207C (en) A kind of system and method for clustering RSS information
CN111585801A (en) ZigBee device upgrading method and related device
CN102882708A (en) Operation and maintenance auditing method, device and system
CN113709239A (en) Intelligent household equipment communication method, equipment and medium
CN109327455A (en) A kind of access method of NAS device, device, equipment and readable storage medium storing program for executing
CN100413248C (en) Improved method and system for carrying out charging based on flow
CN106375324B (en) Network communication system and method based on TCP/IP communication protocol
CN106534259A (en) Web data collection method based on Docker, Web data collection Web server based on Docker and Web data collection system based on Docker
CN102143208A (en) Remote control method and system for intelligent terminal
US20100274840A1 (en) Cooperation apparatus using peer-to-peer and method thereof
KR101082850B1 (en) Active Sync-based Mobile Device for data Synchronizing and Method at the same
Ningqing et al. Design and implementation of a smart home control system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant