IG-267-EN versión 01; 07/04/2017
104
Communications General Instructions
ekor.rpa
Response in case of error
Start Address Function Error-Code CRC End
Silence DESC FUNC_ERR CODE_ERROR 16 bits Silence
Table 12.5. Data Writing. Response in case of error
Where:
DESC Slave address
FUNC_ERR Code of the function requested, with the most significant bit at 1
CODI_ERROR Code of the error occurred
‘1’ Function error Function not supported by the system
‘2’ Incorrect address due to undeclared address or readings/writings in records with read-only/right-only privileges
‘3’ Data to be entered in record incorrect
‘4’ Error independent of the protocol in the master or slave when running the function
Password-protected write
Some of the parameters of the MODBUS map are protected
from writing using different PASSWORDs.
A write session of Password-protected parameters starts
by entering the PASSWORD in the respective address. The
write session ends with the update of registers once the
respective PASSWORD has been transmitted again. If the
timeout period has elapsed, the process is aborted and
the system returns to normal mode. In normal mode, any
attempt to write a protected registration will result in an
error code '2'.
CRC Generation
The cyclical redundancy check (CRC) field contains two
bytes that are added to the end of the message. The receiver
must re-calculate it and compare it with the received value.
Both values must be equal.
The CRC is the remainder obtained when dividing the
message by a binary polynomial. The receiver must divide
all bits received (information plus CRC) by the same
polynomial used to calculate the CRC. If the remainder
obtained is 0, the information frame is deemed correct.
The polynomial used will be: X
15
+ X
13
+ 1
Register Map
Information (0 x 02XX)
Address Field Description Size Read/write
0 x 0226 Set at 0 x FF Set at 0 x FF 16 bits Read-only
0 x 0227 Set at 0 x FF Set at 0 x FF 16 bits Read-only
0 x 0228 NOT USED NOT USED 16 bits Read-only
0 x 0229 NOT USED NOT USED 16 bits Read-only
0 x 022A
System
Identifier
(Table 2)
Set at 0 x FF FAMILY (LOW) 16 bits Read-only
0 x 022B CHARACTERISTICS (HIGH) VER. FW (LOW) 16 bits Read-only
0 x 022C VER. HW (HIGH) FUNCTIONALITY (LOW) 16 bits Read-only
0 x 022D SUBVER. FW (HIGH) VER. FW DEVELOPMENT (LOW) 16 bits Read-only
0 x 022E Update control NOT USED UPDATE CONTROL (LOW) 16 bits Read-only
0 x 0232
Serial number
Serial nº in BCD format
(Big Endian)
16 bits Read-only
0 x 0233 16 bits Read-only
0 x 0234 16 bits Read-only
0 x 0235 16 bits Read-only
0 x 0236
Logic table identifier
1
º
digit (ASCII 8 bits) 2
nd
digit (ASCII 8 bits) 16 bits Read-only
0 x 0237 3
rd
digit (ASCII 8 bits) 4
th
digit (ASCII 8 bits) 16 bits Read-only
0 x 0238 5
th
digit (ASCII 8 bits) 6
th
digit (ASCII 8 bits) 16 bits Read-only
Table 12.6. Information