INSTRUCTIONS FOR USE
OMD 202RS
|
73
8.
DATA PROTOCOL
ERROR STATUS
In case of wrong address or CRC nothing comes back.
In case of error command (CRC is not controlled) <AA> A0 01 <CRC Lo> <CRC Hi> comes back. If an error is in 10h command
error statement “2” or “3” is reported.
If other command is used than the one corresponding with selected data format, it is evaluated as error command.
In common:
<AA>
instrument address - binary 1 - 247 (set in instrument menu)
<CRC Lo> <CRC Hi> is a control word according to definitions in Appendix C of MODBUS protocol description
TERMINATING COMMUNICATION
Communication is terminated provided no data arrives during 3 1/2 characters. This period is determined with uncertainty
of ±250νs. MODBUS has standard rates up to 19 200. For higher rate it is necessary to count with this uncertainty -
e.g. 115 200 Baud -> 500±250 νs, 230 400 Baud -> 250 ±250
FORMAT
ORDER
COMMAND
DATA
U. INT. 16
n/a
0x06
<AA> 06 00 00 <Word Hi> <Word Lo> <CRC Lo> <CRC Hi>
S. INT. 16
n/a
0x06
<AA> 06 00 00 <Word Hi> <Word Lo> <CRC Lo> <CRC Hi>
U. INT. 32
LO - HI
0x10
<AA> 10 00 00 00 02 04 <Lo Word Hi> <Lo Word Lo> <Hi Word Hi> <Hi Word Lo> <CRC Lo> <CRC Hi>
S. INT. 32
LO - HI
0x10
<AA> 10 00 00 00 02 04 <Lo Word Hi> <Lo Word Lo> <Hi Word Hi> <Hi Word Lo> <CRC Lo> <CRC Hi>
FLOAT
LO - HI
0x10
<AA> 10 00 00 00 02 04 <Lo Word Hi> <Lo Word Lo> <Hi Word Hi> <Hi Word Lo> <CRC Lo> <CRC Hi>
U. INT. 32
HI - LO
0x10
<AA> 10 00 00 00 02 04 <Hi Word Hi> <Hi Word Lo> <Lo Word Hi> <Lo Word Lo> <CRC Lo> <CRC Hi>
S. INT. 32
HI - LO
0x10
<AA> 10 00 00 00 02 04 <Hi Word Hi> <Hi Word Lo> <Lo Word Hi> <Lo Word Lo> <CRC Lo> <CRC Hi>
FLOAT
HI - LO
0x10
<AA> 10 00 00 00 02 04 <Hi Word Hi> <Hi Word Lo> <Lo Word Hi> <Lo Word Lo> <CRC Lo> <CRC Hi>
LEGEND
#
Command beginning
<AA>
Instrument address (1…247)
<Word xx>
16-bit data
<Lo Word xx>
32-bit data (lower part)
<Hi Word xx>
32-bit data (higher part)
U.INT.16
unsingned integer
0 (0x0000)…65 535 (0xFFFF)
S.INT.16
singned integer
-32 768 (0x8000)…65 535 (0x7FFF)
U.INT.32
unsingned integer
0 (0x0000 0000)…4 294 967 295 (0xFFFF FFFF)
S.INT.32
singned integer
-2 147 483 648 (0x8000 0000)…65 535 (0x7FFF FFFF)
FLOAT
IEEE fl oating point
±6,8056469338
<Hi Word Hi> = ZEEE EEE; <Hi Word Lo> = EMMM MMMM
<Lo Word Hi> = MMMM MMMM; <Lo Worg Lo> = MMMM MMMM
Z…sign (1(0)/-1(1)); E…Exponent (-127(0x00)…0(0x7F)…128(0xFF))
M…Mantisa (1.0…2.0), highest mantisa bit is always 1 and it is covered by the lowest
exponent bit
e.g.: 0x3F80 0000 = Z*2ˆE*M = 1*2ˆ(0)*1 = 1