The text of a manual · part 26 of 31
X200 Series Inverter Instruction Manual, pages 251 to 260
Pages 251 to 260 of 305
The original document is the PDF (8.9 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Hitachi X200 Series
Page 251
B−8
Message Configuration: Response Transmission time required:
Appendix B
Appendix B x A time period between reception of a query from the master and transmission of a response from the inverter is the sum of the silent interval (3.5 characters long) + C078 (transmission latency time). x The master must provide a time period of the silent interval (3.5 characters long or longer) before sending another query to an inverter after receiving a response from the inverter. Normal response: x When receiving a query that contains a function code of Loopback (08h), the inverter returns a response of the same content of the query. x When receiving a query that contains a function code of Write in Register or Coil (05h, 06h, 0Fh, or 10h), the inverter directly returns the query as a response. x When receiving a query that contains a function code of Read Register or Coil (01h or 03h), the inverter returns, as a response, the read data together with the same slave address and function code as those of the query. Response when an error occurs: x When finding any error in a query (except for a transmission error), the inverter returns an exception response without executing anything. x You can check the error by the function code in the response. The function code of the exception response is the sum of the function code of the query and 80h. x The content of the error is known from the exception code. Field Configuration Slave address Function code Exception code CRC-16 Exception Code 01h 02h 03h 21h
22h
Description The specified function is not supported. The specified function is not found. The format of the specified data is not acceptable. The data to be written in a holding register is outside the inverter. The specified functions are not available to the inverter. x Function to change the content of a register that cannot be changed while the inverter is in service x Function to submit an ENTER command during running (UV) x Function to write in a register during tripping (UV) x Function to write in a read-only register (or coil)
Page 252
B−9
No response occurs: In the cases below, the inverter ignores a query and returns no response. x When receiving a broadcasting query x When detecting a transmission error in reception of a query x When the slave address set in the query is not equal to the slave address of the inverter x When the data length of the query is invalid NOTE: Provide a timer in the master and make the master retransmit the same query when no response is made within a preset time period after the preceding query was sent.
Appendix B Appendix B x When a time interval between data elements constituting a message is shorter than 3.5 characters
Page 253
B−10
Explanation of function codes Read Coil Status [01h]: This function reads the status (ON/OFF) of selected coils. An example follows below. x Read intelligent input terminals [1] to [5] of an inverter having a slave address “8.”
Appendix B
Appendix B x This example assumes the intelligent input terminals have terminal states listed below. Item Intelligent input terminal Coil number Coil Status
Data [1]
[2]
[3]
[4]
[5]
7 ON
8 OFF
9 ON
10 OFF
11 OFF
Query:
Response:
No.
Field Name
1 2 3
Slave address *1 Function code Coil start address *4 (high order) Coil start address *4 (low order) Number of coils (high order *2) Number of coils (low order *2) CRC-16 (high order) CRC-16 (low order)
4 5 6 7 8
Example (Hex) 08 01 00
No.
Field Name
1 2 3
Slave address Function code Data size (in bytes)
4
Coil data *3
06
Example (Hex) 08 01 01 05
00
5
CRC-16 (high order)
92
05
6
CRC-16 (low order)
17
1C 91
Note 1:
Broadcasting is disabled.
Note 2:
When 0 or more than 31 is specified as a number of coils, error code “03h” is returned.
Note 3:
Data is transferred by the specified number of data bytes (data size).
Note 4:
The PDU Coils are addressed starting at zero. Therefore coils numbered 1-31 are addressed as 0-30. Coil address value (transmitted on Modbus line) is 1 less than the Coil Number.
x The data set in the response shows terminal state of coils 7 to 14. x Data “05h = 00000101b” indicates the following assuming coil 7 is the LSB. Item Coil Number Coil Status
14 OFF
13 OFF
12 OFF
Data 11 10 OFF OFF
9 ON
8 OFF
7 ON x When a read coil is outside the defined coils, the final coil data to be transmitted contains “0“as the status of the coil outside the range. x When the Read Coil Status command cannot be executed normally, see the exception response.
Page 254
B−11
Read Holding Register [03h]: This function reads the contents of the specified number of consecutive holding registers (of specified register addresses). An example follows below. x Reading Trip monitor 1 factor and trip frequency, current, and voltage from an inverter having a slave address “1” x This example assumes the previous three trip factors are as follows: D081 (factor) 0012h
D081 (frequency) 0014h
D081 (output current) 0016h
D081 (DC-bus Voltage) 0017h
Over-Current (E03)
9.9Hz
3.0A
284V
Query:
Response:
No.
Field Name
1 2 3
Slave address *1 Function code Register start address *3 (high order) Register start address *3 (low order) Number of holding registers (high order) Number of holding registers(low order) CRC-16 (high order) CRC-16 (low order)
4
5 6 7 8
Exampl e (Hex) 01 03 0C
Example (Hex)
No.
Field Name
01 03 00
1 2 3
Slave address Function code Data size (in bytes) *2
11
4
Register data 1 (high order)
00
00
5
Register data 1 (high order)
03
06
6
Register data 2 (high order)
00
95 CD
7 8 9 10 11 12 13 14 15 16 17
Register data 2 (low order) Register data 3 (high order) Register data 3 (low order) Register data 4 (high order) Register data 4 (low order) Register data 5 (high order) Register data 5 (low order) Register data 6 (high order) Register data 6 (low order) CRC-16 (high order) CRC-16 (low order)
00 00 63 00 00 00 1E 01 1C AF 6D
Note 1:
Broadcasting is disabled.
Note 2:
Data is transferred by the specified number of data bytes (data size). In this case, 6 bytes are used to return the content of three holding registers.
Note 3:
The PDU Register Number are addressed starting at zero. Therefore register numbered “0012h” are addressed as “0011h”. Register address value (transmitted on Modbus line) is 1 less than the Register Number.
Appendix B Appendix B
X200 Command Register Number Trip factor
Page 255
B−12
Appendix B
Appendix B
The data set in the response is as follows: Response Buffer Register Number
4-5 12+0 (high order)
Register Data Trip data Response Buffer Register Number
0003h Trip factor (E03) 10-11 12+3 (high 12+3 order) (low order) 00h 00h Not used
Register Data Trip data
6-7 12+1 12+1 (low (high order) order) 00h 00h Not used 12-13 12+4 12+4 (low (high order) order) 001Eh Output current (3.0A)
12+0 (low order)
12+2 (high order)
8-9 12+2 (low order)
0063h Frequency (9.9Hz) 14-15 12+5 12+5 (low (high order) order) 011Ch DC-bus voltage (284V)
When the Read Holding Register command cannot be executed normally, refer to the exception response. Write in Coil [05h]: This function writes data in a single coil. Coil status changes are as follows: Data Change data (high order) Change data (low order)
Coil Status OFF to ON FFh 00h
ON to OFF 00h 00h
An example follows (note that to command the inverter, set A002=03): x Sending a RUN command to an inverter having slave address “8” x This example writes in coil number “1.” Query:
Response:
No.
Field Name
1 2 3
Slave address *1 Function code Coil start address *2 (high order) Coil start address *2 (low order) Change data (high order) Change data (low order) CRC-16 (high order) CRC-16 (low order)
4 5 6 7 8
Example (Hex) 08 05 00
No.
Field Name
1 2 3
Slave address Function code Coil start address *2 (high order) Coil start address *2 (low order) Change data (high order) Change data (low order) CRC-16 (high order) CRC-16 (low order)
00
4
FF
5
00
6
8C A3
7 8
Example (Hex) 08 05 00 00 FF 00 8C A3
Note 1:
No response is made for a broadcasting query.
Note 2:
The PDU Coils are addressed starting at zero. Therefore coils numbered 1-31 are addressed as 0-30. Coil address value (transmitted on Modbus line) is 1 less than the Coil Number.
When writing in a selected coil fails, see the exception response.
Page 256
B−13
Write in Holding Register [06h]: This function writes data in a specified holding register. An example follows: x Write “50Hz” as the first Multi-speed 0 (A020) in an inverter having slave address “5.” x This example uses change data “500(1F4h)” to set “50Hz” as the data resolution of the register “1029h” holding the first Multi-speed 0 (A020) is 0.1Hz Response:
No.
Field Name
1 2 3
Slave address *1 Function code Register start address *2 (high order) Register start address *2 (low order) Change data (high order) Change data (low order) CRC-16 (high order) CRC-16 (low order)
4
5 6 7 8
Example (Hex) 08 06 10
No.
Field Name
1 2 3
Slave address Function code Register start address *2 (high order) Register start address *2 (low order) Change data (high order) Change data (low order) CRC-16 (high order) CRC-16 (low order)
28
4
01
5
F4
6
0D 8C
7 8
Example (Hex) 08 06 10
28
01 F4 0D 8C
Note 1:
No response is made for a broadcasting query.
Note 2:
The PDU Register Number are addressed starting at zero. Therefore register numbered “1029h” are addressed as “1028h”. Register address value (transmitted on Modbus line) is 1 less than the Register Number.
When writing in a selected holding register fails, see the exception response.
Appendix B Appendix B
Query:
Page 257
B−14
Loopback Test [08h]: This function checks a master-slave transmission using any test data. An example follows: x Send test data to an inverter having slave address “1” and receiving the test data from the inverter (as a loopback test).
Appendix B
Appendix B
Query:
Response:
No.
Field Name
1 2 3
Slave address *1 Function code Test subcode (high order) Test subcode (low order) Data (high order) Data (low order) CRC-16 (high order) CRC-16 (low order)
4 5 6 7 8
Note 1:
Example (Hex) 01 08 00
No. 1 2 3
00
4
Any Any CRC CRC
5 6 7 8
Field Name Slave address *1 Function code Test subcode (high order) Test subcode (low order) Data (high order) Data (low order) CRC-16 (high order) CRC-16 (low order)
Example (Hex) 01 08 00 00 Any Any CRC CRC
Broadcasting is disabled.
When test subcode is for echo (00h, 00h) only and not available to the other commands.
Page 258
B−15
Write in Coils [0Fh]: This function writes data in consecutive coils. An example follows: x Change the state of intelligent input terminal [1] to [5] of an inverter having a slave address “8.” x This example assumes the intelligent input terminals have terminal states listed below.
[1] 7 ON
Query: No. 1 2 3 4 5 6 7 8 9 10 11
Data [3] 9 ON
[2] 8 ON
[4] 10 OFF
[5] 11 ON
Response: Field Name
Slave address *1 Function code Coil start address *3 (high order) Coil start address *3 (low order) Number of coils (high order) Number of coils (low order) Byte number *2 Change data (high order) Change data (low order) CRC-16 (high order) CRC-16 (low order)
Example (Hex) 08 0F 00
No.
Field Name
1 2 3
Slave address Function code Coil start address *3 (high order) Coil start address *3 (low order) Number of coils (high order) Number of coils (low order) CRC-16 (high order) CRC-16 (low order)
06
4
00
5
05
6
02 17
7 8
Example (Hex) 08 0F 00 06 00 05 75 50
00 83 EA
Note 1:
Broadcasting is disabled.
Note 2:
The change data is a set of high-order data and low-order data. So when the size (in bytes) of data to be changed is an odd start coil number (“7”), add “1” to the data size (in bytes) to make it an even number.
Note 3:
The PDU Coils are addressed starting at zero. Therefore coils numbered 1-31 are addressed as 0-30. Coil address value (transmitted on Modbus line) is 1 less than the Coil Number.
Appendix B Appendix B
Item Intelligent input terminal Coil Number Terminal status
Page 259
B−16
Write in Holding Registers [10h]: This function writes data in consecutive holding registers. An example follows: x Write “3000 seconds” as the first acceleration time 1 (F002) in an inverter having a slave address “8.”
Appendix B
Appendix B x This example uses change data “300000(493E0h)” to set “3000 seconds” as the data resolution of the registers “1014h” and “1015h” holding the first acceleration time 1 (F002) is 0.01 second. Query: No. 1 2 3 4 5 6 7 8 9 10 11 12 13
Response: Field Name
Slave address *1 Function code Start address *3 (high order) Start address *3 (low order) Number of holding registers (high order) Number of holding registers (low order) Byte number *2 Change data 1 (high order) Change data 1 (low order) Change data 2 (high order) Change data 2 (low order) CRC-16 (high order) CRC-16 (low order)
Example (Hex) 08 10 10
No. 1 2 3
13
4
00
5
02
6
04 00
7 8
Field Name Slave address Function code Start address *3 (high order) Start address *3 (low order) Number of holding registers (high order) Number of holding registers (low order) CRC-16 (high order) CRC-16 (low order)
Example (Hex) 08 10 10 13 00 02 B4 54
04 93 E0 7D 53
Note 1:
Broadcasting is disabled.
Note 2:
This is not the number of holding registers. Specify the number of bytes of data to be changed.
Note 3:
The PDU Register Number are addressed starting at zero. Therefore register numbered “1014h” are addressed as “1013h”. Register address value (transmitted on Modbus line) is 1 less than the Register Number.
When writing in selected holding registers fails, see the exception response.
Page 260
B−17
Exception Response: When sending a query (excluding a broadcasting query) to an inverter, the master always requests a response from the inverter. Usually, the inverter returns a response according to the query. However, when finding an error in the query, the inverter returns an exception response. The exception response consists of the fields shown below.
The content of each field is explained below. The function code of the exception response is the sum of the function code of the query and 80h. The exception code indicates the factor of the exception response.
Query 01h 03h 05h 06h 0Fh 10h
Code 01h 02h 03h 21h
22h
Function Code Exception Response 81h 83h 85h 86h 8Fh 90h
Exception Code Description The specified function is not supported. The specified function is not found. The format of the specified data is not acceptable. The data to be written in a holding register is outside the inverter. The specified functions are not available to the inverter. x Function to change the content of a register that cannot be changed while the inverter is in service x Function to submit an ENTER command during running (UV) x Function to write in a register during tripping (UV) x Function to write in a read-only register (or coil)
Appendix B Appendix B
Field Configuration Slave address Function code Exception code CRC-16