LD14x
For setting use
and
keys.
*
= save,
P
= next parameter
H_cntr
Hour meter (1/10 h)
Elapsed time indication (display connected to
battery). Resolution is 1/10 hour (6 minutes).
*
= save,
P
= next parameter
7 - RS232 serial interface (option I1)
If the display is provided with RS-232 serial
interface, the following commands can be used.
7.1 RS232 parameters
9600 Baud rate, 8Bit, no Parity, 1 Stop bit, Xon/Xoff
7.2 Serial commands
Serial commands must have the following structure:
| A D C M N D = X
where:
|:
PC keyboard symbol
AD:
device address (00 to 31) 2 digits
CMND:
command (see command list)
X:
value range (see command list)
Upon receipt of a wrong command the display will
answer with the same c
?
and checksum
(e.g. sent command: |02azs
answer |02azs?EF)
Any common terminal program can be used for
communication with LD140 (e.g. Hyperterminal).
Commands will be send after confirmation by
ENTER
key (carriage return).
Answers have the following structure:
ADCMND:SXXXXXXXXCK
where:
AD:
device address
CMND:
command
XXXXXXXX:
value
CHKS:
checksum
The checksum is equal to the least significant byte
resulting from the sum of the hex values of all
transmitted characters.
Example
The displayed position is 8.29. The position of the
device with address 01 is read by means of the
|01TPOS command.
The answer is: 00000829
9F
The sum of hex values of all characters is as follows:
30+31+54+50+4F+53+3A+2B+30+30+30+30+30+
38+32+39 = 39F
The least significant byte of 39F is
9F
which is the
checksum.
7.2.1 Command list
(below the device address is indicated with
AD
)
Zero-setting the device address
|00
RSET
Address of all connected devices is set to zero (0).
Device address
[1, 31]
|00
INIT=X
It sets the address of all connected devices to X.
Display device address
|00
DADR
It displays the device address until
P
key is pressed.
Change device address
[1, 31]
|AD
RADR=X
It changes the current device address AD to X.
Answer : XCHKS (CHKS is the checksum
and X is the value).
Read actual position
|AD
TPOS
It reads the current position of the device
AD
(resolution of value is 0.01mm or 0.001 inch
depending on settings).
Change counting direction
[0, 1]
|AD
RDIR=X
It sets the counting direction.
X=0
uP
= standard direction
X=1
dn = inverted direction
Answer: 0000000XCHKS
____________________________________________________________________________________________
MAN LD14x I_E_D 4.4.odt
13
www.lika.it
www.lika.biz