Numerical control equipment communication method and device, storage medium and electronic equipment
By identifying CNC device communication needs and establishing binary-coded physical connections, the method addresses real-time and security issues in CNC device communication, enhancing reliability and efficiency.
Patent Information
- Application Number
- CN202510316450.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-18
- Publication Date
- 2025-07-15
AI Technical Summary
The existing CNC equipment communication methods have shortcomings in real-time, reliability and flexibility, especially in case of emergency situations, and there are security risks and high costs.
By obtaining the communication requirements characteristics of the CNC device group, determining the appropriate communication protocol construction mode, and building the target communication protocol through the switching trigger control logic and physical connections (such as jumpers or twisted pairs), using binary encoding for data transmission.
It realizes low latency, high security and efficient data transmission, meets diversified needs such as detection, early warning and equipment collaboration, and improves the overall performance and response speed of CNC equipment groups.
Smart Images

Figure CN120321314A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of device communication, and particularly to a numerical control device communication method, apparatus, storage medium, and electronic device. Background Art
[0002] Numerical control equipment, including numerically controlled machine tools, industrial robots, and industrial AGV transport vehicles, etc., occupies a key position in automated and intelligent manufacturing, and is widely used in multiple industries such as automobile, aerospace, and 3C product manufacturing. The information exchange between the accessory devices (such as sensors, alarms, etc.) of these devices and the numerical control system, as well as between multiple numerical control systems, mainly relies on communication protocols such as RS485, Modbus, and Ethernet to achieve data transmission of the operating system (numerical control system, interface system) or PLC (programmable logic controller).
[0003] Although the above communication protocols and their transmission means can effectively support the stable transmission of data information, they have poor real-time performance, reliability, and flexibility. Summary of the Invention
[0004] The main object of the present disclosure is to provide a numerical control device communication method, apparatus, storage medium, and electronic device, aiming to solve the technical problem of poor real-time performance, reliability, and flexibility of the communication method in the prior art.
[0005] To achieve the above object, the present disclosure proposes a numerical control device communication method, including:
[0006] Obtain the communication requirement characteristics of the numerical control device group, where the communication requirement characteristics are at least one of detection requirements, warning requirements, and device collaboration requirements;
[0007] According to the communication requirement characteristics, determine the communication protocol building mode corresponding to the numerical control device group, where the communication protocol building mode is at least one of a detection mode, a data warning mode, and a collaboration warning mode;
[0008] Based on the communication protocol building mode, trigger the control logic through digital signals, and physically connect the output end and the input end of the numerical control device group through jumpers or twisted pairs to build a target communication protocol, where the target encoding method of the target communication protocol is binary encoding;
[0009] Based on the target communication protocol, control the numerical control devices in the numerical control device group to perform data transmission according to the target encoding method to achieve numerical control device communication of the numerical control device group.
[0010] Optionally, the step of triggering the control logic through digital signals, and physically connecting the output end and the input end of the numerical control device group through jumpers or twisted pairs to build a target communication protocol includes:
[0011] Determine the data characteristics of the input data, where the data characteristics include range, minimum resolution, and warning information, and the warning information includes warning parameters and warning thresholds;
[0012] Based on the data characteristics, determine the mode parameters corresponding to the communication protocol building mode, where the mode parameters include output parameters of the output end, receiving parameters of the receiving end, and data encoding rules;
[0013] Among them, the output parameters include the required level / digital input and the number of level / digital outputs of the output end, the receiving parameters include the required level / digital input and the number of level / digital outputs of the receiving end, and the data encoding rules include the encoding method and the number of bits of data encoding;
[0014] Based on the mode parameters, perform data transmission through the output end and the receiving end to build the target communication protocol, and the output end and the receiving end are connected by jumper wires or twisted pairs.
[0015] Optionally, when the communication protocol building mode is the detection mode, the determining the mode parameters corresponding to the communication protocol building mode based on the data characteristics includes:
[0016] Determine the first data encoding number of bits according to the range and the minimum resolution;
[0017] Determine the first output parameters, first receiving parameters, and first data encoding rules corresponding to the detection mode according to the first data encoding number of bits;
[0018] Among them, the first output parameters include the required number of first level / digital inputs and the number of first level / digital outputs of the output end in the detection mode, and the first receiving parameters include the required number of second level / digital inputs and the number of second level / digital outputs of the receiving end in the detection mode.
[0019] Optionally, when the communication protocol building mode is the detection mode, the performing data transmission through the output end and the receiving end based on the mode parameters to build the target communication protocol includes:
[0020] In response to the first trigger signal, encode the input data through the output end based on the first data encoding rule to generate a first level signal corresponding to the input data;
[0021] Send the first level signal to the receiving end through the output end based on the first output parameters;
[0022] Based on the first receiving parameter, the receiving end receives the first level signal;
[0023] Based on the first data encoding rule, the receiving end decodes the first level signal to obtain the data content corresponding to the input data.
[0024] Optionally, when the communication protocol building mode is the data warning mode, the determining the mode parameters corresponding to the communication protocol building mode based on the data characteristics includes:
[0025] Determine the second data encoding bit number according to the warning information and the minimum resolution;
[0026] Determine the second output parameter, the second receiving parameter and the second data encoding rule corresponding to the data warning mode according to the second data encoding bit number;
[0027] Wherein, the second output parameter includes the number of third level / digital input and the number of third level / digital output required by the output end in the warning mode, and the second receiving parameter includes the number of fourth level / digital input and the number of fourth level / digital output required by the receiving end in the data warning mode.
[0028] Optionally, when the communication protocol building mode is the data warning mode, the building the target communication protocol by data transmission through the output end and the receiving end based on the mode parameters includes:
[0029] During the process of data transmission through the output end and the receiving end based on the warning mode, determine whether the input data meets the warning conditions according to the warning information;
[0030] When the input data meets the warning conditions, generate an emergency stop signal through a preset data bit, and the preset data bit is connected to the emergency stop controller of the numerical control equipment group through the receiving end;
[0031] Receive the emergency stop signal through the preset emergency stop interface of the receiving end;
[0032] And send the emergency stop signal to the numerical control equipment group according to the preset emergency stop interface, so that the numerical control equipment group performs an emergency stop according to the emergency stop signal.
[0033] Optionally, when the communication protocol building mode is the collaborative warning mode, the determining the mode parameters corresponding to the communication protocol building mode based on the data characteristics includes:
[0034] Determine the third data encoding bit number according to the range and the minimum resolution;
[0035] Determine the third output parameter, the third reception parameter, and the third data encoding rule corresponding to the collaborative early warning mode according to the number of digits of the third data encoding;
[0036] Among them, the third output parameter includes the number of fifth-level / digital input and the number of fifth-level / digital output required at the output end in the collaborative early warning mode, and the third reception parameter includes the number of sixth-level / digital input and the number of sixth-level / digital output required at the reception end in the collaborative early warning mode.
[0037] Optionally, when the communication protocol building mode is the collaborative early warning mode, the data is transmitted through the output end and the reception end based on the mode parameters to build the target communication protocol, including
[0038] During the process of data transmission through the output end and the reception end based on the collaborative early warning mode, determine whether the numerical control equipment group has an emergency stop based on the third reception parameter through the reception end;
[0039] When the numerical control equipment group has an emergency stop, trigger an emergency stop linkage signal through the preset linkage interface of the output end;
[0040] And based on the third output parameter, send the emergency stop linkage signal to the reception end through the output end;
[0041] Based on the third reception parameter, receive the emergency stop linkage signal through the preset emergency stop interface of the reception end, and send the emergency stop linkage signal to the numerical control equipment group according to the preset emergency stop interface, so that the numerical control equipment group performs emergency stop linkage according to the emergency stop signal.
[0042] In addition, to achieve the above object, the present disclosure also provides a numerical control equipment communication device, and the numerical control equipment communication device includes:
[0043] An acquisition module, configured to acquire the communication requirement characteristics of the numerical control equipment group, and the communication requirement characteristics are at least one of a detection requirement, an early warning requirement, and an equipment collaboration requirement;
[0044] A determination module, configured to determine the communication protocol building mode corresponding to the numerical control equipment group according to the communication requirement characteristics, and the communication protocol building mode is at least one of a detection mode, a data early warning mode, and a collaborative early warning mode;
[0045] A building module, configured to build a mode based on the communication protocol, trigger a control logic through digital signals, and physically connect the output end and the input end of the numerical control equipment group through jumpers or twisted pairs, so as to build a target communication protocol, and the target encoding method of the target communication protocol is binary encoding;
[0046] A communication module, configured to control the numerical control equipment in the numerical control equipment group to perform data transmission according to the target encoding method based on the target communication protocol, so as to realize the communication of the numerical control equipment in the numerical control equipment group.
[0047] In addition, to achieve the above object, the present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and a processor executes the computer program to implement the above-mentioned numerical control equipment communication method.
[0048] In addition, to achieve the above object, the present disclosure also provides an electronic device, which includes a memory and a processor, a computer program is stored in the memory, and the processor executes the computer program to implement the above-mentioned numerical control equipment communication method.
[0049] The numerical control equipment communication method, device, storage medium and electronic device provided by the embodiments of the present disclosure. First, by accurately obtaining the communication requirement characteristics of the numerical control equipment group (including detection requirements, early warning requirements, equipment collaboration requirements, etc.), a solid foundation is provided for subsequently selecting a suitable communication protocol building mode. This ensures the customization and pertinence of the communication protocol, thereby improving the overall communication efficiency and reliability. According to the clear communication requirement characteristics, the most suitable communication protocol building mode (such as a detection mode, a data early warning mode or a collaboration early warning mode) is selected. This step ensures that the communication protocol can directly solve specific requirements, avoids waste of resources and unnecessary complexity, and further improves the practicality and efficiency of the system. A digital signal trigger control logic is adopted, and the output end and the input end of the numerical control equipment are directly connected through physical connections (jumpers or twisted pairs) to construct a target communication protocol. This method does not require complex protocol parsing and verification processes, greatly reducing the data transmission delay. At the same time, the physical connection also enhances the security of the communication process, effectively preventing virus transmission and the triggering of misoperation instructions. In addition, the target encoding method adopts binary encoding, improving the efficiency and stability of data transmission. Finally, based on the built target communication protocol, each numerical control equipment in the numerical control equipment group can perform data transmission according to the unified binary encoding method. This ensures the consistency and interpretability of the data, facilitating the reception, parsing and processing of the data. At the same time, this step realizes efficient communication between numerical control equipment, meets diverse requirements such as detection, early warning and equipment collaboration, and improves the overall performance and response speed of the numerical control equipment group. Description of the Drawings
[0050] To more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the accompanying drawings required for use in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only some embodiments of the present disclosure. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on the structures shown in these drawings.
[0051] Figure 1 Schematic diagram of the device structure of the hardware operating environment related to the solution of the embodiment of the present disclosure;
[0052] Figure 2 Schematic diagram of the process of a numerical control device communication method related to the solution of the embodiment of the present disclosure;
[0053] Figure 3 Schematic diagram of the construction of a detection mode related to the solution of the embodiment of the present disclosure;
[0054] Figure 4 Schematic diagram of a data coding transmission signal related to the solution of the embodiment of the present disclosure;
[0055] Figure 5 Schematic diagram of the construction of a data warning mode related to the solution of the embodiment of the present disclosure;
[0056] Figure 6 Schematic diagram of the construction of a collaborative warning mode related to the solution of the embodiment of the present disclosure;
[0057] Figure 7 Schematic diagram of the transmission of ultrasonic thickness gauge data to a machine tool related to the solution of the embodiment of the present disclosure;
[0058] Figure 8 Schematic diagram of the data upload and warning of an external key electronic device temperature sensor related to the solution of the embodiment of the present disclosure;
[0059] Figure 9 Schematic diagram of the transmission of industrial robot gripper air pressure data and the emergency stop of equipment collaboration related to the solution of the embodiment of the present disclosure;
[0060] Figure 10 Schematic diagram of the transmission of earthquake warning information to a machine tool related to the solution of the embodiment of the present disclosure;
[0061] Figure 11 Schematic block diagram of a numerical control device communication device related to the solution of the embodiment of the present disclosure.
[0062] The realization, functional features and advantages of the object of the present disclosure will be further described with reference to the embodiments and the accompanying drawings. Detailed implementation manners
[0063] Next, the technical solutions in the embodiments of the present disclosure will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present disclosure without making creative efforts belong to the scope of protection of the present disclosure.
[0064] Referring to Figure 1 , Figure 1 is a schematic structural diagram of a device for the hardware operating environment involved in the solution of the embodiment of the present disclosure.
[0065] Generally, the device includes: at least one processor 301, a memory 302, and a numerical control device communication program stored on the memory 302 and operable on the processor 301. The numerical control device communication program is configured to implement the steps of the numerical control device communication method as described above.
[0066] The processor 301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 301 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), or PLA (Programmable Logic Array). The processor 301 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the wake state, also known as the CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 301 may be integrated with a GPU (Graphics Processing Unit), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. The processor 301 may also include an AI (Artificial Intelligence) processor, which is used to process operations related to the numerical control device communication method, so that the numerical control device communication method model can autonomously train and learn to improve efficiency and accuracy.
[0067] The memory 302 may include one or more storage media, which may be non-transitory. The memory 302 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash storage devices. In some embodiments, the non-transitory storage media in the memory 302 is used to store at least one instruction for being executed by the processor 301 to implement the numerical control device communication method provided in the method embodiments of the present disclosure.
[0068] In some embodiments, the terminal may further optionally include: a communication interface 303 and at least one peripheral device. The processor 301, the memory 302, and the communication interface 303 may be connected through a bus or signal lines. Each peripheral device may be connected to the communication interface 303 through a bus, signal lines, or a circuit board. Specifically, the peripheral device includes at least one of a radio frequency circuit 304, a display screen 305, and a power supply 306.
[0069] The communication interface 303 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 301 and the memory 302. In some embodiments, the processor 301, the memory 302, and the communication interface 303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 301, the memory 302, and the communication interface 303 may be implemented on a separate chip or circuit board, and the present embodiment does not limit this.
[0070] The radio frequency circuit 304 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 304 communicates with a communication network and other communication devices through electromagnetic signals. The radio frequency circuit 304 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 304 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and the like. The radio frequency circuit 304 may communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: a metropolitan area network, each generation of mobile communication networks (2G, 3G, 4G, and 5G), a wireless local area network, and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 304 may further include a circuit related to NFC (Near Field Communication), and the present disclosure does not limit this.
[0071] The display screen 305 is used to display the UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 305 is a touch display screen, the display screen 305 also has the ability to collect touch signals on or above the surface of the display screen 305. The touch signals can be input to the processor 301 as control signals for processing. At this time, the display screen 305 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 305 can be one, the front panel of the electronic device; in other embodiments, the display screen 305 can be at least two, respectively arranged on different surfaces of the electronic device or in a folding design; in still other embodiments, the display screen 305 can be a flexible display screen, arranged on the curved surface or folding surface of the electronic device. Even, the display screen 305 can be set to an irregular non-rectangular shape, that is, a special-shaped screen. The display screen 305 can be prepared from materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0072] The power supply 306 is used to supply power to each component in the electronic device. The power supply 306 can be alternating current, direct current, a disposable battery, or a rechargeable battery. When the power supply 306 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology. Those skilled in the art can understand that Figure 1 the structure shown in does not constitute a limitation on the device, and may include more or fewer components than shown in the figure, or combine some components, or have different component arrangements.
[0073] In addition, an embodiment of the present disclosure also proposes a storage medium, on which a numerical control device communication program is stored. When the numerical control device communication program is executed by a processor, the steps of the numerical control device communication method described above are implemented. Therefore, it will not be elaborated here. In addition, the description of the beneficial effects of the same method will not be elaborated either. For the technical details not disclosed in the storage medium embodiment involved in the present disclosure, please refer to the description of the method embodiment of the present disclosure. By way of example, the program instructions can be deployed to be executed on one device, or on multiple devices located at one location, or on multiple devices distributed at multiple locations and interconnected through a communication network.
[0074] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The above program can be stored in a storage medium. When the program is executed, it can include the processes of the embodiments of the above various methods. Among them, the above storage medium can be a magnetic disk, an optical disc, a read-only memory (ROM), or a random access memory (RAM), etc.
[0075] In related technologies, for the communication between the accessory devices (including sensors, alarms, etc.) of numerical control devices and the numerical control system, as well as between multiple numerical control systems, communication protocols such as RS485 serial ports, Modbus, and Ethernet are generally adopted to achieve data exchange with the numerical control system (or called the interface system) or PLC (programmable logic controller). These protocols and their transmission media perform well in ensuring stable data transmission, but there are still the following three main defects:
[0076] Insufficient real-time performance: Protocols such as Modbus and Ethernet involve data parsing and verification processes, resulting in delays in information transmission (commonly 50 milliseconds or longer). In emergency situations, such as the transmission of warning or alarm information, this may not be able to trigger the emergency stop or avoidance operation of the numerical control device in a timely manner, affecting the real-time response ability.
[0077] Security risks: Communication protocols such as Ethernet strictly encapsulate the data transmission format and parsing method. Users can only access the parsed data and cannot directly see through the transmission process. This opacity may hide risks such as virus transmission and misoperation instructions during the data transmission process, posing a security hazard to numerical control devices with high reliability requirements.
[0078] Cost and flexibility limitations: Some numerical control systems and PLCs lack built-in communication protocol conversion functions and require additional dedicated modules to achieve communication. This not only increases the equipment cost but also limits the flexibility of system configuration. More severely, certain specific models of PLCs do not even support external communication protocol interface modules, directly hindering their integration and access with other systems.
[0079] In view of this, the present disclosure provides a communication method, device, storage medium, and electronic device for numerical control devices, aiming to directly address the aforementioned challenges. This protocol is directly connected between the digital input and output interfaces of the PLC of the numerical control device through wires or jumpers, constructing a data transmission channel with low latency, security, stability, and high interpretability. This design is not limited to PLCs and also allows various devices such as sensors, detection instruments, industrial computers, and computers to easily access this communication protocol system through their own digital input and output interfaces or by using optocouplers for conversion.
[0080] The core advantages of the present disclosure are as follows:
[0081] Low cost: By directly using existing interfaces and simple connection components, without the need for complex peripherals or dedicated modules, the system construction and maintenance costs are significantly reduced.
[0082] Low latency: Based on the directness of the physical connection, the low-latency characteristic of data transmission is achieved, ensuring that critical information such as early warnings and alarms can be responded to immediately.
[0083] High security: Due to the highly interpretable communication process and physical isolation characteristics, the intrusion of virus programs and the triggering of incorrect operation instructions are effectively prevented, improving the security of the numerical control equipment.
[0084] Strong interpretability: The data transmission process is visually visible, facilitating monitoring and fault troubleshooting, and enhancing the maintainability and reliability of the system.
[0085] Refer to Figure 2 , Figure 2 which is a schematic flowchart of a communication method for a numerical control equipment according to an embodiment of the present disclosure, including the following steps:
[0086] Step S11: Obtain the communication requirement characteristics of the numerical control equipment group, and the communication requirement characteristics are at least one of detection requirements, early warning requirements, and equipment collaboration requirements.
[0087] Step S12: Determine the communication protocol building mode corresponding to the numerical control equipment group according to the communication requirement characteristics, and the communication protocol building mode is at least one of a detection mode, a data early warning mode, and a collaboration early warning mode.
[0088] Step S13: Based on the communication protocol building mode, trigger the control logic through digital signals, and physically connect the output and input ends of the numerical control equipment group through jumpers or twisted pairs to build the target communication protocol, and the target coding method of the target communication protocol is binary coding.
[0089] Step S14: Based on the target communication protocol, control the numerical control equipment in the numerical control equipment group to perform data transmission according to the target coding method to achieve the communication of the numerical control equipment in the numerical control equipment group.
[0090] Through the above technical solutions, by accurately obtaining the communication requirement characteristics of the numerical control equipment group (including detection requirements, early warning requirements, equipment collaboration requirements, etc.), a solid foundation is provided for subsequently selecting a suitable communication protocol building mode. This ensures the customization and pertinence of the communication protocol, thereby improving the overall communication efficiency and reliability. According to the clear communication requirement characteristics, select the most suitable communication protocol building mode (such as detection mode, data early warning mode or collaborative early warning mode). This step ensures that the communication protocol can directly address specific requirements, avoiding waste of resources and unnecessary complexity, and further enhancing the practicality and efficiency of the system. Adopt the digital input trigger control logic, and directly connect the output end and input end of the numerical control equipment through physical connections (jumper wires or twisted pairs) to build the target communication protocol. This method does not require complex protocol parsing and verification processes, greatly reducing the data transmission delay. At the same time, the physical connection also enhances the security of the communication process, effectively preventing virus transmission and the triggering of incorrect operation instructions. In addition, the target coding method uses binary coding, improving the efficiency and stability of data transmission. Finally, based on the built target communication protocol, each numerical control equipment in the numerical control equipment group can perform data transmission according to the unified binary coding method. This ensures the consistency and interpretability of the data, facilitating the reception, parsing and processing of the data. At the same time, this step realizes efficient communication between numerical control equipment, meets diverse requirements such as detection, early warning and equipment collaboration, and improves the overall performance and response speed of the numerical control equipment group.
[0091] In a possible way, through the digital input trigger control logic, and physically connect the output end and input end of the numerical control equipment group through jumper wires or twisted pairs to build the target communication protocol, including:
[0092] Determine the data characteristics of the input data, where the data characteristics include range, minimum resolution and early warning information, and the early warning information includes early warning parameters and early warning thresholds;
[0093] Based on the data characteristics, determine the mode parameters corresponding to the communication protocol building mode, where the mode parameters include the output parameters of the output end, the receiving parameters of the receiving end and the data coding rule;
[0094] Among them, the output parameters include the level / digital input required by the output end and the number of level / digital outputs, the receiving parameters include the level / digital input required by the receiving end and the number of level / digital outputs, and the data coding rule includes the coding method and the number of digits of data coding;
[0095] Based on the mode parameters, perform data transmission through the output end and the receiving end to build the target communication protocol, and the output end and the receiving end are connected through jumper wires or twisted pairs.
[0096] Exemplarily, first, clarify the key parameters of the input data, such as the measurement range (the range of data measurement), the minimum resolution (the smallest distinguishable change in data measurement), and the warning information (including the specific parameters for triggering warnings and the corresponding thresholds). These data characteristics are the basis for subsequent design of the communication protocol, ensuring the accuracy and pertinence of data transmission.
[0097] According to the data characteristics of the input data, determine the specific mode parameters required for the communication protocol building mode. These parameters include the output parameters of the output end (such as the required number of level / digital input and output), the receiving parameters of the receiving end (also including the number of level / digital input and output), and the data encoding rule (clarify the encoding method and the number of digits of data encoding). This process ensures that the communication protocol can adapt to the data characteristics and achieve efficient and accurate data transmission.
[0098] Based on the determined mode parameters, data transmission is carried out through the output end and the receiving end of the numerical control device. In this process, the output end and the receiving end are directly connected through physical media such as jumpers or twisted pairs, realizing low-latency and stable data transmission. At the same time, the encoding method and number of digits of the data strictly follow the data encoding rule, ensuring the accuracy and interpretability of the data.
[0099] Among possible ways, when the communication protocol building mode is the detection mode, based on the data characteristics, determine the mode parameters corresponding to the communication protocol building mode, including:
[0100] Determine the first data encoding number of digits according to the measurement range and the minimum resolution;
[0101] According to the first data encoding number of digits, determine the first output parameters, the first receiving parameters, and the first data encoding rule corresponding to the detection mode;
[0102] Among them, the first output parameters include the required number of first-level / digital inputs and the required number of first-level / digital outputs at the output end in the detection mode, and the first receiving parameters include the required number of second-level / digital inputs and the required number of second-level / digital outputs at the receiving end in the detection mode.
[0103] Exemplarily, in the detection mode, the output end is responsible for providing a specific number of level / digital interfaces to meet the data transmission requirements. Specifically, the output end needs to have 1 level / digital input interface for receiving control signals, and n + 1 level / digital output interfaces, where 1 output interface is designated as the trigger signal for starting the data acquisition process; the remaining n output interfaces are used for data encoding to transmit data in binary form. The value of n here depends on the ratio between the measurement range L and the minimum resolution p of the input data and can be accurately determined through a specific calculation formula.
[0104] Specifically, n can be calculated according to the following formula:
[0105] 2 n ≥L / p
[0106] In contrast, the receiving end needs to configure n + 1 level / digital input interfaces to receive data and trigger signals from the output end, and 1 level / digital output interface, which may be used to send confirmation signals or conduct other types of communication. Such a configuration ensures the accurate transmission and reception of data in the detection mode.
[0107] Figure 3 This is a schematic diagram for building a detection mode related to the solution of the present disclosure embodiment. As Figure 3 shown, the design of the "interaction" port allows the receiving end to actively send signals to the output end to confirm whether the current communication link is ready to receive data. Specifically, when the receiving end sends a high level through the "interaction" port, it indicates that it is ready and can receive data from the output end.
[0108] The "trigger" port is used to start the data acquisition process. Once the "trigger" port of the receiving end receives a high level signal, the system starts to record the level state of the "data encoding" port at the current moment, and this step marks the formal trigger of data acquisition.
[0109] The output end is responsible for encoding the data to be transmitted according to the binary encoding rule and sending it to the receiving end through the "data encoding" port. As Figure 3 shown, the transmitted data represents the minimum resolution p of specific multiples (such as 147 times and 17 times), and the specific number of data bits can be flexibly adjusted according to the range and resolution of the actual input data to ensure the accuracy and efficiency of data transmission.
[0110] In a possible manner, when the communication protocol building mode is the detection mode, based on the mode parameters, data is transmitted through the output end and the receiving end to build the target communication protocol, including:
[0111] In response to the first trigger signal, based on the first data encoding rule, the output end encodes the input data to generate the first level signal corresponding to the input data;
[0112] Based on the first output parameter, the output end sends the first level signal to the receiving end;
[0113] Based on the first receiving parameter, the receiving end receives the first level signal;
[0114] Based on the first data encoding rule, the receiving end decodes the first level signal to obtain the data content corresponding to the input data.
[0115] Exemplarily,Figure 4 A schematic diagram of a data encoding transmission signal involved in the solution of an embodiment of the present disclosure is as follows. Figure 4 As shown, during the data transmission process, first, the receiving end sends a high-level signal as a confirmation, indicating that the current state can receive data. Subsequently, the output end responds and starts to work, and sends data to the receiving end according to the Figure 4 shown mode.
[0116] During the data transmission, the "trigger" port of the receiving end is responsible for monitoring the signal. Whenever a high-level signal is received, a data acquisition operation is triggered once. This process continues until all the predetermined data is sent.
[0117] When the data transmission reaches the predetermined end point or all the data has been sent, the receiving end sends three consecutive high-level signals to the output end as an indication to stop the information sending. After receiving this consecutive high-level signal, the output end stops further data sending operations.
[0118] In a possible way, when the communication protocol building mode is the data warning mode, based on the data characteristics, the mode parameters corresponding to the communication protocol building mode are determined, including:
[0119] Determine the second data encoding bit number according to the warning information and the minimum resolution;
[0120] Determine the second output parameter, the second receiving parameter and the second data encoding rule corresponding to the data warning mode according to the second data encoding bit number;
[0121] Among them, the second output parameter includes the number of third-level / switch input quantities and the number of third-level / switch output quantities required by the output end in the warning mode, and the second receiving parameter includes the number of fourth-level / switch input quantities and the number of fourth-level / switch output quantities required by the receiving end in the data warning mode.
[0122] In the data warning mode, the output end needs to be configured with 1 level / switch input interface to receive the control signal, and n + 1 level / switch output interfaces, where 1 output is used as the trigger signal, and the remaining n outputs are used for data encoding. The specific value of n is jointly determined by the warning value Lmax of the input data and the minimum resolution p.
[0123] Specifically, n can be calculated according to the following calculation formula:
[0124] 2 n ≥2*Lmax / p
[0125] Correspondingly, the receiving end needs to prepare n + 2 level / switch input interfaces to receive the signals from the output end, and has 1 level / switch output interface for possible feedback or confirmation.
[0126] A physical connection is achieved between the output end and the receiving end through jumpers or twisted pairs, and the specific wiring method is as Figure 5 shown.
[0127] Among possible ways, when the communication protocol building mode is the data warning mode, based on the mode parameters, data transmission is performed through the output end and the receiving end to build the target communication protocol, including:
[0128] During the process of data transmission through the output end and the receiving end based on the warning mode, determine whether the input data meets the warning conditions according to the warning information;
[0129] When the input data meets the warning conditions, an emergency stop signal is generated through a preset data bit, and the preset data bit is connected to the emergency stop controller of the numerical control equipment group through the receiving end;
[0130] Receive the emergency stop signal through the preset emergency stop interface of the receiving end;
[0131] And send the emergency stop signal to the numerical control equipment group according to the preset emergency stop interface, so that the numerical control equipment group can perform an emergency stop according to the emergency stop signal.
[0132] In the data warning mode, the functions of the "interaction" port and the "trigger" port are the same as those in the detection mode, that is, the "interaction" port is used to confirm that the receiving end is ready to receive data, and the "trigger" port is used to start the data acquisition process. Similarly, the input-output mechanism of "data coding" is also the same as that in the detection mode, but the special thing is that the highest bit of the data coding is given an additional function - as a high-level warning signal.
[0133] The output end encodes the data to be transmitted according to the binary coding rule and sends it to the receiving end through the "data coding" port. If the transmitted data exceeds the preset warning value, the highest bit of the data coding will be set to high level. At this time, the emergency stop interface (connected to the highest bit of the data coding) on the receiving end will receive this high-level signal, thereby triggering the emergency stop operation of the input end device to ensure system safety.
[0134] Among possible ways, when the communication protocol building mode is the collaborative warning mode, based on the data characteristics, determine the mode parameters corresponding to the communication protocol building mode, including:
[0135] Determine the third data coding bit number according to the range and the minimum resolution;
[0136] According to the third data coding bit number, determine the third output parameter, the third receiving parameter and the third data coding rule corresponding to the collaborative warning mode;
[0137] Among them, the third output parameter includes the number of fifth-level / digital input and the number of fifth-level / digital output required at the output end in the collaborative early warning mode, and the third receiving parameter includes the number of sixth-level / digital input and the number of sixth-level / digital output required at the receiving end in the collaborative early warning mode.
[0138] In the collaborative early warning mode, the output end needs to configure 1 level / digital input interface and n + 2 level / digital output interfaces. Among them, 1 output is used as a trigger signal to start the data transmission or data acquisition process; another output is dedicated to the emergency stop linkage to send an emergency stop signal to the receiving end in case of emergency; the remaining n outputs are responsible for data encoding and transmitting data in binary form. The specific value of n is calculated based on the ratio of the range L of the input data to the minimum resolution p.
[0139] Specifically, n can be calculated according to the following calculation formula:
[0140] 2 n ≥L / p
[0141] On the receiving end side, n + 2 level / digital input interfaces need to be prepared to receive the trigger signal, emergency stop linkage signal and data encoding from the output end, and at the same time, 1 level / digital output interface may be configured for response or confirmation signals.
[0142] The physical connection between the output end and the receiving end is achieved through jumpers or twisted pairs. The specific wiring method refers to Figure 6 as shown.
[0143] In a possible way, when the communication protocol building mode is the collaborative early warning mode, based on the mode parameters, data transmission is carried out through the output end and the receiving end to build the target communication protocol, including
[0144] In the process of data transmission through the output end and the receiving end based on the collaborative early warning mode, based on the third receiving parameter, it is determined by the receiving end whether an emergency stop occurs in the numerical control equipment group;
[0145] In the case of an emergency stop in the numerical control equipment group, an emergency stop linkage signal is triggered through the preset linkage interface at the output end;
[0146] And based on the third output parameter, the emergency stop linkage signal is sent to the receiving end through the output end;
[0147] Based on the third receiving parameter, the emergency stop linkage signal is received through the preset emergency stop interface at the receiving end, and the emergency stop linkage signal is sent to the numerical control equipment group according to the preset emergency stop interface, so that the numerical control equipment group can perform emergency stop linkage according to the emergency stop signal.
[0148] In the collaborative early warning mode, the functions of the "interaction" port and the "trigger" port, as well as the input / output mechanism of "data encoding", are consistent with the detection mode. In particular, the emergency stop linkage output at the output end is directly connected to the emergency stop input at the receiving end. Once the device at the output end detects a situation that requires an emergency stop or alarm, it will output a high-level signal through the emergency stop linkage, thereby triggering the emergency stop operation of the receiving-end device to ensure system safety.
[0149] This communication method is applicable to connecting two numerically controlled devices equipped with PLCs (such as numerically controlled machine tools, industrial robots, rail vehicles, etc.). By directly programming on the idle input / output ports reserved on the PLCs of the two devices and using jumpers or twisted pairs for physical connection. If the brands or models of the two PLCs are incompatible, or there are differences in the input amplitude of the levels, an opto-coupling module needs to be added to the connection line to complete signal conversion.
[0150] For the communication between analog output devices / sensors and numerically controlled devices, a digital-to-analog conversion module needs to be introduced to convert the analog signal into a digital signal in binary form for output, so as to ensure that the numerically controlled device can correctly identify and process it.
[0151] If other types of devices, sensors, or system data are involved, an embedded system or an industrial control computer system can be used as an intermediary to convert this data into a binary data format recognizable by the numerically controlled device for output. The specific implementation strategy can refer to the four implementation cases provided later to obtain detailed operation guidance and examples.
[0152] Implementation Case 1: Data Transmission between an Ultrasonic Thickness Gauge and a Machine Tool
[0153] This implementation case demonstrates how to build a communication system between an ultrasonic thickness gauge and a numerically controlled machine tool by using the method proposed in the present invention to achieve the safe and stable transmission of ultrasonic thickness measurement data. The system construction follows the detection mode, and the specific process is as Figure 7 shown.
[0154] Before the data transmission starts, the receiving end (i.e., the machine tool) first sends a high-level signal to confirm that it is currently in a state where it can receive data. Subsequently, the output end (ultrasonic thickness gauge) responds and starts to work, converting and binary-encoding the obtained ultrasonic thickness data according to the preset minimum data resolution (such as 0.01 mm). For example, if the measured thickness data is 2.01 mm, it is encoded as 201 for transmission after processing.
[0155] During the data transmission process, the "trigger" port at the receiving end is responsible for monitoring high-level signals. Whenever a high-level signal is received, a data acquisition operation is triggered once. This process continues until all the encoded data has been sent. When the data transmission is complete, the receiving end sends three consecutive high-level signals to the output end as an indication to stop sending information. After receiving this signal, the output end stops further data transmission operations.
[0156] Implementation Case 2: Data Upload and Early Warning System for External Key Electronic Device Temperature Sensors
[0157] In scenarios where the temperature of key electronic devices of machine tools needs to be monitored, this implementation case demonstrates how to build a communication system using the data early warning mode proposed by the present invention. This system not only realizes the real-time transmission of temperature data but also effectively monitors whether the temperature exceeds the preset early warning line. The specific process is as Figure 8 shown.
[0158] When the data transmission starts, the receiving end first sends a high-level signal to confirm that it is ready to receive data. Subsequently, the output end (temperature sensor system) starts to work, converts and encodes the collected temperature data according to the minimum data resolution (such as 0.1 °C). The "trigger" port at the receiving end is responsible for monitoring high-level signals, and each time a high level is received, a data acquisition operation is triggered until all the encoded temperature data has been sent. After the data transmission ends, the receiving end sends three consecutive high-level signals to the output end to indicate the stop of information sending.
[0159] During the data transmission process, the system also has a temperature early warning function. Once the monitored temperature reaches or exceeds the preset upper limit value, the system will send a high-level signal through the "Temperature Over-temperature Early Warning" output port to directly trigger the emergency stop mechanism of the machine tool or other related equipment to ensure the safety of the equipment and prevent potential damage.
[0160] Implementation Case 3: Pneumatic Pressure Data Transmission and Equipment Coordinated Emergency Stop System for Industrial Robot Grippers
[0161] In the environment where the robotic arm and the machine tool cooperate in operations, to ensure the synchronization of the emergency stop mechanisms of both sides, this implementation case uses the coordinated early warning mode proposed by the present invention to build a communication system. The specific process is as Figure 9 shown. This system realizes the real-time transmission of the pneumatic gripper pressure data of the robotic arm and can trigger the synchronous emergency stop of the robotic arm and the machine tool in case of an emergency to ensure production safety.
[0162] When data transmission starts, the receiving end (such as a machine tool control system) sends a high-level signal to confirm that it is ready to receive data. Subsequently, the output end (the robotic arm control system) starts to work and encodes the pressure data of the robotic arm pneumatic gripper. The "trigger" port of the receiving end is responsible for monitoring the high-level signal, and each time a high-level signal is received, a data acquisition operation is triggered until all pressure data is sent. After the data transmission is completed, the receiving end sends three consecutive high-level signals to the output end as an indication to stop sending information.
[0163] In addition, this system also integrates a collaborative emergency stop function. During data transmission, if the robotic arm triggers the emergency stop mechanism for any reason (such as detecting abnormal air pressure, mechanical failure, etc.), the system will immediately send an emergency stop signal to the CNC machine tool through a preset signal channel. After receiving this signal, the CNC machine tool will immediately perform a synchronous emergency stop operation, thus avoiding potential accidents and equipment damage and ensuring the safety and stability of the production environment.
[0164] Implementation Case 4: Real-time Transmission of Earthquake Early Warning Information to Machine Tools and Triggering of Emergency Stop
[0165] This implementation case demonstrates how to use the collaborative early warning mode proposed by the present invention to build a communication system to achieve the rapid transmission of earthquake early warning information received from the Internet or mobile phones to machine tools and trigger the emergency stop mechanism of the machine tools to ensure production safety. The specific implementation process is as Figure 10 shown.
[0166] In this system, earthquake early warning information is first received through channels such as the Internet or mobile phones. Subsequently, this information is transmitted to the control system connected to the machine tool through specific communication protocols and interfaces. Using the collaborative early warning mode, the system can quickly identify and process these early warning information. Once it is confirmed that the earthquake risk reaches the preset threshold, an emergency stop instruction will be automatically sent to the machine tool.
[0167] After receiving the emergency stop instruction, the machine tool will immediately perform an emergency stop operation, cut off all power sources, and lock the mechanical components in a safe position to prevent damage to the machine tool and surrounding equipment caused by the vibration and shaking during an earthquake. In this way, this system provides a reliable solution for the safety protection of machine tools during natural disasters such as earthquakes.
[0168] The above four implementation cases all adopt a simplified wiring method, which is not only convenient for installation and debugging but also has high flexibility and portability. This means that between different application scenarios or devices, the communication system can be easily migrated and interchanged without complex rewiring or configuration adjustment. This design greatly improves the versatility and practicality of the system.
[0169] Refer to Figure 11 , Figure 11The block diagram of a communication device for a numerical control device according to an embodiment of the present disclosure. Based on the same inventive concept as the foregoing embodiment, the device includes:
[0170] An acquisition module 10, configured to acquire the communication requirement characteristics of a numerical control device group, where the communication requirement characteristics are at least one of a detection requirement, a warning requirement, and a device collaboration requirement;
[0171] A determination module 20, configured to determine a communication protocol building mode corresponding to the numerical control device group according to the communication requirement characteristics, where the communication protocol building mode is at least one of a detection mode, a data warning mode, and a collaboration warning mode;
[0172] A building module 30, configured to build a target communication protocol based on the communication protocol building mode, through a digital input / output trigger control logic, and physically connect the output end and the input end of the numerical control device group through jumpers or twisted pairs, where the target encoding method of the target communication protocol is binary encoding;
[0173] A communication module 40, configured to control the numerical control devices in the numerical control device group to perform data transmission according to the target encoding method based on the target communication protocol, so as to implement the communication of the numerical control devices in the numerical control device group.
[0174] It should be noted that since the steps executed by the device in this embodiment are the same as those in the foregoing method embodiment, the specific implementation manner and the achievable technical effects can refer to the foregoing embodiment, and will not be elaborated here.
[0175] In addition, in an embodiment, the embodiment of the present disclosure further provides an electronic device, where the device includes a processor, a memory, and a computer program stored in the memory, and the computer program implements the steps of the method in the foregoing embodiment when being run by the processor.
[0176] In addition, in an embodiment, the embodiment of the present disclosure further provides a computer storage medium, where a computer program is stored on the computer storage medium, and the computer program implements the steps of the method in the foregoing embodiment when being run by the processor.
[0177] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disc, or CD-ROM; or it may be various devices including one or any combination of the foregoing memories. The computer may be various computing devices including intelligent terminals and servers.
[0178] In some embodiments, the executable instructions may be in the form of a program, software, software module, script, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including being deployed as a stand-alone program or being deployed as a module, component, subroutine, or other unit suitable for use in a computing environment.
[0179] As an example, the executable instructions may or may not correspond to a file in a file system, may be stored as part of a file that holds other programs or data, for example, in one or more scripts in a Hyper Text Markup Language (HTML) document, stored in a single file dedicated to the program in question, or, stored in multiple cooperating files (such as files that store one or more modules, subroutines, or portions of code).
[0180] As an example, the executable instructions may be deployed to execute on one computing device, or on multiple computing devices located at one location, or, on multiple computing devices distributed across multiple locations and interconnected by a communication network.
[0181] It should be noted that in this document, the term "comprising", "may comprise", or any other variation thereof is intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a series of elements includes not only those elements but also other elements not expressly listed, or elements that are inherent to such process, method, article, or system. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article, or system that comprises the element.
[0182] The serial numbers of the foregoing embodiments of the present disclosure are merely for description and do not represent the superiority or inferiority of the embodiments.
[0183] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present disclosure, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as a read-only memory / random access memory, magnetic disk, optical disk), and includes several instructions for causing a multimedia terminal device (which may be a mobile phone, a computer, a television receiver, or a network device, etc.) to execute the methods described in the various embodiments of the present disclosure.
[0184] The above are only alternative embodiments of the present disclosure, and thus do not limit the patent scope of the present disclosure. Any equivalent structural transformation made by using the content of the specification and drawings of the present disclosure under the inventive concept of the present disclosure, or any direct / indirect application in other related technical fields, is included in the patent protection scope of the present disclosure.
Claims
1. A communication method for a numerical control device, characterized in that, Including: Obtain the communication requirement characteristics of the numerical control equipment group, where the communication requirement characteristics are at least one of detection requirements, early warning requirements, and equipment collaboration requirements; According to the communication requirement characteristics, determine the communication protocol building mode corresponding to the numerical control equipment group, where the communication protocol building mode is at least one of a detection mode, a data early warning mode, and a collaboration early warning mode; Based on the communication protocol building mode, through the digital input trigger control logic, and physically connect the output end and the input end of the numerical control equipment group through jumpers or twisted pairs to build a target communication protocol, and the target coding method of the target communication protocol is binary coding; Based on the target communication protocol, control the numerical control equipment in the numerical control equipment group to perform data transmission according to the target coding method to realize the communication of the numerical control equipment in the numerical control equipment group.
2. The method according to claim 1, wherein The step of, through the digital input trigger control logic, and physically connect the output end and the input end of the numerical control equipment group through jumpers or twisted pairs to build a target communication protocol, includes: Determine the data characteristics of the input data, where the data characteristics include range, minimum resolution, and early warning information, and the early warning information includes early warning parameters and early warning thresholds; Based on the data characteristics, determine the mode parameters corresponding to the communication protocol building mode, where the mode parameters include output parameters of the output end, receiving parameters of the receiving end, and data coding rules; Among them, the output parameters include the required level / digital input and the number of level / digital outputs of the output end, the receiving parameters include the required level / digital input and the number of level / digital outputs of the receiving end, and the data coding rules include the coding method and the number of digits of data coding; Based on the mode parameters, perform data transmission through the output end and the receiving end to build a target communication protocol, and the output end and the receiving end are connected through jumpers or twisted pairs.
3. The method according to claim 2, wherein When the communication protocol building mode is the detection mode, the step of, based on the data characteristics, determine the mode parameters corresponding to the communication protocol building mode, includes: According to the range and the minimum resolution, determine the first data coding number of digits; According to the first data coding number of digits, determine the first output parameters, the first receiving parameters, and the first data coding rules corresponding to the detection mode; Among them, the first output parameters include, in the detection mode, the required number of first level / digital inputs and the number of first level / digital outputs of the output end, and the first receiving parameters include, in the detection mode, the required number of second level / digital inputs and the number of second level / digital outputs of the receiving end.
4. The method according to claim 3, wherein When the communication protocol building mode is the detection mode, the step of, based on the mode parameters, perform data transmission through the output end and the receiving end to build a target communication protocol, includes: In response to the first trigger signal, based on the first data coding rules, encode the input data through the output end to generate a first level signal corresponding to the input data; Based on the first output parameters, send the first level signal to the receiving end through the output end; Based on the first received parameter, the receiving end receives the first level signal; Based on the first data encoding rule, the receiving end decodes the first level signal to obtain the data content corresponding to the input data.
5. The method according to claim 2, wherein When the communication protocol building mode is the data warning mode, the determining of the mode parameters corresponding to the communication protocol building mode based on the data characteristics includes: Determining the second data encoding bit number according to the warning information and the minimum resolution; Determining the second output parameter, the second received parameter, and the second data encoding rule corresponding to the data warning mode according to the second data encoding bit number; Wherein, the second output parameter includes the number of third level / switch input and the number of third level / switch output required by the output end in the warning mode, and the second received parameter includes the number of fourth level / switch input and the number of fourth level / switch output required by the receiving end in the data warning mode.
6. The method according to claim 5, characterized in that, When the communication protocol building mode is the data warning mode, the data transmission through the output end and the receiving end based on the mode parameters to build the target communication protocol includes: During the data transmission through the output end and the receiving end based on the warning mode, determining whether the input data meets the warning condition according to the warning information; When the input data meets the warning condition, generating an emergency stop signal through a preset data bit, and the preset data bit is connected to the emergency stop controller of the numerical control equipment group through the receiving end; Receiving the emergency stop signal through the preset emergency stop interface of the receiving end; And sending the emergency stop signal to the numerical control equipment group according to the preset emergency stop interface, so that the numerical control equipment group performs an emergency stop according to the emergency stop signal.
7. The method according to claim 2, wherein When the communication protocol building mode is the collaborative warning mode, the determining of the mode parameters corresponding to the communication protocol building mode based on the data characteristics includes: Determining the third data encoding bit number according to the range and the minimum resolution; Determining the third output parameter, the third received parameter, and the third data encoding rule corresponding to the collaborative warning mode according to the third data encoding bit number; Wherein, the third output parameter includes the number of fifth level / switch input and the number of fifth level / switch output required by the output end in the collaborative warning mode, and the third received parameter includes the number of sixth level / switch input and the number of sixth level / switch output required by the receiving end in the collaborative warning mode.
8. The method according to claim 7, characterized in that, When the communication protocol building mode is the collaborative warning mode, the data transmission through the output end and the receiving end based on the mode parameters to build the target communication protocol includes During the data transmission through the output end and the receiving end based on the collaborative warning mode, determining whether the numerical control equipment group has an emergency stop through the receiving end based on the third received parameter; In the case of an emergency stop occurring in the CNC equipment group, an emergency stop linkage signal is triggered through a preset linkage interface at the output end; And based on the third output parameter, the emergency stop linkage signal is sent to the receiving end through the output end; Based on the third receiving parameter, the emergency stop linkage signal is received through a preset emergency stop interface at the receiving end, and the emergency stop linkage signal is sent to the CNC equipment group according to the preset emergency stop interface, so that the CNC equipment group performs emergency stop linkage according to the emergency stop signal.
9. A communication device for a numerical control device, characterized in that, It includes: An acquisition module for acquiring the communication requirement characteristics of the CNC equipment group, and the communication requirement characteristics are at least one of detection requirements, early warning requirements, and equipment cooperation requirements; A determination module for determining the communication protocol building mode corresponding to the CNC equipment group according to the communication requirement characteristics, and the communication protocol building mode is at least one of a detection mode, a data early warning mode, and a cooperation early warning mode; A building module for building a target communication protocol based on the communication protocol building mode, triggering a control logic through a digital input / output, and physically connecting the output end and the input end of the CNC equipment group through a jumper or a twisted pair, and the target coding method of the target communication protocol is binary coding; A communication module for controlling the CNC equipment in the CNC equipment group to perform data transmission according to the target coding method based on the target communication protocol, so as to realize the communication of the CNC equipment in the CNC equipment group.
10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, and the processor executes the computer program to implement the method according to any one of claims 1-8.
11. An electronic device, characterized in that, The electronic device includes a memory and a processor, a computer program is stored in the memory, and the processor executes the computer program to implement the method according to any one of claims 1-8.