DSR Message and Response. Omron VS MINI J7
Reklama
Reklama
2
3
4
5
6
DSR Message and Response
Chapter 7-4
7-4 DSR Message and Response
The following description provides information on how to set DSR messages and what details are returned as responses. Each DSR message or response is divided into 8-bit blocks. Therefore, data must be set in 8-bit blocks for communications.
7-4-1 Data Read (Function Code: 03 Hex)
Settings and Responses
Note
• To read data (such as control I/O status data, monitor item data, or parameter set value data) from the Inverter, issue the following DSR message.
• Data read is a maximum of 16 words in length (i.e., data of 32 bytes from
16 registers) per DSR message.
• A register number is allocated to each function item, such as control I/O, monitor item, and parameter functions. The register number of each parameter is indicated wherever the parameter is explained in this manual and in Section 10 List of Parameters. For register numbers other than
those of parameters, refer to 7-7 Register Number Allocations in Detail
.
1.
A parameter corresponds to one register (one word), so the “number of registers of read data” indicates the number of parameters to be read (i.e., the number of consecutive registers beginning with the first register number).
1.
The “number of bytes of attached data” indicates the number of bytes of data read from the registers attached from that point onwards. The number of registers must equal the number of bytes divided by two.
DSR Message
Byte No. Data
Function code (03 Hex)
Register No. of read start data
Number of registers of read data (max. 16)
8
101
DSR Message and Response
Response
Normal
Byte No.
6
7
8
9
2
3
4
5
Function code (03 Hex)
Number of bytes of attached data
Data of start register
Data of next register
Data of next register
: : n
Error
Byte No.
2 Function code (83 Hex)
Data
Data
Chapter 7-4
MS B
LSB
MSB
LSB
MSB
LSB
:
3
4
5
6
5
Note
Example of Data Read
When an error occurs, the MSB of the function code will be set to 1.
In the following example, four-register data (status signal data) is read from register 0020 Hex of the Inverter with a Slave address of 02.
DSR Message
Byte No. Data
8
Register No. of read start data
Number of registers of read data
Data example
(Hex)
02
03
00
20
00
04
45
F0
102
DSR Message and Response
Chapter 7-4
Response
Normal
Byte No.
6
7
8
9
3
4
5
10
11
Number of bytes of attached data
Data in register No. 0020
Data in register No. 0021
Data in register No. 0022
Data in register No. 0023
Data Data example
(Hex)
02
03
08
MS B 00
LSB 65
MSB 00
LSB 00
MSB 00
LSB 00
MSB 01
LSB F4
AF
82 13
Error
Byte No.
5
Data Data example
(Hex)
02
83
03
F1
31
7-4-2 Data Write/Broadcast Data Write (Function Code: 10 Hex)
Settings and Response
Note
• To write data to the Inverter, such as control I/O and parameter set value data, issue the following DSR message.
• Consecutive data of a maximum of 16 words (32 bytes for 16 registers) can be written per DSR message.
• The register number is allocated to each function item, such as control I/O and parameter functions. The register number of each parameter is indicated wherever the parameter is explained in this manual and in
Section 10 List of Parameters. For register numbers other than those of parameters, refer to
7-7 Register Number Allocations in Detail .
1.
A parameter corresponds to one register (one word), so the “number of registers of write data” indicates the number of parameters to be written
(i.e., the number of consecutive registers beginning with the first register number).
2.
The “number of bytes of attached data” indicates the number of bytes of data written to the registers attached from that point onwards. The number of registers must equal the number of bytes divided by two.
103
DSR Message and Response
DSR Message
Byte No.
6
7
8
9
2
3
4
5
Function code (10 Hex)
Register No. of write start data
Number of registers of write data (max. 16)
Data of start register
Data of next register
10
11
12
13
Data of next register
Data of next register
: : n
Response
Normal
Byte No.
2
3
4
5
6
8
Error
Byte No.
2
Function code (10 Hex)
Register No. of write start data
Number of registers of write data
Function code (90 Hex)
Data
Data
Data
5
Chapter 7-4
MSB
LSB
MSB
LSB
MSB
LSB
:
MS B
LSB
MSB
LSB
Note 1.
When an error occurs, the MSB of the function code will be set to 1.
2.
A broadcast message uses the same DSR message format. The Slave address is, however, always set to 00 and only register 0001 Hex (the RUN command) and register number 0002 Hex (the frequency reference) can be written.
104
3
4
5
6
3
4
5
6
7
8
9
10
11
DSR Message and Response
Example of Data Read
Chapter 7-4
In the following example, two-register data (the RUN command) is written from register 0002 Hex of the Inverter with a Slave address of 01.
DSR Message
Byte No. Data
Register No. of write start data
Number of registers of write data
Data of start register
Data in register No. 0001
Data in register No. 0002
01
00
02
04
01
10
Data example
(Hex)
00
MSB 00
LSB 01
MSB 02
LSB 58
63
39 13
Response
Normal
Byte No. Data
Register No. of write start data
Number of registers of write data
Data example
(Hex)
01
10
00
01
00
02
10
08 8
Error
Byte No. Data
5
Data example
(Hex)
01
90
02
DC
C1
105
DSR Message and Response
Chapter 7-4
7-4-3 Loop-back Test (Function Code: 08 Hex)
Settings and Response
• The DSR message from the Master is returned as a response. The
Inverter does not retrieve or process this data.
• The DSR message or normal response for loop-back test use is divided into 8-byte blocks as shown below. Any data can be set as test data 1 or 2 provided that the number of data items remains changed.
• This command is used for checking the status of communications or for dummy communications without detecting any communications time-over.
DSR Message
Byte No. Data
2
3
4
5
6
8
Response
Normal
Byte No.
Function code (08 Hex)
Test data 1
Test data 2
2
3
4
5
6
8
Error
Byte No.
2
Function code (08 Hex)
Test data 1
Test data 2
Function code (88 Hex)
Data
Data
5
Note When an error occurs, the MSB of the function code will be set to 1.
106
DSR Message and Response
Chapter 7-4
3
4
5
6
3
4
5
6
Example of Loop-back Test
In the following example, a loop-back test is conducted on the Inverter with a
Slave address of 01.
DSR Message
Byte No. Data
8
Test data 1
Test data 2
Data example
(Hex)
01
08
00
00
A5
37
DA
8D
Response
Normal
Byte No. Data
8
Test data 1
Test data 2
00
00
A5
37
Data example
(Hex)
01
08
DA
8D
Error
Byte No. Data
5
Data example
(Hex)
01
88
01
86
50
107
Atsisiųsti
Reklama