IEC 61131-3 C Tools User Manual


Add to my manuals
501 Pages

advertisement

IEC 61131-3 C Tools User Manual | Manualzz

IEC 61131-3 C Tools Structures and Types

 destination is the task ID of the task to receive the message. It must be specified before calling the send_message function.

 type specifies the type of data in the data field. It may be MSG_DATA,

MSG_POINTER, or any other value defined by the application program. This field is not required.

 data is the message data. The field may contain a datum or pointer. The application program determines the use of this field.

 owner is the task that owns the envelope. This field is set by the RTOS and must not be changed by an application program.

HART_COMMAND

The HART_COMMAND type is a structure containing a command to be sent to a

HART slave device. The command field contains the HART command number.

The length field contains the length of the data string to be transmitted (the byte count in HART documentation). The data field contains the data to be sent to the slave. typedef struct hartCommand_t

{ unsigned command; unsigned length; char data[DATA_SIZE];

}

HART_COMMAND;

 command is the HART command number.

 length is the number of characters in the data string.

 data[DATA_SIZE] is the data field for the command.

HART_DEVICE

The HART_DEVICE type is a structure containing information about the HART device. The information is read from the device using command 0 or command

11. The fields are identical to those read by the commands. Refer to the command documentation for more information. typedef struct hartDevice_t

{ unsigned char manufacturerID; unsigned char manufacturerDeviceType; unsigned char preamblesRequested; unsigned char commandRevision; unsigned char transmitterRevision; unsigned char softwareRevision; unsigned char hardwareRevision; unsigned char flags; unsigned long deviceID;

}

HART_DEVICE;

Document (Version 2.50) 5/12/2011 486 486

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Related manuals

advertisement

Table of contents