THCD-401 Instruction Manual
Page 31 of 47
<cmd> is the command/query (query identified by a ‘?’ after the three chars)
<params> is the comma separated parameter list, if any
<response> is the acceptance indicator.
<data> is the data requested if a query was sent. Note the data usually consists of some
identification string, in CAPS, followed by a colon (:) and then the actual data. Some queries
return multiple lines of information. See individual commands for details as appropriate.
The acceptance indicator is a single character as follows:
•
‘o’ = OK: if the command/query was recognized and accepted;
•
‘b’ = BADCMD: if the command/query was not recognized or has incorrect/invalid parameters
•
‘e’ = ERROR: if there was some internal comms error.
•
‘w’ = BUSY: if the comms is currently busy.
Main commands
(a)
Output current readings – ‘r’
This command tells the THCD to get the current readings of the input channels and output them to the comms.
Note that only data for channels that are marked as being shown is output (see the ‘dis’ command (Error!
Reference source not found.), later). If the input voltage for a channel is more than 15% over the full-scale
voltage set for the channel, the <reading> below will be replaced with the over range error – “RANGE!”.
The readings output format is in CSV format with the channel data comma separated on one line, followed by a
setpoint mode indication, as follows:
READ:<ch1 reading>,<ch2 reading>,<ch3 reading>,<ch4 reading>;<setpoint modes>
↵
The <setpoint modes> is a single number that represents the current mode of all four setpoints as indicated by
the following bit table:
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Decimal Setpt
1
Setpt
2
Setpt
3
Setpt 4
0
0
0
0
0
0
0
0
0
Auto
Auto
Auto
Auto
0
0
0
0
0
0
0
1
1
Open
Auto
Auto
Auto
0
0
0
0
0
0
1
0
2
Close
Auto
Auto
Auto
0
0
0
0
0
1
0
0
4
Auto
Open
Auto
Auto
0
0
0
0
1
0
0
0
8
Auto
Close
Auto
Auto
0
0
0
1
0
0
0
0
16
Auto
Auto
Open
Auto
0
0
1
0
0
0
0
0
32
Auto
Auto
Close
Auto
0
1
0
0
0
0
0
0
64
Auto
Auto
Auto
Open
1
0
0
0
0
0
0
0
128
Auto
Auto
Auto
Close
Set-point Modes Bit Table