
LDM41E and LDM42E Manual
Interface Connection
ASTECH GmbH
Page 39
9.2
Serial Interface RS232
Initially, RS232 communication interfaces purely functioned as PC
communication ports. They have become the established standard tool for
serial data transmission over short cable lengths. With greater transmission
lengths, the interface is highly susceptible to interferences, notably, in the
vicinity of strong electromagnetic noise emitters.
Therefore, it should only be used for LDM41E and LDM42E configuration.
The commands of the serial interface are described in chapter 8 starting page
23. The data output format is determined by parameter SD (display format),
see page 27.
9.3
Output Format Ethernet and RS232
The output format on the serial interface is selected by the command SD.
There are three modes available:
Parameter Output
Format
d
decimal
xxx.xxx<CR><LF>
x=0…9
h
hexadecimal
<SPACE>xxxxxx<CR><LF>
x=0...F
s
Decimal with signal
quality
xxx.xxx<SPACE>yyyyyy<CR><LF>
x=0…9; y=0…9
SD affects all commands that output a distance value.
An output value is calculated from a given measured distance value (in mm),
multiplied by the scale factor SF.
Negative distance values are output in two’s complement notation.
The value for the signal quality varies between 0 and 1024. 0 means a bad
signal quality while 1024 indicates a very good signal quality.
Examples:
Distance = 4,996 m, SF1
dec:
004.996<CR><LF>
hex:
<SPACE>001384<CR><LF>
(= 4996 mm × SF1)
Содержание LDM41E
Страница 1: ...Manual LDM41E and LDM42E Version 1 6 ...
Страница 48: ...Notice LDM41E and LDM42E Manual Page 48 ASTECH GmbH ...