C.8 Message Examples
YASKAWA ELECTRIC
TOEP C710656 10B YASKAWA Power Regenerative Unit - R1000 Instruction Manual
173
MEMOB
US/Modb
us
Commu
nica
tions
C
C.8 Message Examples
Below are some examples of command and response messages.
◆
Reading Regenerative Unit MEMOBUS/Modbus Register Contents
Using the function code 03H (Read), a maximum of 16 MEMOBUS/Modbus registers can be read out at a time.
The following table shows message examples when reading error details and data link status from the slave 2
regenerative units.
◆
Loopback Test
Function code 08H performs a loopback test that returns a response message with exactly the same content as the
command message. The response message can be used to check communications between the master and slave.
User-defined test code and data values can also be set.
The following table shows a message example when performing a loopback test with the slave 1 regenerative unit.
Command Message
Response Message (normal)
Slave Address
02H
Slave Address
02H
Function Code
03H
Function Code
03H
Starting No.
Upper
00H
Data Quantity
04H
Lower
21H
1st storage register
Upper
00H
Data Quantity
Upper
00H
Lower
00H
Lower
02H
Next storage register
Upper
00H
CRC-16
Upper
94H
Lower
00H
Lower
32H
CRC-16
Upper
C9H
Lower
33H
Command Message
Response Message (normal)
Response Message (fault)
Slave Address
01H
Slave Address
01H
Slave Address
01H
Function Code
08H
Function Code
08H
Function Code
88H
Test Code
Upper
00H
Test Code
Upper
00H
Error Code
01H
Lower
00H
Lower
00H
CRC-16
Upper
86H
Data
Upper
A5H
Data
Upper
A5H
Lower
50H
Lower
37H
Lower
37H
CRC-16
Upper
DAH
CRC-16
Upper
DAH
Lower
8DH
Lower
8DH
TOEP_C710656_10B_1_0.book 173 ページ 2015年1月8日 木曜日 午後8時55分