API Commands Appendix A
A-52 ChartScan User’s Manual
R# - Read Last Readings
TYPE System
EXECUTION Immediate
SYNTAX R#chans Queries the last readings from the HLL Registers for specified channels.
chans may be in two forms:
chan (for a single channel where 1 < chan < max), or
first-last (for a range of channels where 1 < first < last < max),
where max = 128 for ChartScan/1400.
DESCRIPTION
The Read Last Readings (R#) command will return a subset of the Query Last (U13) command. It allows the
specifying of specific channels within the current channel configuration. This comm and is useful for querying
specific channels without having unwanted channels returned. The response to this command takes the sam e
form as the Query Last (U13) command, whereby each reading conforms to the reading output format speci fied
by the Set Data Format (F) command. In addition, each channel is terminated by the HLL term inator hll, as
specified with the Set Query Terminator (Q) command.
Note: If the specified channel, or a range of channels, is not currently defined in the scan group as confi gured by
the Channel Configuration (C) command, a conflict error will be flagged.
EXAMPLES
PRINT#1,"OUTPUT07;C1-16,1X" ‘ Configure channels 1 - 16 for T/C Type J
PRINT#1,"OUTPUT07;F1,0X" ‘ Set format for engineering units degrees C
PRINT#1,"OUTPUT07;R#16X" ‘ Get the last reading for channel 16
PRINT#1,"ENTER07" ‘ Screen shows +0103.20 (channel 16 is 103.2 °C)
LINE INPUT #2, R$
PRINT R
PRINT#1,"OUTPUT07;R#1-4X" ‘ Get the Last readings for channels 1 - 4
PRINT#1,"ENTER07" Screen shows
-0003.70 (channel 1 is -3.7 °C)
+0005.60 (channel 2 is 5.6 °C)
+0010.20 (channel 3 is 10.2 °C)
+0024.40 (channel 4 is 24.4 °C)
LINE INPUT #2, R$
PRINT R#