R
R
R
R
1.3
Memory Map for Input Registerlers
Word
0000d (0000h)
I0
Timer1 time value
(
Must be read according to BCD format
)
Word
Word
Word
000
1
d
(000
1
h)
000
2
d
(000
2
h)
000
3
d
(000
3
h)
000
7
d
(000
7
h)
00
15
d
(000
F
h)
I1
I2
I3
Timer2 time value
(
Format is as in the I0 parameter
)
Out1 puls time value
(
Must be read according to BCD format
.
Sensitivity
0.00sn )
Out2 puls time value
(Format is as in the I2 parameter)
1.4 Memory Map for Output Status Indicator Bits
R
R
R
R
R
R
R
R
OUT1 Output status
(0 = OFF ,1 = ON)
OUT2
Output status
(0 = OFF , 1 = ON )
Panel reset key status (
0 = Reset key inactive, 1 = Reset key is active
)
Reserve
Reset input status (
0 = Reset input inactive, 1 = Reset input is active
)
Gate input status (
0 = Gate input inactive, 1 = Gate input is active
)
Start input status (
0 = Start input inactive, 1 = Start input is active
)
Reserve
D0
D1
D2
D3
D4
D5
D6
D7-D15
Bit
Bit
Bit
Bit
Bit
Bit
Bit
Bit
(0000)h
(0001)h
(0002)h
(000
3
)h
(000
4
)h
(000
5
)h
(000
6
)h
1.5 Memory Map for Software Revision Input Registers
14
Word
Word
1
NOT
E
:
To view each word correctly by changing the byte sequences should be displayed as ASCII TEXT
Word
2
Word
3
Word
4
Word
5
Word
6
Word
7
Word
8
Word
9
Word
10
Word
11
Word
12
Word
13
Word
14
0920
d (0
398
h)
Software
Revision
R
Software name and update date is in ASCII format and 14 word.
Example
: EM440
1
-01
25
March
201
6
.
Memory Format
:
E
4
1
-
1
2
r
2
0
6
M
4
0
0
5
M
a
1
.
...... .......
ENDA EM4401 DIGITAL TIMER MODBUS ADRESS MAP
Holding Register
addresses
Decimal (Hex)
Parameter
Number
Data
Type
Data Content
Read / Write
Permission
Discrete input
addresses
Parameter
Number
Data
Type
Data Content
Read / Write
Permission
2. MODBUS ERROR MESSAGES
Modbus protocol has two types error, communication error and operating error. Reason of the communication error is data corruption in transmission. Parity
and CRC control should be done to prevent communication error. Receiver side checks parity and CRC of the data. If they are wrong, the message will be
ignored. If format of the data is true but function doesn’t perform for any reason, operating error occurs. Slave realizes error and sends error message. Most
significant bit of function is changed '1' to indicate error in error message by slave. Error code is sent in data section. Master realizes error type via this
message.
Error Code
Meaning
Name
ILLEGAL
FUNCTION
ILLEGAL DATA ADDRESS
ILLEGAL DATA VALUE
01
02
03
The function code received in the query is not an allowable action for the slave. If a
Poll Program Complete command was issued, this code indicates that no program
function preceded it.
The data address received in the query is not an allowable address for the slave.
A value contained in the query data field is not an allowable value for the slave.
Device Address
Function Code
Beginning address
of coils.
Number of coils (N)
CRC DATA
MSB
LSB
MSB
LSB
LSB
MSB
Structure of command message (Byte Format)
(0A)h
(01)h
(04)h
(A1)h
(00)h
(01)h
(AC)h
(63)h
Device Address
Function Code
CRC DATA
LSB
MSB
Structure of response message (Byte Format)
(0A)h
(81)h
(02)h
(B0)h
(53)h
Error Code
Message example;
As you see in command message, coil information of (4A1)h = 1185 is required but there isn’t any coil with 1185 address. Therefore error code with number (02)
(Illegal Data Address) sends.
ModBus Error Codes
2
/
2
EM4401-EN-01-180308
SİSEL MÜHENDİSLİK ELEKTRONİK SAN. VE TİC. A.Ş.
Şerifali Mah.
Y.Dudullu 34775
ÜMRANİYE/İSTANBUL-
TURKEY
Tel : +90 216 499 46 64 Pbx. Fax : +90 216 365 74 01
url : www.enda.com.tr
Barbaros Cad. No:
18
ENDA
TM