Example 3: Function Code 10H, Writing Multiple Words - Delta ASDA-A3 Series User Manual

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

Advertisement

ASDA-A3

Example 3: function code 10H, writing multiple words:

The master issues a command to the 1
data address 0112H. In other words, 0BB8H is written into 0112H and 0000H is written into
0113H. The maximum allowable data in one single access is 8. The slave sends a response
message to the master after the writing is completed. The calculation of LRC and CRC is
described below.
ASCII mode:
Command Message (Master):
Start
Slave Address
Function
Start Data Address
Data Number
(In words)
Data Number
(In bytes)
Content of the 1st Data
Frame
Content of the 2nd
Data Frame
LRC Check
End 1
End 0
Revision December, 2017
st
slave and writes data 0BB8H and 0000H to the start
Response Message (Slave):
':'
'0'
'1'
'1'
'0'
'0'
'1'
'1'
'2'
'0'
'0'
'0'
'2'
'0'
'4'
'0'
'B'
'B'
'8'
'0'
'0'
'0'
'0'
'1'
'3'
(0DH) (CR)
(0AH) (LF)
MODBUS Communication
Start
Slave Address
Function
Start Data Address
Data Number
LRC Check
End 1
End 0
9
':'
'0'
'1'
'1'
'0'
'0'
'1'
'1'
'2'
'0'
'0'
'0'
'2'
'D'
'A'
(0DH) (CR)
(0AH) (LF)
9-9

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents