Set Discrete Watchdog Data

FieldPoint Optomux Programming

Set Discrete Watchdog Data

[cmdchars] = !R

Description

The Set Discrete Watchdog Data command sets output levels for targeted discrete output channels of the addressed FieldPoint module. The output channels will output the specified levels if the watchdog timer expires.

Syntax

!R[positions][wdgData]

Use !o!R for modules with up to 32 channels.

[positions]Four ASCII-hex characters specify the targeted channels. A "1" in any bit means that the command stores an output level for the corresponding channel. A zero in any bit means that the corresponding channel is not targeted.

If you send !o!R, [positions] must contain eight ASCII-hex characters.
[wdgData]Four ASCII-hex characters specify the levels that targeted channels must output if the bank watchdog timer expires. A "1" in any bit means ON. A zero in any bit means OFF. The command ignores bits corresponding to untargeted channels.

If you send !o!R, [wdgData] must contain eight ASCII-hex characters.

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_INV_LIMS_GOTSpecified limits invalid 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

The following command sets watchdog output levels for channels of the FieldPoint module at address 51 (0x33). If the watchdog timer expires, channels 0, 1, 2, and 3 will be turned OFF and channels 4, 5, 6, and 7 will be turned ON.

>33!R00FF00F0[checksum][cr]

The following command sets watchdog output levels for channels 0, 14, 24, 25, 28, 29, 30, and 31 of the FieldPoint module at address 34 (0x22). If the watchdog timer expires, channels 0, 14, 25, 28, 29, 30, and 31 will be turned ON and channel 24 will be turned OFF.

>22!o!RF3004001F2004001[checksum][cr]