background image

 

3

SET 

BAUD 

Press SET key to save “BAUD”. 

SET + 

 

25/100 

Press SET +

  one time to return the normal indication 

(PV/SV indication). 

 

5. MODBUS COMMUNICATION PROTOCOL 

5.1 General 

The communication system by the MODBUS protocol is that the communication is 
always started from the master station and a slave station responds to the received 
message. 

    Transmission procedures is as shown below. 

1.  The master station sends a command message to a slave station. 
2.  The slave station checks that the address in the received message matches with 

the own address or not. 

3.  If matched, the slave station executes the command and sends back the 

response message. 

4.  If mismatched, the slave station leaves the command message and wait for the 

next command message. 

5.  The master station can individually communicate with any one of slave stations 

connected on the same line upon setting the address in the command message. 

 

5.2 Composition of Message 

Command message and response message consist of 4 fields; Address, Function code, 
Data and CRC check code. And these are sends in this order. The allowable character 
transmitted for all fields are hexadecimal 0-9,A-F 

 

RTU mode framing 

START ADDRESS 

FUNCTION  DATA CRC 

CHECK END 

T1-T2-T3-T4 

8 BITS 

8 BITS 

N × 8 BITS 

16 BITS 

T1-T2-T3-T4

 

In the following, each field is explained. 

1. Start 

In RTU mode, messages start with a silent interval of at least 3.5 character times. This is 
most easily implemented as a multiple of character times at the baud rate that is being 
used on the network (shown as T1-T2-T3-T4 in the figure above). The first field then 
transmitted is the device address. 
 

2. Address 

Address is the number specifying a slave station. Valid slave device addresses 
are in the range 0f 1-255 decimal. A master addresses a slave by placing the 
slave address in the address field of the message. When the slave sends its 
response, it places its own address in this address field of the response to let the 
master know which slave is responding. 
Address 0 is used for the broadcast address, which all slave stations recognize.   
When the broadcast address (address 0) is applied on the command message, 
no any response message will be sent from the slave stations. 

3. Function 

This is a code to designate the function executed at a slave station. When a message is 
sent from a master to a slave device the function code field tells the slave what kind of 
action to perform. When the slave responds to the master, it uses the function code field 
to indicate either a normal response or that some kind of error occurred. For normal 
response, the slave simply echoes the original function code. For an exception response, 
the slave returns a code that is equivalent to the original function code with its 
most-signification bit set to a logic 1. 

4. Data 

Содержание SE6000 Series

Страница 1: ...ing Operation Method 2 5 MODBUS COMMUNICATION PROTOCOL 5 1 General 3 5 2 Composition of Message 3 5 3 Response of Slave Station 4 5 4 Function Code 4 5 5 Calculation of Error Check Code CRC 16 4 5 6 Transmission Control Procedure 5 6 DETAILS OF MESSAGE 6 1 Read out of Word Data Function Code 03 6 6 2 Read out of Read Only Word Data Function Code 04 6 6 3 Write in of Word Data 1 word Function Code ...

Страница 2: ... 2 1 Communication Specifications Item S pecification Electrical specification Based on EIA RS 485 Transmit system 2 wire semi duplicate Synchronizing system Asynchronous mode Connection format 1 N Number connection unit Up to 255 units Transmission distance 500m max Transmission speed 2400 4800 9600 19200 selectable Start bit 1 bit Data length bit 8 bits Parity bit None Data format Stop bit 2 bit...

Страница 3: ...e at delivery Setting range Remarks BAUD Transmission speed 9600 2400 4800 9600 19200 Data length 8 bits Fixed can t be changed Stop bit 2 bit Fixed can t be changed Parity setting None Fixed can t be changed Set the same communication condition to the master station and all slave station ADDR Address 1 1 to 255 Set a different value to each station 4 2 Setting Operation Method The following examp...

Страница 4: ...d is explained 1 Start In RTU mode messages start with a silent interval of at least 3 5 character times This is most easily implemented as a multiple of character times at the baud rate that is being used on the network shown as T1 T2 T3 T4 in the figure above The first field then transmitted is the device address 2 Address Address is the number specifying a slave station Valid slave device addre...

Страница 5: ...mmand but creates and sends back a response message at error detection The composition of response message at error detection is shown on below the value used for function field is function code of command message plus 80H ADDRESS FUNCTION Function code 80H ERROR CODE CRC CHECK 8 BITS 8 BITS 8 BITS 16 BITS Error Code Contents Description 01 Illegal function The function code received is not an all...

Страница 6: ... 1 1 5 For ensuring the safety make a confirmation of the response message and make an arrangement so as to provide 3 or more retries in case of no response error occurrence etc Note The above definition is for most unfavorable value For ensuring the safety it s recommended the program of the master to work with safety factors of 2 to 3 Concretely it is advised to arrange the program for 9600 bps ...

Страница 7: ...bytes 2 bytes Byte number Word number 2 2 Message transmission example The following show an example of reading the Setpoint Value 1000 from address No 1 controller Command message composition Address Function Starting Address Word Number CRC 16 01 03 0000 0001 840A Response message composition Address Function Byte Number Word Data CRC 16 01 03 02 03E8 B8FA 6 2 Read out of Read Only Word Data Fun...

Страница 8: ...s controllers 1 Normal value The data value is transfer into Hexadecimal regardless of decimal For example 1000 will be transfered to 03E8 hex However such as output percentage and Pb proportional band 100 0 will be transfered to 03E8 hex 2 Index code Some parameters value are set by index code For example to change the unit to via communication The data value would be 0017 hex Code English Code E...

Страница 9: ...e 000F UNIT ENG English code 0010 DP 0000 000 0 00 00 0 000 English code 0011 ACT REV DIR English code 0012 LOLT 1999 9999 0013 HILT 1999 9999 0014 FILT 0 0 100 0 0015 A1FU None Hi Lo dif H dif L bd Hi bd Lo T SNL English code 0016 A1MD None Stdy Lath St La T End English code 0017 A2FU None Hi Lo dif H dif L bd Hi bd Lo T SNL English code 0018 A2MD None Stdy Lath St La T End English code 0019 A3FU...

Страница 10: ... connection distance are as specified Whether communication conditions coincide between the master station host computer and slave station SE6000 Transmission speed 2400 bps 4800 bps 9600 bps 19200 bps Address 01 FF master and slave station must be match Whether send receive signal timing conforms to Section 5 4 in the manual Whether more than one instrument connected on the same transmission line...

Отзывы: