47
CALL SEND(12, "F0S1T2U0F5S0T0U6V0W0H2P:D2C", Status%)
As before this command line addresses the 800 at address 12 as a Listener and the code within
quotes is the instruction word as defined in Table 5-1.
5.6.3 Enabling Operate
To cause the Series 800 to output the preset conditions, an instruction is given to assert the
Operate state
CALL SEND(12, "E", Status%)
It is usually desirable to send the Operate and Standby command string and the setting command
string in separate Send statements. After sending the Operate command it is recommended that the
Series 800 be serial polled to determine that the calibrator has actually entered the Operate state. A
routine to assert Operate could look like the following.
'200 milli second wait loop
TimeStart = TIMER
DO WHILE TIMER - TimeStart < .2
LOOP
'Place Series 800 in the Operate state
CALL SEND(12, "E", Status%)
'Serial Poll to determine that the Series 800 is in Operate
DO WHILE(Poll% AND 1) = 0
CALL SPOLL(12, Poll%, Status%)
LOOP
This routine continues until the status byte reflects the deactivated bit has been negated (the
compliment of EAP). Again, an abort routine could have been added to provide an operator's alarm if
the Operate state did not occur.
5.6.4 Reading the Deviation Meter Data
The Deviation meter data may be read after the Record button, located on the front panel of
the calibrator, has been momentarily pressed. This action will assert the Data Available bit of the
status byte. The following routine illustrates the procedure which should be followed to detect the
record button and to then read the Deviation meter data.
PRINT"Press Record Button"
'Loop until the RECORD button has been pressed
DO WHILE (Poll% AND 2) = 0
CALL SPOLL(12, Poll%, Status%)
LOOP
'Read the deviation meter data
Result$ = SPACE$(80)
CALL ENTER(Result$, Length%, 12, Status%)
Result$ = LEFT$(Result$, Length%)
The structure of the transmitted deviation meter data word is given in Table 5-3.
5.6.5 Reading the Energy Delivered Data