Appendix C Registers, Data Formats, & Queries
ChartScan User’s Manual C-5
Example 6:
Example 6 shows how to retrieve the Last readings for a subset of the configured channels.
PRINT#1,"OUTPUT07 F0,0 Q1,1,0,0,0X" ‘ Set format to ASCII degrees C with
‘ HLL terminator ‘ of CR LF/EOI
PRINT#1,"OUTPUT07 C1-4,1X" ‘ Configure four channel (no setpoints)
.
.
.
‘ Configure and start the acquisition
PRINT#1,"OUTPUT07; R#2-3X" ‘ Just get the Last reading for channels 2 and 3
PRINT#1,"ENTER07" ‘ Get Last reading for channel 2
INPUT A$ ‘ Screen shows....
PRINT A$
+0250.60
PRINT#1,"ENTER07" ‘ Get Last reading for channel 3
INPUT A$ ‘ Screen shows....
PRINT A$
-0049.50
Data Format (F)
Readings from ChartScan are output in the format configured by the user. The Data Format (F) command
determines the engineering unit and whether an ASCII format, binary format or a raw data count is to be used.
Options for the engineering units and data formats are shown in the following table:
Data Format (F)
Engineering Unit
Code
Data Format Code
Celsius [default]
°C
0
Engineering Units [default]
0
Fahrenheit
°F
1
Binary (Low Byte/High Byte)
1
Rankine
°R
2
Binary (High Byte/Low Byte)
2
Kelvin
°K
3
Counts (ASCII)
3
Volts
4
Note:
If a data format of 1 or 2 (binary), or 3 (counts) is specified as the data
format, the Engineering Units of the F command is ignored.

Data Input Formats

The Data Format (F) command determines the format of only some of the data input from the controller. Input
data comes in the form of command parameters from the controller. (All commands and data sent to ChartScan
are in ASCII, although the engineering unit may vary.)
The command parameters over which the F command determines their format are the high, low setpoints and the
hysteresis parameters for the Channel Configuration (C) command and the Set Trigger Level (L) command.
These are the only command parameters over which the Data Format (F) command has control. These
command paramete rs cannot be issued in binary format. If binary format is specified by the F command these
parameters will be interpreted as Engineering Units.
These parameters will always be interpreted as Engineering Units as currently defined by the Engineering Units
argument of the F command except when the Counts format is specified. When the Counts format is specified,
these parameters are interpreted as Counts. For additional information see the command reference section.
Note: If Counts or Binary format is specified as the format, the Engineering Units parameter of
the F command is ignored.