The invention relates to a method for realizing CNC (Computer
Numerical Control) layered instruction transmission based on PCIe (
Peripheral Component Interconnect Express) and virtual
Ethernet cooperation. The method comprises the following steps of: transmitting
motion control streaming data generated by an upper computer
tool path analysis module to a lower
computer module for execution through a PCIe
bus by utilizing a DMA (
Direct Memory Access) technology; state feedback
data memory of the lower
computer module is mapped to a physical memory area through the BAR
address space; and transmitting the non-real-time operation instruction between the upper
computer module and the lower computer module. The method, the
system, the device, the processor and the computer readable storage medium for realizing CNC layered instruction transmission based on PCIe and virtual
Ethernet collaboration have the advantages that the real-time performance is extremely high, and the
delay is extremely low through PCIe DMA transmission; zero-overhead state feedback is realized, and near-zero
delay feedback is realized. The reliability is high, the development is convenient, and non-real-time instructions are transmitted through the virtual
Ethernet; all internal communication is achieved, reliability is high, and communication links are safe and reliable; resources are efficient, the architecture is simple, hardware cost is saved, and the
system integration degree is high.