Read 16-Bit Data
[cmdchars] = !F
Description
The Read 16-Bit Data command reads data from targeted analog input and output channels of the addressed FieldPoint module. The command returns data as 16-bit values.
Syntax
!F[positions]
[positions] | Four ASCII-hex characters specify the targeted channels. A "1" in any bit means that the command reads the corresponding channel. A zero in any bit means that the corresponding channel is not targeted. |
Success Response
A[data]
[data] | The command returns four ASCII-hex characters for each targeted channel. The first four characters specify the value for the channel corresponding to the most significant "1" in the [positions] field, and so on. Each set of four characters represents an unsigned 16-bit number. This command returns "????" for targeted discrete channels. |
Error Responses
E_INVALID_CMD | Undefined command. |
E_INSUFF_CHARS | Data field error. An insufficient or incorrect number of characters were received for the command. |
E_ILLEGAL_DIGIT | One or more characters in the command could not be properly converted to a digit (hex or decimal). |
E_INV_CHNL | One or more channels specified in the command either do not exist or do not support the specified operation. |
E_NO_MODULE | There is no module at the specified address. |
Refer to FieldPoint Responses for other possible error responses, error numbers, and error descriptions.
Example
>33!F0003[checksum][cr]
This command reads the data values for channels 0 and 1 of the FieldPoint module at address 51 (0x33). The response is as follows:
A01234567[checksum][cr]
The response indicates that the value on channel 0 is 0x4567 and the value on channel 1 is 0x0123.