CN102929194B - Asynchronous multi-core programmable automation controller (PAC) - Google Patents
Asynchronous multi-core programmable automation controller (PAC) Download PDFInfo
- Publication number
- CN102929194B CN102929194B CN201210438640.1A CN201210438640A CN102929194B CN 102929194 B CN102929194 B CN 102929194B CN 201210438640 A CN201210438640 A CN 201210438640A CN 102929194 B CN102929194 B CN 102929194B
- Authority
- CN
- China
- Prior art keywords
- interface
- chip
- synchronous
- mainboard
- circuit
- 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
Links
- 230000001360 synchronised effect Effects 0.000 claims abstract description 55
- 238000004891 communication Methods 0.000 claims abstract description 32
- 238000004088 simulation Methods 0.000 claims 2
- 238000002955 isolation Methods 0.000 description 13
- 238000010586 diagram Methods 0.000 description 7
- 230000003750 conditioning effect Effects 0.000 description 6
- 230000008901 benefit Effects 0.000 description 4
- 238000000034 method Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 2
- 206010042602 Supraventricular extrasystoles Diseases 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 239000008358 core component Substances 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Classifications
-
- Y02P80/114—
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
- Information Transfer Systems (AREA)
Abstract
本发明公开了一种异步多核可编程自动化控制器,包括模拟主板、I/O主板、运动控制主板、diagnose模块、同步调试器、自定义增强型SPI总线以及具有供电通讯装置及同步调试总线的底板;三块主板通过插针安装在具有供电通讯装置及同步调试总线的底板上;三个主板分别通过自定义增强型SPI总线相连;三个主板分别与diagnose模块相连接,diagnose模块与PC机相连;五块子板安装在其对应的主板上;同步调试器与PC机、三块主板分别相连。该自动化控制器通过多核异步工作,有效解决了单核处理器时钟频率难以提高、微处理器功耗较大的问题,并为解决控制系统的安全性、稳定性、降低软件开发难度等问题提供了一个良好的开端。
The invention discloses an asynchronous multi-core programmable automation controller, which includes an analog main board, an I/O main board, a motion control main board, a diagnose module, a synchronous debugger, a self-defined enhanced SPI bus, and a power supply communication device and a synchronous debugging bus. Bottom board; three main boards are installed on the bottom board with power supply communication device and synchronous debugging bus through pins; three main boards are respectively connected through self-defined enhanced SPI bus; three main boards are respectively connected to the diagnostic module, and the diagnostic module is connected to the PC connected; the five sub-boards are installed on their corresponding main boards; the synchronous debugger is connected to the PC and the three main boards respectively. The automation controller works asynchronously through multi-core, which effectively solves the problems of difficulty in increasing the clock frequency of single-core processors and high power consumption of microprocessors. off to a good start.
Description
技术领域 technical field
本发明属于工业自动化控制领域,具体涉及一种可编程自动化控制器(PAC),特别是一种异步多核可编程自动化控制器。 The invention belongs to the field of industrial automation control, in particular to a programmable automation controller (PAC), in particular to an asynchronous multi-core programmable automation controller. the
背景技术 Background technique
随着工业控制设备需求的增长,目前的控制系统越来越难以满足现代化的工业应用所需要的更多功能要求,为了满足现代工业控制系统应用所提出的各项要求,人们提出了可编程自动化控制器(PAC),可编程自动化控制器(PAC)正在逐渐取代可编程逻辑控制器(PLC),成为工控系统理想选择。然而,目前大部分PAC仍然采用PLC所使用的单一微处理器(MCU)的模式,使得控制系统的负荷很高,容易导致多任务系统下的实时性问题出现,因此,为了满足性能需求,通过集成更多核心来提高性能是必然选择,但是核心的结构也必须考虑,因为如果核心结构过于复杂,随着核心数量的增多,不仅不能提升性能,还会带来线延迟增加和功耗变大等问题,因而异构多核是一个重要的方向,将结构、功耗、功能、运算性能各不相同的多个核心集成在芯片上,并通过任务分工和划分将不同的任务分配给不同的核心,让每一个核心处理自己擅长的任务,这种异构组织方式比同构的多核处理器执行任务更有效率,实现了资源的最佳化配置,而且降低了整体功耗。异构多核的可编程自动化控制器将会取代单核处理器,解决微处理器的发展瓶颈,是将来工控系统必然的发展趋势,在未来一段时间之内,它将在处理器市场上占有很重要的统治地位,因此,研究一种用于工业控制系统的异构多核可编程自动化控制器是很有现实意义的,然而,目前常见的多核控制器是在一个集成芯片(IC)中集成多个运算单元核心,而且在使用异构多核的系统中,仍然采用OS进行任务调度,使整个系统的稳定性与安全性建立在OS上,同时单一硬件MCU也造成整个系统的冗余性缺失。 With the increasing demand for industrial control equipment, it is increasingly difficult for the current control system to meet the more functional requirements of modern industrial applications. In order to meet the requirements of modern industrial control system applications, people have proposed programmable automation Controller (PAC), Programmable Automation Controller (PAC) is gradually replacing Programmable Logic Controller (PLC), becoming an ideal choice for industrial control systems. However, at present, most PACs still use the single microprocessor (MCU) mode used by PLC, which makes the load on the control system very high, which easily leads to real-time problems in multi-tasking systems. Therefore, in order to meet the performance requirements, through Integrating more cores to improve performance is an inevitable choice, but the core structure must also be considered, because if the core structure is too complex, as the number of cores increases, not only will the performance not be improved, but the line delay will increase and power consumption will increase. Therefore, heterogeneous multi-core is an important direction, integrating multiple cores with different structures, power consumption, functions, and computing performance on the chip, and assigning different tasks to different cores through task division and division , so that each core handles the tasks that it is good at. This heterogeneous organization is more efficient than homogeneous multi-core processors to perform tasks, realizes the optimal allocation of resources, and reduces the overall power consumption. The heterogeneous multi-core programmable automation controller will replace the single-core processor and solve the development bottleneck of the microprocessor. It is an inevitable development trend of the industrial control system in the future. Therefore, it is of great practical significance to study a heterogeneous multi-core programmable automation controller for industrial control systems. However, the current common multi-core controller integrates multiple cores in an integrated chip (IC). In addition, in a heterogeneous multi-core system, the OS is still used for task scheduling, so that the stability and security of the entire system are built on the OS, and a single hardware MCU also causes the lack of redundancy of the entire system. the
发明内容 Contents of the invention
针对上述可编程逻辑控制器存在的缺陷或不足,本发明的目的在于,提出一种异步多核可编程自动化控制器,该自动化控制器通过多核异步工作,有效解决了单核处理器时钟频率难以提高、微处理器功耗较大的问题。并为解决控制系统的安全性、稳定性、降低软件开发难度等问题提供了一个良好的开端。 In view of the defects or deficiencies in the above-mentioned programmable logic controller, the purpose of the present invention is to propose an asynchronous multi-core programmable automation controller, which effectively solves the difficulty of increasing the clock frequency of a single-core processor through multi-core asynchronous work. , The problem of high power consumption of the microprocessor. And it provides a good start for solving the security, stability of the control system, reducing the difficulty of software development and so on. the
为了实现上述目的,本发明采用如下的技术解决方案: In order to achieve the above object, the present invention adopts the following technical solutions:
一种异步多核可编程自动化控制器,包括模拟主板、I/O主板、运动控制主板、diagnose 模块、同步调试器、自定义增强型SPI总线、具有供电通讯装置及同步调试总线的底板;模拟主板、I/O主板和运动控制主板这三块主板通过插针安装在具有供电通讯装置及同步调试总线的底板上;所述三个主板分别通过自定义增强型SPI总线相互连接;所述三个主板分别与diagnose模块相连接,所述diagnose模块是逻辑分析仪电平信号采集电路,用以实现三块主板上的电平信号采集,所述diagnose模块与PC机相连,用以实现对三块主板电平信号的显示;同步调试器与PC机、三块主板分别相连,用以实现三块主板的同步调试。 An asynchronous multi-core programmable automation controller, including an analog main board, an I/O main board, a motion control main board, a diagnose module, a synchronous debugger, a custom enhanced SPI bus, a base board with a power supply communication device and a synchronous debugging bus; an analog main board The three main boards, the I/O main board and the motion control main board, are installed on the base plate with a power supply communication device and a synchronous debugging bus through pins; the three main boards are connected to each other through a self-defined enhanced SPI bus; the three Main board is connected with diagnose module respectively, and described diagnose module is logic analyzer level signal acquisition circuit, in order to realize the level signal acquisition on three main boards, and described diagnose module is connected with PC, in order to realize three Mainboard level signal display; the synchronous debugger is connected to the PC and the three mainboards respectively to realize the synchronous debugging of the three mainboards.
本发明还包括如下其他技术特征: The present invention also includes following other technical features:
所述控制器还包括有五块子板(7),所述五块子板(7)安装在其对应的主板上,用以对三块主板分别进行功能扩展;所述五块子板包括DAC接口扩展电路、ADC接口扩展电路、I/O接口扩展电路、步进电机控制接口扩展电路和编码器接口扩展电路,其中,DAC接口扩展电路和ADC接口扩展电路与模拟主板相连接;I/O接口扩展电路与I/O主板相连接;步进电机控制接口扩展电路和编码器接口扩展电路与运动控制主板相连接。 The controller also includes five sub-boards (7), and the five sub-boards (7) are installed on their corresponding main boards to expand the functions of the three main boards respectively; the five sub-boards include DAC interface expansion circuit, ADC interface expansion circuit, I/O interface expansion circuit, stepper motor control interface expansion circuit and encoder interface expansion circuit, wherein, the DAC interface expansion circuit and ADC interface expansion circuit are connected with the analog motherboard; The O interface expansion circuit is connected with the I/O main board; the stepper motor control interface expansion circuit and the encoder interface expansion circuit are connected with the motion control main board.
所述自定义增强型SPI总线包括12条信号线,分别是:数据线和时钟线:包括SPI_SCK、SPI_MISO、SPI_MOSI;片选信号线:包括NSS0、NSS1、NSS2、NSS3、SPI_NSS;中断信号线:包括IT0、IT1、IT2、IT3。 The self-defined enhanced SPI bus includes 12 signal lines, which are: data lines and clock lines: including SPI_SCK, SPI_MISO, SPI_MOSI; chip select signal lines: including NSS0, NSS1, NSS2, NSS3, SPI_NSS; interrupt signal lines: Including IT0, IT1, IT2, IT3. the
所述同步调试器包括USB接口、STM32芯片和STM8SL05芯片。其中,USB接口、STM32芯片和STM8SL05芯片依次相连接;由STM32芯片上的UART1和STM8SL05芯片上的5条GPIO线与GND线共同组成同步调试器接口Debugger1;由STM32芯片上的UART2和STM8SL05芯片上的5条GPIO线与GND线共同组成同步调试器接口Debugger2;由STM32芯片上的UART3和STM8SL05芯片上的5条GPIO线与GND线共同组成同步调试器接口Debugger3;由STM8SL05芯片上的5条GPIO线、GND线与UART共同组成同步调试器接口Debugger4;Debugger1、Debugger2、Debugger3分别与三块主板上的下载调试接口JTAG相连;PC机通过USB接口连接同步调试器,PC机通过同步调试器上的同步调试器接口Debugger1、Debugger2、Debugger3与三块主板上的下载调试接口JTAG分别相连。 The synchronous debugger includes a USB interface, an STM32 chip and an STM8SL05 chip. Among them, the USB interface, the STM32 chip and the STM8SL05 chip are connected in turn; the UART1 on the STM32 chip and the 5 GPIO lines on the STM8SL05 chip and the GND line together form a synchronous debugger interface Debugger1; the UART2 on the STM32 chip and the STM8SL05 chip The 5 GPIO lines and the GND line together form the synchronous debugger interface Debugger2; the UART3 on the STM32 chip and the 5 GPIO lines on the STM8SL05 chip and the GND line together form the synchronous debugger interface Debugger3; the 5 GPIO lines on the STM8SL05 chip Line, GND line and UART together form the debugger interface Debugger4; Debugger1, Debugger2, Debugger3 are respectively connected to the download debugging interface JTAG on the three motherboards; the PC is connected to the synchronous debugger through the USB interface, and the PC is The synchronous debugger interfaces Debugger1, Debugger2, and Debugger3 are respectively connected to the downloading and debugging interfaces JTAG on the three main boards. the
本发明的异步多核可编程自动化控制器的优点如下: The advantage of asynchronous multi-core programmable automation controller of the present invention is as follows:
1、每块主板都带有不同工作频率或者相同频率的微控制器MCU,这是本发明多核结构与异步工作的具体体现,除此之外,每块主板上还都带有各自独立的用于支持分布式控制或实时控制的现场总线、RS485接口、USB串口通信、下载调试接口JTAG、用于异步通信的通用串行数据总线UART 和SPI总线接口等相同的接口通信模块以及各自自身的功能模块。从而保证了每个主板自身独立与异步的工作。比如在工作过程中只用到模拟主板,那就仅仅需要使用Diagnose模块采集并分析模拟主板中的信号,于是通过软件编程仅选择模拟主板进行工作即可满足控制工作需要,无需三个主板全部投入工作,降低了功耗,提高了自动化控制器的执行效率和系统安全性。以上为异步多核的优点。 1. Each main board has a microcontroller MCU with different operating frequency or the same frequency, which is a concrete embodiment of the multi-core structure and asynchronous work of the present invention. The same interface communication modules as the field bus supporting distributed control or real-time control, RS485 interface, USB serial communication, download debugging interface JTAG, universal serial data bus UART and SPI bus interface for asynchronous communication, and their own functions module. In this way, each motherboard can work independently and asynchronously. For example, if only the analog motherboard is used in the work process, it is only necessary to use the Diagnose module to collect and analyze the signals in the analog motherboard. Therefore, only the analog motherboard can be selected to work through software programming to meet the needs of the control work, without the need for all three motherboards to be invested. Work, reduce power consumption, improve the execution efficiency and system security of the automation controller. The above are the advantages of asynchronous multi-core.
2、三块主板与同步调试器构成了自组织重构系统,使本发明的异步多核可编程自动化控制器具有可重构性和可编程性,大大提高了多核的通用性和运算性能,使处理器既有了通用微处理器的通用性,又有单一多核芯片系统的高性能,兼具灵活性、高性能、高可靠性、低能耗等优点。以上为自组织重构系统的优点。 2. Three main boards and a synchronous debugger constitute a self-organizing reconfiguration system, which makes the asynchronous multi-core programmable automation controller of the present invention have reconfigurability and programmability, greatly improves multi-core versatility and computing performance, and enables The processor not only has the versatility of a general-purpose microprocessor, but also has the high performance of a single multi-core chip system, and has the advantages of flexibility, high performance, high reliability, and low energy consumption. The above are the advantages of the self-organizing reconstruction system. the
3、自定义增强型SPI总线克服了现有SPI总线仅仅可以单向通讯的缺点,三块主板之间通过增强型SPI总线构成一个整体,实现彼此之间的相互通讯。在工作过程中,从机可以通过中断信号线中断主机的信号,将自身设置为主机,从而三块主板之间可以互为主机或者从机,而且在任意时刻只有一块主板作为主机,其他主板只能作为从机,通过中断信号线实现了主机与从机相互中断的响应式通讯连接。 3. The self-defined enhanced SPI bus overcomes the shortcomings of the existing SPI bus that can only communicate in one direction. The three main boards form a whole through the enhanced SPI bus to realize mutual communication with each other. During the working process, the slave can interrupt the signal of the master by interrupting the signal line, and set itself as the master, so that the three main boards can be the master or the slave of each other, and at any time only one main board is the master, and the other main boards only It can be used as a slave, and the responsive communication connection between the master and the slave is realized through the interrupt signal line. the
4、具有供电通讯装置及同步调试总线的底板是本发明不可缺少的一部分,主要有供电装置与同步调试总线组成。五块子板按照各自对应的扩展接口通过插针安装在三块主板上,三块主板通过插针安装在具有供电通讯装置及同步调试总线的底板上;需要时,同步调试器与三块主板相连,不需要时,同步调试器独立存在。通过底板上的供电装置对三块主板供电,实现三块主板、五块子板以及同步调试器之间的相互连接与通讯。 4. The backplane with the power supply communication device and the synchronous debugging bus is an indispensable part of the present invention, mainly composed of the power supply device and the synchronous debugging bus. The five sub-boards are installed on the three main boards through the pins according to their corresponding expansion interfaces, and the three main boards are installed on the bottom board with the power supply communication device and the synchronous debugging bus through the pins; when necessary, the synchronous debugger and the three main boards connected, the synchronous debugger exists independently when not needed. Power is supplied to the three main boards through the power supply device on the bottom board, so as to realize the mutual connection and communication among the three main boards, five sub-boards and the synchronous debugger. the
附图说明 Description of drawings
图1为本发明的异步多核可编程自动化控制器结构示意图。图中各标号:1、模拟主板;2、I/O主板;3、运动控制主板;4、Diagnose模块;5、同步调试器;6、自定义增强型SPI总线;7、五块子板。 Fig. 1 is a schematic structural diagram of an asynchronous multi-core programmable automation controller of the present invention. The labels in the figure: 1. Analog main board; 2. I/O main board; 3. Motion control main board; 4. Diagnose module; 5. Synchronous debugger; 6. Custom enhanced SPI bus; 7. Five sub-boards. the
图2为模拟主板的结构示意图。图中各标号:8、现场总线CAN;9、RS485接口;10、USB串口;11、下载调试接口JTAG;12、通用串行数据总线UART;13、ADC模拟采集前端调理电路;14、D/A电路;15、模拟主板MCU;16、A/D电路;17、DAC数字后端调理电路;18、24排端子;19、2803芯片;20、继电器输出电路;21、外扩24插针;22、隔离数字输入输出电路;23、自定义增强型SPI接线端子;24、组态时通讯端子。 FIG. 2 is a schematic diagram of the structure of the analog motherboard. Each label in the figure: 8, field bus CAN; 9, RS485 interface; 10, USB serial port; 11, download debugging interface JTAG; 12, universal serial data bus UART; 13, ADC analog acquisition front-end conditioning circuit; 14, D/ A circuit; 15. Analog motherboard MCU; 16. A/D circuit; 17. DAC digital back-end conditioning circuit; 18. 24 rows of terminals; 19. 2803 chip; 20. Relay output circuit; 22. Isolated digital input and output circuits; 23. Custom enhanced SPI terminals; 24. Communication terminals during configuration. the
图3为I/O主板的结构示意图。图中各标号:25、现场总线(CAN);26、RS485接口;27、USB串口;28、下载调试接口JTAG;29、通用串行数据总线UART;30、组态通讯端子接口;31、外扩24插针;32、I/O主板MCU;33、4245芯片;34、输入光耦信号隔离电路;35、输入端子;36、4245芯片;37、输出光耦信号隔离电路;38、输出端子;39、24端子排;40、自定义增强型SPI接线端子;41、电源端子。 FIG. 3 is a schematic structural diagram of an I/O main board. Each label in the figure: 25, field bus (CAN); 26, RS485 interface; 27, USB serial port; 28, download debugging interface JTAG; 29, universal serial data bus UART; 30, configuration communication terminal interface; 31, external Expand 24 pins; 32. I/O motherboard MCU; 33. 4245 chip; 34. Input optocoupler signal isolation circuit; 35. Input terminal; 36. 4245 chip; 37. Output optocoupler signal isolation circuit; 38. Output terminal ; 39, 24 terminal blocks; 40, custom enhanced SPI terminals; 41, power terminals. the
图4为运动控制主板的结构示意图。图中各标号:42、现场总线(CAN);43、RS485接口;44、USB串口;45、下载调试接口JTAG;46、通用串行数据总线UART;47、组态通讯端子接口;48、外扩24插针;49、运动控制主板MCU;50、4245芯片;51、光耦信号隔离电路;52、单端转差分;53、4245芯片;54、光耦信号隔离电路;55、24端子排;56、自定义增强型SPI接线端子。 FIG. 4 is a schematic structural diagram of the motion control main board. Each label in the figure: 42, field bus (CAN); 43, RS485 interface; 44, USB serial port; 45, download debugging interface JTAG; 46, universal serial data bus UART; 47, configuration communication terminal interface; 48, external Expand 24 pins; 49, motion control mainboard MCU; 50, 4245 chip; 51, optocoupler signal isolation circuit; 52, single-ended to differential; 53, 4245 chip; 54, optocoupler signal isolation circuit; ; 56, custom enhanced SPI terminals. the
图5为三块主板与五块子板连接示意图。图中各标号:2、I/O主板;1、模拟主板;6、自定义增强型SPI总线;3、运动控制主板;57、DAC接口扩展电路;58、ADC接口扩展电路;59、I/O主板的接口扩展电路;60、步进电机控制接口扩展电路;61、编码器接口扩展电路。 FIG. 5 is a schematic diagram of connections between three main boards and five sub-boards. Each label in the figure: 2. I/O main board; 1. Analog main board; 6. Custom enhanced SPI bus; 3. Motion control main board; 57. DAC interface expansion circuit; 58. ADC interface expansion circuit; 59. I/O O main board interface expansion circuit; 60, stepping motor control interface expansion circuit; 61, encoder interface expansion circuit. the
图6为三块主板之间通过自定义增强型SPI总线连接的示意图。图中各标号为:6、增强型SPI总线、23、模拟主板1的增强型SPI接线端子;40、I/O主板2的增强型SPI接线端子;56、运动控制主板3的增强型SPI接线端子。 Fig. 6 is a schematic diagram of connection between three motherboards through a custom enhanced SPI bus. Each label in the figure is: 6, enhanced SPI bus, 23, enhanced SPI connection terminal of analog main board 1; 40, enhanced SPI connection terminal of I/O main board 2; 56, enhanced SPI connection of motion control main board 3 terminals. the
图7为同步调试器结构示意图。图中各标号:62、USB接口;63、STM32;64、STM32L05。 FIG. 7 is a schematic structural diagram of a synchronous debugger. Each label in the figure: 62, USB interface; 63, STM32; 64, STM32L05. the
以下结合附图和具体实施方式对本发明进一步的解释说明。 The present invention will be further explained below in conjunction with the accompanying drawings and specific embodiments. the
具体实施方式 Detailed ways
参见图1,本发明为异步多核可编程自动化控制器,包括模拟主板1、I/O主板2、运动控制主板3、Diagnose 模块4、同步调试器5、自定义增强型SPI总线6、五块子板7以及具有供电通讯装置及同步调试总线的底板; Referring to Fig. 1, the present invention is an asynchronous multi-core programmable automation controller, comprising an analog main board 1, an I/O main board 2, a motion control main board 3, a Diagnose module 4, a synchronous debugger 5, a self-defined enhanced SPI bus 6, and five Sub-board 7 and the bottom board with power supply communication device and synchronous debugging bus;
模拟主板1、I/O主板2和运动控制主板3通过插针安装在具有供电通讯装置及同步调试总线的底板上,通过具有供电通讯装置及同步调试总线的底板上的供电装置对三块主板供电。 The analog main board 1, the I/O main board 2 and the motion control main board 3 are installed on the bottom board with the power supply communication device and the synchronous debugging bus through pins, and the three main boards are connected through the power supply device on the bottom board with the power supply communication device and the synchronous debugging bus. powered by.
模拟主板1、I/O主板2和运动控制主板3通过自定义增强型SPI总线6相连接,三块主板之间同等级,通过自定义增强型SPI总线6实现主机与从机相互中断的响应式通讯连接,但在运行过程中的任意时刻,只有一块主板作为主机,其他主板作为从机。模拟主板1用于将采集到的数字信号通过DAC转换为模拟电压信号,并将输出的0到2.5V电压通过后向通道电路转换为正负10V,用于伺服电机模拟控制量。I/O主板2用于控制器各种开关量的输入输出。运动控制主板3用于实现步进电机的控制以及专用信号的输入(原点信号,正向限位、负向限位等专有信号的输入)。 The analog main board 1, the I/O main board 2 and the motion control main board 3 are connected through a custom enhanced SPI bus 6, and the three main boards are of the same level, and the mutual interrupt response between the master and the slave is realized through the custom enhanced SPI bus 6 communication connection, but at any time during the operation, only one main board acts as the master, and the other main boards act as slaves. The analog main board 1 is used to convert the collected digital signal into an analog voltage signal through DAC, and convert the output voltage from 0 to 2.5V to plus or minus 10V through the back channel circuit, which is used for servo motor analog control. The I/O main board 2 is used for input and output of various switch values of the controller. The motion control main board 3 is used to realize the control of the stepping motor and the input of special signals (origin signal, input of exclusive signals such as positive limit and negative limit). the
所述模拟主板1、I/O主板2和运动控制主板3这三块主板分别与diagnose模块4相连接;diagnose模块4是逻辑分析仪前期电平信号采集电路,用以对三块主板上的电平信号采集。diagnose模块4可以与PC机相连,将采集到的电平信号在PC机上显示。 These three main boards of described analog main board 1, I/O main board 2 and motion control main board 3 are connected with diagnose module 4 respectively; Level signal acquisition. The diagnose module 4 can be connected with a PC, and the collected level signal can be displayed on the PC. the
所述三块主板与同步调试器5构成自组织重构系统,使得本发明的控制器具有可重构性和可编程性,提高多核的通用性和运算性能。自组织重构系统是本发明的核心部件;Diagnose 模块4、自定义增强型SPI总线6和五块子板7是辅助模块,用于满足连接、通讯、接口扩展以及电平信号的采集。 The three main boards and the synchronous debugger 5 constitute a self-organizing reconfiguration system, so that the controller of the present invention has reconfigurability and programmability, and improves multi-core versatility and computing performance. Self-organizing reconstruction system is the core component of the present invention; Diagnose module 4, self-defined enhanced SPI bus 6 and five sub-boards 7 are auxiliary modules, which are used to meet the requirements of connection, communication, interface expansion and level signal collection. the
参见图2,所述模拟主板1包括现场总线8、RS485接口9、USB串口10、下载调试接口JTAG 11、通用串行数据总线UART 12、ADC模拟采集前端调理电路13、D/A 电路14、模拟主板MCU 15、A/D电路16、DAC数字后端调理电路17、24排端子18、2803芯片19、继电器输出电路20、外扩24插针21、隔离数字输入输出电路22、自定义增强型SPI接线端子23和组态时通讯端子24(三个主板并到一起,整体工作时为组态,整体工作时通过组态通讯端子24进行通讯;每一个单独的主板工作时为独立态,其独立工作的时候通过独立态通讯端子进行通讯);其中,所述现场总线8、RS485接口9、USB串口10、下载调试接口JTAG 11、通用串行数据总线UART 12、D/A电路14、A/D电路16、2803芯片19、外扩24插针21、隔离数字输入输出电路22、自定义增强型SPI接线端子23和组态时通讯端子24分别与模拟主板MCU 15相连接;所述A/D 电路16、DAC数字后端调理电路17、24排端子18、ADC模拟采集前端调理电路13和D/A电路14依次相连;所述2803芯片19与继电器输出电路20相连接。 Referring to Fig. 2, the analog motherboard 1 includes a field bus 8, an RS485 interface 9, a USB serial port 10, a download debugging interface JTAG 11, a universal serial data bus UART 12, an ADC analog acquisition front-end conditioning circuit 13, a D/A circuit 14, Analog motherboard MCU 15, A/D circuit 16, DAC digital back-end conditioning circuit 17, 24 rows of terminals 18, 2803 chip 19, relay output circuit 20, external expansion 24 pins 21, isolated digital input and output circuit 22, custom enhancement Type SPI connection terminal 23 and communication terminal 24 during configuration (the three main boards are put together, the overall work is configuration, and the overall work is communicated through the configuration communication terminal 24; each individual main board is in an independent state when working, When it works independently, it communicates through an independent communication terminal); wherein, the field bus 8, RS485 interface 9, USB serial port 10, download debugging interface JTAG 11, universal serial data bus UART 12, D/A circuit 14, A/D circuit 16, 2803 chip 19, external expansion 24 pins 21, isolated digital input and output circuit 22, self-defined enhanced SPI connection terminal 23 and communication terminal 24 are connected with analog motherboard MCU 15 respectively during configuration; A/D circuit 16, DAC digital rear-end conditioning circuit 17, 24 rows of terminals 18, ADC analog acquisition front-end conditioning circuit 13 and D/A circuit 14 are connected in sequence; the 2803 chip 19 is connected with the relay output circuit 20. the
参见图3,所述I/O主板2包括现场总线25、RS485接口26、USB串口27、下载调试接口JTAG28、通用串行数据总线UART29、组态通讯端子接口30、外扩24插针31、I/O主板MCU 32、4245芯片33、输入光耦信号隔离电路34、输入端子35、4245芯片36、输出光耦信号隔离电路37、输出端子38、24端子排39、自定义增强型SPI接线端子40和电源端子41;其中,所述现场总线25、RS485接口26、USB串口27、下载调试接口JTAG28、通用串行数据总线UART29、组态通讯端子接口30、外扩24插针31、4245芯片33、4245芯片36、24端子排39、自定义增强型SPI接线端子40、电源端子41分别与I/O主板MCU 32相连接;所述输入端子35、输入光耦信号隔离电路34和4245芯片33依次相连;所述4245芯片36、输出光耦信号隔离电路37、输出端子38依次相连。 Referring to Fig. 3, described I/O main board 2 comprises field bus 25, RS485 interface 26, USB serial port 27, download debugging interface JTAG28, universal serial data bus UART29, configuration communication terminal interface 30, external expansion 24 pins 31, I/O motherboard MCU 32, 4245 chip 33, input optocoupler signal isolation circuit 34, input terminal 35, 4245 chip 36, output optocoupler signal isolation circuit 37, output terminal 38, 24 terminal row 39, custom enhanced SPI wiring Terminal 40 and power supply terminal 41; Wherein, described field bus 25, RS485 interface 26, USB serial port 27, download debugging interface JTAG28, universal serial data bus UART29, configuration communication terminal interface 30, external expansion 24 pins 31,4245 Chip 33, 4245 chip 36, 24 terminal row 39, self-defined enhanced SPI connection terminal 40, power supply terminal 41 are connected with I/O motherboard MCU 32 respectively; Described input terminal 35, input optocoupler signal isolation circuit 34 and 4245 The chips 33 are connected in sequence; the 4245 chip 36, the output optocoupler signal isolation circuit 37, and the output terminal 38 are connected in sequence. the
参见图4,所述运动控制主板3包括现场总线42、RS485接口43、USB串口44、下载调试接口JTAG 45、通用串行数据总线UART 46、组态通讯端子接口47、外扩24插针48、运动控制主板MCU 49、4245芯片50、光耦信号隔离电路51、单端转差分52、4245芯片53、光耦信号隔离电路54、24端子排55和自定义增强型SPI接线端子56;其中,所述现场总线42、RS485接口43、USB串口44、下载调试接口JTAG 45、通用串行数据总线UART 46、组态通讯端子接口47、外扩24插针48、4245芯片50、4245芯片53、24端子排55和自定义增强型SPI接线端子56分别与运动控制主板MCU 49相连接;所述4245芯片50、光耦信号隔离电路51和单端转差分电路52依次相连;所述4245芯片53与光耦信号隔离电路54相连接;单端转差分电路52和光耦信号隔离电路54分别与24端子排55相连接。 Referring to Fig. 4, described motion control main board 3 comprises field bus 42, RS485 interface 43, USB serial port 44, download debugging interface JTAG 45, universal serial data bus UART 46, configuration communication terminal interface 47, external expansion 24 pins 48 , motion control mainboard MCU 49, 4245 chip 50, optocoupler signal isolation circuit 51, single-ended to differential conversion 52, 4245 chip 53, optocoupler signal isolation circuit 54, 24 terminal row 55 and custom enhanced SPI terminal 56; , the field bus 42, RS485 interface 43, USB serial port 44, download debugging interface JTAG 45, universal serial data bus UART 46, configuration communication terminal interface 47, external expansion 24 pins 48, 4245 chip 50, 4245 chip 53 , 24 terminal blocks 55 and self-defined enhanced SPI connection terminals 56 are connected to the motion control main board MCU 49 respectively; the 4245 chip 50, the optocoupler signal isolation circuit 51 and the single-ended to differential circuit 52 are connected successively; the 4245 chip 53 is connected to the optocoupler signal isolation circuit 54; the single-ended to differential circuit 52 and the optocoupler signal isolation circuit 54 are respectively connected to the 24 terminal block 55. the
参见图5,所述五块子板7包括DAC接口扩展电路57、ADC接口扩展电路58、I/O接口扩展电路59、步进电机控制接口扩展电路60和编码器接口扩展电路61。五块子板分别是三块主板的接口扩展电路,实现三块主板的接口扩展,用于连接和控制更多的外部设备。其中,DAC接口扩展电路57和ADC接口扩展电路58通过插针安装到模拟主板1上,作为模拟主板1的扩展接口; Referring to FIG. 5 , the five sub-boards 7 include a DAC interface expansion circuit 57 , an ADC interface expansion circuit 58 , an I/O interface expansion circuit 59 , a stepper motor control interface expansion circuit 60 and an encoder interface expansion circuit 61 . The five sub-boards are respectively the interface expansion circuits of the three main boards, which realize the interface expansion of the three main boards and are used to connect and control more external devices. Wherein, the DAC interface expansion circuit 57 and the ADC interface expansion circuit 58 are installed on the analog main board 1 through pins, as the expansion interface of the analog main board 1;
I/O接口扩展电路59通过插针安装到I/O主板2上,作为I/O主板2的扩展接口;步进电机控制接口扩展电路60和编码器接口扩展电路61通过插针安装到运动控制主板3上,作为运动控制主板3的扩展接口。 I/O interface expansion circuit 59 is installed on the I/O main board 2 by pin, as the expansion interface of I/O main board 2; Stepper motor control interface expansion circuit 60 and encoder interface expansion circuit 61 are installed on motion by pin On the control board 3, it serves as an expansion interface of the motion control board 3.
参见图6,所述自定义增强型SPI总线6包括12条信号线,分别是数据线和时钟线(包括SPI_SCK、SPI_MISO、SPI_MOSI)、片选信号线(包括NSS0、NSS1、NSS2、NSS3、SPI_NSS)和中断信号线(包括IT0、IT1、IT2、IT3),其中,数据线和时钟线用于从机与主机之间的信号通讯,片选信号线用于主机通过该信号线选择从机,中断信号线用于从机发送中断信号给主机,从而中断主机的信号,并将自身设置为主机,其他为从机,实现主机与从机相互中断的响应式通讯连接,这也是与现有SPI总线的区别所在。自定义增强型SPI总线6比传统的SPI总线多4条中断信号线与4条片选信号线。 Referring to Fig. 6, the self-defined enhanced SPI bus 6 includes 12 signal lines, which are data lines and clock lines (including SPI_SCK, SPI_MISO, SPI_MOSI), chip select signal lines (including NSS0, NSS1, NSS2, NSS3, SPI_NSS ) and interrupt signal lines (including IT0, IT1, IT2, IT3), among which, the data line and clock line are used for signal communication between the slave and the host, and the chip select signal line is used for the host to select the slave through this signal line, The interrupt signal line is used for the slave to send an interrupt signal to the host, thereby interrupting the signal of the host, and setting itself as the host, and the others as slaves, so as to realize the responsive communication connection between the host and the slave interrupting each other, which is also compatible with the existing SPI The difference between the bus. The custom enhanced SPI bus 6 has 4 more interrupt signal lines and 4 chip select signal lines than the traditional SPI bus. the
所述模拟主板1的自定义增强型SPI接线端子23、I/O主板2的自定义增强型SPI接线端子40、运动控制主板3的自定义增强型SPI接线端子56通过自定义增强型SPI总线6的12条信号线相连接。自定义增强型SPI接线端子满足自定义增强型SPI总线6的安装要求。 The self-defined enhanced SPI connection terminal 23 of the analog main board 1, the self-defined enhanced SPI connection terminal 40 of the I/O main board 2, the self-defined enhanced SPI connection terminal 56 of the motion control main board 3 through the self-defined enhanced SPI bus The 12 signal lines of 6 are connected. The custom enhanced SPI terminal blocks meet the installation requirements of the custom enhanced SPI bus 6. the
参见图7,所述同步调试器5主要包括USB接口62、STM32芯片63和STM8SL05芯片64。其中,USB接口62、STM32芯片63和STM8SL05芯片64依次相连接;由STM32芯片63上的UART1和STM8SL05芯片64上的5条GPIO线与GND线共同组成同步调试器接口Debugger1;由STM32芯片63上的UART2和STM8SL05芯片64上的5条GPIO线与GND线共同组成同步调试器接口Debugger2;由STM32芯片63上的UART3和STM8SL05芯片64上的5条GPIO线与GND线共同组成同步调试器接口Debugger3;由STM8SL05芯片64上的5条GPIO线、GND线与UART共同组成同步调试器接口Debugger4。 Referring to FIG. 7 , the synchronous debugger 5 mainly includes a USB interface 62 , an STM32 chip 63 and an STM8SL05 chip 64 . Among them, the USB interface 62, the STM32 chip 63 and the STM8SL05 chip 64 are connected in turn; the UART1 on the STM32 chip 63 and the five GPIO lines on the STM8SL05 chip 64 and the GND line together form a synchronous debugger interface Debugger1; The UART2 on the STM8SL05 chip 64 and the five GPIO lines on the STM8SL05 chip 64 and the GND line together form the synchronous debugger interface Debugger2; the UART3 on the STM32 chip 63 and the five GPIO lines on the STM8SL05 chip 64 and the GND line together form the synchronous debugger interface Debugger3 ; 5 GPIO lines, GND lines and UART on the STM8SL05 chip 64 form a synchronous debugger interface Debugger4. the
同步调试器接口Debugger1、Debugger2、Debugger3分别与三块主板上的下载调试接口JIAG相连,PC机与同步调试器5的USB接口62相连,并通过USB接口78传输数据给STM32芯片63和STM8SL05芯片64。因此,PC机通过同步调试器5上的Debugger1、 Debugger2 、Debugger3与三块主板上的下载调试接口JIAG分别相连,实现三块主板的同步调试。需要进行下载调试时,同步调试器(5)与三块主板相连接,不需要时,同步调试器(5)可独立存在。 The synchronous debugger interfaces Debugger1, Debugger2, and Debugger3 are respectively connected to the download debugging interface JIAG on the three motherboards, and the PC is connected to the USB interface 62 of the synchronous debugger 5, and transmits data to the STM32 chip 63 and the STM8SL05 chip 64 through the USB interface 78 . Therefore, the PC is respectively connected to the download and debugging interface JIAG on the three main boards through the Debugger1, Debugger2 and Debugger3 on the synchronous debugger 5 to realize the synchronous debugging of the three main boards. When downloading and debugging is required, the synchronous debugger (5) is connected to the three main boards, and when not needed, the synchronous debugger (5) can exist independently. the
同步调试器接口Debugger4为多出的一个同步调试接口,用于主板的扩展。 Synchronous debugger interface Debugger4 is an additional synchronous debugging interface, which is used for the expansion of the mainboard. the
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210438640.1A CN102929194B (en) | 2012-11-06 | 2012-11-06 | Asynchronous multi-core programmable automation controller (PAC) |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210438640.1A CN102929194B (en) | 2012-11-06 | 2012-11-06 | Asynchronous multi-core programmable automation controller (PAC) |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102929194A CN102929194A (en) | 2013-02-13 |
CN102929194B true CN102929194B (en) | 2014-09-17 |
Family
ID=47644023
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210438640.1A Expired - Fee Related CN102929194B (en) | 2012-11-06 | 2012-11-06 | Asynchronous multi-core programmable automation controller (PAC) |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102929194B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103744342B (en) * | 2014-01-22 | 2016-09-14 | 大连理工计算机控制工程有限公司 | A kind of PAC real-time control system based on dual core processor |
CN109766292A (en) * | 2019-01-23 | 2019-05-17 | 济南浪潮高新科技投资发展有限公司 | A kind of jtag interface multiplexing functions circuit |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090210070A1 (en) * | 2007-11-13 | 2009-08-20 | Schultz Ronald E | Industrial controller using shared memory multicore architecture |
CN101840368A (en) * | 2010-03-26 | 2010-09-22 | 中国科学院计算技术研究所 | JTAG (Joint Test Action Group) real-time on-chip debug method and system of multicore processor |
CN102103535A (en) * | 2011-03-07 | 2011-06-22 | 北京大学深圳研究生院 | Multicore processor, and system and method for debugging multicore processor |
CN202975731U (en) * | 2012-11-06 | 2013-06-05 | 长安大学 | Novel asynchronous multiple nuclear automation controller |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009054083A (en) * | 2007-08-29 | 2009-03-12 | Hitachi Ltd | Processor, data transfer unit and multi-core processor system |
-
2012
- 2012-11-06 CN CN201210438640.1A patent/CN102929194B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090210070A1 (en) * | 2007-11-13 | 2009-08-20 | Schultz Ronald E | Industrial controller using shared memory multicore architecture |
CN101840368A (en) * | 2010-03-26 | 2010-09-22 | 中国科学院计算技术研究所 | JTAG (Joint Test Action Group) real-time on-chip debug method and system of multicore processor |
CN102103535A (en) * | 2011-03-07 | 2011-06-22 | 北京大学深圳研究生院 | Multicore processor, and system and method for debugging multicore processor |
CN202975731U (en) * | 2012-11-06 | 2013-06-05 | 长安大学 | Novel asynchronous multiple nuclear automation controller |
Non-Patent Citations (2)
Title |
---|
多核处理器系统设计;杨东芳;《郑州铁路职业技术学院学报》;20090320(第1期);28-30 * |
杨东芳.多核处理器系统设计.《郑州铁路职业技术学院学报》.2009,(第1期),28-30. |
Also Published As
Publication number | Publication date |
---|---|
CN102929194A (en) | 2013-02-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105425681B (en) | A multifunctional communication interface data diagnosis and signal driver card | |
CN202486575U (en) | Numerical control machine tool control interface device using EtherCAT bus | |
CN203376909U (en) | Novel microcomputer principle and interface experiment system based on FPGA | |
CN108549330A (en) | A kind of multi-shaft interlocked built-in digital control system and its development approach | |
JP2024546343A (en) | Server and its server management system | |
CN102088384A (en) | Standardized multifunctional LXI (LAN based extensions for instrumentation) equipment | |
CN102929194B (en) | Asynchronous multi-core programmable automation controller (PAC) | |
CN202975731U (en) | Novel asynchronous multiple nuclear automation controller | |
CN107370651B (en) | Communication method between SPI slave machines | |
CN103064477B (en) | Method for designing server motherboard | |
CN204989875U (en) | Restructural test instrument based on FPGA | |
CN111060807B (en) | High-speed integrated circuit test platform based on SoC and test method thereof | |
CN206282173U (en) | Mainboard based on FT 1500A chips of soaring | |
CN216310777U (en) | Deep computing processor board and interconnection system of deep computing processor board | |
CN211653642U (en) | Multitask input/output interface | |
CN211653643U (en) | Interface conversion circuit, chip and electronic equipment | |
CN207008014U (en) | A kind of test board of server logic Control card | |
CN111781866B (en) | Reconfigurable testing and sending control computer module group based on FPGA | |
CN211979512U (en) | Unmanned aerial vehicle flight control system | |
CN212543794U (en) | Information conversion equipment based on modular design | |
CN105243829B (en) | Portable analog meter module | |
CN201111724Y (en) | Embedded Priority Signal Controller for BRT | |
CN206601595U (en) | Electric monitoring platform based on multiprocessor | |
CN201628975U (en) | IIC memory card read-write device with SPI interface | |
CN103645723A (en) | Locomotive traction control unit hardware platform |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20140917 Termination date: 20161106 |
|
CF01 | Termination of patent right due to non-payment of annual fee |