Example 2: Function Code 06H, Writing Single Word - Delta ASDA-A3 Series User Manual

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

Advertisement

MODBUS Communication

Example 2: function code 06H, writing single word:

The master issues a command to the first slave and writes data 0064H to address 0200H. The
9
slave sends a response message to the master after 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 Content
LRC Check
End 1
End 0
RTU mode:
Command Message (Master):
Address
Slave Function
Start Data Address
Data Content
CRC Check Low
CRC Check High
Note: A silent interval of 10 ms is required before and after each transmission in RTU mode.
9-8
':'
'0'
'1'
'0'
'6'
'0'
'2'
'0'
'0'
'0'
'0'
'6'
'4'
'9'
'3'
(0DH) (CR)
(0AH) (LF)
01H
06H
02H (High)
00H (Low)
00H (High)
64H (Low)
89H (Low)
99H (High)
Response Message (Slave):
Start
Slave Address
Function
Start Data Address
Data Content
LRC Check
End 1
End 0
Response Message (Slave):
Address
Slave Function
Start Data Address
Data Content
CRC Check Low
CRC Check High
ASDA-A3
':'
'0'
'1'
'0'
'6'
'0'
'2'
'0'
'0'
'0'
'0'
'6'
'4'
'9'
'3'
(0DH) (CR)
(0AH) (LF)
01H
06H
02H (High)
00H (Low)
00H (High)
64H (Low)
89H (Low)
99H (High)
Revision December, 2017

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents