Professional Documents
Culture Documents
20
MODBUS PROTOCOL
Technical Manual
ENTEC ENTEC
ELECTRIC & ELECTRONIC CO., LTD
Copyright © 2006 by ENTEC ELECTRIC & ELECTRONIC CO., LTD all right reserved. Forerunner Distribution & Automation
MODBUS PROTOCOL http://www.entecene.co.kr
Release Note:
ENHANCED TECHNOLOGY i
MODBUS PROTOCOL http://www.entecene.co.kr
TABLE OF CONTENTS
1. Introduction ..………………...…………………………………………………………………1
2. Configuratio ..………..…………………………………………………………………………2
3. Read Binary Status ….…………………………………………………………………………3
4. Read Setting Values ……....……………………………………………………………………4
ENHANCED TECHNOLOGY ii
MODBUS PROTOCOL http://www.entecene.co.kr
1. Introuction
This is MODBUS Protocol information. EVRC2A-N provides MODBUS and DNP3.0 Protocol as
well as it provides physical layer such as RS232, RS485, RS485 and two serial communication
mode(ASCII, RTU).
It is available to set EVRC2A-N MODBUS Protocol depending upon Communication speed and
Parity bit in different ports. The communication speeds are 1200, 2400, 9600, 19200 and Parity bits
are EVEN, ODD, NO Parity. Each data packet consists of one(1) start bit, eight(8) of data bit,
one(1) stop bit and one Parity bit for Asynchronous communication.
EVRC2A-N has nine(9) Function codes, 512 Registers to read and change settings, and 124 Coils.
ENHANCED TECHNOLOGY 1
MODBUS PROTOCOL http://www.entecene.co.kr
2. Configuration
Following Data is Function Code and Register of EVRC2A-N.
Supported Function Code
FUNCTION CODE
MODBUS DEFINITION EVRC2A-N DEFINITION
HEX DEC
0x01 1 Read Coil Status Read Binary Status
0x02 2 Read Input Status Read Binary Status
0x03 3 Read Holding Registers Read Setting values
Read Metering Values or Event Data,
0x04 4 Read Input Registers
Temporary Setting Value
0x05 5 Force Single Coil Execute Operation
0x06 6 Preset Single Register Write Single Setting value
0x08 8 Diagnostics Diagnostics
0x10 16 Preset Multiple Registers Write Multiple Setting Values
0x11 17 Report Slave ID Report Slave ID
Register
MODBUS DEFINITION EVRC2A-N DEFINITION
(Decimal)
0000 ~ 0123 Read Coil Status(Read Input Status) Read Binary Status
0000 ~ 0123 Read Coil Status(Read Input Status) Read Binary Status
2000 ~ 2168 Read/Write Holding Registers Read/Write Setting values, Event Select, Time
ENHANCED TECHNOLOGY 2
MODBUS PROTOCOL http://www.entecene.co.kr
The Query Packet specifies the starting address and quantity of point to be read.
Here is an example of a request to read binary 15 ~ 25(System Warning, Protection Enable, ..., Hot
Line Tag Enabled) from slave device 01.
Table A-3. MASTER/SLAVE PACKET FORMAT FOR FUNCTION CODE 01H(02H)
MASTER QUERY FORMAT SLAVE RESPONSE
The slave device responds with the bit values 1, 0, 1, 1, 0, 0, 1, 0, 0 and 1 from binary status
addresses 13h through 23h inclusive. The first byte contains the first eight data bits stored in the
least significant to the most significant bit position. The second byte contains the last two data bits
stored in the least two significant bit positions. Note that the rest of the second byte is zero-filled.
Example
DATA BYTE #2 DATA BYTE #1
Coil 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20
Bit Position 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
Binary Data 0 0 0 0 0 0 1 0 0 1 0 0 1 1 0 1
ENHANCED TECHNOLOGY 3
MODBUS PROTOCOL http://www.entecene.co.kr
The Query Packet specifies the starting address and quantity of registers to be read.
Here is an example of a request to read registers 2008 ~ 2009(1183 ~ 1184 : Load profile event
record and interval) from slave device 01.
ENHANCED TECHNOLOGY 4
MODBUS PROTOCOL http://www.entecene.co.kr
The register data in the response are packed as two bytes per register, with the binary contents right
justified within each byte. For each register, the first byte contains the high order bits and the
second contains the low order bits. The slave device responds with the values 1(ON) and 1(10 min)
from registers 7D8h(49Fh) and 7D9h(4A0) respectively.
Example
DATA #2 HI DATA #2 LO DATA #1 HI DATA #1 LO
Register Value 1 1
ENHANCED TECHNOLOGY 5
MODBUS PROTOCOL http://www.entecene.co.kr
The Query Packet specifies the starting address and quantity of registers to be read.
Here is an example of a request to read registers 1001 ~ 1002(Firmware version control and RTU)
from slave device 01.
Table A-5. MASTER/SLAVE PACKET FORMAT FOR FUNCTION CODE 04H
MASTER QUERY FORMAT SLAVE RESPONSE FORMAT
The slave device responds with the values 400and 100 from registers 3E8h and 3E9h respectively.
Example
DATA #2 HI DATA #2 LO DATA #1 HI DATA #1 LO
ENHANCED TECHNOLOGY 6
MODBUS PROTOCOL http://www.entecene.co.kr
6. Execute Operation
Description
Force a single coil to either ON or OFF. When broadcast, the function code forces the same coil
reference in all attached EVRC2A-Ns. It operates DO point of Recloser.
The requested ON/OFF state is specified by a constant in the query data field.
A value of FF 00 hex requests the coil to be ON. A value of 00 00 hex requests the coil to be OFF.
All other values will not affect the coil.
Here is an example of a request to force coil 1 ON in slave device 17. It means the master station
send a command “CLOSE”.
Table A-6. MASTER/SLAVE PACKET FORMAT FOR FUNCTION CODE 05H
MASTER QUERY FORMAT SLAVE RESPONSE FORMAT
The response of slave 17 return after the coil state has been forced.
ENHANCED TECHNOLOGY 7
MODBUS PROTOCOL http://www.entecene.co.kr
ENHANCED TECHNOLOGY 8
MODBUS PROTOCOL http://www.entecene.co.kr
※ A “Pulse ON” code takes effect immediately when received, therefore timing is irrelevant
5) Block Condition Description
ENHANCED TECHNOLOGY 9
MODBUS PROTOCOL http://www.entecene.co.kr
The query packet specifies the register reference to be preset. The requested preset value is
specified in the query data field.
MODBUS MEMORY MAP describes on Appendix. Here shows a master device storing the value
0 at memory map address 2001 to slave device 01. It perform changing the VOC(value of change)
event setting 1 to “OFF” on temporary setting value.
Table A-8. MASTER/SLAVE PACKET FORMAT FOR FUNCTION CODE 06H
MASTER QUERY FORMAT SLAVE RESPONSE FORMAT
The response of slave 01 returns after the register contents have been preset.
ENHANCED TECHNOLOGY 10
MODBUS PROTOCOL http://www.entecene.co.kr
The query packet specifies the register references to be preset. The requested preset values are
specified in the query data field.
Here is an example of a request to preset two registers starting at 2001 to 00 00 and 01 40 hex, in
slave device 01. It perform changing the VOC(value of change) event setting 1 to “OFF” and VOC
event limit value 1 to “320 xCT” on temporary setting value.
DATA #1 HI 00
DATA #1 LO 00
DATA #2 HI 01
DATA #2 LO 40
The response of slave returns the slave address, function code, starting address, and quantity of
registers preset.
ENHANCED TECHNOLOGY 11
MODBUS PROTOCOL http://www.entecene.co.kr
9. Remaining Function
9.1. Diagnostics
Description
Modbus function 08 provides a series of test for checking the communication system between the
master station and IEDs, or for checking various internal error conditions within the slave.
Broadcast is not supported. The query packet specifies a two-byte subfunction code field to define
the type of test to be performed. The slave echoes both the function code and subfunction code in a
normal response. Most of the diagnostic queries use a two-byte data field to send diagnostic data or
control information to the slave.
Diagnostic
Function
0x08 (Preset Multiple Registers)
0x00 (Return Query Data) Check Communication status in Master.
Subfunction 0x01 (Restart Comm. Option) Communication Device Restart
Here is an example of a request to slave device 01 to Return Query Packet. This uses a subfunction
code of zero (00 00 hex in the two-byte field).
Table A-10. MASTER/SLAVE PACKET FORMAT FOR FUNCTION CODE 08H
MASTER QUERY FORMAT SLAVE RESPONSE FORMAT
SUBFUNCTION HI 00 SUBFUNCTION HI 00
SUBFUNCTION LO 00 SUBFUNCTION LO 00
DATA HI 00 DATA HI 00
DATA LO C8 DATA LO C8
The slave response to the Return Query Packet request is to loopback the same data.
ENHANCED TECHNOLOGY 12
MODBUS PROTOCOL http://www.entecene.co.kr
Description
Return a description of the type of controller present at the slave address, the current status of the
slave Run indicator, and other information specific to the slave device. Broadcast is not supported.
Supported Function
Report Slave ID
Function
0x11 (Preset Multiple Registers)
Here is an example of a request to report the ID and status of slave device 01.
Table A-11. MASTER/SLAVE PACKET FORMAT FOR FUNCTION CODE 11H
MASTER QUERY FORMAT SLAVE RESPONSE FORMAT
00 = OFF
RUN INDICATOR STATUS
FF = ON
ENHANCED TECHNOLOGY 13
MODBUS PROTOCOL http://www.entecene.co.kr
Byte 3
Additional data Address of Output coil
Byte 4
Byte 5
Additional data Maximum quantity of Output coil
Byte 6
Byte 7
Additional data Address of Input status
Byte 8
Byte 9
Additional data Maximum quantity of Input status
Byte 10
Byte 11
Additional data Address of Holding Register
Byte 12
Byte 13
Additional data Maximum quantity of Holding Register
Byte 14
Byte 15
Additional data Address of Input Register
Byte 16
Byte 17
Additional data Maximum quantity of Input Register
Byte 18
ENHANCED TECHNOLOGY 14
MODBUS PROTOCOL http://www.entecene.co.kr
NUMBER OF POINTS HI 00
NUMBER OF POINTS LO 02
ENHANCED TECHNOLOGY 15
MODBUS PROTOCOL http://www.entecene.co.kr
The slave device is not supported the function code of master query
01 ILLEGAL FUNCTION
packet.
The slave device is not supported the value of data field in master
03 ILLEGAL DATA VALUE
query packet.
The slave device has an error while perform the command from
04 SLAVE DEVICE FAILURE
master station.
The slave device was received without error, but will take a long
The slave device cannot process the function code received in the
NAK-NEGATIVE
07 query packet, because the slave device does not have the requested
ACKNOWLEDGE
command available.
ENHANCED TECHNOLOGY 16
MODBUS PROTOCOL http://www.entecene.co.kr
Battery Charger – –
Battery Discharge – –
INST Target – –
Delay Target – –
A Phase Target – –
B Phase Target – –
C Phase Target – –
Ground Target – –
27 Target – –
59 Target – –
25 Target – –
81 Target – –
Self Check – –
Protection Enabled – –
Ground Enabled – –
SEF Enabled – –
Reclose Enabled – –
Remote Enabled – –
Program1 Enabled – –
Program2 Enabled – –
HotLineTag Enabled – –
ENHANCED TECHNOLOGY 17
MODBUS PROTOCOL http://www.entecene.co.kr
0030 79 RESET – –
79 CYCLE – –
0032 79 LOCKOUT – –
INPUT ELEMENTS
Reclosing Shot 1 – –
Reclosing Shot 2 – –
Reclosing Shot 3 – –
Reclosing Shot 4 – –
Contact(52a) – –
Mechanism Lock – –
PROTECTION ELEMENTS
ENHANCED TECHNOLOGY 18
MODBUS PROTOCOL http://www.entecene.co.kr
UnderFrequency Trip – –
OUTPUT ELEMENTS
ENHANCED TECHNOLOGY 19
MODBUS PROTOCOL http://www.entecene.co.kr
SYSTEM ELEMENTS
NO Battery – –
ENHANCED TECHNOLOGY 20
MODBUS PROTOCOL http://www.entecene.co.kr
OverFrequency Trip – –
0124-0999 Reserved – –
FIRMWARE VERSION
ENHANCED TECHNOLOGY 21
MODBUS PROTOCOL http://www.entecene.co.kr
POWER
ENHANCED TECHNOLOGY 22
MODBUS PROTOCOL http://www.entecene.co.kr
ENERGY
FREQUENCY
PRESENT DEMAND
MAXIMUM DEMAND
ENHANCED TECHNOLOGY 23
MODBUS PROTOCOL http://www.entecene.co.kr
ENHANCED TECHNOLOGY 24
MODBUS PROTOCOL http://www.entecene.co.kr
ENHANCED TECHNOLOGY 25
MODBUS PROTOCOL http://www.entecene.co.kr
CONTACT WEAR
SYSTEM
+12V DF7
-12V DF7
ENHANCED TECHNOLOGY 26
MODBUS PROTOCOL http://www.entecene.co.kr
1160-1799 Reserved
OPERATION COUNTERS
1803-1999 Reserved
RELAY SETUP
Event Recorder
PROTECTION
OPERATIONS
ENHANCED TECHNOLOGY 27
MODBUS PROTOCOL http://www.entecene.co.kr
INTERVALS
PICKUP CURRENT
PHASE FAST
PHASE DELAY
GROUND FAST
ENHANCED TECHNOLOGY 28
MODBUS PROTOCOL http://www.entecene.co.kr
GROUND DELAY
SEF ELEMENT
H/C TRIP-PHA
H/C TRIP-GND
ENHANCED TECHNOLOGY 29
MODBUS PROTOCOL http://www.entecene.co.kr
H/C TRIP-NEQ
H/C LOCKOUT-PHA
H/CLOCKOUT-GND
H/C LOCKOUT-NEQ
ENHANCED TECHNOLOGY 30
MODBUS PROTOCOL http://www.entecene.co.kr
PHASE DIRECTION
GROUND DIRECTION
SEF DIRECTION
NEQ DIRECTION
UNDER VOLTAGE1
UNDER VOLTAGE2
ENHANCED TECHNOLOGY 31
MODBUS PROTOCOL http://www.entecene.co.kr
OVER VOLTAGE1
OVER VOLTAGE2
FREQUENCY
OTHERELEMENT
ENHANCED TECHNOLOGY 32
MODBUS PROTOCOL http://www.entecene.co.kr
MONITORING
DEMAND
SYNCHROCHECK
FAULT LOCATOR
LOOP CONTROL
DF1(0:NONE, 1:SECtionalizer,
2155 Loop Control Type DF1
2:MIDpoint 3:TIEpoint)
Voltage response side to SEC & MID DF1(0:Line VS, 1:Line VL) DF1
ENHANCED TECHNOLOGY 33
MODBUS PROTOCOL http://www.entecene.co.kr
6:1PP(BC), 7:1PP(CA))
2160 Auto change to Alternate Setting at Mid Point DF1 (0:OFF, 1:ON) DF1
2170 Dead Line Reset time delay DF3 (1-60000 sec) DF3
2171 Non Recloser Time after LC Action DF3 (0-60000 sec) DF3
2172-2999 Reserved
ENHANCED TECHNOLOGY 34
MODBUS PROTOCOL http://www.entecene.co.kr
0 1200 bps
1 2400 bps
2 4800 bps
3 9600 bps
4 19200 bps
0 NO
1 YES
2 SOMETIMES
0 DISABLE
1 ENABLE
DF9 Fault Cycle, Load Profile, RMT Func-PHA, GND, SEF, NEQ, Seq' Coordi', Function
0 OFF
1 ON
0 5 min
1 10 min
2 15 min
3 20 min
4 30 min
5 60 min
ENHANCED TECHNOLOGY 35
MODBUS PROTOCOL http://www.entecene.co.kr
0 NONE
1 WYE
2 DELTA
3 CVD
0 ABC
1 ACB
1 TRIP 12 FI RESET
2 CLOSE 13 BATT LT
ENHANCED TECHNOLOGY 36
MODBUS PROTOCOL http://www.entecene.co.kr
7 27 25 FAULT INDI
8 59 26 ALARM
9 25 27 52A
10 81 28 INPUT01
11 79RS 29 INPUT02
12 79CY 30 INPUT03
13 79LO 31 INPUT04
ENHANCED TECHNOLOGY 37