Example 1: Function Code 03H, Accessing Multiple Words - Delta ASDA-A3 Series User Manual

Hide thumbs Also See for ASDA-A3 Series:
Table of Contents

Advertisement

ASDA-A3

Example 1: function code 03H, accessing multiple words:

The master issues a command to the first slave and reads two continuous words starting from
the start data address 0200H. In the response message from the slave, the content of the start
data address 0200H is 00B1H, and the content of the second data address is 1F40H. The
maximum allowable data in one single access is 10. The calculation of the LRC and CRC codes
is described below.
ASCII mode:
Command Message (Master):
Start
Slave Address
Function
Start Data Address
Data Number
(Word)
LRC Check
End 1
End 0
RTU mode:
Command Message (Master):
Slave Address
Function
Start Data Address
Data Number
(In word)
CRC Check Low
CRC Check High
Note: A silent interval of 10 ms is required before and after each transmission in RTU mode.
Revision December, 2017
':'
'0'
'1'
'0'
'3'
'0'
'2'
'0'
'0'
'0'
'0'
'0'
'2'
'F'
'8'
(0DH) (CR)
(0AH) (LF)
01H
03H
02H (High)
00H (Low)
00H
02H
C5H (Low)
B3H (High)
Response Message (Slave):
Start
Slave Address
Function
Data Number
(In byte)
Content of Start Data
Address 0200H
Content of Second Data
Address 0201H
LRC Check
End 1
End 0
Response Message (Slave):
Slave Address
Function
Data Number
(In byte)
Content of Start Data
Address 0200H
Content of Second Data
Address 0201H
CRC Check Low
CRC Check High
MODBUS Communication
':'
'0'
'1'
'0'
'3'
'0'
'4'
'0'
'0'
'B'
'1'
'1'
'F'
'4'
'0'
'E'
'8'
(0DH) (CR)
(0AH) (LF)
01H
03H
04H
00H (High)
B1H (Low)
1FH (High)
40H (Low)
A3H (Low)
D4H (High)
9
9-7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents