{'fraction_non_alphanumeric': 0.017743979721166033, 'fraction_numerical': 0.0, 'mean_word_length': 4.984848484848484, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
A Middleware for Open CNC Architecture

The computer numerical control (CNC) system made up of personal computer plus motion controller card is a kind of the most popular open CNC system. For such system, a middleware is proposed whose function is to resolve the problem of G-code decoding. With the middleware, the G-code program can be compiled into the special object code sequence and then the machine control can be expediently implemented by the motion controller card according to the sequence. Being an independent component with highly general capability, the middleware improves the traditional interpret-mode. This paper describes the open CNC architecture and its solution based on the middleware, and expatiates the design and the object code format of the middleware as well.