With the development of computer and information technology, function modules of computer numerical control (CNC) systems are moving up to network environment to simplify local machine tool controller architecture and increase function reusability. In this context, network-based CNC system generates machine control instructions (MCI) in network environment and send MCI to local machines. Compared with building a remote real-time communication channel between networked CNC and local machines, applying offline interpolator is more feasible under state-of-the-art hardware and software. However, the size of MCI generated by offline interpolator is large. Transmitting MCI without compression will be inefficient and increase lead time. Currently there has been few researches on the features and compression of offline MCI. In this paper, a simple and effective compression method for MCI named multichannel differential run-length encoding (MDRL) is proposed. Utilizing the limited variation and high repetition features of MCI, MDRL algorithm first calculates the differences of MCI, then encodes the amplitudes and repetition of difference values using fixed length codes. Compression performance discrepancy among different channels is controlled using compressed data chunks. The decompression process of MDRL only needs a few hundred of bytes of space and can process in real-time. Compression performance of MDRL is tested using three common manufacturing tasks under different system configurations. The results show that the mean compression ratio of MDRL is 3.41%-15.86%. The advantages of MDRL are further validated by comparing with three other data compression algorithms. By using MDRL, MCI transmission efficiency can be significantly increased for networked CNC systems to increase function reusability and shorten lead time.
Read full abstract