THE CPL PROTOCOL

6 - 45

Example:

 

100

PRINT #1,"ST"

:’Send command

110

GOSUB 1000

:’Sync on acknowledge

120

INPUT #1,STATUS

:’Read Status word

130

IF STATUS < 0 THEN GOTO 120

:’Fetch next status

140

GOSUB 2000

:’Display Status *)

example status:

6CR (= 0000000000000110 in binary)

which means: (because bit 2 and bit 1 are set)

-data out of range and

-data format of the body is wrong

*) See section 6.7 (STATUS) for program example.

Page 262
Image 262
Fluke PM3370B user manual Example status