Series BGI
10
PM
Print/send data to a Mitutoyo compatible device
Sn
Set output bit (open collector, pull to ground). n=0,1,2
Cn
Clear output bit. n=0,1,2
Rn
Read current status of output bit or level of input pin. n=0,1,2,3
SAVE
Save current settings in nonvolatile memory
CAL
Enter Calibration mode. See Section 10 for more information
LIST
List current settings and status. Here is a typical LIST output:
V3.00;LB;PC;FLTC8;FLTP1;FLTA1;AOUT00;AOFF05;FULL;MIT;POL;B0
All fields are separated by ";". The first field shows the software
version, the last field shows the remaining battery power (B0=full
charge, B3=minimum power). All other fields show the status of
settings and features using the same abbreviations as the
commands to set them.
Any detected errors are reported back by means of the following error codes:
*10 Illegal
command
*11
Not applicable; e.g. SPHn command without enabling the set points
*21
Invalid specifier; e.g. AOFF2
*22
Value too large
*30
Calibration weight too high
*31
Calibration weight too low
*50 Communication
error
*51
Command string too long
Following is a sample BASIC program illustrating the use of some commands. It
switches the units to kilograms and sets the display to zero. Press any key to
get a reading on the screen. Use "ESC" to exit the program.
10
CLS:OPEN"COM1:9600,N,8,1,RS,CS,DS,CD,LF" AS #1
20
PRINT #1 "KG"
30
PRINT #1 "Z"
40
PRINT "PRESS ANY KEY FOR READING OR <ESC> TO
EXIT"
50
KEYPRS$=INKEY$: IF KEYPRS$="" THEN 50
60
IF KEYPRS$=CHR$(27) THEN SYSTEM
70
PRINT #1 "?"
80
LINE INPUT #1,A$
90
PRINT A$
100
GOTO 40