分享

ABB AC900F学习笔记30:freelance 2019 自定义功能块参数存储类型

 风飞扬3krkbwbv 2022-01-05

前面一篇博客在记录学习自定义功能块时,定义的参数有VAR_IN、VAR_OUT、VAR_DPS、PARA_DPS、PARA_VIS、PARA_EXP、MP_EXP几种存储类型,帮助文件里面解释了这几种类型。

VAR_IN represent inputs to the user function block. VAR_IN variables cannot be written to the user function block program. They can be displayed in the faceplate. At runtime, the user function block instance will be supplied at the cycle rate with values from the associated signal lines for further processing.
VAR_OUT represent the outputs of the user function block. The values are calculated by the user function block program and can also be displayed in the faceplate. At runtime, signal lines associated with VAR_OUT variables are updated at the cycle rate.
VAR_DPS are local variables used by the user function block running on the process station. They are used to hold intermediate values. VAR_DPS variables can be read from the faceplate. They are used for internal calculation in the faceplate.
PARA_DPS variables are used in the configuration of values that effect the processing at the process station, for example, operating mode switching. They can be read and written from the faceplate. PARA_DPS variables can be commissioned i.e. they can be written or corrected in commissioning mode.
PARA_VIS variables are used in the configuration of variables which are only used in the faceplate, such as instance-specific display text, and operation locking. PARA_VIS variables cannot be changed from commissioning mode.
PARA_EXP variables are used to reference data of nested function blocks (standardized or user function blocks). They inherit their other characteristics from the parameters they are used to reference. Each variable with the PARA_EXP storage type can be used to reference one and only one parameter of a nested function block.
MP_EXP variables are used to reference message data from nested function blocks. Each one references a complete message structure, comprising message type, message priority, hint data and message text
先吐槽一下,ABB公司在中国扩展业务,其软件的帮助文件全部是英文的,官网的技术文档也全部是英文的,请一个会中文的团队翻译一下很难吗?
言归正传,尽管英文看起来有点头疼,但还是要学习。我结合着自己的理解翻译一下。
VAR_IN 就是自定义功能块的输入变量,是只读变量,不能在自定义功能块修改数值,可以在面板上显示,虽然在对话框编辑时,变量列表没有这一类变量,但是主程序调用自定义功能块的时候,肯定会出现在输入管脚上,在引用这个自定义功能块的时候可以将某个外部变量连接到这个输入管脚。用户在使用自定义功能块的时候,需要连接外部变量。
VAR_OUT 就是自定硬块的输出变量。这个变量由自定义功能块内部算法得到数值,能够在面板上显示,虽然在对话框编辑时,变量列表没有这一类变量,但是主程序调用自定义功能块的时候,肯定会出现在输出管脚上,在引用这个自定义功能块的时候可以将某个外部变量连接到这个输入管脚。在运行阶段按照预定的循环周期刷新数值。
VAR_DPS 就是运行在过程站上自定义功能块的内部变量,基金用于内部计算,不能在对话框编辑时放到某一组,它们不会出现在自定义功能块的输入输出管脚上。换句话说,在引用自定义功能块的时候,不能够将外部某个变量的数值直接传递给这个内部变量。也正因为这样,如果自定义功能块里面引用了系统自定义的面板,比如变量监视、量程转换、PID等等,就不能将VAR_DPS 用于这些面板参数的传递。
PARA_DPS 就是用于过程站进程处理的值的配置。有点绕。比如,操作模式的切换(手动、自动)。这类数值可以通过面板读和写。能够在调试模式下读取和修改数值。
PARA_VIS  仅用于面板上特定范围显示文字变量配置,这里有点懵逼,以后学习过程中理解了再来更新。
PARA_EXP  用于自定义功能块中嵌套函数快的关联数据,可以出现在面板的输入输出管脚。比如自定义功能块里面引用了一个系统自带的量程转换功能块,两成转换功能块需要定义输入输出范围,那么这范围就可以使用PARA_EXP参数来传递,在使用这个自定义功能块时,通过外部变量来传递输入输出量程范围。
MP_EXP  用于自定义功能块中使用的系统功能块的消息类数据,比如自定义功能块引用了模拟量监控功能块,其报警限值可以用MP_EXP类数据在外部定义,参考我前面一篇博客。
 
说到这里,就把几种类型给说完了,后面的博客结合实际的练习来体会一下各种类型参数的应用。

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多