[go: up one dir, main page]

CN108153276A - DCS performance testing devices and method based on SOPC - Google Patents

DCS performance testing devices and method based on SOPC Download PDF

Info

Publication number
CN108153276A
CN108153276A CN201711312215.7A CN201711312215A CN108153276A CN 108153276 A CN108153276 A CN 108153276A CN 201711312215 A CN201711312215 A CN 201711312215A CN 108153276 A CN108153276 A CN 108153276A
Authority
CN
China
Prior art keywords
module
data
dcs
cpu module
bus
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.)
Pending
Application number
CN201711312215.7A
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.)
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Jiangxi Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Jiangxi Electric Power 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 State Grid Corp of China SGCC, Electric Power Research Institute of State Grid Jiangxi Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201711312215.7A priority Critical patent/CN108153276A/en
Publication of CN108153276A publication Critical patent/CN108153276A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

本发明公开了一种基于SOPC的DCS的性能测试装置及方法,涉及电力系统的测试设备领域。装置包括CPU模件、CAN接口;以及通过PLB高速外围接口与CPU模件连接的SOE信号输出模件;以及通过所述CAN接口经CAN总线与CPU模件连接的以下四个模件中的至少一个模件:模拟量采集模件、数字量采集模件、键相采集模件、模拟量输出模件,其中,所述四个模件中的至少一个模件与所述SOE信号输出模件通过底板互联。方法包括数据采集控制、内部总线数据交换和处理的步骤;以及提供可视化的组态配置、数据监视和分析、实现CAN网驱动和数据驱动的步骤。装置涵盖了DCS的主要性能指标测试,可用于对DCS进行通道精度测试、通道校验、冗余切换测试、通道防抖动测试以及SOE功能测试。

The invention discloses a SOPC-based DCS performance test device and method, and relates to the field of test equipment for power systems. The device includes a CPU module, a CAN interface; and an SOE signal output module connected to the CPU module through the PLB high-speed peripheral interface; and at least one of the following four modules connected to the CPU module through the CAN bus through the CAN interface One module: an analog quantity acquisition module, a digital quantity acquisition module, a key phase acquisition module, and an analog quantity output module, wherein at least one module in the four modules is related to the SOE signal output module interconnected via the backplane. The method includes the steps of data acquisition control, internal bus data exchange and processing; and the steps of providing visualized configuration configuration, data monitoring and analysis, and realizing CAN network driving and data driving. The device covers the main performance index test of DCS, and can be used for channel accuracy test, channel verification, redundancy switching test, channel anti-jitter test and SOE function test for DCS.

Description

基于SOPC的DCS性能测试装置及方法SOPC-based DCS performance testing device and method

技术领域technical field

本发明涉及一种电力电子系统的性能测试设备,尤其是对电力电子行业的DCS进行性能测试的装置及方法。The invention relates to performance testing equipment of a power electronic system, in particular to a device and a method for performance testing of a DCS in the power electronics industry.

背景技术Background technique

DCS(集散控制系统)是发电厂重要的控制系统,担负着发电机组过程控制的任务,DCS的可靠性直接影响机组的运行安全。由于DCS是典型的电力电子系统,随着投运时间的增长,可靠性将逐步下降,给机组运行带来安全隐患。DCS性能指标测试包括DCS通道精度测试、通道校验、冗余切换测试、通道防抖测试以及SOE(Sequence Of Event, 时间顺序记录)功能测试等;目前,还没有针对DCS性能指标进行综合测试的便携式仪器设备,而分别通过采用模拟量采集/输出设备、开关量采集/输出设备、高频信号输出设备等多种设备同时进行测试,不仅不方便携带,而且多个设备很难实现数据的同步采集、仿真输出和测试,容易造成数据的误差和失真,影响DCS的性能评估。DCS (Distributed Control System) is an important control system of a power plant, which is responsible for the process control task of the generating set. The reliability of DCS directly affects the operating safety of the generating set. Since DCS is a typical power electronic system, its reliability will gradually decline with the increase of the operation time, which will bring safety hazards to the operation of the unit. DCS performance index test includes DCS channel accuracy test, channel verification, redundancy switching test, channel anti-shake test and SOE (Sequence Of Event, time sequence recording) function test, etc.; currently, there is no comprehensive test for DCS performance index Portable instruments and equipment, but it is not only inconvenient to carry, but also it is difficult for multiple devices to achieve data synchronization Acquisition, simulation output and testing can easily cause data errors and distortions, affecting the performance evaluation of DCS.

发明内容Contents of the invention

针对以上问题,本发明提供了一种基于SOPC(System-on-a-Programmable-Chip,即可编程片上系统)的DCS性能测试装置,该装置可克服以上的缺点,集成了数据采集、高频信号输出、信号分析、设备监测等多个领域的技术,具有高速数据处理、高速总线、高速信号采集处理和高速SOE信号测试功能,从而实现对DCS的性能指标测试和评估。For the above problems, the present invention provides a DCS performance testing device based on SOPC (System-on-a-Programmable-Chip, i.e. System-on-a-Programmable-Chip), which can overcome the above shortcomings and integrate data acquisition, high-frequency Signal output, signal analysis, equipment monitoring and other fields of technology, with high-speed data processing, high-speed bus, high-speed signal acquisition and processing and high-speed SOE signal test functions, so as to realize the performance index test and evaluation of DCS.

一种基于SOPC的DCS性能测试装置,包括CPU模件、CAN接口;以及通过PLB高速外围接口与CPU模件连接的SOE信号输出模件;以及通过所述CAN接口经CAN总线与CPU模件连接的以下四个模件中的至少一个模件:模拟量采集模件、数字量采集模件、键相采集模件、模拟量输出模件,其中,所述四个模件中的至少一个模件与所述SOE信号输出模件通过底板互联。A DCS performance testing device based on SOPC, comprising a CPU module, a CAN interface; and an SOE signal output module connected to the CPU module through the PLB high-speed peripheral interface; and connected to the CPU module through the CAN bus through the CAN interface At least one of the following four modules: analog acquisition module, digital acquisition module, key phase acquisition module, analog output module, wherein at least one of the four modules The component is interconnected with the SOE signal output module through the backplane.

进一步地,所述DCS性能测试装置还包括通过串口与CPU模件连接的对时单元,所述对时单元包括GPS信号接收器,以及与GPS信号接收器连接的GPS天线。Further, the DCS performance testing device further includes a time synchronization unit connected to the CPU module through a serial port, the time synchronization unit includes a GPS signal receiver, and a GPS antenna connected to the GPS signal receiver.

进一步地,所述CPU模件包括一块SOPC芯片,和通过OPB(片上外围总线)与所述SOPC芯片连接的片上外围扩展部分,以及为所述SOPC芯片和所述片上外围扩展部分产生时钟的时钟器,所述片上外围扩展部分包括采集控制逻辑单元、控制寄存器、数据缓存RAM块和时间计数器。Further, the CPU module includes an SOPC chip, and an on-chip peripheral expansion part connected to the SOPC chip through an OPB (on-chip peripheral bus), and a clock that generates clocks for the SOPC chip and the on-chip peripheral expansion part The on-chip peripheral expansion part includes an acquisition control logic unit, a control register, a data cache RAM block and a time counter.

进一步地,所述模拟量采集模件用来采集1-5V电压或4-20MA直流信号,包括依次连接的V/I转换器、抗混叠滤波器、运算放大器、A/D转换器和数字隔离单元,其中,数字隔离单元通过CAN总线连接CPU模件。Further, the analog acquisition module is used to acquire 1-5V voltage or 4-20MA DC signal, including sequentially connected V/I converters, anti-aliasing filters, operational amplifiers, A/D converters and digital An isolation unit, wherein the digital isolation unit is connected to the CPU module through the CAN bus.

进一步地,所述数字量采集模件主要用来采集现场数字开关量信号,包括依次连接的高速光耦隔离单元、放大整形电路、脉冲计数单元和数据锁存电路,其中的数据锁存电路通过CAN总线连接CPU模件。Further, the digital quantity acquisition module is mainly used to acquire on-site digital switching quantity signals, including a high-speed optocoupler isolation unit, an amplification and shaping circuit, a pulse counting unit and a data latch circuit connected in sequence, wherein the data latch circuit passes through The CAN bus is connected to the CPU module.

进一步地,所述键相采集模件主要用来采集转速信号,包括依次连接的高频滤波器、电平比较单元、电平变化单元、高速光耦隔离单元和数据锁存电路,其中的数据锁存电路通过CAN总线连接CPU模件。Further, the key-phase acquisition module is mainly used to acquire the rotational speed signal, including a high-frequency filter, a level comparison unit, a level change unit, a high-speed optocoupler isolation unit and a data latch circuit connected in sequence, wherein the data The latch circuit is connected to the CPU module through the CAN bus.

进一步地,所述模拟量输出模件用来仿真输出1-5V电压或4-20MA直流信号,包括依次连接的数字隔离单元、D/A转换器、放大整形电路和I/V转换器,其中的数字隔离单元通过CAN总线与前述的CPU模件相连。Further, the analog output module is used to simulate and output 1-5V voltage or 4-20MA DC signal, including digital isolation units, D/A converters, amplification and shaping circuits and I/V converters connected in sequence, wherein The digital isolation unit is connected with the aforementioned CPU module through the CAN bus.

进一步地,所述SOE信号输出模件用来仿真输出高速开关量信号。包括通过PLB高速数据交换总线与CPU模件相连的数字隔离电路,以及依次连接所述数字隔离电路的放大整形电路和电平变化单元。Further, the SOE signal output module is used to simulate and output high-speed switching signal. It includes a digital isolation circuit connected to the CPU module through a PLB high-speed data exchange bus, and an amplification and shaping circuit and a level change unit sequentially connected to the digital isolation circuit.

进一步地,所述CPU模件通过USB扩展口与上位机连接,实现进行数据交换,通过VGA和RS232接口连接外设,实现与用户的人机数据传输。Further, the CPU module is connected with the host computer through the USB extension port to realize data exchange, and connected with the peripheral devices through the VGA and RS232 interfaces to realize the human-machine data transmission with the user.

本发明还提供了一种基于SOPC的DCS性能测试方法,包括:数据采集控制、内部总线数据交换和处理的步骤,所述数据采集控制、内部总线数据交换和处理的步骤是基于硬件编程语言实现的;以及提供可视化的组态配置、数据监视和分析、实现CAN网驱动和数据驱动的步骤,所述提供可视化的组态配置、数据监视和分析功能以及实现CAN网驱动和数据驱动的步骤是基于嵌入式操作系统,利用MiniGUI图形环境的界面,采用C语言进行设计的。The present invention also provides a DCS performance testing method based on SOPC, comprising: the steps of data acquisition control, internal bus data exchange and processing, and the steps of data acquisition control, internal bus data exchange and processing are realized based on hardware programming language and the steps of providing visual configuration configuration, data monitoring and analysis, and realizing CAN network driving and data driving, the steps of providing visual configuration configuration, data monitoring and analysis functions, and realizing CAN network driving and data driving are Based on the embedded operating system, using the interface of the MiniGUI graphical environment, it is designed with C language.

本发明可以完成DCS性能指标的测试,为发电机组安全稳定运行提供保障。装置涵盖了DCS的主要性能指标测试,可用于对DCS进行通道精度测试、通道校验、冗余切换测试、通道防抖动测试以及SOE功能测试等,和现有的性能测试装置相比,本发明提出的DCS性能测试装置具有以下优点:①具有模拟量信号高速采集、数字量信号高速采集、键相信号采集、高频信号仿真输出以及信号分析处理功能。②通过统一的时钟脉冲可以实现各种类型信号的同步采样和仿真输出,便于在一个坐标系下对数据进行分析和处理。③高度集成的单芯片处理大大提高了装置的稳定性和抗干扰能力,系统灵活,功能可升级可扩展。④和传统的嵌入式设计方案相比,采用SOPC的软硬件协同设计方案,不仅节约了成本,而且减少了电路板的面积,从而缩小了装置的体积,提高了便携性。The invention can complete the test of the DCS performance index and provide guarantee for the safe and stable operation of the generating set. The device covers the main performance index test of DCS, and can be used for channel accuracy test, channel verification, redundancy switching test, channel anti-jitter test and SOE function test for DCS. Compared with the existing performance test device, this The DCS performance testing device proposed by the invention has the following advantages: ① It has the functions of high-speed acquisition of analog signals, high-speed acquisition of digital signals, key-phase signal acquisition, high-frequency signal simulation output, and signal analysis and processing functions. ② Synchronous sampling and simulation output of various types of signals can be realized through a unified clock pulse, which facilitates data analysis and processing in one coordinate system. ③Highly integrated single-chip processing greatly improves the stability and anti-interference ability of the device, the system is flexible, and the functions can be upgraded and expanded. ④Compared with the traditional embedded design scheme, the software-hardware collaborative design scheme using SOPC not only saves the cost, but also reduces the area of the circuit board, thereby reducing the volume of the device and improving portability.

附图说明Description of drawings

下面结合附图和实施例对本发明进一步说明。The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

图1为本发明的结构示意图;Fig. 1 is a structural representation of the present invention;

图2为CPU模件的结构示意图;Fig. 2 is the structural representation of CPU module;

图3为模拟量采集模件的结构示意图;Fig. 3 is the structural representation of analog quantity acquisition module;

图4为数字量采集模件的结构示意图;Fig. 4 is the structural representation of digital quantity acquisition module;

图5为键相采集模件的结构示意图;Fig. 5 is the structural representation of key phase acquisition module;

图6为模拟量输出模件的结构示意图;Fig. 6 is a structural schematic diagram of an analog output module;

图7为SOE信号输出模件的结构示意图;Fig. 7 is the structural representation of SOE signal output module;

图8为DCS性能测试方法的主要内容;Fig. 8 is the main content of DCS performance test method;

图9为Linux操作系统数据包接收函数的流程图。FIG. 9 is a flow chart of the Linux operating system data packet receiving function.

具体实施方式Detailed ways

如图1所示,DCS性能测试装置包括CPU模件1和CAN接口,以及通过PLB高速外围接口与CPU模件1连接的SOE信号输出模件6,以及通过CAN总线与CPU模件1连接的以下四个模件中的一个或者多个(可以等于四个)模件:模拟量采集模件2、数字量采集模件3、键相采集模件4、模拟量输出模件5,其中,四个模件中的一个或者多个模件与SOE信号输出模件6通过底板互联。工作时,CPU模件1通过标准CAN总线实现与四个模件中的一个或者多个模件(即模拟量采集模件2、和/或数字量采集模件3、和/或键相采集模件4、和/或模拟量输出模件5)的数据传输,通过PLB高速外围接口与SOE信号输出模件实现数据传输。DCS性能测试装置还包括通过串口与CPU模件1连接的对时单元7的GPS信号接收器71,对时单元7还包括与GPS信号接收器71连接的GPS天线72。工作时,GPS信号接收器71将GPS天线72接收到的对时信号通过串口发送到CPU模件1,同时还向CPU模件1提供统一的1PPS(pulse per second,1次/秒)信号,以产生同步采样脉冲,实现信号的同步采样和输出。CPU模件1完成数据采集和分析后通过VGA和RS232接口连接LCM(触摸屏)和键盘等外设,实现与用户的人机数据传输,而且可以通过USB扩展口与上位机进行数据交换。上位机进行数据处理、绘制曲线、建立模型等,并针对DCS性能进行综合测试评估。As shown in Figure 1, the DCS performance testing device includes a CPU module 1 and a CAN interface, and an SOE signal output module 6 connected to the CPU module 1 through the PLB high-speed peripheral interface, and a SOE signal output module 6 connected to the CPU module 1 through the CAN bus. One or more (can be equal to four) of the following four modules: analog quantity acquisition module 2, digital quantity acquisition module 3, key phase acquisition module 4, analog quantity output module 5, wherein, One or more of the four modules are interconnected with the SOE signal output module 6 through the backplane. During work, CPU module 1 realizes with one or more modules in four modules (namely analog quantity acquisition module 2, and/or digital quantity acquisition module 3, and/or key phase acquisition module 3) through standard CAN bus The data transmission of the module 4 and/or the analog output module 5) is realized through the PLB high-speed peripheral interface and the SOE signal output module. The DCS performance testing device also includes a GPS signal receiver 71 of the time synchronization unit 7 connected to the CPU module 1 through a serial port, and the time synchronization unit 7 also includes a GPS antenna 72 connected with the GPS signal receiver 71 . When working, the GPS signal receiver 71 sends the time synchronization signal received by the GPS antenna 72 to the CPU module 1 through the serial port, and also provides a unified 1PPS (pulse per second, 1 time per second) signal to the CPU module 1 at the same time, To generate synchronous sampling pulses to realize synchronous sampling and output of signals. After completing data collection and analysis, CPU module 1 connects peripherals such as LCM (touch screen) and keyboard through VGA and RS232 interfaces to realize human-machine data transmission with the user, and can exchange data with the host computer through the USB expansion port. The upper computer performs data processing, drawing curves, building models, etc., and conducts comprehensive test and evaluation for DCS performance.

如图2所示为CPU模件1,包括一块SOPC芯片11和通过OPB与SOPC芯片连接的片上外围扩展部分,以及为所述SOPC芯片11和所述片上外围扩展部分产生时钟的时钟器16。SOPC芯片优选采用Xilinx Virtex 2P40。由于DCSSOE通道功能测试以及控制器时钟同步性测试等试验需要的信号输出速率比较高,所以采用PLB(处理器局部总线)高速外围接口与SOE信号输出模件连接来实现数据传输,信号分辨率可达到0.05ms以上。As shown in Figure 2, CPU module 1 includes an SOPC chip 11 and an on-chip peripheral expansion part connected to the SOPC chip by OPB, and a clock 16 for generating clocks for the SOPC chip 11 and the on-chip peripheral expansion part. The SOPC chip is preferably Xilinx Virtex 2P40. Since the DCSSOE channel function test and the controller clock synchronization test require a relatively high signal output rate, the PLB (processor local bus) high-speed peripheral interface is used to connect with the SOE signal output module to realize data transmission, and the signal resolution can be achieved. Reach more than 0.05ms.

片上外围扩展部分通过OPB来完成数据传输,包括采集控制逻辑单元12、控制寄存器13、数据缓存RAM块14、时间计数器15。片上外围扩展部分通过标准CAN总线与模拟量采集模件2、数字量采集模件3、键相采集模件4、模拟量输出模件5连接来实现数据传输,从原始信号数据计算得到直流、基波以及各次谐波的幅值和相位等特征量,通过模块化程序形式由SOPC芯片进行综合分析处理,并存储在数据缓存RAM块中。片上外围扩展部分还通过片上外围接口RS232、VGA、USB等与LCM、键盘等外设以及上位机实现数据传输。The on-chip peripheral expansion part completes data transmission through OPB, including acquisition control logic unit 12, control register 13, data cache RAM block 14, and time counter 15. The on-chip peripheral expansion part is connected to the analog quantity acquisition module 2, the digital quantity acquisition module 3, the key phase acquisition module 4, and the analog quantity output module 5 through the standard CAN bus to realize data transmission. The fundamental wave and the amplitude and phase of each harmonic are comprehensively analyzed and processed by the SOPC chip in the form of a modular program, and stored in the data cache RAM block. The on-chip peripheral expansion part also realizes data transmission with the peripherals such as LCM and keyboard and the host computer through the on-chip peripheral interfaces RS232, VGA, USB, etc.

CPU模件采样和数据分析的时钟统一由所述时钟器16产生。The clock for sampling and data analysis of the CPU module is uniformly generated by the clock 16 .

如图3所示,模拟量采集模件2用来采集1-5V电压或4-20MA直流信号,包括依次连接的V/I转换器21、抗混叠滤波器22、运算放大器23、A/D转换器24和数字隔离单元25,其中,数字隔离单元25通过CAN总线连接CPU模件1。工作时,电流信号直接进入抗混叠滤波器22滤波,电压信号先通过V/I转换器21转换为直流信号后再进入抗混叠滤波器22滤波,然后连接运算放大器23的同相输入端,运算放大器23输出后连接A/D转换器24,A/D转换器可以采用AD7705芯片,其带信号调理、1mw功耗、双通道16位精度,能保证模拟量采集精度。A/D转换后的数字信号经数字隔离单元25隔离处理后,通过CAN总线传输到CPU模件。As shown in Figure 3, the analog quantity acquisition module 2 is used for collecting 1-5V voltage or 4-20MA direct current signal, comprises the V/I converter 21, anti-aliasing filter 22, operational amplifier 23, A/ The D converter 24 and the digital isolation unit 25, wherein the digital isolation unit 25 is connected to the CPU module 1 through the CAN bus. When working, the current signal directly enters the anti-aliasing filter 22 for filtering, and the voltage signal is first converted into a DC signal by the V/I converter 21 and then enters the anti-aliasing filter 22 for filtering, and then connected to the non-inverting input terminal of the operational amplifier 23, The output of the operational amplifier 23 is connected to the A/D converter 24. The A/D converter can adopt the AD7705 chip, which has signal conditioning, 1mw power consumption, and dual-channel 16-bit precision, which can ensure the accuracy of analog quantity acquisition. After the digital signal converted by A/D is isolated and processed by the digital isolation unit 25, it is transmitted to the CPU module through the CAN bus.

如图4所示,数字量采集模件3主要用来采集现场数字开关量信号,包括依次连接的高速光耦隔离单元31、放大整形电路32、脉冲计数单元33和数据锁存电路34,其中的数据锁存电路34通过CAN总线连接CPU模件1。工作时,数字量信号经高速光耦隔离单元31后,通过放大整形电路32将信号转换成清晰、可识别的数字信号,然后经脉冲计数单元33计数、运算,及数据锁存电路34数据锁存,并通过标准CAN接口传输到CPU模件1进行数据处理。As shown in Figure 4, the digital quantity acquisition module 3 is mainly used to acquire the on-site digital switching quantity signal, including a high-speed optocoupler isolation unit 31, an amplification and shaping circuit 32, a pulse counting unit 33 and a data latch circuit 34 connected in sequence, wherein The data latch circuit 34 is connected to the CPU module 1 through the CAN bus. When working, after the digital signal passes through the high-speed optocoupler isolation unit 31, the signal is converted into a clear and identifiable digital signal through the amplification and shaping circuit 32, and then counted and calculated by the pulse counting unit 33, and the data is locked by the data latch circuit 34 stored, and transmitted to the CPU module 1 through the standard CAN interface for data processing.

如图5所示,键相采集模件4主要用来采集转速信号,包括依次连接的高频滤波器41、电平比较单元42、电平变化单元43、高速光耦隔离单元44和数据锁存电路45,其中的数据锁存电路45通过CAN总线连接CPU模件1。高频滤波器41优选采用RC滤波器。工作时,键相信号通过高频滤波器41滤波后,送入电平比较单元42与设置的比较电平进行比较,获得脉冲方波信号,然后通过电平变化单元43对该方波进行电平变化,处理后的方波信号经过高速光耦隔离单元44、数据锁存电路45,再通过标准CAN接口传输到CPU模件1进行数据处理。As shown in Figure 5, the key phase acquisition module 4 is mainly used to collect the rotational speed signal, including a high-frequency filter 41, a level comparison unit 42, a level change unit 43, a high-speed optocoupler isolation unit 44 and a data lock connected in sequence. storage circuit 45, wherein the data latch circuit 45 is connected to the CPU module 1 through the CAN bus. The high-frequency filter 41 is preferably an RC filter. During work, after the key-phase signal is filtered by the high-frequency filter 41, it is sent to the level comparison unit 42 for comparison with the comparison level set up to obtain a pulse square wave signal, and then the square wave is electrically controlled by the level change unit 43. The processed square wave signal passes through the high-speed optocoupler isolation unit 44 and the data latch circuit 45, and then is transmitted to the CPU module 1 through the standard CAN interface for data processing.

如图6所示,模拟量输出模件5用来仿真输出1-5V电压或4-20MA直流信号,包括依次连接的数字隔离单元51、D/A转换器52、放大整形电路53和I/V转换器54,其中的数字隔离单元51通过CAN总线与前述的CPU模件1相连。A/D转换器52优选采用DAC8775芯片,DAC8775封装比小,信噪比低,通道16位精度,能保证模拟量仿真输出精度。工作时,模拟量输出模件5通过标准CAN总线接收CPU模件1发送的数字量信号,经过数字隔离单元51后发送至D/A转换器52,经D/A转换器52变换后的模拟量信号通过放大整形电路53后,一路转换为标准4-20MA直流信号输出,另一路经过I/V转换器54转换为标准1-5V电压信号输出。As shown in Figure 6, the analog output module 5 is used to emulate output 1-5V voltage or 4-20MA DC signal, including digital isolation unit 51, D/A converter 52, amplification and shaping circuit 53 and I/O converter connected in sequence. The V converter 54, wherein the digital isolation unit 51 is connected with the aforementioned CPU module 1 through the CAN bus. The A/D converter 52 preferably adopts the DAC8775 chip. The DAC8775 has a small package ratio, a low signal-to-noise ratio, and 16-bit channel precision, which can ensure the accuracy of analog simulation output. During work, the analog output module 5 receives the digital signal sent by the CPU module 1 through the standard CAN bus, and sends it to the D/A converter 52 after passing through the digital isolation unit 51, and the analog signal converted by the D/A converter 52 After the quantitative signal passes through the amplification and shaping circuit 53, one path is converted into a standard 4-20MA DC signal output, and the other path is converted into a standard 1-5V voltage signal output through the I/V converter 54.

如图7所示,SOE信号输出模件6用来仿真输出高速开关量信号。包括通过PLB高速数据交换总线与CPU模件1相连的数字隔离电路61,以及依次连接所述数字隔离电路61的放大整形电路62和电平变化单元63。CPU模件1产生的5V TTL 信号通过PLB高速数据交换总线传输到数字隔离电路61中,经隔离后的信号连接放大整形电路62,将信号转换成清晰、可识别信号,然后通过电平变化单元63中的可调电阻对信号进行电平变化以适应不同DCS对SOE信号的要求。As shown in FIG. 7, the SOE signal output module 6 is used to simulate and output high-speed switching signal. It includes a digital isolation circuit 61 connected to the CPU module 1 through a PLB high-speed data exchange bus, and an amplification and shaping circuit 62 and a level change unit 63 sequentially connected to the digital isolation circuit 61 . The 5V TTL signal generated by the CPU module 1 is transmitted to the digital isolation circuit 61 through the PLB high-speed data exchange bus, and the isolated signal is connected to the amplification and shaping circuit 62 to convert the signal into a clear and identifiable signal, and then pass through the level change unit The adjustable resistor in 63 changes the level of the signal to adapt to the requirements of different DCS on the SOE signal.

如图8所示,DCS性能测试方法包括:数据采集控制、内部总线数据交换和处理的步骤所述数据采集控制、内部总线数据交换和处理的步骤是基于硬件编程语言实现的;以及提供可视化的组态配置、数据监视和分析、实现CAN网驱动和数据驱动的步骤,所述提供可视化的组态配置、数据监视和分析功能以及实现CAN网驱动和数据驱动的步骤是基于嵌入式操作系统实现的,如Linux系统,利用MiniGUI图形环境的界面,采用C语言进行设计。As shown in Figure 8, the DCS performance test method comprises: the steps of data acquisition control, internal bus data exchange and processing described in the steps of data acquisition control, internal bus data exchange and processing are realized based on hardware programming language; and providing visual The steps of configuration configuration, data monitoring and analysis, and realization of CAN network drive and data drive, the steps of providing visual configuration configuration, data monitoring and analysis functions, and realization of CAN network drive and data drive are realized based on an embedded operating system For example, the Linux system uses the interface of the MiniGUI graphical environment and uses C language to design.

步骤具体包括以下内容:The steps specifically include the following:

数据采集、控制与处理:建立共享内存,管理系统配置信息、实时数据,提供连续、自主的在线数据采集控制、信号处理、内部总线数据交换,以及通过设备读写与内核设备驱动配置以进行数据交换。Data acquisition, control and processing: establish shared memory, manage system configuration information, real-time data, provide continuous and independent online data acquisition control, signal processing, internal bus data exchange, and perform data processing through device reading and writing and kernel device driver configuration exchange.

操作进程及资源配置:进程管理、进程间通信、内存管理、实现文件系统、提供I/O接口及对其他资源进行管理,外存采用DDR存储模块。Operation process and resource configuration: process management, inter-process communication, memory management, implementation of file system, provision of I/O interface and management of other resources, external storage adopts DDR storage module.

数据驱动:在系统内核空间,将缓存的存贮空间映射为字符设备,响应设备中断,建立采集数据交换缓冲存贮,提供底层程序与操作系统的接口,完成用户空间和内核空间的数据交换。Data-driven: In the system kernel space, map the cached storage space to a character device, respond to device interruptions, establish a data exchange buffer storage, provide the interface between the underlying program and the operating system, and complete the data exchange between the user space and the kernel space.

数据通信接口配置:实现本系统与其他系统的数据交换,系统提供串口、USB、VGA等方式传送数据。Data communication interface configuration: realize the data exchange between this system and other systems, and the system provides serial port, USB, VGA and other ways to transmit data.

系统组态配置与监视分析:基于MiniGUI图形环境,配置可视化的系统参数(含机组、通道、测点信息配置等),并在上位机显示多种实时数据监视图表、历史趋势分析图表。System configuration configuration and monitoring analysis: Based on the MiniGUI graphical environment, configure visualized system parameters (including unit, channel, measuring point information configuration, etc.), and display various real-time data monitoring charts and historical trend analysis charts on the host computer.

CAN网驱动:运行于系统内核空间,完成用户空间和内核空间的数据交换;并通过CAN网实现实现CPU模件与模拟量采集模件、数字量采集模件、键相采集模件、模拟量输出模件的数据传输。CAN network driver: run in the system kernel space, complete the data exchange between user space and kernel space; and realize CPU module and analog quantity acquisition module, digital quantity acquisition module, key phase acquisition module, analog quantity through CAN network Data transmission of the output module.

图9是Linux操作系统数据包接收函数的流程图,是数据驱动的核心环节。Linux系统中的数据包接收是通过中断实现的,控制器在有数据包接收时会产生一个中断信号,其中断处理子程序通过调用数据包接收函数来完成数据包的接收。与数据发送缓冲区不同,控制器中的数据接收缓冲区为环形结构,数据包包含字节长的首部、数据和CRC校验序列三个部分,4字节长的首部每字节依次表示是否有数据、数据状态、数据长度的低和高字节。当首部第一个字节为01H时表示有数据需要读取,此时调用函数申请数据缓冲区存放接收的数据,并根据数据包首部所包含的信息检测数据是否读取完毕、是否正确。当读取的数据包首部为00H时表明数据已经读取完毕,完成数据包的读取并等待下一次读取。Fig. 9 is a flow chart of the Linux operating system data packet receiving function, which is the core link of the data drive. The data packet reception in the Linux system is realized through interrupts. The controller will generate an interrupt signal when there is a data packet to be received, and its interrupt processing subroutine completes the data packet reception by calling the data packet receiving function. Different from the data sending buffer, the data receiving buffer in the controller is a ring structure. The data packet contains three parts: the byte-long header, data and CRC check sequence. Each byte of the 4-byte long header indicates whether There are low and high bytes of data, data status, data length. When the first byte of the header is 01H, it means that there is data to be read. At this time, the function is called to apply for the data buffer to store the received data, and according to the information contained in the header of the data packet, it is checked whether the data has been read and correct. When the header of the data packet read is 00H, it indicates that the data has been read, complete the reading of the data packet and wait for the next reading.

在本发明实施例的描述中,除非另有明确的规定和限定,术语“连接”、“相连”应做广义的理解,如:可以是电连接,也可以是机械连接;可以是可拆卸连接,也可以是固定连接,或整体地连接;可以直接相连,也可以通过中间接口相连接,或两个元件内部的连通。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本发明中的具体含义。In the description of the embodiments of the present invention, unless otherwise specified and limited, the terms "connection" and "connection" should be understood in a broad sense, such as: it can be an electrical connection or a mechanical connection; it can be a detachable connection , can also be fixedly connected, or connected as a whole; can be directly connected, can also be connected through an intermediate interface, or communicate within the two components. Those of ordinary skill in the art can understand the specific meanings of the above terms in the present invention in specific situations.

Claims (10)

1.一种基于SOPC的DCS性能测试装置,包括CPU模件(1)和CAN接口;以及1. A DCS performance testing device based on SOPC, comprising a CPU module (1) and a CAN interface; and 通过PLB高速外围接口与所述CPU模件(1)连接的SOE信号输出模件(6);以及An SOE signal output module (6) connected to the CPU module (1) through a PLB high-speed peripheral interface; and 通过所述CAN接口经CAN总线与CPU模件连接的以下四个模件中的至少一个模件:模拟量采集模件(2)、数字量采集模件(3)、键相采集模件(4)、模拟量输出模件(5);At least one of the following four modules connected to the CPU module through the CAN interface via the CAN bus: analog quantity acquisition module (2), digital quantity acquisition module (3), key phase acquisition module ( 4), analog output module (5); 其中,所述四个模件中的至少一个模件与所述SOE信号输出模件(6)通过底板互联。Wherein, at least one of the four modules is interconnected with the SOE signal output module (6) through a bottom plate. 2.如权利要求1所述的DCS的性能测试装置,其特征在于,所述DCS性能测试装置还包括通过串口与所述CPU模件(1)连接的对时单元(7),所述对时单元(7)包括GPS信号接收器(71),以及和与GPS信号接收器(71)连接的GPS天线(72),所述GPS信号接收器(71)通过串口与所述CPU模件(1)连接。2. the performance testing device of DCS as claimed in claim 1, is characterized in that, described DCS performance testing device also comprises the timing unit (7) that is connected with described CPU module (1) by serial port, described pair Time unit (7) comprises GPS signal receiver (71), and the GPS antenna (72) that is connected with GPS signal receiver (71), and described GPS signal receiver (71) communicates with described CPU module ( 1) connect. 3.如权利要求1或2所述的DCS性能测试装置,其特征在于,所述CPU模件(1)包括一块SOPC芯片(11),和通过OPB与所述SOPC芯片(11)连接的片上外围扩展部分,以及为所述SOPC芯片和所述片上外围扩展部分产生时钟的时钟器(16),所述片上外围扩展部分包括采集控制逻辑单元(12)、控制寄存器(13)、数据缓存RAM块(14)和时间计数器(15)。3. The DCS performance testing device according to claim 1 or 2, characterized in that the CPU module (1) includes an SOPC chip (11), and an on-chip chip connected to the SOPC chip (11) through OPB Peripheral expansion part, and a clock (16) that generates clocks for the SOPC chip and the on-chip peripheral expansion part, the on-chip peripheral expansion part includes an acquisition control logic unit (12), a control register (13), and a data buffer RAM block (14) and time counter (15). 4.如权利要求1或2所述的DCS性能测试装置,其特征在于,所述模拟量采集模件(2)用来采集1~5V电压或4~20MA直流信号,包括依次连接的V/I转换器(21)、抗混叠滤波器(22)、运算放大器(23)、A/D转换器(24)和数字隔离单元(25),其中,数字隔离单元(25)通过CAN总线连接所述CPU模件(1)。4. The DCS performance testing device according to claim 1 or 2, wherein the analog acquisition module (2) is used to collect 1~5V voltage or 4~20MA DC signal, including sequentially connected V/ I converter (21), anti-aliasing filter (22), operational amplifier (23), A/D converter (24) and digital isolation unit (25), wherein the digital isolation unit (25) is connected by CAN bus The CPU module (1). 5.如权利要求1或2所述的DCS性能测试装置,其特征在于,所述数字量采集模件(3)包括依次连接的高速光耦隔离单元(31)、放大整形电路(32)、脉冲计数单元(33)和数据锁存电路(34),其中的数据锁存电路(34)通过CAN总线连接所述CPU模件(1)。5. The DCS performance test device according to claim 1 or 2, characterized in that, the digital quantity acquisition module (3) includes a high-speed optocoupler isolation unit (31), an amplification and shaping circuit (32), A pulse counting unit (33) and a data latch circuit (34), wherein the data latch circuit (34) is connected to the CPU module (1) through a CAN bus. 6.如权利要求1或2所述的DCS性能测试装置,其特征在于,所述键相采集模件(4)包括依次连接的高频滤波器(41)、电平比较单元(42)、电平变化单元(43)、高速光耦隔离单元(44)和数据锁存电路(45),其中的数据锁存电路(45)通过CAN总线连接所述CPU模件(1)。6. The DCS performance testing device according to claim 1 or 2, characterized in that, the key-phase acquisition module (4) includes a high-frequency filter (41), a level comparison unit (42), A level change unit (43), a high-speed optocoupler isolation unit (44) and a data latch circuit (45), wherein the data latch circuit (45) is connected to the CPU module (1) through a CAN bus. 7.如权利要求1或2所述的DCS性能测试装置,其特征在于,所述模拟量输出模件(5)用来仿真输出1-5V电压或4-20MA直流信号,包括依次连接的数字隔离单元(51)、D/A转换器(52)、放大整形电路(53)和I/V转换器(54),其中的数字隔离单元(51)通过CAN总线与所述的CPU模件(1)相连。7. The DCS performance test device according to claim 1 or 2, characterized in that the analog output module (5) is used to simulate and output 1-5V voltage or 4-20MA DC signal, including sequentially connected digital An isolation unit (51), a D/A converter (52), an amplification and shaping circuit (53) and an I/V converter (54), wherein the digital isolation unit (51) communicates with the CPU module ( 1) connected. 8.如权利要求1或2所述的DCS性能测试装置,其特征在于,所述SOE信号输出模件(6)用来仿真输出高速开关量信号,包括通过PLB高速数据交换总线与所述CPU模件(1)相连的数字隔离电路(61),以及依次连接所述数字隔离电路(61)的放大整形电路(62)和电平变化单元(63)。8. The DCS performance test device according to claim 1 or 2, characterized in that, the SOE signal output module (6) is used to simulate and output high-speed switching signals, including communicating with the CPU through the PLB high-speed data exchange bus A digital isolation circuit (61) connected to the module (1), and an amplification and shaping circuit (62) and a level change unit (63) sequentially connected to the digital isolation circuit (61). 9.如权利要求1或2所述的DCS性能测试装置,其特征在于,所述CPU模件(1)通过USB扩展口与上位机相连,通过VGA和RS232接口连接外设。9. The DCS performance testing device according to claim 1 or 2, characterized in that, the CPU module (1) is connected to the host computer through a USB extension port, and is connected to peripherals through a VGA and RS232 interface. 10.一种基于SOPC的DCS的性能测试方法,包括:10. A performance testing method of DCS based on SOPC, comprising: 数据采集控制、内部总线数据交换和处理的步骤;Steps of data acquisition control, internal bus data exchange and processing; 以及可视化的组态配置、数据监视和分析、实现CAN网驱动和数据驱动的步骤;And visualized configuration configuration, data monitoring and analysis, and the steps to realize CAN network drive and data drive; 其中,所述数据采集控制、内部总线数据交换和处理的步骤是基于硬件编程语言实现的;所述提供可视化的组态配置、数据监视和分析功能以及实现CAN网驱动和数据驱动的步骤是基于嵌入式操作系统实现的。Wherein, the steps of data acquisition control, internal bus data exchange and processing are realized based on hardware programming language; the steps of providing visual configuration configuration, data monitoring and analysis functions and realizing CAN network drive and data drive are based on implemented by an embedded operating system.
CN201711312215.7A 2017-12-12 2017-12-12 DCS performance testing devices and method based on SOPC Pending CN108153276A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711312215.7A CN108153276A (en) 2017-12-12 2017-12-12 DCS performance testing devices and method based on SOPC

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711312215.7A CN108153276A (en) 2017-12-12 2017-12-12 DCS performance testing devices and method based on SOPC

Publications (1)

Publication Number Publication Date
CN108153276A true CN108153276A (en) 2018-06-12

Family

ID=62466927

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711312215.7A Pending CN108153276A (en) 2017-12-12 2017-12-12 DCS performance testing devices and method based on SOPC

Country Status (1)

Country Link
CN (1) CN108153276A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108508878A (en) * 2018-06-30 2018-09-07 中国华电集团科学技术研究总院有限公司 A kind of validation checking system and method for power plant analog output channel

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN200953088Y (en) * 2006-02-23 2007-09-26 周丹 DCS Performance Comprehensive Tester
CN201780478U (en) * 2010-01-15 2011-03-30 国网电力科学研究院 Modularized condition monitoring device based on FPGA
CN203455692U (en) * 2013-09-12 2014-02-26 国家电网公司 Cogeneration monitoring device based on cloud server for thermal power plant
CN204904079U (en) * 2015-05-27 2015-12-23 国家电网公司 Steam turbine speed control system model parameter tester
CN207718222U (en) * 2017-12-12 2018-08-10 国网江西省电力有限公司电力科学研究院 A kind of performance comprehensive test device of Distributed Control System

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN200953088Y (en) * 2006-02-23 2007-09-26 周丹 DCS Performance Comprehensive Tester
CN201780478U (en) * 2010-01-15 2011-03-30 国网电力科学研究院 Modularized condition monitoring device based on FPGA
CN203455692U (en) * 2013-09-12 2014-02-26 国家电网公司 Cogeneration monitoring device based on cloud server for thermal power plant
CN204904079U (en) * 2015-05-27 2015-12-23 国家电网公司 Steam turbine speed control system model parameter tester
CN207718222U (en) * 2017-12-12 2018-08-10 国网江西省电力有限公司电力科学研究院 A kind of performance comprehensive test device of Distributed Control System

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108508878A (en) * 2018-06-30 2018-09-07 中国华电集团科学技术研究总院有限公司 A kind of validation checking system and method for power plant analog output channel

Similar Documents

Publication Publication Date Title
US7953828B2 (en) Distributed networked data acquisition device
CN104614593B (en) One kind is based on self-alignment high-precision intelligent instrument system and its application process
CN110579642B (en) Zynq-based airborne alternating current multi-path parallel acquisition and processing system
CN201327515Y (en) Distributed electrical energy quality online monitoring instrument based on dual-CPU
CN201233517Y (en) Digital monitoring and controlling system for electric vortex power measuring machine
CN101408553B (en) A rotational speed measurement and frequency output device
CN201662434U (en) Intelligent vibration detection device based on CAN bus
CN203949716U (en) A kind of digital weighing sensor
CN205749675U (en) Harmonic detection test platform
CN207718222U (en) A kind of performance comprehensive test device of Distributed Control System
CN108153276A (en) DCS performance testing devices and method based on SOPC
CN204406391U (en) A kind of data of optical fiber gyroscope R-T unit based on SPI
CN100423039C (en) Integrated automatic integration test system
CN206452412U (en) A kind of HART instrumental analysis platforms based on Internet of Things
CN201909847U (en) Double-channel digital signal acquisition device on basis of VXI (VME <Virtual Machine Enviroment> bus Extension for Instrumentation) interface
Jue et al. Design of Modbus-Profibus fieldbus bridge based on the STM32 and VPC3+ C
CN109514285A (en) A kind of real-time acquisition system of XY worktable absolute optical gate signal based on DSP
WO2020228099A1 (en) Device for acquiring health diagnosis monitoring data of nuclear power engineering structure in self-excited manner
Gao et al. Design of a high precision data acquisition system of weak signal
CN208187447U (en) A kind of pipeline gas parameter measuring instrument
CN204479630U (en) A kind of multi-functional data system of Oscillograph
CN103115665A (en) Online type real-time vibration detecting device based on ATOM and ARM
Xu et al. Research on inertial navigation component measurement and control system
CN201527448U (en) An Embedded Power Quality Monitoring System
CN102095916A (en) Wireless communication measuring system for current of build-in arrester

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180612

RJ01 Rejection of invention patent application after publication