[go: up one dir, main page]

CN200997073Y - Universal digital-controlled system based on digital ring bus - Google Patents

Universal digital-controlled system based on digital ring bus Download PDF

Info

Publication number
CN200997073Y
CN200997073Y CN200720010119.2U CN200720010119U CN200997073Y CN 200997073 Y CN200997073 Y CN 200997073Y CN 200720010119 U CN200720010119 U CN 200720010119U CN 200997073 Y CN200997073 Y CN 200997073Y
Authority
CN
China
Prior art keywords
bus
data
physical layer
interface
numerical control
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.)
Expired - Fee Related
Application number
CN200720010119.2U
Other languages
Chinese (zh)
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.)
Dalian Guangyang Science and Technology Engineering Co Ltd
Original Assignee
Dalian Guangyang Science and Technology Engineering 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 Dalian Guangyang Science and Technology Engineering Co Ltd filed Critical Dalian Guangyang Science and Technology Engineering Co Ltd
Priority to CN200720010119.2U priority Critical patent/CN200997073Y/en
Application granted granted Critical
Publication of CN200997073Y publication Critical patent/CN200997073Y/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

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

  • Numerical Control (AREA)

Abstract

本实用新型公开了一种基于全数字环形总线式通用型数控系统,包括主设备和从设备;主设备包括装有数控软件的上位机(1)和总线控制器(2);从设备包括总线式伺服驱动器(3)和PLC,主设备依次串接1-24个从设备并连接回主设备从而构成一个闭合环路,主设备和从设备之间通过以物理层和传输介质连接的链路传输数据;其中,总线控制器(2)为插卡式结构,通过主板上的总线接口与基于X86体系结构的主板相连,并与所述主板上的X86CPU通信。本实用新型依靠工控主板+总线控制器插卡的方式,旨在提高系统的可扩展性能。

Figure 200720010119

The utility model discloses a general-purpose numerical control system based on an all-digital ring bus, which includes a master device and a slave device; the master device includes a host computer (1) equipped with numerical control software and a bus controller (2); the slave device includes a bus Servo drive (3) and PLC, the master device is serially connected with 1-24 slave devices and connected back to the master device to form a closed loop, the master device and the slave device are connected through a link connected by the physical layer and the transmission medium Data transmission; wherein, the bus controller (2) is a plug-in card structure, is connected with the main board based on the X86 architecture through the bus interface on the main board, and communicates with the X86CPU on the main board. The utility model relies on the way of industrial control main board + bus controller plug-in card, aiming at improving the expandable performance of the system.

Figure 200720010119

Description

基于全数字环形总线式通用型数控系统Universal Numerical Control System Based on All-Digital Ring Bus

技术领域technical field

本实用新型涉及一种全数字总线式数控系统,更具体地说,涉及在环形全数字总线式数控系统中总线控制器的设置方式。The utility model relates to an all-digital bus-type numerical control system, more specifically, relates to the setting method of the bus controller in the ring-shaped full-digital bus-type numerical control system.

背景技术Background technique

传统的数控机床的体系结构,是由传输的数据的形式决定的。市场上能够见到的不外乎如下几种:模拟量数据(如图1)、数字脉冲式(如图2)、总线式(如图3)。这3种结构各有各的特点。目前,国内市场上模拟量传输数据的居多,以脉冲命令传送速度数据的这种结构现在在低端的数控系统中常见,高端的已经是模拟量和数字总线式的市场。The architecture of traditional CNC machine tools is determined by the form of transmitted data. The following types can be seen in the market: analog data (as shown in Figure 1), digital pulse type (as shown in Figure 2), and bus type (as shown in Figure 3). Each of these three structures has its own characteristics. At present, in the domestic market, most of the analog quantities transmit data. This structure of transmitting speed data with pulse commands is now common in low-end CNC systems, and the high-end ones are already in the analog and digital bus market.

在脉冲式和模拟量传送数据的两种数控结构中,都存在一个叫做CNC(数控)控制器的结构,这种结构的工作方式简单概括如下:上位机的CNC软件传过来的速度或者位置信号,通过某种总线传送到CNC控制器。CNC控制器将这个信号转化成伺服驱动器能够识别的模拟量(通常是±10V)或者脉冲命令(通过计数和定时实现)伺服驱动器接收到这种命令之后进行相关运算,控制功率部分使伺服电机按照要求运转;同时伺服驱动器的实际运转位置通过位置检测装置反馈给伺服驱动器,伺服驱动器根据反馈的信号计算电机的实际速度和位置,调整控制精度,完成一个控制循环;与此同时位置检测装置的数据也反馈给CNC控制器,并通过CNC控制器将位置检测装置反馈数据送到上位机的数控软件,参与位置环的运算,达到位置环控制的目的。In the two numerical control structures of pulse type and analog quantity transmission data, there is a structure called CNC (numerical control) controller. The working mode of this structure is briefly summarized as follows: the speed or position signal transmitted by the CNC software of the upper computer , sent to the CNC controller through some kind of bus. The CNC controller converts this signal into an analog quantity (usually ±10V) or pulse command (realized by counting and timing) that the servo driver can recognize. After receiving this command, the servo driver performs related calculations and controls the power part so that the servo motor follows At the same time, the actual running position of the servo driver is fed back to the servo driver through the position detection device, and the servo driver calculates the actual speed and position of the motor according to the feedback signal, adjusts the control accuracy, and completes a control cycle; at the same time, the data of the position detection device It also feeds back to the CNC controller, and through the CNC controller, the feedback data of the position detection device is sent to the numerical control software of the upper computer to participate in the calculation of the position loop to achieve the purpose of position loop control.

由上述结构不难看出脉冲命令式和模拟量式的数控控制器结构中间都要加一个数控控制器对来自上位机和数控软件的数据进行转化。这样的话中间环节比较复杂,数据转化和传输过程由于模拟-数字和其他环节的存在,容易造成传输过程中的精度损失和传输转换误差。同时由于中间环节的增加,系统受干扰的概率也会增加,系统不稳定因素提高。还有一点,数控控制器环节的存在,本身会使成本增高。It is not difficult to see from the above structure that a numerical control controller is added in the middle of the structure of the pulse command type and the analog type numerical control controller to convert the data from the upper computer and the numerical control software. In this case, the intermediate links are more complicated. Due to the existence of analog-digital and other links in the process of data conversion and transmission, it is easy to cause precision loss and transmission conversion errors in the transmission process. At the same time, due to the increase of intermediate links, the probability of system interference will also increase, and the instability factors of the system will increase. Another point is that the existence of the CNC controller link itself will increase the cost.

数字伺服装置的出现是数控技术发展史上的一个重要里程碑。采用数字伺服装置,所有指令值和实际值都在一个微控制器内完成处理。这种伺服装置不但能实现传统的电流环和速度环控制,还能在极短的时间内完成精插补,实现位置环控制。The emergence of digital servo device is an important milestone in the history of numerical control technology development. With digital servos, all command and actual values are processed within a single microcontroller. This kind of servo device can not only realize traditional current loop and speed loop control, but also complete fine interpolation in a very short time to realize position loop control.

总线式数控系统体系结构是将来数控发展的趋势,各大数控系统生产厂家都在这个反面进行了大量的投入,并为之设计了诸多的总线系统。The architecture of bus-type numerical control system is the trend of numerical control development in the future. All major numerical control system manufacturers have made a lot of investment in this aspect and designed many bus systems for it.

绝大部分的总线式数控都采用如图3所示的类似结构。通常这种结构是开放式的,采用工业级别的计算机,然后在计算机上插上为系统所采用的总线协议特别开发的总线控制器板卡;通过总线控制器板卡连接带有总线接口的伺服驱动器。工作过程大概如下:在固定时间的插补周期内,数控软件将要控制的数据通过主板上的总线接口发送到总线控制器板卡,总线控制器板卡将这些数据根据相应的总线协议需要打包发送到总线网络上去;数字总线式伺服驱动器接收到这些数据包,将有效的位置插补数据和速度以及其他数据提取出来,进行控制算法运算,进而控制伺服电机。同时伺服驱动器根据电机的位置检测装置反馈数据,针对速度和位置进行调整,完成自己的控制循环;位置检测装置的反馈信号同时通过数字伺服驱动器的总线通道反馈给数控软件,数控软件提取数据,根据数控算法进行位置插补以及其他的控制算法的运算,进入下个插补周期,发出该插补周期的命令。The vast majority of bus-type numerical control adopts a similar structure as shown in Figure 3. Usually this structure is open, using an industrial-grade computer, and then inserting a bus controller board specially developed for the bus protocol used by the system on the computer; connecting the servo with a bus interface through the bus controller board driver. The working process is roughly as follows: In the interpolation cycle of a fixed time, the CNC software sends the data to be controlled to the bus controller board through the bus interface on the main board, and the bus controller board packs and sends the data according to the corresponding bus protocol. Go to the bus network; the digital bus servo driver receives these data packets, extracts the effective position interpolation data, speed and other data, and performs control algorithm operations to control the servo motor. At the same time, the servo drive adjusts the speed and position according to the feedback data of the position detection device of the motor to complete its own control cycle; the feedback signal of the position detection device is fed back to the CNC software through the bus channel of the digital servo drive at the same time, and the CNC software extracts the data. The NC algorithm performs position interpolation and other control algorithm operations, enters the next interpolation cycle, and issues commands for this interpolation cycle.

在上面的数字总线式数控系统中,上位机和总线控制器之间是采用插卡方式连接的,这种方式的连接具有机构方便灵活的特点。但是工业现场,由于现场环境比较复杂,尤其是电机比较多的电气环境中,金手指式的连接有接触不良的潜在危险,这种情况对于数控机床来说比较危险。In the above digital bus numerical control system, the upper computer and the bus controller are connected by plug-in card, which has the characteristics of convenient and flexible mechanism. However, in industrial sites, due to the complex site environment, especially in the electrical environment with many motors, the golden finger connection has the potential danger of poor contact, which is more dangerous for CNC machine tools.

因此有些有主板开发实力的厂家在开放性和可靠性方面取了折中方案,针对工业环境开发自己的主板,并将总线控制器坐在CPU主板上。但是由于时代和当时硬件条件的限制,这些集成了总线控制器的主板通常采用多CPU的接口,相对来说资源比较浪费,结构比较复杂。为了减少重复开发的费用,这种结构一直被保留至今。Therefore, some manufacturers with motherboard development capabilities have taken a compromise solution in terms of openness and reliability, developed their own motherboards for industrial environments, and placed the bus controller on the CPU motherboard. However, due to the limitations of the era and hardware conditions at that time, these motherboards integrated with bus controllers usually use multi-CPU interfaces, which is relatively wasteful of resources and complex in structure. In order to reduce the cost of repeated development, this structure has been retained to this day.

数控系统作为一个独立的过程数字控制器应用于工业自动化生产中,其多任务性表现在它的管理软件必须完成管理和控制两大任务。其中系统管理包括输入,I/O处理,通信,显示,诊断以及加工程序的编制管理等。系统的控制部分包括:译码、刀具补偿、速度处理、插补和位置控制等。因此,现代的开放式数控系统软件结构通常比较庞大,需要有高性能的计算机硬件作为依托,而目前的高速发展的X86结构的CPU系统可以很好的满足这种需求。此外,数控系统开放性的一个重要表现是其操作系统的通用性。该结构设计为采用windowsNT和Debian Linux两种多任务操作系统,到目前为止支持X86结构的CPU。在该结构中,根据数控系统对实时性的苛刻要求,对操作系统进行了实时性改造。As an independent process digital controller, the numerical control system is used in industrial automation production. Its multi-task performance is that its management software must complete the two major tasks of management and control. Among them, system management includes input, I/O processing, communication, display, diagnosis, and processing program management. The control part of the system includes: decoding, cutter compensation, speed processing, interpolation and position control, etc. Therefore, the software structure of the modern open CNC system is usually relatively large and requires high-performance computer hardware as a support, and the current high-speed development of the X86 structure CPU system can well meet this demand. In addition, an important manifestation of the openness of the CNC system is the versatility of its operating system. The structure is designed to adopt two multitasking operating systems, windowsNT and Debian Linux, and supports CPUs with X86 structure so far. In this structure, according to the strict real-time requirements of the numerical control system, the real-time performance of the operating system has been transformed.

发明内容Contents of the invention

本实用新型针对上述问题,提出了一种开放、结构灵活的全数字环形总线式数控系统,依靠工控主板+总线控制器插卡的方式,旨在提高系统的可扩展性能。Aiming at the above-mentioned problems, the utility model proposes an open and flexible all-digital ring-type bus numerical control system, relying on the way of industrial control main board + bus controller plug-in card, aiming at improving the expandability of the system.

为了实现上述目的,本实用新型首先构架了一套全数字环形总线式数控系统,包括主设备和从设备;主设备包括装有数控软件的上位机和总线控制器;所述从设备包括数字总线式伺服驱动器和PLC。主设备依次串接1-24个从设备并连接回主设备从而构成一个闭合环路,主设备和从设备之间通过以物理层和传输介质连接的链路传输数据,在正常工作状态下,数据单向传输。而本实用新型的数控系统其特点在于,上述总线控制器采用插卡式结构,通过主板上的总线接口与基于X86体系结构的主板相连,并与主板上的X86CPU交互通信。In order to achieve the above-mentioned purpose, the utility model first constructs a set of full-digital ring bus numerical control system, including master equipment and slave equipment; the master equipment includes a host computer and a bus controller equipped with numerical control software; type servo drive and PLC. The master device is serially connected with 1-24 slave devices and connected back to the master device to form a closed loop. The master device and the slave device transmit data through the link connected by the physical layer and the transmission medium. Under normal working conditions, Data is transmitted in one direction. And the numerical control system of the present utility model is characterized in that the above-mentioned bus controller adopts a plug-in card structure, is connected with the main board based on the X86 architecture through the bus interface on the main board, and communicates interactively with the X86CPU on the main board.

在上述基于全数字环形总线式通用型数控系统中,总线控制器的主板接口为PCI、PC104PLUS或者PCIE接口,优选方式下,选用PCI接口。In the above-mentioned universal numerical control system based on full-digital ring bus, the main board interface of the bus controller is PCI, PC104PLUS or PCIE interface. In the preferred mode, the PCI interface is selected.

在选用PCI接口的基础上,本实用新型基于全数字环形总线式通用型数控系统,其进一步改进在于,总线控制器包括电源管理模块、PC总线控制模块、总线协议解析模块、数据缓存区、连接物理层接口的物理层控制模块、机床数据存储区以及数控系统使能模块。其中,主板上的X86CPU通过PC总线控制模块将数据送到数据缓存区;总线协议解析模块访问数据缓存区,获得数据并将其转化为符合总线协议的指令,再通过物理层控制模块依靠物理层接口将数据发往从设备。来自从设备的反馈信息,依次通过所述物理层接口、物理层控制模块、总线协议解析模块送到数据缓存区;上位机通过PC总线控制模块访问数据缓存区获得数据。此外,机床数据存储区用于存储机床当前最新的配置数据,通过PC总线控制模块与上位机交互数据。On the basis of selecting the PCI interface, the utility model is based on an all-digital ring bus type universal numerical control system, and its further improvement is that the bus controller includes a power management module, a PC bus control module, a bus protocol analysis module, a data buffer area, a connection The physical layer control module of the physical layer interface, the machine tool data storage area and the CNC system enabling module. Among them, the X86CPU on the main board sends data to the data buffer area through the PC bus control module; the bus protocol analysis module accesses the data buffer area, obtains the data and converts it into an instruction conforming to the bus protocol, and then relies on the physical layer control module through the physical layer The interface sends data to the slave device. The feedback information from the slave device is sequentially sent to the data buffer area through the physical layer interface, the physical layer control module, and the bus protocol analysis module; the host computer accesses the data buffer area through the PC bus control module to obtain data. In addition, the machine tool data storage area is used to store the latest configuration data of the machine tool, and exchange data with the upper computer through the PC bus control module.

优选方式下,上述PCI总线控制模块、总线协议解析模块、物理层控制模块通过一个片上集成系统FPGA实现。此外,总线控制器在设置数据输出、输入接口的同时,还专门设置有一个直接连接机床键盘的接口。上述接口最好选用以太网物理层接口实现。In a preferred manner, the above-mentioned PCI bus control module, bus protocol analysis module, and physical layer control module are realized by an integrated system on chip FPGA. In addition, while the bus controller sets the data output and input interfaces, it also specially sets an interface directly connected to the machine tool keyboard. The above-mentioned interface is preferably realized by using an Ethernet physical layer interface.

通过上述技术方案,本实用新型基于全数字环形总线式通用型数控系统,在硬件方面具有如下突出特点:Through the above-mentioned technical scheme, the utility model is based on the all-digital ring bus general-purpose numerical control system, and has the following outstanding features in terms of hardware:

1、由于采用X86体系通用主板,具有较高的灵活性。1. Due to the adoption of the X86 system general motherboard, it has high flexibility.

2、成本低,通用主板由于出货量大,器件通用等原因比专用主板制造成本低的多。2. Low cost. Due to the large shipment volume and common components, the manufacturing cost of general-purpose motherboards is much lower than that of special-purpose motherboards.

3、可随意扩展内存,提高运行性能3. The memory can be expanded at will to improve the operating performance

4、由于现有的通用主板的CPU主频和综合性能的提高、以及复杂的多媒体指令集的支持,因此,该结构能够很好运行各种大型CAM/CAD软件,现场进行前期模拟加工和3D仿真,功能强大。4. Due to the improvement of CPU main frequency and comprehensive performance of the existing general-purpose motherboard, as well as the support of complex multimedia instruction sets, this structure can run various large-scale CAM/CAD software very well, and carry out pre-simulation processing and 3D on-site Simulation, powerful.

5、插卡式总线控制器,通用性和开放性好。5. Plug-in bus controller, good versatility and openness.

6、基于FPGA结构的总线控制器,以太网物理层作为输入、输出接口,不但可以支持目前功能强大的如SERCOS III,ProfiBus.Net等总线标准,更可以根据需要自行开发设计适合自己的总线标准,具有较强的扩展性能。6. The bus controller based on the FPGA structure, the Ethernet physical layer is used as the input and output interface, not only can support the current powerful bus standards such as SERCOS III, ProfiBus.Net, etc., but also can develop and design the bus standard suitable for itself according to the needs , with strong scalability.

7、为机床键盘单独分配对等总线接口,提高机床键盘的响应级别和时间,使系统操作更加快速可靠。7. Separately assign the peer-to-peer bus interface for the machine keyboard, improve the response level and time of the machine keyboard, and make the system operation faster and more reliable.

8、采用大容量设计的单片FPGA实现主板总线桥接功能、总线数据协议解析和对物理层控制,能满足不同协议的解析,不但支持SERCOS III,ProfiBus.Net协议,还可以自定义如基于以太网物理层的实时总线协议,进一步扩适用范围。8. The large-capacity designed single-chip FPGA is used to realize the mainboard bus bridging function, bus data protocol analysis and physical layer control, which can meet the analysis of different protocols. It not only supports SERCOS III, ProfiBus.Net protocol, but also can be customized such as based on Ethernet The real-time bus protocol of the network physical layer further expands the scope of application.

9、为完成复杂运算和精确的位置插补,本系统中可以配置数字总线式伺服驱动器,具有强大的运算处理能力并且内置了高速位置环控制算法,能够分析运行轨迹,估计速度位置运行曲线。9. In order to complete complex calculations and precise position interpolation, this system can be configured with a digital bus servo drive, which has powerful calculation processing capabilities and a built-in high-speed position loop control algorithm, which can analyze the running track and estimate the speed and position running curve.

附图说明Description of drawings

图1是现有技术选用模拟量数据实现的一种数控系统拓扑结构示意图;Fig. 1 is a schematic diagram of a numerical control system topology structure realized by selecting analog data in the prior art;

图2是现有技术一种数字脉冲式数控系统拓扑结构示意图;Fig. 2 is a schematic diagram of the topology structure of a digital pulse type numerical control system in the prior art;

图3是现有技术一种总线式数控系统拓扑结构示意图;Fig. 3 is a schematic diagram of the topology structure of a bus type numerical control system in the prior art;

图4是本实用新型所涉及的一种全数字环形总线式数控系统的拓扑结构示意图;Fig. 4 is a schematic diagram of the topology of an all-digital ring bus type numerical control system involved in the present invention;

图5.是本实用新型一种实施例的示意图;Fig. 5. is the schematic diagram of an embodiment of the utility model;

图6是图5中总线控制器的原理结构图;Fig. 6 is a schematic structural diagram of the bus controller in Fig. 5;

图7是实现本实用新型数控系统的数据传输线的组成示意图;Fig. 7 is the composition schematic diagram that realizes the data transmission line of the numerical control system of the present invention;

图8是在本实用新型数控系统的一种实施例中实现的循环时序示意图;Fig. 8 is a schematic diagram of the cycle sequence realized in an embodiment of the numerical control system of the present invention;

图9是与图8同一实施例中实现的数据结构图;Fig. 9 is a data structure diagram realized in the same embodiment as Fig. 8;

图10是与图9同一实施例中实现的写入部分数据组织结构图;Fig. 10 is a data organization structure diagram of the writing part realized in the same embodiment as Fig. 9;

图11是与图9同一实施例中实现的读出部分数据组织结构图。Fig. 11 is a data organization structure diagram of the read part realized in the same embodiment as Fig. 9 .

具体实施方式Detailed ways

如图4所示一种全数字环形总线式数控系统的拓扑结构,这种结构,在申请人同日提交的中国专利申请“一种总线式数控系统及其控制方法”中予以描述。本实用新型是在上述申请的基础上,做了进一步的限定和完善,旨在提高此类全数字环形总线式数控系统的扩展性。因此上述申请通过引用结合于本文,将更有助于理解本实用新型的要点和特性。As shown in Figure 4, the topology structure of an all-digital ring bus numerical control system is described in the Chinese patent application "A bus numerical control system and its control method" submitted by the applicant on the same day. The utility model is further defined and perfected on the basis of the above application, aiming at improving the expansibility of this kind of all-digital ring bus type numerical control system. Therefore, the above-mentioned applications are incorporated herein by reference, which will be more helpful for understanding the gist and characteristics of the present utility model.

为此,下文先对此类数控系统作以详述。To this end, this type of numerical control system will be described in detail below.

为了实现此类数控系统,可以在物理层和数据链路层两个方面定义一种传输协议或直接选用当前流行的协议如,主要内容包括:拓扑结构、数据传输线的组成、信号编码格式、电报结构、工作时序、非周期性数据传输、接口初始化、周期数据的配置和传输、伺服装置运行模式的设置以及故障诊断和处理等。在此,本文提供一种可行方案,旨在示意性的表示本实用新型所需的协议结构,而本实用新型的保护范围并非限定在此协议结构上。结合具体情况,协议的定义会发生变化。In order to realize this kind of numerical control system, a transmission protocol can be defined in two aspects of the physical layer and the data link layer, or the current popular protocol can be directly selected. For example, the main contents include: topology, data transmission line composition, signal encoding format, telegraph Structure, working sequence, non-periodic data transmission, interface initialization, configuration and transmission of periodic data, setting of servo device operation mode, fault diagnosis and treatment, etc. Here, this article provides a feasible solution, which is intended to schematically represent the protocol structure required by the utility model, and the protection scope of the utility model is not limited to the protocol structure. Depending on the specific circumstances, the definition of the agreement will change.

1、物理层1. Physical layer

物理层位于通信系统的最低层,是整个通讯的基础,为设备之间的数据通讯提供传输媒介(电缆、光纤等)及互联设备(插头、插座等),为数据传输提供通路,负责数据传输及相关的管理工作。系统的物理层协议主要定义了拓扑结构、数据传输线的组成和信号编码格式等。The physical layer is located at the lowest layer of the communication system and is the basis of the entire communication. It provides transmission media (cables, optical fibers, etc.) and interconnection devices (plugs, sockets, etc.) for data communication between devices, provides access for data transmission, and is responsible for data transmission. and related management work. The physical layer protocol of the system mainly defines the topology, the composition of the data transmission line and the signal encoding format.

2、拓扑结构2. Topology

系统使用环路结构作为最基本的拓扑,环路由主、从设备和传输线组成,每个环路只有一个主设备,其余都为从设备。各设备之间通过以太网物理层连接的链路传输数据,数据在传输线上单向流动。The system uses a ring structure as the most basic topology. The ring is composed of masters, slaves and transmission lines. Each ring has only one master and the rest are slaves. The data is transmitted between the devices through the link connected by the Ethernet physical layer, and the data flows in one direction on the transmission line.

如图4所示,主设备(包括总线控制器)和从设备(包括全数字总线式伺服控制器)的连接形式。一个主设备可以带多个从设备,目前设计最大可连如环路的从设备为24个,留有可扩展余地。As shown in Figure 4, the connection form of the master device (including the bus controller) and the slave device (including the full digital bus servo controller). A master device can have multiple slave devices. Currently, the maximum number of slave devices that can be connected as a loop is 24, leaving room for expansion.

注意:虽然各个从设备之间是通过5类双绞线互联的,但是各个从设备之间不能直接进行数据通讯,从设备只能接收主设备的命令和数据以及根据相应命令作出相应的反应并返回数据。各个从设备的地址,按照链路上的连接顺序依次由低到高排列。Note: Although the slave devices are interconnected through Category 5 twisted-pair wires, data communication cannot be performed directly between the slave devices. The slave devices can only receive commands and data from the master device and make corresponding responses according to the corresponding commands. return data. The address of each slave device is arranged from low to high according to the connection sequence on the link.

3、数据传输线的组成3. The composition of the data transmission line

以以太网物理层为例,具体到单条数据传输线,共由3部分组成。正向发送端的以太网物理层芯片,接收到上位控制芯片发送过来的标准数据,将该数据转化成串行数据进行传送,如图7所示,正向数据和反向数据同时发送,在从设备没有出现故障的情况下,只使用正向数据进行数据传送,当遇到断线或者其他从设备不能通信的故障的时候,反向数据起到回传数据,形成闭环作用,以供处理故障使用。Taking the Ethernet physical layer as an example, a single data transmission line consists of three parts. The Ethernet physical layer chip at the forward sending end receives the standard data sent by the upper control chip, and converts the data into serial data for transmission. As shown in Figure 7, the forward data and reverse data are sent at the same time. When there is no fault in the device, only the forward data is used for data transmission. When encountering a disconnection or other faults that cannot communicate with the slave device, the reverse data plays the role of returning data to form a closed loop for troubleshooting use.

4、信号编码格式4. Signal encoding format

与所采用的物理层传输介质和协议有关,目前支持以太网物理层,1394物理层,USB物理层。采用以太网物理层为例:在物理层完成4B-5B码制转换,5类双绞线上实现差分曼彻斯特编码传输。It is related to the physical layer transmission medium and protocol adopted, and currently supports Ethernet physical layer, 1394 physical layer, and USB physical layer. Take the Ethernet physical layer as an example: 4B-5B code system conversion is completed on the physical layer, and differential Manchester coded transmission is realized on category 5 twisted pair lines.

5、电报基本结构5. Basic structure of telegram

在系统接口中,所有的数据都是以数据电报的形式进行传输。具体情况如下所述。At the system interface, all data is transmitted in the form of data telegrams. The details are as follows.

5.1传输协议的循环时序结构5.1 Cyclic timing structure of transmission protocol

由图8可以看出一个协议的循环由2次有间隔的数据发送组成:962字节的数据帧、8字节的快速字节帧。其中,962字节的数据帧功能包括主设备发给从设备的命令以及从设备返回的数据。8字节快速字节帧的功能包括主设备发送的命令和数据的同步使能,即指示命令执行的信息。It can be seen from Figure 8 that a cycle of a protocol consists of 2 data transmissions with intervals: 962-byte data frame and 8-byte fast byte frame. Among them, the data frame function of 962 bytes includes the command sent by the master device to the slave device and the data returned by the slave device. The function of the 8-byte fast byte frame includes the synchronization enable of the command and data sent by the master device, that is, the information indicating the execution of the command.

具体帧结构描述如下:The specific frame structure is described as follows:

962(962=2+40×24)字节数据帧以16进制AA,BB作为起始字节,之后跟随24个从设备的命令和数据帧,每个设备分配40个字节空间。962 (962=2+40×24) byte data frame starts with hexadecimal AA and BB, followed by 24 commands and data frames from slave devices, and each device allocates 40 bytes of space.

5.2从设备数据结构5.2 Slave device data structure

如图9所示从设备数据共分配40字节空间,其中前16字节是来自主设备的写入数据,后24字节是返回到主设备的数据。写入数据部分数据组织结构如图10所示,读出部分数据组织结构如图11所示。As shown in Figure 9, the slave device data allocates a total of 40 bytes of space, of which the first 16 bytes are written data from the master device, and the last 24 bytes are data returned to the master device. The data organization structure of the write data part is shown in Figure 10, and the data organization structure of the read part is shown in Figure 11.

6、接口初始化和从设备的初始配置6. Interface initialization and initial configuration of the slave device

上电后所有从设备的基地址都将置为F8H。为了避免地址冲突,所有从设备以环形形式连接,也就是说配置前上位机只能访问第一个从设备。After power on, the base address of all slave devices will be set to F8H. In order to avoid address conflicts, all slave devices are connected in a ring form, that is to say, the host computer can only access the first slave device before configuration.

配置的第一步是识别从设备,上位机访问第一个从设备,若上位机读取了正确的标识码。然后上位机给该从设备重新分配基地址。配置后该从设备在向下一级传输的信号中作以标志,以便下一个从设备根据这个标志进行配置,而后依次完成后续的从设备初始配置。The first step of configuration is to identify the slave device, the host computer accesses the first slave device, if the host computer reads the correct identification code. Then the host computer reassigns the base address to the slave device. After configuration, the slave device marks it in the signal transmitted to the next level, so that the next slave device can be configured according to this mark, and then complete the initial configuration of subsequent slave devices in turn.

7、数控系统协议的工作时序7. Working sequence of CNC system protocol

如图8所示一个循环的时序结构,长数据帧的接收开始的头字节为16进制数据AA和BB,然后是第0个设备的第0个字节(从设备编号从0开始),以第2号从设备(物理地址是02)为例,在这个从设备传递转发数据的过程中,对当前传递的数据量进行计数。当计数到2*40+2=82(52 HEX)时,开始接收(复制,但是同时转发)数据,计数到82+24=106(6A HEX)时,停止接收,开始向数据流填充数据,边填充边转发。计数到106+24=138时,自身填充转发结束,继续传递转发其他设备数据,直到数据流结束。As shown in Figure 8, a cycle timing structure, the first byte of the reception of the long data frame is the hexadecimal data AA and BB, and then the 0th byte of the 0th device (the device number starts from 0) , taking the No. 2 slave device (the physical address is 02) as an example, during the process of transferring and forwarding data from the slave device, the amount of data currently transferred is counted. When counting to 2*40+2=82 (52 HEX), start receiving (copying, but forwarding) data at the same time, when counting to 82+24=106 (6A HEX), stop receiving, and start filling data into the data stream, Fill while forwarding. When the count reaches 106+24=138, the self-filling and forwarding ends, and the transmission and forwarding of other device data continues until the end of the data flow.

然后主设备发送一个8字节的快速字节帧,从设备接收到开始标志之后,开始计数;收到这个字节帧中对应于自己位置的命令数据,锁定(使能)长数据帧传过来的数据,并执行相应操作。Then the master device sends an 8-byte fast byte frame, and the slave device starts counting after receiving the start flag; after receiving the command data corresponding to its own position in this byte frame, it locks (enables) the long data frame and transmits it data and perform corresponding operations.

长数据帧和快速帧操作都结束,完成一个循环。Both long data frame and fast frame operations end, completing a cycle.

8、故障诊断和处理8. Fault diagnosis and treatment

本系统的协议定义了专门的数据位对系统电源电压异常,编码器断线,链路断路,通信数据错误,伺服装置报警,PLC报警等,进行相应的检测和处理。The protocol of this system defines special data bits for corresponding detection and processing of abnormal system power supply voltage, encoder disconnection, link disconnection, communication data error, servo device alarm, PLC alarm, etc.

根据上述描述,本实用新型所涉及的这类总线式数控系统,可以归纳如下:According to the above description, this type of bus type numerical control system involved in the utility model can be summarized as follows:

该系统包括装有数控软件的上位机1、全数字伺服驱动器3、电机4以及可编程序控制器PLC。上位机和总线控制器构成主设备;从设备包括伺服驱动器和PLC。伺服驱动器向电机发送驱动信号,同时电机通过线路将位置检测装置反馈的信号送回伺服驱动器。本实用新型数控系统的特点在于,主设备依次串接多个从设备并最终连接回主设备从而构成一个闭合环路,而主设备和从设备之间通过以物理层和传输介质连接的链路传输数据。信息的传输过程中,主设备仅向与之直接连接的第一级从设备发出主信息,这个主信息包括与所有从设备相关的信息,如命令信息、数据信息以及触发某一级从设备执行命令的信息。而且主信息将根据串接从设备的顺序仅能够依次单向传送到各个从设备。相应地,某一级从设备接收、响应主信息中与之相关的信息并给出反馈信息;各个从设备的反馈信息根据串接从设备的顺序依次单向通过下级每一个从设备转发回主设备。上述数据通信只在主设备和从设备之间进行,传输过程中从设备只接收主设备对自身的命令和操作数据并进行处理,对其他从设备的数据只进行转发,不进行处理,从设备之间不进行单独数据交换。The system includes a host computer 1 equipped with numerical control software, a full digital servo drive 3, a motor 4 and a programmable controller PLC. The host computer and the bus controller constitute the main equipment; the slave equipment includes servo drive and PLC. The servo driver sends a driving signal to the motor, and at the same time, the motor sends the feedback signal from the position detection device back to the servo driver through the line. The feature of the numerical control system of the present invention is that the master device is sequentially connected with multiple slave devices and finally connected back to the master device to form a closed loop, and the master device and the slave devices are connected through a link connected by a physical layer and a transmission medium. transfer data. During the transmission of information, the master device only sends master information to the first-level slave devices directly connected to it. This master information includes information related to all slave devices, such as command information, data information, and triggering a certain level of slave devices to execute command information. Moreover, the master information can only be transmitted to each slave device sequentially and one-way according to the sequence of the slave devices connected in series. Correspondingly, a slave device of a certain level receives and responds to the information related to it in the main information and gives feedback information; the feedback information of each slave device is forwarded back to the master through each slave device of the lower level one-way according to the sequence of the serial connection of the slave devices. equipment. The above data communication is only carried out between the master device and the slave device. During the transmission process, the slave device only receives and processes the master device's own commands and operation data, and only forwards the data of other slave devices without processing them. There is no separate data exchange between them.

上文说明了基于全数字环形总线式数控系统的一种代表性实施例,下文将针对本实用新型的要点作以详述。A representative embodiment of the numerical control system based on the all-digital ring bus has been described above, and the main points of the utility model will be described in detail below.

概括的说,本实用新型的改进在于——总线控制器与主板的连接方式,即,总线控制器2为插卡式结构(如图5所示),通过主板上的总线接口与基于X86体系结构的主板相连,并与主板上的X86CPU通信。In a nutshell, the improvement of the present utility model lies in the connection mode between the bus controller and the main board, that is, the bus controller 2 is a plug-in card structure (as shown in Figure 5), and the bus interface on the main board is connected with the main board based on the X86 system. The motherboard of the structure is connected and communicates with the X86CPU on the motherboard.

由于上位机主板采用通用X86体系结构,因此和下位机通信的总线控制器必须设计成遵循通用主板接口标准的插卡式结构。插卡式结构和主板之间实现通信的方式有多种,该设计适用于目前诸多流行的主板总线接口,比如PCI、PC104PLUS、PCIE,最好选用PCI接口。这些总线都具有速度高,带宽大的特点,能够满足数控控制的需要。Since the main board of the upper computer adopts the general X86 architecture, the bus controller communicating with the lower computer must be designed as a plug-in card structure following the interface standard of the general main board. There are many ways to realize the communication between the plug-in structure and the motherboard. This design is suitable for many popular motherboard bus interfaces, such as PCI, PC104PLUS, and PCIE. It is best to choose the PCI interface. These buses have the characteristics of high speed and wide bandwidth, which can meet the needs of numerical control.

总线控制器可以根据需要设计如上文的协议,或SERCOS III、ProfiBus实时串行现场总线协议。该总线控制器可以以目前流行和通用的各种主板板上协议与数控软件之间完成插补数据,实际位置反馈数据,数控系统状态控制数据,数控系统状态反馈数据,数控系统配置数据,PLC控制数据,系统状态反馈数据的通信。The bus controller can design the protocol as above, or SERCOS III, ProfiBus real-time serial field bus protocol according to the needs. The bus controller can complete interpolation data, actual position feedback data, CNC system state control data, CNC system state feedback data, CNC system configuration data, PLC Communication of control data and system status feedback data.

而上述的X86CPU,其CPU的主要功能是进行运算和逻辑运算,其物理结果包括逻辑运算单元、控制单元和存储单元组成。在逻辑运算和控制单元中包括一些寄存器,这些寄存器用于CPU在处理数据过程中数据的暂时保存。CPU和主板上的桥接芯片之间通信,通过桥接芯片访问内存,外部总线上的器件,并与之交换数据,完成各项需要的功能。在数控系统中,主要完成操作系统的运行和管理,数控软件的运行、控制和管理。在实现本实用新型数控系统的数控软件中,X86体系的CPU主板主要完成了如下的控制和管理功能:人机界面的显示和管理,内嵌PLC软件程序管理,配置系统,参数管理,数据库管理,NC程序编辑和解释,通信管理;运动控制,过程控制,逻辑控制,任务调度,轴控制。As for the above-mentioned X86CPU, the main function of its CPU is to perform calculation and logical operation, and its physical result includes a logical operation unit, a control unit and a storage unit. Some registers are included in the logic operation and control unit, and these registers are used for temporary storage of data during CPU processing data. The CPU communicates with the bridge chip on the motherboard, accesses the memory and devices on the external bus through the bridge chip, and exchanges data with them to complete various required functions. In the numerical control system, it mainly completes the operation and management of the operating system, and the operation, control and management of the numerical control software. In realizing the numerical control software of the numerical control system of the present invention, the CPU mainboard of the X86 system mainly completes the following control and management functions: display and management of man-machine interface, embedded PLC software program management, configuration system, parameter management, database management , NC program editing and interpretation, communication management; motion control, process control, logic control, task scheduling, axis control.

如图6所示,总线控制器总的来说包含以下几个模块:As shown in Figure 6, the bus controller generally includes the following modules:

1、PC总线控制模块621. PC bus control module 62

主要根据采用的主板总线类型,将上位机发送过来的插补数据,数控系统配置数据,PLC控制数据等数据解析并按照既定格式放到高速数据缓存区,等待数控总线协议部分进行读取;同时从该高速数据缓存区读取上个总线插补周期返回的系统状态实际位置反馈数据,数控系统状态控制数据,数控系统状态反馈数据,系统状态反馈数据并将这些数据通过主板总线接口反馈给上位运动控制软件。优选方式下,选用PCI接口,因此可将PC总线控制模块称为PCI总线控制模块62。Mainly according to the main board bus type used, the interpolation data sent by the upper computer, the CNC system configuration data, the PLC control data and other data are analyzed and placed in the high-speed data buffer area according to the established format, waiting for the CNC bus protocol to be read; at the same time Read the system status actual position feedback data, CNC system status control data, CNC system status feedback data, and system status feedback data returned by the last bus interpolation cycle from the high-speed data buffer area, and feed these data back to the host through the main board bus interface Motion Control Software. In a preferred manner, the PCI interface is selected, so the PC bus control module can be called the PCI bus control module 62 .

2、数控总线协议解析模块632. CNC bus protocol analysis module 63

主要将从高速数据缓冲区读取来的数据进行格式转换,配置到实时数控总线的报文中去,并发送给下位的从设备;并把从从设备反馈的数据按照既定格式存放到高速缓存区,等待上位机总线读取。Mainly convert the format of the data read from the high-speed data buffer, configure it into the message of the real-time CNC bus, and send it to the lower slave device; and store the data fed back from the slave device in the cache according to the predetermined format area, waiting for the host computer bus to read.

3、高速缓存区613. Cache area 61

这个部分主要由高速存储器组成,该部分主要用来交换高速插补和PLC控制数据,以及位置数据反馈,还有其他状态信息。This part is mainly composed of high-speed memory, which is mainly used to exchange high-speed interpolation and PLC control data, as well as position data feedback, and other status information.

4、物理层控制模块644. Physical layer control module 64

主要完成物理层芯片的控制,将并行的实时总线协议数据转化成高速实时串行总线协议数据,并把该数据发送到总线网络上去;同时接收总线网络反馈的高速实时串行数据并把它们转化成并行数据送给数控总线协议解析部分。It mainly completes the control of the physical layer chip, converts the parallel real-time bus protocol data into high-speed real-time serial bus protocol data, and sends the data to the bus network; at the same time, it receives the high-speed real-time serial data fed back by the bus network and converts them Parallel data is sent to the CNC bus protocol analysis part.

5、物理层接口685. Physical layer interface 68

主要负责并行数据到串行数据的相互转化、发送、接收。优选方式下,本控制器物理层基于100M以太网物理层,传输介质为5类双绞线,接口采用以太网物理层接口RJ-45,并设计了严格的差错控制。It is mainly responsible for the mutual conversion, sending and receiving of parallel data to serial data. In the preferred mode, the physical layer of the controller is based on the 100M Ethernet physical layer, the transmission medium is a Category 5 twisted pair, the interface adopts the Ethernet physical layer interface RJ-45, and strict error control is designed.

6、数控系统使能模块656. CNC system enabling module 65

其功能主要是加强系统的可靠性和安全性。在可靠性方面主要考虑数控系统的状态是否正常,是否出现故障。安全性方面主要针对数控系统的操作人员是否存在潜在危险。除需要检测主设备、从设备电源的情况外,还要检测上位机软、硬件两方面的运行情况,以及检测从设备各个部分的情况。因此,信息的传送方式为:1、依次通过物理层接口、物理层控制模块、总线协议解析模块接收来自从设备的数据;2、通过所述PC总线控制模块接收来自上位机的数据。当上位机和从设备检测都通过时,使能模块65直接通过接口发出伺服系统使能信号。同时,该模块还能在检测状态下,对检测的强电设备,发出切断电源的信号。从而本模块便于机床的设计者更好的提高数控机床体系的可靠性和安全性。Its function is mainly to enhance the reliability and security of the system. In terms of reliability, it mainly considers whether the state of the numerical control system is normal and whether there is a failure. In terms of safety, it is mainly aimed at whether there are potential dangers for the operator of the CNC system. In addition to detecting the power supply of the master device and the slave device, it is also necessary to detect the operation of the software and hardware of the upper computer, as well as the conditions of each part of the slave device. Therefore, the information transmission method is: 1. Receive data from the slave device through the physical layer interface, the physical layer control module, and the bus protocol analysis module in sequence; 2. Receive data from the host computer through the PC bus control module. When both the host computer and the slave device pass the detection, the enabling module 65 directly sends a servo system enabling signal through the interface. At the same time, the module can also send a signal to cut off the power supply to the detected high-voltage equipment in the detection state. Therefore, this module is convenient for the designer of the machine tool to better improve the reliability and safety of the CNC machine tool system.

7、机床数据存储区677. Machine data storage area 67

主要存储机床当前最新的配置数据。It mainly stores the latest configuration data of the machine tool.

图中还表示了必要的电源管理模块66为常规模块不再予以赘述。The figure also shows that the necessary power management module 66 is a conventional module and will not be repeated here.

工作时,主板上的X86CPU通过PC总线控制模块将数据送到数据缓存区;总线协议解析模块63访问数据缓存区61,获得数据并将其转化为符合总线协议的指令,再通过物理层控制模块64依靠物理层接口68将数据发往从设备。During work, the X86CPU on the main board sends data to the data buffer area through the PC bus control module; the bus protocol analysis module 63 accesses the data buffer area 61, obtains the data and converts it into an instruction conforming to the bus protocol, and then passes the physical layer control module 64 relies on the physical layer interface 68 to send data to the slave device.

而上述的总线控制器的硬件实现方法形式多样,只要能遵守上述模块的功能即可。可以采用如下方案:主板总线桥和DSP结合的方式、主板总线桥和ARM结合的方式、主板总线桥和高速单片机结合的方式、主板总线桥和FPGA结合的方式、主板总线转换芯片和定制的协议控制器的方式、采用FPGA单片实现主板总线桥和数控总线协议转换的方式。However, the hardware implementation methods of the above-mentioned bus controller are various, as long as the functions of the above-mentioned modules can be complied with. The following schemes can be used: the combination of mainboard bus bridge and DSP, the combination of mainboard bus bridge and ARM, the combination of mainboard bus bridge and high-speed microcontroller, the combination of mainboard bus bridge and FPGA, the mainboard bus conversion chip and customized protocol The way of the controller, the way of using FPGA single chip to realize the conversion of the motherboard bus bridge and the numerical control bus protocol.

基于实时、灵活、高速和可扩展性的考虑,由于FPGA编程的灵活性,本实用新型总线控制器优选了大容量片上集成系统FPGA实现PCI总线控制模块62、总线协议解析模块63、物理层控制模块64,通过硬件描述语言的编程,可以被灵活的设计出总线协议(自定义),SERCOS III,ProfiBus.Net总线协议的控制器,而无需改变硬件设计。Based on real-time, flexible, high-speed and scalability considerations, due to the flexibility of FPGA programming, the bus controller of the present utility model has preferably selected a large-capacity on-chip integrated system FPGA to realize PCI bus control module 62, bus protocol analysis module 63, physical layer control Module 64 can be flexibly designed with bus protocol (custom), SERCOS III, and ProfiBus.Net bus protocol controllers without changing the hardware design through the programming of the hardware description language.

此外,机床键盘是作为一个标准PLC设备进行控制,这个PLC和数控系统软件的软PLC管理程序之间遵循数控系统支持的总线,通过上述总线控制器实现实时通信。由于机床键盘对响应速度要求比较高,因此在本实用新型使用的总线控制器上针对这一方面做了特殊设计,为机床键盘预留一个单独的总线接口,并为该接口设计最高的响应和处理的优先级,保证机床键盘和上位机之间的数据交互的实时性。因此如图6所示,物理层接口68至少包括用于数据发送的接口、数据返回的接口和用于直接连接机床键盘的物理层接口。In addition, the machine tool keyboard is controlled as a standard PLC device. The PLC and the soft PLC management program of the CNC system software follow the bus supported by the CNC system, and realize real-time communication through the above-mentioned bus controller. Because the machine tool keyboard requires relatively high response speed, a special design has been made for this aspect on the bus controller used in the utility model, and a separate bus interface is reserved for the machine tool keyboard, and the interface is designed with the highest response and The priority of processing ensures the real-time nature of data interaction between the machine tool keyboard and the host computer. Therefore, as shown in FIG. 6 , the physical layer interface 68 at least includes an interface for sending data, an interface for returning data, and a physical layer interface for directly connecting the machine tool keyboard.

以上所述,仅为本实用新型较佳的具体实施方式,但本实用新型的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本实用新型披露的技术范围内,根据本实用新型的技术方案及其实用新型构思加以等同替换或改变,都应涵盖在本实用新型的保护范围之内。The above is only a preferred embodiment of the utility model, but the scope of protection of the utility model is not limited thereto. The equivalent replacement or change of the new technical solution and the concept of the utility model shall be covered by the protection scope of the utility model.

Claims (7)

1, a kind of based on full digital ring bus formula general numerical control system, comprise main equipment and slave unit; Described main equipment comprises host computer (1) and the bus controller (2) that numerical control software is housed; Described slave unit comprises number bus formula servo-driver (3) and PLC, it is characterized in that, thereby described main equipment is connected in series 1-24 slave unit successively and connects back main equipment and constitutes a closed circuit, the link transmission data by being connected with transmission medium with Physical layer between described main equipment and the slave unit; In normal operation, data one-way transmission;
Wherein, described host computer (1) adopts the universal architecture mainboard, and described bus controller (2) is the card insert type structure, links to each other with mainboard based on the X86 architecture by the bus interface on the mainboard, and communicates by letter with X86CPU on the described mainboard.
2, according to claim 1ly it is characterized in that based on full digital ring bus formula general numerical control system the mainboard interface that is used for described bus controller (2) is PCI, PC104PLUS or PCIE interface.
3, according to claim 1ly it is characterized in that based on full digital ring bus formula general numerical control system the mainboard interface of described bus controller (2) is a pci interface.
4, according to claim 3ly it is characterized in that based on full digital ring bus formula general numerical control system,
Described bus controller (2) comprises power management module (66), PC bus control module, bus protocol analysis module (63), data buffer area (61), connects Physical layer control module (64), lathe data storage area (67) of physical layer interface (68);
Wherein, the X86CPU on the described mainboard delivers to described data buffer area (61) by described PC bus control module with data; Described bus protocol analysis module (63) is visited described data buffer area (61), obtains data and is translated into the instruction that meets bus protocol, relies on physical layer interface (68) that data are mail to slave unit by described Physical layer control module (64) again;
From the feedback information of slave unit, deliver to described data buffer area (61) by described physical layer interface (68), Physical layer control module (64), bus protocol analysis module (63) successively; Host computer is visited described data buffer area (61) by PC bus control module (62) and is obtained data;
Described lathe data storage area (67) is used to store the current up-to-date configuration data of lathe, by described PC bus control module (62) and host computer interaction data.
5, according to claim 4 based on full digital ring bus formula general numerical control system, it is characterized in that described pci bus control module (62), bus protocol analysis module (63), Physical layer control module (64) realize by on-chip integration system FPGA.
6, according to claim 5ly it is characterized in that based on full digital ring bus formula general numerical control system described physical layer interface (68) is the ethernet physical layer interface.
7, according to claim 6 based on full digital ring bus formula general numerical control system, it is characterized in that described physical layer interface (68) comprises interface, interface that data are returned and the ethernet physical layer interface that is used for directly being connected machine tool keyboard that is used for the data transmission.
CN200720010119.2U 2007-01-15 2007-01-15 Universal digital-controlled system based on digital ring bus Expired - Fee Related CN200997073Y (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200720010119.2U CN200997073Y (en) 2007-01-15 2007-01-15 Universal digital-controlled system based on digital ring bus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200720010119.2U CN200997073Y (en) 2007-01-15 2007-01-15 Universal digital-controlled system based on digital ring bus

Publications (1)

Publication Number Publication Date
CN200997073Y true CN200997073Y (en) 2007-12-26

Family

ID=38995508

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200720010119.2U Expired - Fee Related CN200997073Y (en) 2007-01-15 2007-01-15 Universal digital-controlled system based on digital ring bus

Country Status (1)

Country Link
CN (1) CN200997073Y (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101943893A (en) * 2010-09-30 2011-01-12 上海创洁科技有限公司 Master-slave equipment communication control system capable of resisting electromagnetic interference
CN102736597A (en) * 2012-06-13 2012-10-17 东莞广营电子科技有限公司 A system for controlling serial servos
CN105527918A (en) * 2015-12-11 2016-04-27 中山联合光电科技股份有限公司 Method for realizing one-way single-wire communication between two PLCs through I/O port
CN108255755A (en) * 2017-12-08 2018-07-06 天津津航计算技术研究所 PCIE functional universal communication interface modules based on FPGA

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101943893A (en) * 2010-09-30 2011-01-12 上海创洁科技有限公司 Master-slave equipment communication control system capable of resisting electromagnetic interference
CN102736597A (en) * 2012-06-13 2012-10-17 东莞广营电子科技有限公司 A system for controlling serial servos
CN105527918A (en) * 2015-12-11 2016-04-27 中山联合光电科技股份有限公司 Method for realizing one-way single-wire communication between two PLCs through I/O port
CN108255755A (en) * 2017-12-08 2018-07-06 天津津航计算技术研究所 PCIE functional universal communication interface modules based on FPGA
CN108255755B (en) * 2017-12-08 2020-03-27 天津津航计算技术研究所 PCIE general multifunctional communication interface module based on FPGA

Similar Documents

Publication Publication Date Title
CN112799992B (en) Fieldbus Chip Architecture
JP2021170311A (en) Ethercat master slave integration bridge controller and control method
CN100524122C (en) Bus controller for numerical control system of full digital ring bus
CN100504688C (en) Private chip for implementing bus controller function in ring bus numerical control system
CN201035392Y (en) A bus type numerical control system
CN113093658A (en) Multi-axis servo system architecture design method based on EtherCAT
CN101013316A (en) Bus-type numerical control system and control method thereof
CN101963808B (en) Implementation method of system supporting various field master protocols
CN101013315A (en) General numerical control system based on full digital ring bus
CN102710478A (en) Integration slave node device of Profibus-DP (profibus-data processing) and Modbus
CN202230355U (en) CAN (Controller Area Network) remote signal acquisition system for numerical control machine
CN200997073Y (en) Universal digital-controlled system based on digital ring bus
CN101047447B (en) Optical fiber-based point-to-point industrial serial real-time communication system and its control method
CN100594707C (en) Digital Communication Method of CNC System Based on Ethernet Technology
CN101013314A (en) Integrated numerical control system based on full digital ring bus
CN201860344U (en) System supporting various fieldbus protocols
CN204406186U (en) A kind of fieldbus controller
CN1169063C (en) Protocol conversion method between fieldbus and serial interface equipment
CN201000569Y (en) A dedicated chip to realize the function of the bus controller in the ring bus numerical control system
CN201000571Y (en) A Bus Type Numerical Control System Based on Optical Fiber Transmission
CN112822290A (en) Train network communication device, system and method
CN214014269U (en) Train network communication device and system
CN202093347U (en) Interface module for EtherCAT bus numerical control system
CN200997072Y (en) Bus controller for digital ring bus digital-controlled system
CN201054591Y (en) A point-to-point industrial serial real time communication system based on optical fiber

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20071226

Termination date: 20140115