Professional Documents
Culture Documents
Olin Modb
Olin Modb
Excel OpenLink 2
ModBus Message Subset
PROTOCOL DOCUMENTATION
CONTENTS
CONTENTS ........................................................................................................................... 1
GENERAL ........................................................................................................................... 2
EN7C-0120 1095R0-MA
EXCEL GP-CONNECT
GENERAL
The Excel 5000® OpenLink 2 ModBus - link is RS485 2- wire and RS485 4- wire compatible.
• Baudrates:
2400, 4800, 9600 Baud
All messages are setup for RTU mode ( Remote Terminal Unit), which means that all characters are in binary format.
RTU Framing:
In case of 16 bit Data elements being transmitted, the MSB is transmitted first.
In spite of that, the 16 bit CRC is transmitted with the LSB first.
For better understanding of the following definitions, the ModBus message specification should be known.
TIMING PARAMETERS
There are 2 relevant timing parameters adjustable:
• Non-response time-out. The maximum time between a request and the response from the slave.
The non-response timeout (maximum time waited by the converter for a response) can be set within a range of 10 to 65534
ms in 2 ms steps.
• Inactivity time-out. The minimum time the master waits after a response had been received to issue the next request.
The inactivity time (time between the last response or, if applicable, the non-response timeout and the next JBUS request)
can be set within a range of 0 to 65534 ms in 2 ms steps
Request Non-response
(converter) timeout
T
Response
(ModBus
control units) T
Inactivity timing
EN7C-0120 1095R0-MA 2
EXCEL GP-CONNECT
Response Format:
Slave 1 or 2 Number of 1st Byte ... (n / 8) th Byte CRC CRC
Address Bytes returned LSB MSB
n = Number of Bytes
Response Format:
Slave 3 or 4 Number of
Address Bytes returned
1st Word 1st Word ... nth Word nth Word CRC CRC
MSB LSB MSB LSB LSB MSB
n = Number of Words
Response Format:
Slave 5 Bit address Bit address Data set = 1 Dummy byte = CRC CRC
Address MSB LSB reset = 0 0 LSB MSB
1st Word 1st Word ... nth Word nth Word CRC CRC
MSB LSB MSB LSB LSB MSB
n = Number of Words
Response Format:
Slave 16 Start address Start address Number of Number of CRC CRC
Address MSB LSB Words LSB Words MSB LSB MSB
3 EN7C-0120 1095R0-MA
EXCEL GP-CONNECT
CRC 16 CALCULATION
C- Code example for generation of the 16 bit CRC:
CRC = 0xFFFF;
EN7C-0120 1095R0-MA 4
EXCEL GP-CONNECT
In case of 32 bit values the high-order word is placed at the lower ModBus address.
Sign
(0=+ 1=-) E (exponent) F (fraction of 23 bits)
MSB LSB
Conversion between a real IEEE and its coding : (-1) S x 1.F x 2 (E-127)
Example : 0 = 00 00 00 00 h
1 = 3F 80 00 00 h
-2.35 = C0 16 66 66 h
MSB LSB
Example : 0 = 00 00 00 00 h
1 = 00 01 00 00 h
-2.35 = 80 02 35 00 h
5 EN7C-0120 1095R0-MA
EXCEL GP-CONNECT
Sign
(0=+ 1=-) BCD coded number
MSB LSB
Example : 0 = 00 00 00 00 h
255 = 00 00 02 55 h
-255 = 80 00 02 55 h
MSB LSB
Example : 0 = 00 00 00 00 h
10 = 00 00 00 10 h
255 = 00 00 02 55 h
Sign
(0=+ 1=-) BCD coded number
MSB LSB
Example : 0 = 00 00 h
255 = 02 55 h
-255 = 82 55 h
EN7C-0120 1095R0-MA 6
EXCEL GP-CONNECT
MSB LSB
Example : 0 = 00 00 h
10 = 00 10 h
255 = 02 55 h
Sign
(0=+ 1=-) Binary number
MSB LSB
Example : 0 = 00 00 00 00 h
255 = 00 00 00 FF h
-1 = FF FF FF FF h
Binary number
MSB LSB
Example : 0 = 00 00 00 00 h
0 = 00 00 00 0A h
255 = 00 00 00 FF h
7 EN7C-0120 1095R0-MA
EXCEL GP-CONNECT
Sign
(0=+ 1=-) Binary number
MSB LSB
Example : 0 = 00 00 h
255 = 00 FF h
-255 = FF 01 h
Binary number
MSB LSB
Example : 0 = 00 00 h
10 = 00 0A h
255 = 00 FF h
EN7C-0120 1095R0-MA 8
EXCEL GP-CONNECT
Function Function Name in ModBus Function Name in J-Bus Supported by Excel 5000
OpenLink 2
Yes No
9 EN7C-0120 1095R0-MA
EXCEL GP-CONNECT
EN7C-0120 1095R0-MA 10