
Bit
Bit
Bit
Bit
(0000)h
(0001)h
(0002)h
(000
3
)h
D0
D2
D3
D1
R
R
R
R
Discrete
I
nput
A
d
d
res
s
1.
5
Memory Map for Discrete input
C/A2 Control output status (0 = OFF ,1 = ON)
A1 Output status (0 = OFF , 1 = ON )
SSR Output status (0 = OFF ,1 = ON)
Digital input status (0 = OFF ,1 = ON)
Parameter
Number
Data
Type
Paramet
er Description
Read
/
Write
Permission
ENDA ET4430 PID
TEMPERATURE
CONTROLLER
MODBUS PROTOCOL ADDRESS MAP
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
Description
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 sample ;
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
* MODBUS CONNECTION DIAGRAM
1
2
0
O
h
m
120 Ohm
Master
Slave - 1
Up to 127 slave devices
can be controlled.
Slave - 2
Slave - 127
A
B
A
B
A
B
A
B
Termination should be accomplished by
attaching 120 Ohm resistors to the start
and at the end of the communication line.
* Applies to devices with Modbus function.
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
3
/
3