Back to Signal Conversion commands
CMD_CNVT_GET_VALUES

Command:              CMD_CNVT_GET_VALUES
Destination: SD_CNVT
Destination Channel: Channel ID

Description

Clients use this command to read one or more signals from the indicated channel.

A list of up to 255 Signal names may be included in the request. The returned data contains the converted values in the same order as they were requested.

Command data format

Number of Signals First Signal Name ... Last Signal Name Padding
1 byte variable ... variable 0-3 bytes

Number
The number of signal names to follow.

Signal Name
The Signal Names are null terminated strings.


Response data format
Number of Signals First Flag First Value ... Last Flag Last Value Padding
1 byte 1 byte vairable ... 1 byte variable 0-3 bytes
first signal last signal

Number
The number of signals to follow.

Flag
Specifies the type of value(s) that follows. (If multiple bits are set, values are present in lsb to msb order - bit 0 to bit 7 order.)
Bit 0 set:   A four byte floating point value follows.
Bit 1 set:   A four byte integer value follows.
Bit 2 set:   A null terminated string follows.

Value
One or more values represting one signal. If the signal is enumerated (logical) both the index value (a four byte integer) and the associated string for that index value are present. If the signal is range converted with string values at either extreme, both the converted value and the string are present at those extremes.


Response return codes
RESP_OK Execution of the command was successful.
RESP_INVAL_CHAN The specified channel is invalid.
RESP_UNSUPPORTED This command is not supported on the specified channel.
RESP_UNREG The specified source channel is not registered with the server.
RESP_UNKNOWN_ERR An unknown error occurred.

|Top|