摘要
针对常用几种图形组态控制策略识别方法在实际控制中存在逻辑执行顺序错乱的问题,提出了一种基于双堆栈的控制策略识别方法。从功能模块间的输入输出连接关系出发,分别分析了单输入输出、多输入输出、空输入输出、多条回路的处理方法,对于同一个周期被多次调用的功能模块,采取了中间变量分解的方法,解决了调用操作的重复性问题;在确定好控制策略的逻辑执行顺序后,利用栈存储分析了模块间数据的输入输出过程,很好地符合了组态数据流的走向;最后在CASS控制策略生成平台上对该识别方法进行了验证,编译成功后生成了相应的组态IL指令,并且通过代码自动生成过程生成了可用于下位设备的组态算法包。研究结果表明,控制算法生成的函数执行顺序与实际分析的顺序一致,证明了该方法的可行性。
In order to deal with the problems that the confusion of the logic execute order in practical control caused by some common configuration recognition methods,a new method for control configuration recognition based on double-stack was proposed.The manage approach for single input and output,multi inputs and outputs,empty input and output,multi control loop tanks were analyzed from the connection relationships between the function model’s inputs or outputs.For the function models that would be called for many times in a cycle,intermediate variables were used to resolve the problem of the repeat calling operation.After determining the logic execute order of the configuration recognition,the characteristics of the stack were used to analyze the input and output process of the model data,which was accord with the running trend of the configuration data.At last,the method was proved by the control strategies in the computer assist special system(CASS),the corresponding configuration IL instructions was generated after the successful compiling,then the configuration algorithm packages used in the devices were generated through the auto-generation mechanism.The results show that the executable configuration instruction which is generated by the control strategy after the compilation of the platform is conform to the order analyzed by the identification method,which demonstrates the feasibility of the method.
出处
《机电工程》
CAS
2012年第7期850-855,共6页
Journal of Mechanical & Electrical Engineering
基金
浙江省重点科技创新团队资助项目(2010R50008)
关键词
图形组态软件
控制策略
堆栈
识别方法
graphics configuration software
control strategy
stack
identification method