Identity object specific syntax elements

Một phần của tài liệu Bsi bs en 61158 6 2 2014 (Trang 79 - 83)

4.1.8.2.1.1 Class attributes

The format of the Identity object class attributes shall be as specified in Table 87.

Table 87 – Identity object class attributes

Attribute ID Name Data type Semantics of

values

1 Revision UINT Revision of this

object.

Value = 1

2 Max Instance UINT

6 Max ID Number of Class Attributes UINT 7 Max ID Number of Instance Attributes UINT

4.1.8.2.1.2 Instance attributes

The format of the Identity object instance attributes is as specified in Table 88.

Table 88 – Identity object instance attributes

Attribute

ID Name Data type Semantics of values

1 Vendor ID UINT The value zero shall not be used.

Attribute

ID Name Data type Semantics of values

2 Device Type UINT A listing of the Device Type ranges can be found in 4.1.10.2.5

3 Product Code UINT The value zero is not valid.

4 Revision STRUCT of The value zero shall not be valid for either the Major and Minor Revision fields of a compliant product. A damaged product may return zero to indicate unknown revision if its storage of revision become corrupt.

Major Revision USINT The Major Revision attribute shall be limited to values between 1 and 127 (7 bits). The eighth bit is reserved and shall be zero.

Minor Revision USINT 1 to 255

5 Status WORD Bit definitions are described in Table 89.

6 Serial Number UDINT

7 Product Name SHORT_STRING The maximum number of 8-bit characters in this string shall be 32. Each of the characters shall be in the range 0x20 to 0x7E.

8 State USINT Present state of the device as represented by the state transition diagram:

0 = Nonexistent 1 = Device Self Testing 2 = Standby

3 = Operational

4 = Major Recoverable Fault 5 = Major Unrecoverable Fault 6 to 254 = Reserved

255 = Default value a 9 Configuration

Consistency Value UINT Contents identify configuration of device

10 Heartbeat Interval USINT The nominal interval between heartbeat messages in seconds.

11 Active Language STRUCT of Currently active language for the device.

Language1 USINT The language1 field from the STRINGI data type.

Language2 USINT The language2 field from the STRINGI data type.

Language3 USINT The language3 field from the STRINGI data type.

12 Supported Language ARRAY of STRUCT of

List of languages supported by character strings of data type STRINGI within the device.

Language1 USINT The language1 field from the STRINGI data type.

Language2 USINT The language2 field from the STRINGI data type.

Language3 USINT The language3 field from the STRINGI data type.

13 International Product

Name STRINGI Names of the product in various languages 14 Semaphore STRUCT of Access Synchronization Semaphore

Vendor Number UINT Default: All zero values Client Serial Number UDINT

Semaphore Timer ITIME Timer valid range 100 thru 32 767 15 Assigned_Name STRING1 Use assigned name

16 Assigned_Description STRING1 User assigned description 17 Geographic_Location STRING1 User assigned location 18 Type15 Identity Info Reserved for Type 15 devices.

a The default value shall be used in the Get_Attribute_All response if the attribute is not implemented.

Table 89 – Identity object bit definitions for status instance attribute

Bit(s) Called Definition

0 Owned 1 for TRUE, 0 for FALSE

1 Reserved, set to 0

2 Configured 1 for TRUE, 0 for FALSE

3 Reserved, set to 0

4 to 7 Extended Device Status Vendor specific, or as specified in Table 90 8 Minor Recoverable Fault 1 for TRUE, 0 for FALSE

9 Minor Unrecoverable Fault 1 for TRUE, 0 for FALSE 10 Major Recoverable Fault 1 for TRUE, 0 for FALSE 11 Major Unrecoverable Fault 1 for TRUE, 0 for FALSE

12 to 15 Extended Device Status 2 Reserved (shall be set to 0) or vendor specific

The values of the status bits 4 to 7 shall be as shown in Table 90.

Table 90 – Default values for extended device status field (bits 4 to 7) of status instance attribute

Value Meaning

0 Self–Testing (power–up) or State Unknown 1 Firmware Update in progress

2 Communication Fault (at least one lost connection) 3 Unkeyed, Awaiting Connection, no I/O connection

established

4 Non–Volatile Configuration Bad

5 Major Fault (see bits 10 and 11 for fault classification and LED states)

Minor fault is not a state change

6 Connected, Active, at least one I/O connection in run mode

7 Idle (program mode type), at least one I/O connection established, all in idle mode 8 and 9 reserved, shall not be used

10 to 15 reserved for vendor specific states

4.1.8.2.2 Common services

4.1.8.2.2.1 Get_Attribute_All Response

At the class level, the order of the attributes returned in the “Attribute Data” parameter of the Get_Attribute_All response shall be as defined in Table 91.

Table 91 – Class level object/service specific response data of Get_Attribute_All

Attribute ID Data type Attribute name Default value (if not implemented)

1 UINT Revision 1

2 UINT Max Instance 1

6 UINT Max ID Number Class Attributes 0

7 UINT Max ID Number Instance Attributes 0

Default values shall be inserted for all unsupported attributes.

At the instance level, the order of the attributes returned in the “Attribute Data” parameter of the Get_Attribute_All response shall be as defined in Table 92.

Table 92 – Instance level object/service specific response data of Get_Attribute_All

Attribute ID Data type Attribute name Default value

(if not implemented)

1 UINT Vendor ID

2 UINT Device Type

3 UINT Product Code

4 STRUCT of: Revision

USINT Major Revision USINT Minor Revision

5 WORD Status

6 UDINT Serial Number

7 SHORT STRING Product Name

8 USINT State 255

9 UINT Configuration Consistency Value 0

10 USINT Heartbeat Interval 0

Default values shall be inserted for all unsupported attributes.

If the Get_Attribute_All service returns data after the Heartbeat Interval and the Identity object Revision is 1, the data after the Heartbeat Interval (octet n+4) shall be ignored (since previous editions of the standard contained unparsable content past that point).

4.1.8.2.2.2 Reset service

The Reset common service shall have the object–specific parameter specified in Table 93.

Table 93 – Object-specific parameter for Reset

Name Type Semantics of values

Type USINT Type of Reset. See Table 94.

Table 94 – Reset service parameter values

Value Type of Reset

0 Emulate as closely as possible cycling power on the item the Identity object represents. This value shall be the default if this parameter is omitted.

1 Return as closely as possible to the factory default configuration, then emulate cycling power as closely as possible.

2 Return as closely as possible to the out-of-box configuration with the exception of communication link parameters and emulate cycling power as closely as possible. The communication link parameters that are to be preserved are defined by each network type.

See the Reset service of the network specific link object(s) for complete information.

3 to 99 Reserved.

100 to 199 Vendor specific

200 to 255 Reserved

Một phần của tài liệu Bsi bs en 61158 6 2 2014 (Trang 79 - 83)

Tải bản đầy đủ (PDF)

(266 trang)