Digital IO Related Commands
RELAY Relay Control Parameter Command
RELAY <relay number>, <feature>, <instance>, <condition> [term]
Parameters
Name |
Type |
Description |
|---|---|---|
relay number |
n |
The relay number to configure: 1 or 2 |
feature |
n |
Input feature for first value: 0 = Off 1 = On 2 = Thermometry Input (Alarms) 3 = Output Status 4 = Digital Input 5 = System Status |
instance |
n/a |
Input instance for first value. Type depends on feature 1:
|
condition |
n |
Condition to evaluate for first value. Valid values depend on feature.
|
Example
RELAY 1, 1, NONE, 0[term] relay 1 normally open contacts are closed and normally closed contacts are open.
Remarks
Each relay has both a Normally Closed and Normally Open contact terminal exposed on the rear panel. Although instances are only required for thermometry input, output status, and digital input features, the instance parameter must be specified for all features and should be set to 0 when not used. The condition parameter varies based on feature type - thermometry input features support alarm and threshold conditions, output status features support various output state conditions, and other features use generic true/false conditions. In addition, for backwards compatibility with the Model 336, input channels can be accepted for the ‘instance’ parameter, and will be treated as ‘don’t cares’ by the Model 346. In addition, in the case of ON and OFF as the feature, the instance and condition parameters will be reset to zero, regardless of what was sent by the user, and will be reported as such, on a subsequent query.
RELAY? Relay Control Parameter Query
RELAY? <relay number> [term]
Parameters
Name |
Type |
Description |
|---|---|---|
relay number |
n |
The relay number to query: 1 or 2 |
Returns
<feature>, <instance>, <condition> (see command for description)
RELAYST? Relay Status Query
RELAYST? <relay number> [term]
Parameters
Name |
Type |
Description |
|---|---|---|
relay number |
n |
The relay number to query: 1 or 2 |
Returns
<relay state>
Remarks
The relay state is either de-energized (0) or energized (1). When the relay is energized, the normally open contacts are closed and the normally closed contacts are open. When the relay is de-energized, the normally open contacts are open and the normally closed contacts are closed. If issuing a RELAY command followed by RELAYST?, it is recommended to wait at least 100 mS before issuing the query to ensure the relay has had time to change state.
DIGIN? Digital Input State Query
DIGIN? [term]
Returns
<digital in 1 state>,<digital in 2 state>[term]
Name |
Type |
Description |
|---|---|---|
digital in 1 state |
n |
0 = low, 1 = high |
digital in 2 state |
n |
0 = low, 1 = high |