最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【记录】如何找到EDDL的语法中的CLASS的全部类型的值,包括CONTAINED,DYNAMIC等

EDDL crifan 2303浏览 0评论

【背景】

在看一些DDL文件,是EDDL的语法。

比如,这个ddl可供参考:

http://forums.ni.com/attachments/ni/120/321/2/DevwithMethods.txt

其中,就有这样的代码:

VARIABLE   press_flags
{
    LABEL           "|en|PRESS_FLAGS" ;
	HELP            "|en|Variable used to report pressure sensor alarm conditions.";
    TYPE            BIT_ENUMERATED (1)
    {
        { 0x10,  "|en|Output Port 2 Sensor Failure","|en|" },
        { 0x20,  "|en|Output Port 1 Sensor Failure","|en|" },
        /*{ 0x40,  "|en|Supply Sensor Failure","|en|" }, -- no longer used in Control Board.*/
        { 0x80,  "|en|Loss of Supply","|en|" }
    }
    CONSTANT_UNIT   [blank] ;
    CLASS           CONTAINED & DYNAMIC ;
    HANDLING        READ ;
/*  RESPONSE_CODES  xxx ; */
}


VARIABLE   press_units
{
    LABEL           "|en|PRESS_UNITS" ;
	HELP            "|en|Variable used to select pressure-reading units.";
    TYPE            ENUMERATED (1)    
	{   
        _UNINITIALIZED_VALUE,
        { 6, "|en|psi",  "|en|" },
        { 7, "|en|bar",   "|en|" },
        { 10, "|en|Kg/cm2 ",   "|en|" },
        { 12, "|en|Kpa", "|en|" }
    }
    CONSTANT_UNIT   [blank] ;
    CLASS           CONTAINED ;
    HANDLING        READ & WRITE ;
/*  RESPONSE_CODES  xxx ; */
}

对于其中的CLASS部分,其值,目前已经发现的有CONTAINED,DYNAMIC。

想要找到,其他还有哪些类型的值。

【解决过程】

1.不用多想,肯定是EDDL的语法。

2。之前就找到了,关于EDDL的的官网手册:

EDDL-Spec_2151_V12_Dec05.pdf

然后后来就找到了,对应的语法的解释:

7.19.2.2 CLASS

Purpose

CLASS attribute specifies the effect of a METHOD

on a field device. This attribute is intended

to be used by the EDD application to implem

ent permission levels and organize how

METHODs are presented. METHOD classes are identical to VARIABLE classes.

 

Lexical structure

CLASS [ALARM, ANALOG_OUTPUT, COMPUTATION, CONTAINED, DEVICE, DIAGNOSTIC,

DISCRETE, DYNAMIC, FREQUENCY, HART, INPUT, LOCAL, LOCAL_DISPLAY, OUTPUT,

OPERATE, SENSOR_CORRECTION, TUNE, SERVICE]+

The attributes of CLASS are specified in Table 139.

后面的,Table 139的内容为:


Table 139 – CLASS attributes

Usage

Attribute

Description

s

ALARM

specifies that VARIABLE contains alarm limits

s

ANALOG_INPUT

specifies that VARIABLE is part of an analog input block

s

ANALOG_OUTPUT

specifies that VARIABLE is part of an analog output block

s

COMPUTATION

specifies that VARIABLE is part of a computation block

s

CONTAINED

specifies that VARIABLE represents the physical characteristics of the device

s

CORRECTION

specifies that VARIABLE is part of the correction block

s

DEVICE

specifies that VARIABLE represents the physical characteristics of the device

s

DIAGNOSTIC

specifies that VARIABLE indicates the device status

s

DIGITAL_INPUT

specifies that VARIABLE is part of a digital input block

s

DIGITAL_OUTPUT

specifies that VARIABLE is part of a digital output block

s

DISCRETE_INPUT

specifies that VARIABLE is part of a discrete input block

s

DISCRETE_OUTPUT

specifies that VARIABLE is part of a discrete output block

s

DYNAMIC

specifies that VARIABLE is modified by the device without stimulus from the network

s

FREQUENCY_INPUT

specifies that VARIABLE is part of a frequency input block

s

FREQUENCY_OUTPUT

specifies that VARIABLE is part of a frequency output block

s

HART

specifies that VARIABLE is part of the HART block which characterize the HART interface. There is only one HART block

s

INPUT

specifies that VARIABLE is part of an input block. An input block is a special kind of computation block which does unit conversions, scaling, and damping. The parameter of the input block parameters can be determined by the output of another block

s

LOCAL

specifies that VARIABLE is locally used by the EDD application. Local VARIABLEs are not stored in a device, but they can be sent to a device

s

LOCAL_DISPLAY

specifies that VARIABLE is part of the local display block. A local display block contains the VARIABLEs associated with the local interface (keyboard, display, etc.) of the device

s

OPERATE

specifies that VARIABLE is used to control a block’s operation

s

OUTPUT

specifies that VARIABLE is part of the output block. The values of output VARIABLEs may be accessed by another block input

s

SERVICE

specifies that VARIABLE is used when performing routine maintenance

s

TUNE             

specifies that VARIABLE is used to tune the algorithm of a block

 

【总结】

还是找官网的东西靠谱,和详细。

转载请注明:在路上 » 【记录】如何找到EDDL的语法中的CLASS的全部类型的值,包括CONTAINED,DYNAMIC等

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
83 queries in 0.174 seconds, using 22.23MB memory