MBS
0
0
0
LOW BAT
BIT 3
BIT 2
BIT 1
LSB
BIT 0
• LOW BATT= 0: INACTIVE = 1: LOW BATTERY
BIT 3 BIT 2 BIT 1 BIT 0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
1
1
0
1
0
0
0
1
0
1
0
1
1
0
0
1
1
1
1
0
0
0
1
0
0
1
1
0
1
0
5.3.3 Receive data format
STX
(1 BYTE): F2H
ID
(1 BYTE): 0.9H
DATA
(1 BYTE)
EXT
(1 BYTE): F3H
Example: POSITION DATA FORMAT
MBS
0
0
0
LONG KEY
BIT 3
BIT 2
BIT 1
LSB
BIT 0
= DC mV
= AC/DC V
= AC/DC μA
= AC/DC mA
= AC/DC A
= Ohm (Ω)
= BEEP
= DIODE
= TEMPERATURE (°C/°F)
= CAPACITANCE ( μF)
= FREQUENCY (Hz)
BIT 4 = 0: LONG KEY INACTIVE = 1: LONG KEY
ACTIVE
BIT 3 BIT 2 BIT 1 BIT 0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
1
1
0
1
0
0
0
1
0
1
0
1
1
0
0
1
1
1
1
0
0
0
1
0
0
1
1
0
1
0
5.3.4 A sample Program (FICOM.H)
The following program is an example of a
C language program which helps users to
understand the data format and the data
interfacing method, and also to develop
their own programs.
[Interrupt Usage and Selection between COM1 and COM2]
#define COM1 0
#define COM2 1
/* Base addresses of serial ports */
#define COM1BASE 0x03f8
#define COM2BASE 0xx02f8
#define COMBASE (comport= =COM1) ? COM1BASE: COM2BASE)
/* Registers */
#define THR (COMBASE+0) /* Transmit Holding Register */
#define RBR (COMBASE+0) /* Receive Buffer Register */
#define IER (COMBASE+1) /* Interrupt Enable Register */
#define IIR (COMBASE+2) /* Interrupt Identification Register */
#define LCR (COMBASE+3) /* Line Control Register */
#define MCR (COMBASE+4) /* Modem Control Register */
#define LSR (COMBASE+5) /* Line Status Register */
#define MSR (COMBASE+6) /* Modem Status Register */
E N G L I S H
= NO KEY
= RANGE KEY
= HOLD KEY
= AC/DC KEY
= RECORD KEY
= RELATIVE KEY
= PERCENTAGE KEY
= COMPARE KEY
= EDIT KEY
= CAPACITANCIA (μF)
= FRECUENCIA (Hz)
47