10 TEGAM WAY • GENEVA, OHIO 44041 • 440-466-6100 • FAX 440-466-6110 • sales@tegam.com
5-12
PROGRAMMING AND INTERFACING
Status – U0, U1, U2, U3, U4, U5, U6, U7
Immediate Commands – I, G, T, E, X, There are a total of 5 immediate commands used via RS232.
“I” – Initializes the 1750 and executes a device clear. When the I command is used the 1750 returns
to its original factory default settings.
“G” – This command gives the unit a trigger to allow the unit to initiate a reading. For example, if the
unit had been previously set for “T4”, Fast Continuous on “G” command, that is, “T4X” the instrument
will begin to take readings after a “GX” command follows.
“E” – Return the generated message from the 1750 output buffer to the controller. This is because the
RS232 interface is not set up for full duplex communications, (handshaking) like the GPIB interface.
“X” – Force execution of preceding commands
Self-Test – Q1X – The Q1 command instructs the 1750 to perform a self-test and the trailing X
instructs the instrument to execute the self-test. If the 1750 passes the Self-Test then the message
“SelfTest PASS” is stored in the output buffer so that the next read instruction will call the message.
If the user is communicating with the instrument with a serial emulator such as Windows
HyperTerminal, an “E” command is also needed to return the self test results to the computer.
Status Commands – Reading the instrument status is usually performed after executing one or more
device dependent commands. The status request function, UnX, (where n=0-7) will generate the
respective responses to the RS232 output buffer of the 1750. The “E” command will return the status
message to the controller. If no status query was entered prior to the “E” command, then the latest
reading of the 1750 will be received by the controller.
Table 5.4: RS232 Status Command Summary
RS232 Hierarchy of Commands
Description
Additional Notes
Active Device Dependent Command Settings
No errors = 000
self test fail = 008
illegal command = 016
conflict = 032
illegal command option = 064
Any time that an error occurs in a program
line, all of the commands in that line up to
the next “X” are disregarded.
To clear an error send U1X then send the
command to read per your command string.
Both actions are required in order to clear the
error bit in the control byte.
Tegam 1750 D02.20 Apr 26,2000
Returns the software revision level of the
1750
Returns the high comparator limit in counts
Returns the low comparator limit in counts
Returns the nominal % comparator value in
counts
Returns the high % comparator limit in %
Returns the low % comparator limit in
counts.
Verification of self-test successful – no
reported errors.