摘要
针对西门子控制器在工业控制领域的广泛应用,阐述如何采用C语言的方法编程实现CFC功能块。分析了CFC功能块的基本结构,同时给出了CFC功能块如何基于C语言的代码实现向量数据的指针方式传递,对基于C语言的功能块的生成过程进行了分析。研究表明,灵活运用C语言的指针功能可以开发出满足向量运算所需的CFC功能块。
In view of the facts that Siemens controllers are widely used in the industrial control field, it was discussed how the CFC function blocks can be established by using C language for programming. And the basic structures of the CFC function blocks was analyzed while it was simultaneously explained how the codes based on the C language are transmitted to the pointers with quantity data by application of the CFC function blocks and subsequently the formation process of the function blocks based on C language was analyzed. Analytical results show that the CFC function blocks demanded in vector operations can be developed by the flexible application of the pointing function of C language.
出处
《鞍钢技术》
CAS
2016年第2期45-48,共4页
Angang Technology