Store 16-Bit Data

FieldPoint Optomux Programming

Store 16-Bit Data

[cmdchars] = !g

Description

The Store 16-Bit Data command stores output values in nonvolatile memory for use as powerup settings for targeted analog output channels.

Refer to How to Interpret Data for information about interpreting and converting data.

Syntax

!g[positions][data]

[positions]Four ASCII-hex characters specify the targeted channels. A "1" in any bit means that the command stores an output value for the corresponding channel. A zero in any bit means that the corresponding channel is not targeted.
[data]This field should contain 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.

Success Response

A

Error Responses

E_INVALID_CMDUndefined command.
E_INSUFF_CHARSData field error. An insufficient or incorrect number of characters were received for the command.
E_ILLEGAL_DIGITOne or more characters in the command could not be properly converted to a digit (hex or decimal).
E_INV_CHNLOne or more channels specified in the command either do not exist or do not support the specified operation.
E_NO_MODULEThere is no module at the specified address.

Refer to FieldPoint Responses for other possible error responses, error numbers, and error descriptions.

Example

>33!g000301234567[checksum][cr]

This command stores the output value 0x4567 for channel 0 and the output value 0x0123 for channel 1 of the FieldPoint module at address 51 (0x33).