THE CPL PROTOCOL

6 - 49

Example program to investigate status:

2000 PRINT "STATUS IS: ";STATUS

2010 PRINT "MEANING: ";

2020 IF (STATUS AND &H0001) > 0 THEN PRINT "UNKNOWN HEADER" 2030 IF (STATUS AND &H0002) > 0 THEN PRINT "WRONG DATA FORMAT" 2040 IF (STATUS AND &H0004) > 0 THEN PRINT "DATA OUT OF RANGE" 2050 IF (STATUS AND &H0020) > 0 THEN PRINT "INVALID # PARAMS" 2060 IF (STATUS AND &H0040) > 0 THEN PRINT "WRONG # DATABITS" 2070 IF (STATUS AND &H0200) > 0 THEN PRINT "CONFLICT SETTING" 2080 IF (STATUS AND &H0400) > 0 THEN PRINT "USER REQUEST" 2090 IF ABS (STATUS AND &H8000) > 0 THEN PRINT "MORE STATUS" 2100 RETURN

Page 266
Image 266
Fluke PM3370B user manual Example program to investigate status