beautypg.com

KEPCO BIT 4886 Operator Manual User Manual

Page 37

background image

BIT 4886 120413

4-3

becomes set, the unit is ready for its next command after reading back the data from the query
that was added to the command string.

When sending the above commands via the RS 232 bus, data flow control must be enabled
(XON) for the unit to properly update flash memory.

The *ESR? query is ideal to check if the previous command is complete since it returns either a
1 or 0. It is important that it be sent as a part of the same string as the command that causes a
flash update. As an example, sending CAL:SAVE 12/31/2005;:*esr? or *esr?;:CAL:SAVE 12/31/
2005 are valid command strings. Sending the commands separately will not verify that the previ-
ous command is complete. Figure 4-1 is a program written in C, incorporating these techniques.

Failure to provide an adequate delay can result in:

• Commands that are not processed,

• The following command may be received in error, causing an error in the transmission,

• Unit lock-up requiring power cycling of the unit. If working via the GPIB bus, sending

Interface Clear and Device Clear followed by *RST will unlock the unit.