[go: up one dir, main page]

CN109542085B - Automatic experiment platform flexible switching device with time-lag configuration function and method - Google Patents

Automatic experiment platform flexible switching device with time-lag configuration function and method Download PDF

Info

Publication number
CN109542085B
CN109542085B CN201811415725.1A CN201811415725A CN109542085B CN 109542085 B CN109542085 B CN 109542085B CN 201811415725 A CN201811415725 A CN 201811415725A CN 109542085 B CN109542085 B CN 109542085B
Authority
CN
China
Prior art keywords
control system
controlled object
switching device
board
flexible switching
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.)
Active
Application number
CN201811415725.1A
Other languages
Chinese (zh)
Other versions
CN109542085A (en
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.)
Northeastern University China
Original Assignee
Northeastern University China
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 Northeastern University China filed Critical Northeastern University China
Priority to CN201811415725.1A priority Critical patent/CN109542085B/en
Publication of CN109542085A publication Critical patent/CN109542085A/en
Application granted granted Critical
Publication of CN109542085B publication Critical patent/CN109542085B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Feedback Control In General (AREA)
  • Programmable Controllers (AREA)

Abstract

本发明提出具有时滞配置功能的自动化实验平台柔性切换装置及方法,包括:控制系统侧I/O板卡、被控对象侧I/O板卡和切换计算机系统;本发明在不同的控制系统与一个被控对象之间,建立了一套柔性切换装置,不必改变硬线连接,仅仅通过切换计算机系统中柔性切换软件的操作就可实现不同的控制系统之间的灵活切换,而且在同一控制系统内,也可通过软件对同一类型的板卡,进行不同通道的灵活切换,并且可通过任意配置被控对象的时滞大小,从而获得具有任意时滞大小的广义被控对象,使得工业过程控制的研究实验与教学实验能够顺利完成,不必每次更换控制系统并重新连线,节省了大量实验时间,具有很强的必要性。

Figure 201811415725

The invention proposes a flexible switching device and method for an automated experimental platform with a time-delay configuration function, including: a control system side I/O board, a controlled object side I/O board and a switching computer system; the invention is used in different control systems. With a controlled object, a set of flexible switching device is established, without changing the hard-wired connection, only by switching the operation of the flexible switching software in the computer system to achieve flexible switching between different control systems, and in the same control system. In the system, the same type of boards can also be flexibly switched between different channels, and the time delay size of the controlled object can be arbitrarily configured to obtain a generalized controlled object with any time delay size, making the industrial process Controlled research experiments and teaching experiments can be successfully completed without the need to replace the control system and reconnect each time, which saves a lot of experimental time and is very necessary.

Figure 201811415725

Description

具有时滞配置功能的自动化实验平台柔性切换装置及方法Flexible switching device and method for automated experimental platform with time delay configuration function

技术领域technical field

本发明属于工业自动化和过程控制技术的研究、实验和教学领域,具体涉及一种具有时滞配置功能的自动化实验平台柔性切换装置及方法。The invention belongs to the research, experiment and teaching fields of industrial automation and process control technology, and particularly relates to a flexible switching device and method for an automated experimental platform with a time-delay configuration function.

背景技术Background technique

工业自动化和过程控制是面向实际工业过程的带有强烈的实践性的学科,为了满足工业自动化和过程控制技术的研究、实验和教学需求,需要在实验室环境中建立与现场工业环境高度一致的工业过程自动化实验平台。工业过程自动化实验平台主要由被控对象和控制系统组成,其中被控对象包括:被控过程、检测仪表和执行机构。目前在工业现场中,主流的控制系统一般为PLC控制系统,即可编程逻辑控制器,或DCS控制系统,即分布式计算机控制系统,检测仪表一般为流量、温度、压力、料位及浓度等仪表,执行机构一般为变频器、调节阀等。控制系统与被控对象之间进行数据传输的方式一般是通过控制系统的开关量输入DI板卡、开关量输出DO板卡、模拟量输入AI板卡、模拟量输出AO板卡与被控对象的检测仪表、执行机构通过电缆直接相连进行通讯,这种连接方式称为硬线连接方式。为了与工业现场保持一致,实验室中的工业过程自动化实验装置大都也采用这种方式连接,例如专利一种多变量的工业过程控制实验装置及方法ZL20160363094.8以及专利能够获得非最小相位特性的工业过程控制实验装置及方法ZL201610362760.6,这两篇所描述的实验装置中的被控对象和控制系统之间就是采用这种连接方式。Industrial automation and process control are disciplines with strong practicality oriented to actual industrial processes. In order to meet the research, experiment and teaching needs of industrial automation and process control technology, it is necessary to establish a laboratory environment that is highly consistent with the field industrial environment. Industrial process automation experimental platform. The industrial process automation experimental platform is mainly composed of the controlled object and the control system, wherein the controlled object includes: the controlled process, the detection instrument and the actuator. At present, in the industrial field, the mainstream control system is generally PLC control system, that is, programmable logic controller, or DCS control system, that is, distributed computer control system. The detection instruments are generally flow, temperature, pressure, material level and concentration, etc. Instruments and actuators are generally frequency converters, regulating valves, etc. The way of data transmission between the control system and the controlled object is generally through the switch input DI board, switch output DO board, analog input AI board, analog output AO board and the controlled object of the control system. The detection instruments and actuators are directly connected to communicate through cables, and this connection method is called hard-wire connection. In order to be consistent with the industrial field, most of the industrial process automation experimental devices in the laboratory are also connected in this way. Industrial process control experimental device and method ZL201610362760.6, this connection method is adopted between the controlled object and the control system in the experimental device described in these two articles.

在实验室环境下,实验者可能需要在不同的控制系统上进行同样类型或同样算法的自动化实验,这就存在着多个控制系统如何控制同一个被控对象的问题。如果每做一次实验都需要在不同的控制系统和执行机构、检测仪表之间进行重新接线,必然会增大实验的时间、设备的风险和实验的风险,大大增加了维护成本,显然是不可行的。In the laboratory environment, the experimenter may need to perform automated experiments of the same type or the same algorithm on different control systems, which leads to the problem of how multiple control systems control the same controlled object. If you need to rewire between different control systems, actuators, and detection instruments every time you do an experiment, it will inevitably increase the time of the experiment, the risk of the equipment and the risk of the experiment, and greatly increase the maintenance cost, which is obviously not feasible. of.

另一方面,时滞特性普遍存在于工业生产过程中,典型生产过程包括但不限于管道输送过程、皮带输送过程及许多热力过程等,许多控制方案是针对被控对象的时滞问题而提出来的,因此,在这一类的控制算法实验中,例如Smith预估控制、最小方差控制、广义最小方差控制、前馈控制、零极点配置控制、自校正控制等,要求实验平台的被控对象应该能够模拟相应的大时滞、时滞可变、时滞未知等特性,一般的物理过程一旦确定,其时滞也随之确定,很难再根据实验需求去变化。On the other hand, time-delay characteristics generally exist in industrial production processes. Typical production processes include but are not limited to pipeline transportation processes, belt conveying processes, and many thermal processes. Many control schemes are proposed for the time-delay problem of the controlled object. Therefore, in this type of control algorithm experiment, such as Smith prediction control, minimum variance control, generalized minimum variance control, feedforward control, zero-pole configuration control, self-calibration control, etc., the controlled object of the experimental platform is required. It should be able to simulate the corresponding characteristics such as large time delay, variable time delay, and unknown time delay.

发明内容SUMMARY OF THE INVENTION

针对上述问题,开发一种具有时滞配置功能的自动化实验平台柔性切换装置及方法,使得不同的控制系统和同一被控对象所对应的检测仪表、执行机构只需同时连接到该切换装置就能方便灵活地实现控制系统之间的柔性切换,同时可以灵活地产生和配置被控对象时滞,使得工业过程自动化的研究实验与教学实验能够顺利完成,具有很强的必要性。In view of the above problems, a flexible switching device and method for an automated experimental platform with time-delay configuration function are developed, so that the detection instruments and actuators corresponding to different control systems and the same controlled object only need to be connected to the switching device at the same time. It is very necessary to realize the flexible switching between control systems conveniently and flexibly, and at the same time, the time delay of the controlled object can be flexibly generated and configured, so that the research experiments and teaching experiments of industrial process automation can be successfully completed.

针对实验室环境下难以灵活方便地解决在硬线连接方式下指定的控制系统需重新接线才能控制被控对象及简单被控对象很难满足时滞未知且时变的要求,本发明提出了具有时滞配置功能的自动化实验平台柔性切换装置及方法。Aiming at the difficulty in the laboratory environment that it is difficult to flexibly and conveniently solve the problem that the control system specified in the hard-wired connection needs to be rewired to control the controlled object and the simple controlled object is difficult to meet the time delay unknown and time-varying requirements. A flexible switching device and method for an automated experimental platform with a time-delay configuration function.

具有时滞配置功能的自动化实验平台柔性切换装置包括:控制系统侧I/O板卡、被控对象侧I/O板卡和切换计算机系统;The flexible switching device of the automation experiment platform with the function of time-delay configuration includes: the control system side I/O board, the controlled object side I/O board and the switching computer system;

具有时滞配置功能的自动化实验平台中n套控制系统通过控制系统侧I/O板卡与柔性切换装置相连接,柔性切换装置通过被控对象侧I/O板卡与被控对象相连接;The n sets of control systems in the automation experiment platform with time-delay configuration function are connected with the flexible switching device through the I/O board on the control system side, and the flexible switching device is connected with the controlled object through the I/O board on the controlled object side;

其中,所述n套控制系统中,每套控制系统包含4种I/O板卡,包括:开关量输出DO板卡、模拟量输出AO板卡、开关量输入DI板卡和模拟量输入AI板卡;Among the n sets of control systems, each control system contains 4 kinds of I/O boards, including: switch output DO board, analog output AO board, switch input DI board and analog input AI board;

所述被控对象包括:被控过程、执行机构和检测仪表;The controlled object includes: the controlled process, the executive mechanism and the detection instrument;

所述柔性切换装置和被控对象组成广义被控对象;The flexible switching device and the controlled object form a generalized controlled object;

所述柔性切换装置控制系统侧I/O板卡划分成n组,每组分别包含4种I/O板卡,包括:开关量输出DO板卡、模拟量输出AO板卡、开关量输入DI板卡和模拟量输入AI板卡,每套控制系统对应柔性切换装置控制系统侧的一组I/O板卡;The I/O boards on the control system side of the flexible switching device are divided into n groups, and each group contains 4 kinds of I/O boards, including: switch output DO boards, analog output AO boards, and switch input DI Boards and analog input AI boards, each control system corresponds to a group of I/O boards on the control system side of the flexible switching device;

所述柔性切换装置被控对象侧I/O板卡,包含4种I/O板卡,包括:开关量输出DO板卡、模拟量输出AO板卡、开关量输入DI板卡和模拟量输入AI板卡;The I/O board on the controlled object side of the flexible switching device includes 4 kinds of I/O boards, including: switch output DO board, analog output AO board, switch input DI board and analog input AI board;

每套控制系统中开关量输出DO板卡的通道数量与柔性切换装置控制系统侧每组的开关量输入DI板卡的通道数量以及柔性切换装置被控对象侧的开关量输出DO板卡的通道数量相等,且不少于被控对象所需的DO信号数量;The number of channels of digital output DO boards in each control system, the number of channels of each group of digital input DI boards on the control system side of the flexible switching device, and the channels of the digital output DO boards on the controlled object side of the flexible switching device The number is equal and not less than the number of DO signals required by the controlled object;

每套控制系统中模拟量输出AO板卡的通道数量与柔性切换装置控制系统侧每组的模拟量输入AI板卡的通道数量以及柔性切换装置被控对象侧的模拟量输出AO板卡的通道数量相等,且不少于被控对象所需的AO信号数量;The number of channels of analog output AO boards in each control system, the number of channels of each group of analog input AI boards on the control system side of the flexible switching device, and the channels of the analog output AO boards on the controlled object side of the flexible switching device The number is equal and not less than the number of AO signals required by the controlled object;

每套控制系统中开关量输入DI板卡的通道数量与柔性切换装置控制系统侧每组的开关量输出DO板卡的通道数量以及柔性切换装置被控对象侧的开关量输入DI板卡的通道数量相等,且不少于被控对象所需的DI信号数量;The number of channels of the digital input DI boards in each control system, the number of channels of the digital output DO boards of each group on the control system side of the flexible switching device, and the channels of the digital input DI boards on the controlled object side of the flexible switching device The number is equal and not less than the number of DI signals required by the controlled object;

每套控制系统中模拟量输入AI板卡的通道数量与柔性切换装置控制系统侧每组的模拟量输出AO板卡的通道数量以及柔性切换装置被控对象侧的模拟量输入AI板卡的通道数量相等,且不少于被控对象所需的AI信号数量;The number of channels of analog input AI boards in each control system, the number of channels of each group of analog output AO boards on the control system side of the flexible switching device, and the channels of the analog input AI boards on the controlled object side of the flexible switching device The number is equal and not less than the number of AI signals required by the controlled object;

每套控制系统中开关量输出DO板卡的每个通道分别与柔性切换装置控制系统侧对应组的开关量输入DI板卡的每个通道相连接;Each channel of the switch output DO board in each control system is respectively connected with each channel of the switch input DI board of the corresponding group on the control system side of the flexible switching device;

每套控制系统中模拟量输出AO板卡的每个通道分别与柔性切换装置控制系统侧对应组的模拟量输入AI板卡的每个通道相连接;Each channel of the analog output AO board in each control system is respectively connected with each channel of the analog input AI board of the corresponding group on the control system side of the flexible switching device;

每套控制系统中开关量输入DI板卡的每个通道分别与柔性切换装置控制系统侧对应组的开关量输出DO板卡的每个通道相连接;Each channel of the switch input DI board in each control system is respectively connected with each channel of the switch output DO board of the corresponding group on the control system side of the flexible switching device;

每套控制系统中模拟量输入AI板卡的每个通道分别与柔性切换装置控制系统侧对应组的模拟量输出AO板卡的每个通道相连接;Each channel of the analog input AI board in each control system is respectively connected with each channel of the analog output AO board of the corresponding group on the control system side of the flexible switching device;

柔性切换装置被控对象侧的开关量输出DO板卡各通道,与被控对象的开关量指令端子相连接,传递的是开关量指令信号;Each channel of the switch output DO board on the controlled object side of the flexible switching device is connected with the switch command terminal of the controlled object, and transmits the switch command signal;

柔性切换装置被控对象侧的模拟量输出AO板卡各通道,与被控对象的模拟量指令端子相连接,传递的是模拟量指令信号;Each channel of the analog output AO board on the controlled object side of the flexible switching device is connected to the analog command terminal of the controlled object, and transmits the analog command signal;

柔性切换装置被控对象侧的开关量输入DI板卡各通道,与被控对象的开关量状态端子相连接,传递的是开关量状态信号;Each channel of the switch input DI board on the controlled object side of the flexible switching device is connected to the switch status terminal of the controlled object, and transmits the switch status signal;

柔性切换装置被控对象侧的模拟量输入AI板卡各通道,与被控对象的模拟量检测端子相连接,传递的是模拟量检测信号;Each channel of the analog input AI board on the controlled object side of the flexible switching device is connected to the analog detection terminal of the controlled object, and transmits the analog detection signal;

n套控制系统,根据自动化实验内容对被控对象进行控制,n≥2,每次实验时,只能选中其中一套控制系统进行控制实验;n sets of control systems, control the controlled object according to the content of the automatic experiment, n≥2, in each experiment, only one set of control systems can be selected for the control experiment;

通过柔性切换装置完成n套控制系统之间实时切换,完成n套控制系统同一类型I/O板卡上不同通道之间实时切换,并且具有配置被控对象的时滞大小的功能,获得具有任意时滞大小的广义被控对象,完成具有时滞的自动化实验;The flexible switching device completes the real-time switching between n sets of control systems, completes the real-time switching between different channels on the same type of I/O board in n sets of control systems, and has the function of configuring the time delay of the controlled object. A generalized controlled object with a time delay to complete automated experiments with time delay;

所述柔性切换装置中的切换计算机系统,采用工控机或嵌入式系统或PLC或DCS实现;The switching computer system in the flexible switching device is realized by using industrial computer or embedded system or PLC or DCS;

在所述切换计算机系统中,运行柔性切换软件;In the switching computer system, run flexible switching software;

所述柔性切换软件,包括人机界面操作面板程序及逻辑控制程序,实验人员在人机界面操作面板上,进行控制系统选择、通道配置与时滞配置操作,当配置完成后,逻辑控制程序将根据已经选择或配置好的控制系统、通道及时滞进行控制系统侧对应组的I/O板卡通道与被控对象侧的I/O板卡通道之间进行实时信号传递。The flexible switching software includes a man-machine interface operation panel program and a logic control program. The experimenter performs control system selection, channel configuration and time-delay configuration operations on the man-machine interface operation panel. When the configuration is completed, the logic control program will Real-time signal transmission is performed between the I/O board channel of the corresponding group on the control system side and the I/O board card channel on the controlled object side according to the selected or configured control system, channel and time delay.

所述在人机界面操作面板上进行控制系统选择指,实验人员在人机界面操作面板上选择所需控制系统,一次只能选择一套控制系统,如果选择了该控制系统,意味着本次实验由所选择的控制系统控制被控对象,其他的控制系统在本次实验中禁止使用。The control system selection on the man-machine interface operation panel means that the experimenter selects the desired control system on the man-machine interface operation panel, and can only select one set of control systems at a time. If this control system is selected, it means that this time. The controlled object is controlled by the selected control system, and other control systems are forbidden to be used in this experiment.

所述在人机界面操作面板上进行通道配置指,实验人员通过手动选择所需关联的通道,或者在人机界面操作面板上导入所需关联通道的配置文件,当实验人员选择某一个控制系统并确定通道配置之后,从被控对象的信号端子到所选择的控制系统的I/O板卡各通道之间就形成了一组唯一确定的一一对应关系。The channel configuration on the man-machine interface operation panel means that the experimenter manually selects the desired associated channel, or imports the configuration file of the desired associated channel on the man-machine interface operation panel. When the experimenter selects a certain control system After the channel configuration is determined, a unique set of one-to-one correspondence is formed between the signal terminals of the controlled object and the channels of the I/O board of the selected control system.

所述被控对象的信号端子包括:被控对象的开关量指令端子、被控对象的模拟量指令端子、被控对象的开关量状态端子和被控对象的模拟量检测端子。The signal terminals of the controlled object include: a digital command terminal of the controlled object, an analog command terminal of the controlled object, a digital state terminal of the controlled object, and an analog detection terminal of the controlled object.

所述在人机界面操作面板上进行时滞配置指,若实验人员需要来自被控对象的某模拟量检测信号存在t秒的时滞,则在人机界面操作面板上配置该信号的时滞时间为t秒,柔性切换系统运行后,来自被控对象的该模拟量检测信号将会延时t秒后才会从柔性切换装置控制系统侧输出,送至相应的控制系统的模拟量输入AI板卡通道中,从而构成具有配置功能的任意时滞大小的广义被控对象。The time delay configuration on the man-machine interface operation panel means that if the experimenter needs a time delay of t seconds for a certain analog detection signal from the controlled object, the time delay of the signal is configured on the man-machine interface operation panel. The time is t seconds. After the flexible switching system is running, the analog detection signal from the controlled object will be delayed for t seconds before it is output from the flexible switching device control system side and sent to the analog input AI of the corresponding control system. In the channel of the board card, a generalized controlled object with any time delay size with configuration function is formed.

所述逻辑控制程序进行实时信号传递是指,在选定控制系统之后,按照通道配置,在每个循环周期内完成;The said logic control program performs real-time signal transmission means that after the control system is selected, it is completed in each cycle according to the channel configuration;

将柔性切换装置被控对象侧的每个开关量输入DI信号送至柔性切换装置控制系统侧对应组的指定开关量输出DO通道;Send each digital input DI signal on the controlled object side of the flexible switching device to the designated digital output DO channel of the corresponding group on the control system side of the flexible switching device;

将柔性切换装置控制系统侧的对应组的每个开关量输入DI信号送至柔性切换装置被控对象侧的指定开关量输出DO通道;Send each digital input DI signal of the corresponding group on the control system side of the flexible switching device to the designated digital output DO channel on the controlled object side of the flexible switching device;

将柔性切换装置被控对象侧的每个模拟量输入AI信号送至柔性切换装置控制系统侧对应组的指定模拟量输出AO通道,若配置有时滞t秒,则延时t秒再送;Send each analog input AI signal on the controlled object side of the flexible switching device to the designated analog output AO channel of the corresponding group on the control system side of the flexible switching device.

将柔性切换装置控制系统侧的对应组的每个模拟量输入AI信号送至柔性切换装置被控对象侧的指定模拟量输出AO通道。Send each analog input AI signal of the corresponding group on the control system side of the flexible switching device to the designated analog output AO channel on the controlled object side of the flexible switching device.

具有时滞配置功能的自动化实验平台柔性切换方法,采用具有时滞配置功能的自动化实验平台柔性切换装置实现,包括人机界面程序及逻辑控制程序:The flexible switching method of an automated experimental platform with time-delay configuration function is realized by a flexible switching device of an automated experimental platform with a time-delay configuration function, including a man-machine interface program and a logic control program:

人机界面程序包括步骤A~步骤F:The man-machine interface program includes steps A to F:

步骤A.初始化,启动柔性切换装置中计算机系统,并启动人机界面程序;Step A. Initialize, start the computer system in the flexible switching device, and start the man-machine interface program;

步骤B.实验人员在人机界面操作面板上选择控制系统;Step B. The experimenter selects the control system on the man-machine interface operation panel;

步骤C.在人机界面操作面板上提示:是否导入通道配置文件,若否,则转到步骤D,若是,则转到步骤E;Step C. Prompt on the man-machine interface operation panel: whether to import the channel configuration file, if not, go to step D, if so, go to step E;

步骤D.手动选择通道配置,并转到步骤F;Step D. Manually select the channel configuration and go to Step F;

步骤E.导入通道配置文件;Step E. Import the channel configuration file;

步骤F.配置或修改时滞,并转至步骤G;Step F. Configure or modify the time lag, and go to Step G;

逻辑控制程序包括步骤G~步骤L,其中步骤G~步骤J不分先后顺序:The logic control program includes steps G to L, wherein steps G to J are in no particular order:

步骤G.根据已经选择的控制系统,已经完成的通道配置,将来自被控对象的开关量状态信号,经由柔性切换装置被控对象侧的开关量输入DI板卡通道读入,转送至所选择的柔性切换装置控制系统侧的对应I/O板卡组中的开关量输出DO板卡的指定通道输出,输出至已经选择的控制系统中;Step G. According to the selected control system and the completed channel configuration, read the switch status signal from the controlled object through the switch input DI board channel on the controlled object side of the flexible switching device, and transfer it to the selected The specified channel output of the switch output DO board in the corresponding I/O board group of the flexible switching device on the control system side is output to the selected control system;

步骤H.根据已经选择的控制系统,已经完成的通道配置,将来自所选择的控制系统的开关量输出DO板卡的开关量指令信号,经由柔性切换装置控制系统侧的对应I/O板卡组中的开关量输入DI板卡通道读入,转送至柔性切换装置被控对象侧的开关量输出DO板卡的指定通道输出,输出至被控制对象的执行机构;Step H. According to the selected control system and the completed channel configuration, output the digital command signal of the DO board from the switch of the selected control system, and control the corresponding I/O board on the system side via the flexible switching device The switch input DI board channel in the group is read in, transferred to the designated channel output of the switch output DO board on the controlled object side of the flexible switching device, and output to the actuator of the controlled object;

步骤I.根据已经选择的控制系统,已经完成的通道配置,将来自被控对象的模拟量检测信号,经由柔性切换装置被控对象侧的模拟量输入AI板卡通道读入,按照所配置的时滞时间延迟后,转送至所选择的柔性切换装置控制系统侧的对应I/O板卡组中的模拟量输出AO板卡的指定通道输出,输出至已经选择的控制系统中;Step 1. According to the control system that has been selected, the channel configuration that has been completed, the analog detection signal from the controlled object is read in through the analog input AI board channel on the controlled object side of the flexible switching device, according to the configured After the delay time delay, it is forwarded to the specified channel output of the analog output AO board in the corresponding I/O board group on the control system side of the selected flexible switching device, and output to the selected control system;

步骤J.根据已经选择的控制系统,已经完成的通道配置,将来自所选择的控制系统的模拟量输出AO板卡的模拟量指令信号,经由柔性切换装置控制系统侧的对应I/O板卡组中的模拟量输入AI板卡通道读入,转送至柔性切换装置被控对象侧的模拟量输出AO板卡指定通道输出,输出至被控制对象的执行机构;Step J. According to the selected control system and the completed channel configuration, output the analog command signal of the AO board from the selected control system and control the corresponding I/O board on the system side via the flexible switching device The analog input AI board channel in the group is read in, transferred to the designated channel output of the analog output AO board on the controlled object side of the flexible switching device, and output to the actuator of the controlled object;

步骤K.在人机界面操作面板上提示:控制过程是否结束?若是,则去步骤L,若否,返回步骤F;Step K. Prompt on the man-machine interface operation panel: Is the control process over? If so, go to step L, if not, return to step F;

步骤L.结束。Step L. ends.

有益技术效果:Beneficial technical effects:

本发明提出一种具有时滞配置功能的自动化实验平台柔性切换装置及方法,使得不同的控制系统和同一被控对象所对应的检测仪表、执行机构只需同时连接到柔性切换装置就能方便灵活地实现控制系统之间的柔性切换,同时可以灵活地产生和配置被控对象时滞,使得工业过程控制的研究实验与教学实验能够顺利完成,不必每次更换控制系统并重新连线,节省了大量实验时间,节省系统维护工作量。The invention proposes a flexible switching device and method for an automated experimental platform with a time-delay configuration function, so that the detection instruments and actuators corresponding to different control systems and the same controlled object only need to be connected to the flexible switching device at the same time to be convenient and flexible It can realize the flexible switching between control systems, and can flexibly generate and configure the time delay of the controlled object, so that the research experiments and teaching experiments of industrial process control can be successfully completed, and it is not necessary to replace the control system and reconnect each time. A lot of experiment time, saving the workload of system maintenance.

附图说明Description of drawings

图1为本发明实施例的系统结构及连接关系示意图;FIG. 1 is a schematic diagram of a system structure and a connection relationship according to an embodiment of the present invention;

图2为本发明实施例的具有时滞配置功能的自动化实验平台柔性切换方法流程图;2 is a flowchart of a flexible switching method for an automated experimental platform with a time-delay configuration function according to an embodiment of the present invention;

图3为本发明实施例的柔性切换装置实施例示意图;FIG. 3 is a schematic diagram of an embodiment of a flexible switching device according to an embodiment of the present invention;

图中:1—控制系统,1-1—控制系统1,1-2—控制系统2,1-n—控制系统n,2—柔性切换装置,2-1—柔性切换装置控制系统侧I/O板卡,2-2—柔性切换装置被控对象侧I/O板卡,2-3—切换计算机系统,3—被控对象,3-1—被控制过程,3-2—执行机构,3-3—检测仪表,23-1—开关量指令信号,23-2—模拟量指令信号,32-1—开关量状态信号,32-2—模拟量检测信号,E1—开关量指令端子,E2—模拟量指令端子,E3—开关量状态端子,E4—模拟量检测端子,4—广义被控对象。In the figure: 1—control system, 1-1—control system 1, 1-2—control system 2, 1-n—control system n, 2—flexible switching device, 2-1—flexible switching device control system side I/ O board, 2-2—I/O board on the controlled object side of the flexible switching device, 2-3—switching computer system, 3—controlled object, 3-1—controlled process, 3-2—executor, 3-3—detection instrument, 23-1—switch command signal, 23-2—analog command signal, 32-1—switch status signal, 32-2—analog detection signal, E1—switch command terminal, E2—analog quantity command terminal, E3—switch quantity status terminal, E4—analog quantity detection terminal, 4—generalized controlled object.

具体实施方式Detailed ways

下面结合附图和具体实施实例对发明做进一步说明,本实施例中,将以专利一种多变量的工业过程控制实验装置及方法ZL201610363094.8所描述的空气加热混合过程及其检测仪表和执行机构作为被控过程,对本发明的一种实施方式作详细说明。The invention will be further described below in conjunction with the accompanying drawings and specific implementation examples. In this embodiment, the air heating mixing process and its detection instrument and execution method described in the patent ZL201610363094.8 of a multivariable industrial process control experimental device will be used. As the controlled process, the mechanism will describe an embodiment of the present invention in detail.

如图1所示,具有时滞配置功能的自动化实验平台柔性切换装置包括:控制系统侧I/O板卡2-1、被控对象侧I/O板卡2-2和切换计算机系统2-3;As shown in Figure 1, the flexible switching device of the automated experiment platform with the function of time-delay configuration includes: the control system side I/O board 2-1, the controlled object side I/O board 2-2 and the switching computer system 2-1 3;

具有时滞配置功能的自动化实验平台中n套控制系统通过控制系统侧I/O板卡2-1与柔性切换装置2相连接,柔性切换装置2通过被控对象侧I/O板卡2-2与被控对象3相连接;In the automation experiment platform with time-delay configuration function, n sets of control systems are connected to the flexible switching device 2 through the I/O board 2-1 on the control system side, and the flexible switching device 2 passes through the I/O board 2-1 on the controlled object side. 2 is connected to the controlled object 3;

其中,所述n套控制系统中,包括:控制系统1-1,控制系统1-2…控制系统1-n,每套控制系统包含4种I/O板卡,包括:开关量输出DO板卡、模拟量输出AO板卡、开关量输入DI板卡和模拟量输入AI板卡;Among them, the n sets of control systems include: control system 1-1, control system 1-2... card, analog output AO board, switch input DI board and analog input AI board;

本实施例中选择2套控制系统,即n=2,分别为西门子S7-300PLC控制系统与罗克韦尔L71PLC控制系统。In this embodiment, two sets of control systems are selected, namely n=2, which are Siemens S7-300 PLC control system and Rockwell L71 PLC control system respectively.

作为实验平台中的控制系统之一的西门子S7-300PLC控制系统配有4块I/O板卡,具体型号为:1块16通道开关量输出DO板卡,型号为:6ES7 322-1BH01-0AA0,1块32通道开关量输入DI板卡,型号为;6ES7 321-1BL80-0AA0,1块8通道模拟量输出AO板卡,型号为:6ES7332-5HF00-0AB0,1块8通道模拟量输入AI板卡,型号为:6ES7 331-7KF02-0AB0。As one of the control systems in the experimental platform, the Siemens S7-300 PLC control system is equipped with 4 I/O boards, the specific model is: 1 16-channel switch output DO board, the model is: 6ES7 322-1BH01-0AA0 , 1 32-channel switch input DI board, model: 6ES7 321-1BL80-0AA0, 1 8-channel analog output AO board, model: 6ES7332-5HF00-0AB0, 1 8-channel analog input AI Board, model: 6ES7 331-7KF02-0AB0.

作为实验平台中的控制系统之一的罗克韦尔L71PLC控制系统配有4块I/O板卡,包括1块16通道开关量输出DO板卡,型号为:1756-OB16D、1块32通道开关量输入DI板卡,型号为:1756-IB32、1块8通道模拟量输出AO板卡,型号为:1756-OF8、1块16通道模拟量输入AI板卡,型号为:1756-IF16。As one of the control systems in the experimental platform, the Rockwell L71PLC control system is equipped with 4 I/O boards, including 1 16-channel switch output DO board, model: 1756-OB16D, 1 32-channel Switch input DI board, model: 1756-IB32, 1 8-channel analog output AO board, model: 1756-OF8, 1 16-channel analog input AI board, model: 1756-IF16.

本实施例中的柔性切换装置包括硬件系统和软件系统。The flexible switching device in this embodiment includes a hardware system and a software system.

所述柔性切换装置中的切换计算机系统,采用工控机或嵌入式系统或PLC或DCS实现;The switching computer system in the flexible switching device is realized by using industrial computer or embedded system or PLC or DCS;

本实施例中的柔性切换装置的硬件系统采用不同于上述西门子S7-300PLC控制系统的另外一套西门子S7-300PLC作为切换计算机系统,配置有3套板卡,其中,1套板卡为被控对象侧的板卡,这套板卡中包括4块板卡,具体型号为:1块16通道开关量输出DO板卡,型号为:6ES7 322-1BH01-0AA0,1块32通道开关量输入DI板卡,型号为:6ES7 321-1BL80-0AA0,1块8通道模拟量输出AO板卡,型号为:6ES7 332-5HF00-0AB0,1块8通道模拟量输入AI板卡,型号为:6ES7 331-7KF02-0AB0;另外2套板卡为控制系统侧板卡,分别为控制系统侧西门子组板卡和控制系统侧罗克韦尔组板卡,配置相同,每套板卡包括5块板卡,具体型号为:2块16通道开关量输出DO板卡,型号为:6ES7 322-1BH01-0AA0,1块32通道开关量输入DI板卡,型号为:6ES7 321-1BL80-0AA0,1块8通道模拟量输出AO板卡,型号为:6ES7 332-5HF00-0AB0,1块8通道模拟量输入AI板卡,型号为:6ES7 331-7KF02-0AB0。The hardware system of the flexible switching device in this embodiment adopts another set of Siemens S7-300 PLC, which is different from the above Siemens S7-300 PLC control system, as the switching computer system, and is equipped with 3 sets of boards, of which 1 set of boards is controlled The board on the object side, this set of boards includes 4 boards, the specific model is: 1 16-channel switch output DO board, model: 6ES7 322-1BH01-0AA0, 1 32-channel switch input DI Board, model: 6ES7 321-1BL80-0AA0, 1 8-channel analog output AO board, model: 6ES7 332-5HF00-0AB0, 1 8-channel analog input AI board, model: 6ES7 331 -7KF02-0AB0; the other two sets of boards are the control system side boards, which are the control system side Siemens board and the control system side Rockwell board, with the same configuration, each set of boards includes 5 boards , the specific model is: 2 16-channel switch output DO boards, model: 6ES7 322-1BH01-0AA0, 1 32-channel switch input DI board, model: 6ES7 321-1BL80-0AA0, 1 8 Channel analog output AO board, model: 6ES7 332-5HF00-0AB0, one 8-channel analog input AI board, model: 6ES7 331-7KF02-0AB0.

所述被控对象3包括:被控过程3-1、执行机构3-2和检测仪表3-3;The controlled object 3 includes: a controlled process 3-1, an executive mechanism 3-2 and a detection instrument 3-3;

所述柔性切换装置2和被控对象3组成广义被控对象4;The flexible switching device 2 and the controlled object 3 form a generalized controlled object 4;

每套控制系统中开关量输出DO板卡的每个通道分别与柔性切换装置控制系统侧对应组的开关量输入DI板卡的每个通道相连接;Each channel of the switch output DO board in each control system is respectively connected with each channel of the switch input DI board of the corresponding group on the control system side of the flexible switching device;

每套控制系统中模拟量输出AO板卡的每个通道分别与柔性切换装置控制系统侧对应组的模拟量输入AI板卡的每个通道相连接;Each channel of the analog output AO board in each control system is respectively connected with each channel of the analog input AI board of the corresponding group on the control system side of the flexible switching device;

每套控制系统中开关量输入DI板卡的每个通道分别与柔性切换装置控制系统侧对应组的开关量输出DO板卡的每个通道相连接;Each channel of the switch input DI board in each control system is respectively connected with each channel of the switch output DO board of the corresponding group on the control system side of the flexible switching device;

每套控制系统中模拟量输入AI板卡的每个通道分别与柔性切换装置控制系统侧对应组的模拟量输出AO板卡的每个通道相连接;Each channel of the analog input AI board in each control system is respectively connected with each channel of the analog output AO board of the corresponding group on the control system side of the flexible switching device;

按照附图3所示,将西门子S7-300PLC控制系统的4块板卡与柔性切换装置控制系统侧西门子组的5块板卡以通道对通道的形式对接,其中,柔性切换装置控制系统侧西门子组的32通道开关量输入DI板卡只用16通道,剩余通道空闲,西门子控制系统与柔性切换装置控制系统侧西门子组连接对应关系,如表1所示:As shown in Figure 3, the 4 boards of the Siemens S7-300 PLC control system are connected to the 5 boards of the Siemens group on the side of the flexible switching device control system in the form of channel-to-channel, wherein the Siemens on the side of the flexible switching device control system The 32-channel switch input DI board of the group only uses 16 channels, and the remaining channels are idle. The corresponding relationship between the Siemens control system and the Siemens group on the control system side of the flexible switching device is shown in Table 1:

表1:西门子控制系统与柔性切换装置控制系统侧连接对应关系:Table 1: Corresponding relationship between Siemens control system and flexible switching device control system side connection:

Figure BDA0001879415300000071
Figure BDA0001879415300000071

Figure BDA0001879415300000081
Figure BDA0001879415300000081

按照附图3所示,将罗克韦尔L71PLC控制系统的4块板卡与柔性切换装置控制系统侧罗克韦尔组的5块板卡以通道对通道的形式对接,其中柔性切换装置控制系统侧罗克韦尔组的32通道开关量输入DI板卡仅用16通道,剩余通道空闲,罗克韦尔L71PLC控制系统的16通道模拟量输入AI板卡仅用8通道,剩余通道空闲,罗克韦尔控制系统与柔性切换装置控制系统侧罗克韦尔组连接对应关系,如表2所示。As shown in Figure 3, connect the 4 boards of the Rockwell L71PLC control system to the 5 boards of the Rockwell group on the side of the flexible switching device control system in a channel-to-channel manner, wherein the flexible switching device controls The 32-channel digital input DI board of the Rockwell group on the system side only uses 16 channels, and the remaining channels are free. The 16-channel analog input AI board of the Rockwell L71PLC control system only uses 8 channels, and the remaining channels are free. The corresponding relationship between the Rockwell control system and the Rockwell group on the side of the flexible switching device control system is shown in Table 2.

表2:罗克韦尔控制系统与柔性切换装置控制系统侧连接对应关系:Table 2: Corresponding relationship between Rockwell control system and flexible switching device control system side connection:

Figure BDA0001879415300000082
Figure BDA0001879415300000082

柔性切换装置被控对象侧的开关量输出DO板卡各通道,与被控对象的开关量指令端子E1相连接,传递的是开关量指令信号23-1;Each channel of the switch output DO board on the controlled object side of the flexible switching device is connected to the switch command terminal E1 of the controlled object, and transmits the switch command signal 23-1;

柔性切换装置被控对象侧的模拟量输出AO板卡各通道,与被控对象的模拟量指令端子E2相连接,传递的是模拟量指令信号23-2;Each channel of the analog output AO board on the controlled object side of the flexible switching device is connected to the analog command terminal E2 of the controlled object, and transmits the analog command signal 23-2;

柔性切换装置被控对象侧的开关量输入DI板卡各通道,与被控对象的开关量状态端子E3相连接,传递的是开关量状态信号32-1;Each channel of the digital input DI board on the controlled object side of the flexible switching device is connected to the digital state terminal E3 of the controlled object, and transmits the digital state signal 32-1;

柔性切换装置被控对象侧的模拟量输入AI板卡各通道,与被控对象的模拟量检测端子E4相连接,传递的是模拟量检测信号32-2;Each channel of the analog input AI board on the controlled object side of the flexible switching device is connected to the analog detection terminal E4 of the controlled object, and transmits the analog detection signal 32-2;

2套控制系统,根据自动化实验内容对被控对象进行控制,每次实验时,只能选中其中一套控制系统进行控制实验;2 sets of control systems to control the controlled object according to the content of the automatic experiment. In each experiment, only one of the control systems can be selected for the control experiment;

通过柔性切换装置完成2套控制系统之间实时切换,完成2套控制系统同一类型I/O板卡上不同通道之间实时切换,并且具有配置被控对象的时滞大小的功能,获得具有任意时滞大小的广义被控对象,完成具有时滞的自动化实验;The flexible switching device completes the real-time switching between the two control systems, completes the real-time switching between different channels on the same type of I/O board in the two control systems, and has the function of configuring the time delay of the controlled object, so that the A generalized controlled object with a time delay to complete automated experiments with time delay;

在所述切换计算机系统中,运行柔性切换软件;In the switching computer system, run flexible switching software;

在所述西门子S7-300PLC切换计算机系统中,运行柔性切换软件。In the Siemens S7-300 PLC switching computer system, the flexible switching software is run.

所述柔性切换软件采用WinCC组态软件和STEP 7软件包开发:具体为SIMATICWinCC系统软件完全版V7.0和SIMATIC S7STEP7V5.5。The flexible switching software is developed using WinCC configuration software and STEP 7 software package: specifically, the full version V7.0 of the SIMATIC WinCC system software and the SIMATIC S7STEP7V5.5.

所述柔性切换软件,包括人机界面操作面板程序及逻辑控制程序,使用WinCC组态软件用来开发人机界面操作面板程序,使用STEP 7软件包开发逻辑控制程序。The flexible switching software includes a man-machine interface operation panel program and a logic control program. The WinCC configuration software is used to develop the man-machine interface operation panel program, and the STEP 7 software package is used to develop the logic control program.

所述柔性切换软件,包括人机界面操作面板程序及逻辑控制程序,实验人员在人机界面操作面板上,进行控制系统选择、通道配置与时滞配置操作,当配置完成后,逻辑控制程序将根据已经选择或配置好的控制系统、通道及时滞进行控制系统侧对应组的I/O板卡通道与被控对象侧的I/O板卡通道之间进行实时信号传递。The flexible switching software includes a man-machine interface operation panel program and a logic control program. The experimenter performs control system selection, channel configuration and time-delay configuration operations on the man-machine interface operation panel. When the configuration is completed, the logic control program will Real-time signal transmission is performed between the I/O board channel of the corresponding group on the control system side and the I/O board card channel on the controlled object side according to the selected or configured control system, channel and time delay.

所述在人机界面操作面板上进行控制系统选择指,实验人员在人机界面操作面板上选择所需控制系统,一次只能选择一套控制系统,如果选择了该控制系统,意味着本次实验由所选择的控制系统控制被控对象,其他的控制系统在本次实验中禁止使用。The control system selection on the man-machine interface operation panel means that the experimenter selects the desired control system on the man-machine interface operation panel, and can only select one set of control systems at a time. If this control system is selected, it means that this time. The controlled object is controlled by the selected control system, and other control systems are forbidden to be used in this experiment.

所述在人机界面操作面板上进行通道配置指,实验人员通过手动选择所需关联的通道,或者在人机界面操作面板上导入所需关联通道的配置文件,当实验人员选择某一个控制系统并确定通道配置之后,从被控对象的信号端子到所选择的控制系统的I/O板卡各通道之间就形成了一组唯一确定的一一对应关系。The channel configuration on the man-machine interface operation panel means that the experimenter manually selects the desired associated channel, or imports the configuration file of the desired associated channel on the man-machine interface operation panel. When the experimenter selects a certain control system After the channel configuration is determined, a unique set of one-to-one correspondence is formed between the signal terminals of the controlled object and the channels of the I/O board of the selected control system.

所述在人机界面操作面板上进行时滞配置指,若实验人员需要来自被控对象的某模拟量检测信号存在t秒的时滞,则在人机界面操作面板上配置该信号的时滞时间为t秒,柔性切换系统运行后,来自被控对象的该模拟量检测信号将会延时t秒后才会从柔性切换装置控制系统侧输出,送至相应的控制系统的模拟量输入AI板卡通道中,从而构成具有配置功能的任意时滞大小的广义被控对象。The time delay configuration on the man-machine interface operation panel means that if the experimenter needs a time delay of t seconds for a certain analog detection signal from the controlled object, the time delay of the signal is configured on the man-machine interface operation panel. The time is t seconds. After the flexible switching system is running, the analog detection signal from the controlled object will be delayed for t seconds before it is output from the flexible switching device control system side and sent to the analog input AI of the corresponding control system. In the channel of the board card, a generalized controlled object with any time delay size with configuration function is formed.

所述逻辑控制程序进行实时信号传递是指,在选定控制系统之后,按照通道配置,在每个循环周期内完成;The said logic control program performs real-time signal transmission means that after the control system is selected, it is completed in each cycle according to the channel configuration;

将柔性切换装置被控对象侧的每个开关量输入DI信号送至柔性切换装置控制系统侧对应组的指定开关量输出DO通道;Send each digital input DI signal on the controlled object side of the flexible switching device to the designated digital output DO channel of the corresponding group on the control system side of the flexible switching device;

将柔性切换装置控制系统侧的对应组的每个开关量输入DI信号送至柔性切换装置被控对象侧的指定开关量输出DO通道;Send each digital input DI signal of the corresponding group on the control system side of the flexible switching device to the designated digital output DO channel on the controlled object side of the flexible switching device;

将柔性切换装置被控对象侧的每个模拟量输入AI信号送至柔性切换装置控制系统侧对应组的指定模拟量输出AO通道,若配置有时滞t秒,则延时t秒再送;Send each analog input AI signal on the controlled object side of the flexible switching device to the designated analog output AO channel of the corresponding group on the control system side of the flexible switching device.

将柔性切换装置控制系统侧的对应组的每个模拟量输入AI信号送至柔性切换装置被控对象侧的指定模拟量输出AO通道。Send each analog input AI signal of the corresponding group on the control system side of the flexible switching device to the designated analog output AO channel on the controlled object side of the flexible switching device.

所述被控对象的信号端子包括:被控对象的开关量指令端子E1、被控对象的模拟量指令端子E2、被控对象的开关量状态端子E3和被控对象的模拟量检测端子E4。The signal terminals of the controlled object include: a digital command terminal E1 of the controlled object, an analog command terminal E2 of the controlled object, a digital state terminal E3 of the controlled object, and an analog detection terminal E4 of the controlled object.

西门子PLC控制系统的通道配置是指下述的4个一一对应关系,即从柔性切换装置控制系统侧西门子组的6ES7 321-1BL80-0AA0板卡中已经使用的16个通道到被控对象侧的6ES7 322-1BH01-0AA0板卡16个通道的一一对应关系,从柔性切换装置控制系统侧西门子组的6ES7 331-7KF02-0AB0板卡中的8个通道到被控对象侧的6ES7 332-5HF00-0AB0板卡的8个通道的一一对应关系,从被控对象侧的6ES7 321-1BL80-0AA0板卡的32个通道到控制系统侧西门子组的两块6ES7 322-1BH01-0AA0板卡共32个通道的一一对应关系,从被控对象侧的6ES7 331-7KF02-0AB0板卡的8个通道到控制系统侧西门子组的6ES7 332-5HF00-0AB0板卡的8个通道的一一对应关系。上述对应关系如表3所示:The channel configuration of Siemens PLC control system refers to the following four one-to-one correspondences, that is, from the 16 channels already used in the 6ES7 321-1BL80-0AA0 board of the Siemens group of the flexible switching device control system side to the controlled object side The one-to-one correspondence of the 16 channels of the 6ES7 322-1BH01-0AA0 board, from the 8 channels in the 6ES7 331-7KF02-0AB0 board of the Siemens group on the control system side of the flexible switching device to the 6ES7 332- The one-to-one correspondence of the 8 channels of the 5HF00-0AB0 board, from the 32 channels of the 6ES7 321-1BL80-0AA0 board on the controlled object side to the two 6ES7 322-1BH01-0AA0 boards in the Siemens group on the control system side The one-to-one correspondence of 32 channels, from the 8 channels of the 6ES7 331-7KF02-0AB0 board on the controlled object side to the 8 channels of the 6ES7 332-5HF00-0AB0 board of the Siemens group on the control system side. Correspondence. The above correspondence is shown in Table 3:

表3:柔性切换装置通道配置西门子组板卡:Table 3: Flexible switching device channel configuration Siemens group board:

Figure BDA0001879415300000101
Figure BDA0001879415300000101

罗克韦尔PLC控制系统的通道配置是指下述的4个一一对应关系,即从柔性切换装置控制系统侧罗克韦尔组的西门子S7-300PLC,6ES7 321-1BL80-0AA0板卡中已经使用的16个通道到被控对象侧的6ES7 322-1BH01-0AA0板卡16个通道的一一对应关系,从柔性切换装置控制系统侧罗克韦尔的6ES7 331-7KF02-0AB0板卡中的8个通道到被控对象侧的6ES7332-5HF00-0AB0板卡的8个通道的一一对应关系,从被控对象侧的6ES7 321-1BL80-0AA0板卡的32个通道到控制系统侧罗克韦尔组的两块6ES7 322-1BH01-0AA0板卡共32个通道的一一对应关系,从被控对象侧的6ES7 331-7KF02-0AB0板卡的8个通道到控制系统侧罗克韦尔组的6ES7 332-5HF00-0AB0板卡的8个通道的一一对应关系。上述对应关系如表4所示:The channel configuration of the Rockwell PLC control system refers to the following four one-to-one correspondences, that is, from the Siemens S7-300PLC and 6ES7 321-1BL80-0AA0 boards of the Rockwell group of the flexible switching device control system side The one-to-one correspondence between the 16 channels that have been used and the 16 channels of the 6ES7 322-1BH01-0AA0 board on the controlled object side, from the 6ES7 331-7KF02-0AB0 board of Rockwell on the control system side of the flexible switch One-to-one correspondence between the 8 channels of the 6ES7332-5HF00-0AB0 board on the controlled object side, from the 32 channels of the 6ES7 321-1BL80-0AA0 board on the controlled object side to the control system side The one-to-one correspondence of 32 channels of two 6ES7 322-1BH01-0AA0 boards in the Kwell group, from the 8 channels of the 6ES7 331-7KF02-0AB0 board on the controlled object side to the Rockwell on the control system side The one-to-one correspondence of the 8 channels of the 6ES7 332-5HF00-0AB0 board in the group. The above corresponding relationship is shown in Table 4:

表4:柔性切换装置通道配置西门子组板卡:Table 4: Flexible switching device channel configuration Siemens group board:

Figure BDA0001879415300000111
Figure BDA0001879415300000111

选择西门子PLC控制系统进行实验的实施例,如图2所示:The example of selecting Siemens PLC control system for experiment is shown in Figure 2:

运行人机界面操作面板程序,包括步骤A~步骤F:Run the man-machine interface operation panel program, including steps A to F:

步骤A.初始化,启动柔性切换装置的切换计算机系统,并启动人机界面操作面板程序;Step A. Initialize, start the switching computer system of the flexible switching device, and start the man-machine interface operation panel program;

步骤B.实验人员在人机界面操作面板上选择西门子PLC控制系统,柔性切换装置自然屏蔽罗克韦尔PLC控制系统;Step B. The experimenter selects the Siemens PLC control system on the man-machine interface operation panel, and the flexible switching device naturally shields the Rockwell PLC control system;

步骤C.在人机界面操作面板上提示:是否导入西门子PLC控制系统通道配置文件,若否,则转到步骤D,若是,则转到步骤E;Step C. Prompt on the man-machine interface operation panel: whether to import the Siemens PLC control system channel configuration file, if not, go to step D, if so, go to step E;

步骤D.手动选择通道配置,并转到步骤F;Step D. Manually select the channel configuration and go to Step F;

步骤E.导入西门子PLC控制系统通道配置文件;Step E. Import the Siemens PLC control system channel configuration file;

步骤F.在被控对象侧的6ES7 331-7KF02-0AB0板卡的8个通道中,根据实验需要选择一个或多个需要配置时滞的通道,逐一配置或修改时滞,并转至步骤G;Step F. In the 8 channels of the 6ES7 331-7KF02-0AB0 board on the controlled object side, select one or more channels that need to configure the time delay according to the experimental needs, configure or modify the time delay one by one, and go to step G ;

逻辑控制程序包括步骤G~步骤L,其中步骤G~步骤J不分先后顺序:The logic control program includes steps G to L, wherein steps G to J are in no particular order:

步骤G.根据已经完成的通道配置,将来自被控对象侧的开关量状态信号,经由柔性切换装置被控对象侧的6ES7 321-1BL80-0AA0板卡的32个通道读入,转送至所选择的柔性切换装置控制系统侧的西门子组的2块6ES7 322-1BH01-0AA0板卡共32个指定通道输出,输出至西门子PLC控制系统中;Step G. According to the completed channel configuration, read in the switch status signal from the controlled object side through the 32 channels of the 6ES7 321-1BL80-0AA0 board on the controlled object side of the flexible switching device, and transfer it to the selected 2 pieces of 6ES7 322-1BH01-0AA0 boards of the Siemens group on the control system side of the flexible switching device have a total of 32 designated channel outputs, which are output to the Siemens PLC control system;

步骤H.根据已经完成的通道配置,将来自西门子PLC控制系统的开关量输出DO板卡的开关量指令信号,经由柔性切换装置控制系统侧的西门子组中的6ES7 321-1BL80-0AA0板卡中已经使用的16个通道读入,转送至柔性切换装置被控对象侧的6ES7 322-1BH01-0AA0板卡的16个指定通道输出,输出至被控制对象的执行机构;Step H. According to the channel configuration that has been completed, output the switch quantity command signal of the DO board from the Siemens PLC control system to the 6ES7 321-1BL80-0AA0 board in the Siemens group of the flexible switching device control system side. The 16 channels that have been used are read in, transferred to the 16 designated channels of the 6ES7 322-1BH01-0AA0 board on the controlled object side of the flexible switching device, and output to the controlled object's actuator;

步骤I.根据已经完成的通道配置,将来自被控对象的模拟量检测信号,经由柔性切换装置被控对象侧的6ES7 331-7KF02-0AB0板卡的8个通道读入,按照所配置的时滞时间延迟后,转送至柔性切换装置控制系统侧的西门子组中的6ES7 332-5HF00-0AB0板卡的8个指定通道输出,输出至西门子PLC控制系统中;Step 1. According to the channel configuration that has been completed, the analog detection signal from the controlled object is read in through 8 channels of the 6ES7 331-7KF02-0AB0 board card on the controlled object side of the flexible switching device, according to the configured time. After the delay time delay, it is transferred to the 8 designated channels of the 6ES7 332-5HF00-0AB0 board card in the Siemens group on the control system side of the flexible switching device, and output to the Siemens PLC control system;

步骤J.根据已经完成的通道配置,将来自西门子PLC控制系统的模拟量输出AO板卡的模拟量指令信号,经由柔性切换装置控制系统侧的西门子组中的6ES7 331-7KF02-0AB0板卡的8个通道读入,转送至柔性切换装置被控对象侧的6ES7 332-5HF00-0AB0板卡的8个指定通道输出,输出至被控制对象的执行机构;Step J. According to the completed channel configuration, output the analog command signal of the AO board from the Siemens PLC control system to the 6ES7 331-7KF02-0AB0 board in the Siemens group of the flexible switching device control system side. 8 channels are read in and transferred to the 8 designated channels output of the 6ES7 332-5HF00-0AB0 board on the controlled object side of the flexible switching device, and output to the actuator of the controlled object;

步骤K.在人机界面操作面板上提示:控制过程是否结束?若是,则去步骤L,若否,返回步骤F;Step K. Prompt on the man-machine interface operation panel: Is the control process over? If so, go to step L, if not, return to step F;

步骤L.结束。Step L. ends.

选择罗克韦尔PLC控制系统进行实验的实施例,如图2所示:An example of selecting the Rockwell PLC control system for the experiment is shown in Figure 2:

运行人机界面操作面板程序,包括步骤A~步骤F:Run the man-machine interface operation panel program, including steps A to F:

步骤A.初始化,启动柔性切换装置的切换计算机系统,并启动人机界面操作面板程序;Step A. Initialize, start the switching computer system of the flexible switching device, and start the man-machine interface operation panel program;

步骤B.实验人员在人机界面操作面板上选择罗克韦尔PLC控制系统,柔性切换装置自然屏蔽西门子PLC控制系统;Step B. The experimenter selects the Rockwell PLC control system on the man-machine interface operation panel, and the flexible switching device naturally shields the Siemens PLC control system;

步骤C.在人机界面操作面板上提示:是否导入罗克韦尔PLC控制系统通道配置文件,若否,则转到步骤D,若是,则转到步骤E;Step C. Prompt on the man-machine interface operation panel: whether to import the Rockwell PLC control system channel configuration file, if not, go to step D, if yes, go to step E;

步骤D.手动选择通道配置,并转到步骤F;Step D. Manually select the channel configuration and go to Step F;

步骤E.导入罗克韦尔PLC控制系统通道配置文件;Step E. Import the Rockwell PLC control system channel configuration file;

步骤F.在被控对象侧的6ES7 331-7KF02-0AB0板卡的8个通道中,根据实验需要选择一个或多个需要配置时滞的通道,逐一配置或修改时滞,并转至步骤G;Step F. In the 8 channels of the 6ES7 331-7KF02-0AB0 board on the controlled object side, select one or more channels that need to configure the time delay according to the experimental needs, configure or modify the time delay one by one, and go to step G ;

逻辑控制程序包括步骤G~步骤L,其中步骤G~步骤J不分先后顺序:The logic control program includes steps G to L, wherein steps G to J are in no particular order:

步骤G.根据已经完成的通道配置,将来自被控对象侧的开关量状态信号,经由柔性切换装置被控对象侧的6ES7 321-1BL80-0AA0板卡的32个通道读入,转送至所选择的柔性切换装置控制系统侧的罗克韦尔组的2块6ES7 322-1BH01-0AA0板卡共32个指定通道输出,输出至罗克韦尔PLC控制系统中;Step G. According to the completed channel configuration, read in the switch status signal from the controlled object side through the 32 channels of the 6ES7 321-1BL80-0AA0 board on the controlled object side of the flexible switching device, and transfer it to the selected 2 pieces of 6ES7 322-1BH01-0AA0 boards of the Rockwell group on the flexible switching device control system side, a total of 32 designated channel outputs are output to the Rockwell PLC control system;

步骤H.根据已经完成的通道配置,将来自罗克韦尔PLC控制系统的开关量输出DO板卡的开关量指令信号,经由柔性切换装置控制系统侧的罗克韦尔组中的6ES7 321-1BL80-0AA0板卡中已经使用的16个通道读入,转送至柔性切换装置被控对象侧的6ES7322-1BH01-0AA0板卡的16个指定通道输出,输出至被控制对象的执行机构;Step H. According to the channel configuration that has been completed, output the switch quantity command signal of the DO board from the Rockwell PLC control system, and control the 6ES7 321- of the Rockwell group on the system side via the flexible switch device. The 16 channels already used in the 1BL80-0AA0 board are read in, transferred to the 16 designated channels of the 6ES7322-1BH01-0AA0 board on the controlled object side of the flexible switching device, and output to the actuator of the controlled object;

步骤I.根据已经完成的通道配置,将来自被控对象的模拟量检测信号,经由柔性切换装置被控对象侧的6ES7 331-7KF02-0AB0板卡的8个通道读入,按照所配置的时滞时间延迟后,转送至柔性切换装置控制系统侧的罗克韦尔组中的6ES7 332-5HF00-0AB0板卡的8个指定通道输出,输出至罗克韦尔PLC控制系统中;Step 1. According to the channel configuration that has been completed, the analog detection signal from the controlled object is read in through 8 channels of the 6ES7 331-7KF02-0AB0 board card on the controlled object side of the flexible switching device, according to the configured time. After the delay time delay, it is transferred to the 8 designated channel outputs of the 6ES7 332-5HF00-0AB0 board in the Rockwell group of the flexible switching device control system side, and output to the Rockwell PLC control system;

步骤J.根据已经完成的通道配置,将来自罗克韦尔PLC控制系统的模拟量输出AO板卡的模拟量指令信号,经由柔性切换装置控制系统侧的罗克韦尔组中的6ES7 331-7KF02-0AB0板卡的8个通道读入,转送至柔性切换装置被控对象侧的6ES7 332-5HF00-0AB0板卡的8个指定通道输出,输出至被控制对象的执行机构;Step J. According to the completed channel configuration, output the analog command signal of the AO board from the analog quantity of the Rockwell PLC control system, and control the 6ES7 331- The 8 channels of the 7KF02-0AB0 board are read in and transferred to the 8 designated channels of the 6ES7 332-5HF00-0AB0 board on the controlled object side of the flexible switching device, and output to the actuator of the controlled object;

步骤K.在人机界面操作面板上提示:控制过程是否结束?若是,则去步骤L,若否,返回步骤F;Step K. Prompt on the man-machine interface operation panel: Is the control process over? If so, go to step L, if not, return to step F;

步骤L.结束。Step L. ends.

按照上述要求完成,即得到一套柔性切换装置,该装置在以空气加热混合过程及其检测仪表和执行机构为被控对象,以西门子S7-300PLC控制系统与罗克韦尔L71PLC控制系统为控制系统的实验平台中,实现了两套不同的控制系统之间的可以任意配置时滞的柔性切换功能,实验人员借助于该柔性切换装置,能够分别使用西门子S7-300PLC控制系统与罗克韦尔L71PLC控制系统进行专利ZL20160363094.8(一种多变量的工业过程控制实验装置及方法)以及专利ZL201610362760.6(能够获得非最小相位特性的工业过程控制实验装置及方法)中所描述的所有自动化实验。According to the above requirements, a set of flexible switching device is obtained. The device takes the air heating mixing process and its detection instruments and actuators as the controlled objects, and takes Siemens S7-300PLC control system and Rockwell L71PLC control system as the control system. In the experimental platform of the system, the flexible switching function that can be arbitrarily configured with time delay between two different control systems is realized. With the help of the flexible switching device, the experimenters can use Siemens S7-300 PLC control system and Rockwell respectively. The L71PLC control system performs all automated experiments described in patent ZL20160363094.8 (a multivariable industrial process control experimental device and method) and patent ZL201610362760.6 (industrial process control experimental device and method capable of obtaining non-minimum phase characteristics) .

Claims (5)

1.具有时滞配置功能的自动化实验平台柔性切换装置,其特征在于,具有时滞配置功能的自动化实验平台柔性切换装置包括:控制系统侧I/O板卡、被控对象侧I/O板卡和切换计算机系统;1. The flexible switching device of an automated experimental platform with a time-delay configuration function is characterized in that the flexible switching device of an automated experimental platform with a time-delay configuration function includes: a control system side I/O board, a controlled object side I/O board card and switch computer systems; 具有时滞配置功能的自动化实验平台中n套控制系统通过控制系统侧I/O板卡与柔性切换装置相连接,柔性切换装置通过被控对象侧I/O板卡与被控对象相连接;The n sets of control systems in the automation experiment platform with time-delay configuration function are connected with the flexible switching device through the I/O board on the control system side, and the flexible switching device is connected with the controlled object through the I/O board on the controlled object side; 其中,所述n套控制系统中,每套控制系统包含4种I/O板卡,包括:开关量输出DO板卡、模拟量输出AO板卡、开关量输入DI板卡和模拟量输入AI板卡;Among the n sets of control systems, each control system contains 4 kinds of I/O boards, including: switch output DO board, analog output AO board, switch input DI board and analog input AI board; 所述被控对象包括:被控过程、执行机构和检测仪表;The controlled object includes: the controlled process, the executive mechanism and the detection instrument; 所述柔性切换装置和被控对象组成广义被控对象;The flexible switching device and the controlled object form a generalized controlled object; 所述柔性切换装置控制系统侧I/O板卡划分成n组,每组分别包含4种I/O板卡,包括:开关量输出DO板卡、模拟量输出AO板卡、开关量输入DI板卡和模拟量输入AI板卡,每套控制系统对应一套柔性切换装置控制系统侧的一组I/O板卡;The I/O boards on the control system side of the flexible switching device are divided into n groups, and each group contains 4 kinds of I/O boards, including: switch output DO boards, analog output AO boards, and switch input DI Boards and analog input AI boards, each control system corresponds to a set of I/O boards on the control system side of a flexible switching device; 所述柔性切换装置被控对象侧I/O板卡,包含4种I/O板卡,包括:开关量输出DO板卡、模拟量输出AO板卡、开关量输入DI板卡和模拟量输入AI板卡;The I/O board on the controlled object side of the flexible switching device includes 4 kinds of I/O boards, including: switch output DO board, analog output AO board, switch input DI board and analog input AI board; 每套控制系统中开关量输出DO板卡的通道数量与柔性切换装置控制系统侧每组的开关量输入DI板卡的通道数量以及柔性切换装置被控对象侧的开关量输出DO板卡的通道数量相等,且不少于被控对象所需的DO信号数量;The number of channels of digital output DO boards in each control system, the number of channels of each group of digital input DI boards on the control system side of the flexible switching device, and the channels of the digital output DO boards on the controlled object side of the flexible switching device The number is equal and not less than the number of DO signals required by the controlled object; 每套控制系统中模拟量输出AO板卡的通道数量与柔性切换装置控制系统侧每组的模拟量输入AI板卡的通道数量以及柔性切换装置被控对象侧的模拟量输出AO板卡的通道数量相等,且不少于被控对象所需的AO信号数量;The number of channels of analog output AO boards in each control system, the number of channels of each group of analog input AI boards on the control system side of the flexible switching device, and the channels of the analog output AO boards on the controlled object side of the flexible switching device The number is equal and not less than the number of AO signals required by the controlled object; 每套控制系统中开关量输入DI板卡的通道数量与柔性切换装置控制系统侧每组的开关量输出DO板卡的通道数量以及柔性切换装置被控对象侧的开关量输入DI板卡的通道数量相等,且不少于被控对象所需的DI信号数量;The number of channels of the digital input DI boards in each control system, the number of channels of the digital output DO boards of each group on the control system side of the flexible switching device, and the channels of the digital input DI boards on the controlled object side of the flexible switching device The number is equal and not less than the number of DI signals required by the controlled object; 每套控制系统中模拟量输入AI板卡的通道数量与柔性切换装置控制系统侧每组的模拟量输出AO板卡的通道数量以及柔性切换装置被控对象侧的模拟量输入AI板卡的通道数量相等,且不少于被控对象所需的AI信号数量;The number of channels of analog input AI boards in each control system, the number of channels of each group of analog output AO boards on the control system side of the flexible switching device, and the channels of the analog input AI boards on the controlled object side of the flexible switching device The number is equal and not less than the number of AI signals required by the controlled object; 每套控制系统中开关量输出DO板卡的每个通道分别与柔性切换装置控制系统侧对应组的开关量输入DI板卡的每个通道相连接;Each channel of the switch output DO board in each control system is respectively connected with each channel of the switch input DI board of the corresponding group on the control system side of the flexible switching device; 每套控制系统中模拟量输出AO板卡的每个通道分别与柔性切换装置控制系统侧对应组的模拟量输入AI板卡的每个通道相连接;Each channel of the analog output AO board in each control system is respectively connected with each channel of the analog input AI board of the corresponding group on the control system side of the flexible switching device; 每套控制系统中开关量输入DI板卡的每个通道分别与柔性切换装置控制系统侧对应组的开关量输出DO板卡的每个通道相连接;Each channel of the switch input DI board in each control system is respectively connected with each channel of the switch output DO board of the corresponding group on the control system side of the flexible switching device; 每套控制系统中模拟量输入AI板卡的每个通道分别与柔性切换装置控制系统侧对应组的模拟量输出AO板卡的每个通道相连接;Each channel of the analog input AI board in each control system is respectively connected with each channel of the analog output AO board of the corresponding group on the control system side of the flexible switching device; 柔性切换装置被控对象侧的开关量输出DO板卡各通道,与被控对象的开关量指令端子相连接,传递的是开关量指令信号;Each channel of the switch output DO board on the controlled object side of the flexible switching device is connected with the switch command terminal of the controlled object, and transmits the switch command signal; 柔性切换装置被控对象侧的模拟量输出AO板卡各通道,与被控对象的模拟量指令端子相连接,传递的是模拟量指令信号;Each channel of the analog output AO board on the controlled object side of the flexible switching device is connected to the analog command terminal of the controlled object, and transmits the analog command signal; 柔性切换装置被控对象侧的开关量输入DI板卡各通道,与被控对象的开关量状态端子相连接,传递的是开关量状态信号;Each channel of the switch input DI board on the controlled object side of the flexible switching device is connected to the switch status terminal of the controlled object, and transmits the switch status signal; 柔性切换装置被控对象侧的模拟量输入AI板卡各通道,与被控对象的模拟量检测端子相连接,传递的是模拟量检测信号;Each channel of the analog input AI board on the controlled object side of the flexible switching device is connected to the analog detection terminal of the controlled object, and transmits the analog detection signal; n套控制系统,根据自动化实验内容对被控对象进行控制,n≥2,每次实验时,只能选中其中一套控制系统进行控制实验;n sets of control systems, control the controlled object according to the content of the automatic experiment, n≥2, in each experiment, only one set of control systems can be selected for the control experiment; 通过柔性切换装置,完成n套控制系统与被控对象之间实时切换,完成n套控制系统同一类型I/O板卡上不同通道之间实时切换,并且具有配置被控对象的时滞大小的功能,获得具有任意时滞大小的广义被控对象,完成具有时滞的自动化实验;Through the flexible switching device, the real-time switching between n sets of control systems and the controlled object is completed, and the real-time switching between different channels on the same type of I/O board of n sets of control systems is completed, and it has the time delay of configuring the controlled object. function, obtain a generalized controlled object with any time delay, and complete the automatic experiment with time delay; 所述柔性切换装置中的切换计算机系统,采用工控机或嵌入式系统或PLC或DCS实现;The switching computer system in the flexible switching device is realized by using industrial computer or embedded system or PLC or DCS; 在所述切换计算机系统中,运行柔性切换软件;In the switching computer system, run flexible switching software; 所述柔性切换软件,包括人机界面操作面板程序及逻辑控制程序,实验人员在人机界面操作面板上,进行控制系统选择、通道配置与时滞配置操作,当配置完成后,逻辑控制程序将根据已经选择或配置好的控制系统、通道及时滞进行控制系统侧对应组的I/O板卡通道与被控对象侧的I/O板卡通道之间进行实时信号传递。The flexible switching software includes a man-machine interface operation panel program and a logic control program. The experimenter performs control system selection, channel configuration and time-delay configuration operations on the man-machine interface operation panel. When the configuration is completed, the logic control program will Real-time signal transmission is performed between the I/O board channel of the corresponding group on the control system side and the I/O board card channel on the controlled object side according to the selected or configured control system, channel and time delay. 2.根据权利要求1所述具有时滞配置功能的自动化实验平台柔性切换装置,其特征在于,所述在人机界面操作面板上进行控制系统选择指,实验人员在人机界面操作面板上选择所需控制系统,一次只能选择一套控制系统,如果选择了该控制系统,意味着本次实验由所选择的控制系统控制被控对象,其他的控制系统在本次实验中禁止使用;2. according to the described automatic experiment platform flexible switching device of time-delay configuration function according to claim 1, it is characterized in that, described in the man-machine interface operation panel, carrying out the control system selection means, the experimenter selects on the man-machine interface operation panel For the required control system, only one control system can be selected at a time. If this control system is selected, it means that the selected control system controls the controlled object in this experiment, and other control systems are forbidden to be used in this experiment; 所述在人机界面操作面板上进行通道配置指,实验人员通过手动选择所需关联的通道,或者在人机界面操作面板上导入所需关联通道的配置文件,当实验人员选择某一个控制系统并确定通道配置之后,从被控对象的信号端子到所选择的控制系统的I/O板卡各通道之间就形成了一组唯一确定的一一对应关系;The channel configuration on the man-machine interface operation panel means that the experimenter manually selects the desired associated channel, or imports the configuration file of the desired associated channel on the man-machine interface operation panel. When the experimenter selects a certain control system After the channel configuration is determined, a unique set of one-to-one correspondence is formed between the signal terminals of the controlled object and the channels of the I/O board of the selected control system; 所述在人机界面操作面板上进行时滞配置指,若实验人员需要来自被控对象的某模拟量检测信号存在t秒的时滞,则在人机界面操作面板上配置该信号的时滞时间为t秒,柔性切换系统运行后,来自被控对象的该模拟量检测信号将会延时t秒后才会从柔性切换装置控制系统侧输出,送至相应的控制系统的模拟量输入AI板卡通道中,从而构成具有配置功能的任意时滞大小的广义被控对象。The time delay configuration on the man-machine interface operation panel means that if the experimenter needs a time delay of t seconds for a certain analog detection signal from the controlled object, the time delay of the signal is configured on the man-machine interface operation panel. The time is t seconds. After the flexible switching system is running, the analog detection signal from the controlled object will be delayed for t seconds before it is output from the flexible switching device control system side and sent to the analog input AI of the corresponding control system. In the channel of the board card, a generalized controlled object with any time delay size with configuration function is formed. 3.根据权利要求1所述具有时滞配置功能的自动化实验平台柔性切换装置,其特征在于,所述逻辑控制程序进行实时信号传递是指,在选定控制系统之后,按照通道配置,在每个循环周期内完成:3. according to the described automatic experiment platform flexible switching device with time-delay configuration function according to claim 1, it is characterized in that, described logic control program carries out real-time signal transmission and refers to, after selecting control system, according to channel configuration, in each Completed in cycles: 将柔性切换装置被控对象侧的每个开关量输入DI信号送至柔性切换装置控制系统侧对应组的指定开关量输出DO通道;Send each digital input DI signal on the controlled object side of the flexible switching device to the designated digital output DO channel of the corresponding group on the control system side of the flexible switching device; 将柔性切换装置控制系统侧的对应组的每个开关量输入DI信号送至柔性切换装置被控对象侧的指定开关量输出DO通道;Send each digital input DI signal of the corresponding group on the control system side of the flexible switching device to the designated digital output DO channel on the controlled object side of the flexible switching device; 将柔性切换装置被控对象侧的每个模拟量输入AI信号送至柔性切换装置控制系统侧对应组的指定模拟量输出AO通道,若配置有时滞t秒,则延时t秒再送;Send each analog input AI signal on the controlled object side of the flexible switching device to the designated analog output AO channel of the corresponding group on the control system side of the flexible switching device. 将柔性切换装置控制系统侧的对应组的每个模拟量输入AI信号送至柔性切换装置被控对象侧的指定模拟量输出AO通道。Send each analog input AI signal of the corresponding group on the control system side of the flexible switching device to the designated analog output AO channel on the controlled object side of the flexible switching device. 4.根据权利要求1所述具有时滞配置功能的自动化实验平台柔性切换装置,其特征在于,所述被控对象的信号端子包括:被控对象的开关量指令端子、被控对象的模拟量指令端子、被控对象的开关量状态端子和被控对象的模拟量检测端子。4. The flexible switching device of an automated experimental platform with a time-delay configuration function according to claim 1, wherein the signal terminals of the controlled object comprise: a switch quantity command terminal of the controlled object, an analog quantity of the controlled object Command terminal, switch state terminal of the controlled object and analog detection terminal of the controlled object. 5.具有时滞配置功能的自动化实验平台柔性切换方法,采用权利要求1中具有时滞配置功能的自动化实验平台柔性切换装置实现,其特征在于,包括人机界面程序及逻辑控制程序:5. The flexible switching method of the automated experiment platform with time-delay configuration function is realized by the flexible switching device of the automated experiment platform with time-delay configuration function in claim 1, and it is characterized in that, comprising a man-machine interface program and a logic control program: 人机界面程序包括步骤A~步骤F:The man-machine interface program includes steps A to F: 步骤A.初始化,启动柔性切换装置中计算机系统,并启动人机界面程序;Step A. Initialize, start the computer system in the flexible switching device, and start the man-machine interface program; 步骤B.实验人员在人机界面操作面板上选择控制系统;Step B. The experimenter selects the control system on the man-machine interface operation panel; 步骤C.在人机界面操作面板上提示:是否导入通道配置文件,若否,则转到步骤D,若是,则转到步骤E;Step C. Prompt on the man-machine interface operation panel: whether to import the channel configuration file, if not, go to step D, if so, go to step E; 步骤D.手动选择通道配置,并转到步骤F;Step D. Manually select the channel configuration and go to Step F; 步骤E.导入通道配置文件;Step E. Import the channel configuration file; 步骤F.配置或修改时滞,并转至步骤G;Step F. Configure or modify the time lag, and go to Step G; 逻辑控制程序包括步骤G~步骤L:The logic control program includes steps G to L: 步骤G.根据已经选择的控制系统,已经完成的通道配置,将来自被控对象的开关量状态信号,经由柔性切换装置被控对象侧的开关量输入DI板卡通道读入,转送至所选择的柔性切换装置控制系统侧的对应I/O板卡组中的开关量输出DO板卡的指定通道输出,输出至已经选择的控制系统中;Step G. According to the selected control system and the completed channel configuration, read the switch status signal from the controlled object through the switch input DI board channel on the controlled object side of the flexible switching device, and transfer it to the selected The specified channel output of the switch output DO board in the corresponding I/O board group of the flexible switching device on the control system side is output to the selected control system; 步骤H.根据已经选择的控制系统,已经完成的通道配置,将来自所选择的控制系统的开关量输出DO板卡的开关量指令信号,经由柔性切换装置控制系统侧的对应I/O板卡组中的开关量输入DI板卡通道读入,转送至柔性切换装置被控对象侧的开关量输出DO板卡的指定通道输出,输出至被控制对象的执行机构;Step H. According to the selected control system and the completed channel configuration, output the digital command signal of the DO board from the switch of the selected control system, and control the corresponding I/O board on the system side via the flexible switching device The switch input DI board channel in the group is read in, transferred to the designated channel output of the switch output DO board on the controlled object side of the flexible switching device, and output to the actuator of the controlled object; 步骤I.根据已经选择的控制系统,已经完成的通道配置,将来自被控对象的模拟量检测信号,经由柔性切换装置被控对象侧的模拟量输入AI板卡通道读入,按照所配置的时滞时间延迟后,转送至所选择的柔性切换装置控制系统侧的对应I/O板卡组中的模拟量输出AO板卡的指定通道输出,输出至已经选择的控制系统中;Step 1. According to the control system that has been selected, the channel configuration that has been completed, the analog detection signal from the controlled object is read in through the analog input AI board channel on the controlled object side of the flexible switching device, according to the configured After the delay time delay, it is forwarded to the specified channel output of the analog output AO board in the corresponding I/O board group on the control system side of the selected flexible switching device, and output to the selected control system; 步骤J.根据已经选择的控制系统,已经完成的通道配置,将来自所选择的控制系统的模拟量输出AO板卡的模拟量指令信号,经由柔性切换装置控制系统侧的对应I/O板卡组中的模拟量输入AI板卡通道读入,转送至柔性切换装置被控对象侧的模拟量输出AO板卡指定通道输出,输出至被控制对象的执行机构;Step J. According to the selected control system and the completed channel configuration, output the analog command signal of the AO board from the selected control system and control the corresponding I/O board on the system side via the flexible switching device The analog input AI board channel in the group is read in, transferred to the designated channel output of the analog output AO board on the controlled object side of the flexible switching device, and output to the actuator of the controlled object; 步骤K.在人机界面操作面板上提示:控制过程是否结束?若是,则去步骤L,若否,返回步骤F;Step K. Prompt on the man-machine interface operation panel: Is the control process over? If so, go to step L, if not, return to step F; 步骤L.结束。Step L. ends.
CN201811415725.1A 2018-11-26 2018-11-26 Automatic experiment platform flexible switching device with time-lag configuration function and method Active CN109542085B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811415725.1A CN109542085B (en) 2018-11-26 2018-11-26 Automatic experiment platform flexible switching device with time-lag configuration function and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811415725.1A CN109542085B (en) 2018-11-26 2018-11-26 Automatic experiment platform flexible switching device with time-lag configuration function and method

Publications (2)

Publication Number Publication Date
CN109542085A CN109542085A (en) 2019-03-29
CN109542085B true CN109542085B (en) 2020-10-23

Family

ID=65849670

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811415725.1A Active CN109542085B (en) 2018-11-26 2018-11-26 Automatic experiment platform flexible switching device with time-lag configuration function and method

Country Status (1)

Country Link
CN (1) CN109542085B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6429033B2 (en) * 2016-01-15 2018-11-28 株式会社ダイフク Mechanical equipment control system
CN115019580B (en) * 2022-06-06 2024-12-24 国家石油天然气管网集团有限公司 A portable PLC experiment box

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9026691B2 (en) * 2012-06-26 2015-05-05 Apple Inc. Semi-autonomous touch I/O device controller operation under control of host
CN102891886B (en) * 2012-09-14 2015-05-20 吉视传媒股份有限公司 Multi-screen interaction method and system based on cloud computing
CN105278516B (en) * 2014-06-24 2017-12-12 南京理工大学 A kind of implementation method of the reliable fault-tolerant controller of dual redundant switching value PLC control system
CN107422700B (en) * 2015-05-19 2019-07-19 合肥工业大学 A kind of control method of robot automatic production line experiment platform
CN106527384B (en) * 2016-12-19 2019-03-05 华南理工大学 A kind of production regulation method based on cloud platform complementary handover strategies
CN206451386U (en) * 2016-12-26 2017-08-29 华能(上海)电力检修有限责任公司 A kind of a variety of DCS control devices training systems based on Multi-way switching device
CN107688335B (en) * 2017-07-28 2019-07-12 北京宇航系统工程研究所 A measurement and control system with switchable cruise mode and launch mode
CN107649811A (en) * 2017-09-28 2018-02-02 广州德恒汽车装备科技有限公司 A kind of switching platform for the flexible total spelling system of automobile body-in-white welding
CN108549342A (en) * 2018-04-25 2018-09-18 佛山聚晨知识产权运营有限公司 A kind of multi-work piece hybrid process flexible intelligent manufacture system

Also Published As

Publication number Publication date
CN109542085A (en) 2019-03-29

Similar Documents

Publication Publication Date Title
CN109542085B (en) Automatic experiment platform flexible switching device with time-lag configuration function and method
US20040128027A1 (en) Method and apparatus for controlling a plant
ES8105094A1 (en) Distributed single board computer industrial control system
CN117195989B (en) Vector processor, neural network accelerator, chip and electronic equipment
Bi et al. Knowledge expression, numerical modeling and optimization application of ethylene thermal cracking: From the perspective of intelligent manufacturing
CN107861458B (en) PLC rapid construction method capable of automatically configuring hardware resources
HRP20211408T1 (en) Programmable logic controller and operating system for virtual programmable logic controller and computer program product
CN103558756A (en) Method for implementing single-neuron PID controller based on configuration elements
CN105759745A (en) Industrial automatic control system
CN108732940B (en) Method and system for optimizing overhead oil flow in a catalytic cracking fractionator for gasoline and diesel cutting processes
Saxena et al. Performance of two-link robotic manipulator estimated through the implementation of self-tuned fuzzy PID controller
CN202548562U (en) PLC (Programmable Logic Controller) experiment system
Amaguaña et al. Implementation of PID and MPC Controllers for a Quadruple Tank Process in a 3D Virtual System, Using the Hardware in the Loop Technique
Kumaresan et al. Design and Implementation of a Cascade Control System for Continuous Process Based on Control Logix 5571 PLC
US20200201278A1 (en) Automation framework and controlling method
Wang et al. Adaptive PID temperature controller based on fuzzy logic
JP2013196079A (en) Production facility controller
CN114661005A (en) Custom Logic Engineering Design of Industrial Modular Factory
Saravanabalaji et al. Level Plant Automation Using Yokogawa DCS Centum-VP-A Case Study
Castillo-Carrión et al. Control and monitoring of industrial processes through virtual reality
CN106569468A (en) Network based industrial robot control system
CN109116749A (en) For energizing the semi-matter simulating system and its control method of pipe network system emulation
Bogdan Using the microcontroller and the PLC in a RPP robot control
EP3979585A1 (en) Digital control unit of a bioprocess arrangement
US20190370912A1 (en) Method for Creating a Recipe for a Process-Related Process Plant

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
GR01 Patent grant
GR01 Patent grant