Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
1 - 1
Page 4
1 Introduction
1-1Introduction
Thank you for choosing the KPG or KPL (hereafter described KP inverter) Grid Connect Photovoltaic
Inverter. This communication manual describes essential information regarding communication of the KP
inverter.
The KP inverter is designed for use in Grid Connect Solar Systems. The installation must always be carried out
by qualified personnel with knowledge of electrical systems and according to national standards for electrical
installations.
• This communication manual is intended for Users and Installers of the KP inverter.
• Read this manual carefully and make sure that you understand it well to ensure that you are using the
communication of KP inverter.
• Keep this manual in a safe location so that it is available for reference when required.
• For detail description such as function, performance, and usage of the KP inverter, refers to the manual of the
KP inverter.
1 - 2
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
Page 5
1 Introduction
1-2Read and Understand This Manual
1-2 Read and Understand This
Read and understand this manual before using the KP inverter. Please consult your OMRON representative if
you have any questions or comments.
Warranty and Limitations of Liability
WARRANTY
OMRON's exclusive warranty is that the products are free from defects in materials and workmanship for specified
period from date of sale by OMRON.
OMRON MAKES NO WARRANTY OR REPRESENTATION, EXPRESS OR IMPLIED, REGARDING
NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR PARTICULAR PURPOSE OF THE PRODUCTS.
ANY BUYER OR USER ACKNOWLEDGES THAT THE BUYER OR USER ALONE HAS DETERMINED THAT THE
PRODUCTS WILL SUITABLY MEET THE REQUIREMENTS OF THEIR INTENDED USE. OMRON DISCLAIMS ALL
OTHER WARRANTIES, EXPRESS OR IMPLIED.
LIMITATIONS OF LIABILITY
OMRON SHALL NOT BE RESPONSIBLE FOR SPECIAL, INDIRECT, OR CONSEQUENTIAL DAMAGES, LOSS
OF PROFITS OR COMMERCIAL LOSS IN ANY WAY CONNECTED WITH THE PRODUCTS, WHETHER SUCH
CLAIM IS BASED ON CONTRACT, WARRANTY, NEGLIGENCE, OR STRICT LIABILITY.
In no event shall the responsibility of OMRON for any act exceed the individual price of the product on which liability
is asserted.
Manual
1
IN NO EVENT SHALL OMRON BE RESPONSIBLE FOR WARRANTY, REPAIR, OR OTHER CLAIMS REGARDING
THE PRODUCTS UNLESS OMRON'S ANALYSIS CONFIRMS THAT THE PRODUCTS WERE PROPERLY
HANDLED, STORED, INSTALLED, AND MAINTAINED AND NOT SUBJECT TO CONTAMINATION, ABUSE,
MISUSE, OR INAPPROPRIATE MODIFICATION OR REPAIR.
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
1 - 3
Page 6
1 Introduction
Application Considerations
SUITABILITY FOR USE
OMRON shall not be responsible for conformity with any standards, codes, or regulations that apply to the
combination of products in the customer's application or use of the products.
At the customer's request, OMRON will provide applicable third party certification documents identifying ratings and
limitations of use that apply to the products. This information by itself is not sufficient for a complete determination of
the suitability of the products in combination with the end product, machine, system, or other application or use.
The following are some examples of applications for which particular attention must be given. This is not intended to
be an exhaustive list of all possible uses of the products, nor is it intended to imply that the uses listed may be
suitable for the products:
• Uses involving potential chemical contamination or electrical interference, or conditions or uses not described in
this manual.
• Nuclear energy control systems, combustion systems, railroad systems, aviation systems, medical equipment,
amusement machines, vehicles, safety equipment, and installations subject to separate industry or government
regulations.
• Systems, machines, and equipment that could present a risk to life or property.
Please know and observe all prohibitions of use applicable to the products.
NEVER USE THE PRODUCTS FOR AN APPLICATION INVOLVING SERIOUS RISK TO LIFE OR PROPERTY
WITHOUT ENSURING THAT THE SYSTEM AS A WHOLE HAS BEEN DESIGNED TO ADDRESS THE RISKS,
AND THAT THE OMRON PRODUCTS ARE PROPERLY RATED AND INSTALLED FOR THE INTENDED USE
WITHIN THE OVERALL EQUIPMENT OR SYSTEM.
1 - 4
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
Page 7
1 Introduction
Disclaimers
PERFORMANCE DATA
Performance data given in this manual is provided as a guide for the user in determining suitability and does not
constitute a warranty. It may represent the result of OMRON's test conditions, and the users must correlate it to actual
application requirements. Actual performance is subject to the OMRON Warranty and Limitations of Liability.
CHANGE IN SPECIFICATIONS
1-2 Read and Understand This
Manual
Product specifications and accessories may be changed at any time based on improvements and other reasons.
Consult with your OMRON representative at any time to confirm actual specifications of purchased product.
DIMENSIONS AND WEIGHTS
Dimensions and weights are nominal and are not to be used for manufacturing purposes, even when tolerances are
shown.
ERRORS AND OMISSIONS
The information in this manual has been carefully checked and is believed to be accurate; however, no responsibility
is assumed for clerical, typographical, or proofreading errors, or omissions.
PROGRAMMABLE PRODUCTS
OMRON shall not be responsible for the user's programming of a programmable product, or any consequence thereof.
COPYRIGHT AND COPY PERMISSION
This document shall not be copied for sales or promotions without permission.
This document is protected by copyright and is intended solely for use in conjunction with the product. Please notify
us before copying or reproducing this document in any manner, for any other purpose. If copying or transmitting this
document to another, please copy or transmit it in its entirety.
1
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
1 - 5
Page 8
1 Introduction
1 - 6
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
2 - 1
Page 12
2 Settings
2-1Outline of communications functions
The KP inverter are equipped with an RS232C/RS-485 port, which allows remote monitoring and remote
operations over networks.
The following protocol is supported:
ModelSuported protocol
KPG
KP
L
The KP inverter has the following communications functions:
Reading settings and data
Executing operation commands
CompoWay/F is OMRON's unified communications protocol for general-purpose serial communications. This
unified format has a proven track record with OMRON Programmable Controllers, has FINS-compliant
commands (see note), and simplifies communications between the host computer and components.
Note:
FINS (Factory Interface Network service) is a messaging protocol for communications between Controllers in
OMRON FA networks.
Compoway/F
Compoway/F, MODBUS
Modbus is a standard communications control method that conforms to the Modicon Company’s RTU-mode
Modbus Protocol (PI-MBUS-300 Revision J).
Supports functions are similar to the CompoWay/F Read Variable Area, Write Variable Area, Operation
Command.
2-2Cable Connections
Refer the manual of each inverter for cable connections.
2 - 2
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
Page 13
2-3Communications settings
2-3-1Communication settings for KP40G
Communication protocol settings
You can use only Compoway/F on KP40G.
There is no setting for communication protocol.
2 Settings
2-3 Communications settings
2
Node number (Unit number) settings
Node number can be set by setting switch as shown figure.
Baud rate settings
Baud rate is fixed 19200bps.
2-3-2Communication settings for KP100G
Communication protocol settings
You can use only Compoway/F on KP100G.
Always set TYPE1 as protocol on communication settings menu of Data Logger.
Node number (Unit number) and baud rate settings
Node number and baud rate can be set by menu of communication settings on Data Logger of the inverter.
2-3-1 Communication settings for KP40G
COMMUNICATION SETTINGS
OK
[Setting procedure]
1
Use to select COMMUNICATION SETTINGS.
2
Press "OK" to set.
3
Use to select item which you set
4
Use to set node number and baud rate..
5
Press "OK" again to confirm.
PROTOCOL:TYPE1
NODE NO:1
BAUD RATE:19200bps
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
2 - 3
Page 14
2 Settings
y
y
2-3-3Communication settings for KPL
Communication protocol settings
Select Compoway/F or MODBUS on KPL by LCD menu.
State display
RUN
ERR
MODEENT
<<>>
Normal Display
Pac 3.69kW
1.23/1.23/1.23kW
Push the MODE key
for 5 second
Mode selection display
Error occurs
Error doesn’t
occur
Error Displa
Fault E1-2
Grid 0V
Push the MODE key or
No operation for 150seconds
Push the ENT key
for 5 second
MODE
or
No oparation for 150second
LCD Check Displa
■■■
■■■ V1.23■■■
KP100L
■■■
>>
MODE
MODE
After five
seconds pass
ModeSelect
Setup [Check] ErrL
MODE
mode of Check Settings
Check:Country
GER
ENT
Setup:Language
[ENG]
ENT
Setup:COM_Prot
[Auto]
Setup:COM_Prot
Auto
ENT
ENT
ModeSelect
ErrLog [Setup]Che
MODE
mode of User’s setup
Setup:Language
ENG
<<
Setup:COM_Prot
Auto
<<
ENT
>>
>>
Node number (Unit number) and baud rate settings
Select communication protocol and set node number and baud rate by LCD menu.
[Setting procedure]
>>>>
ModeSelect
Check[ErrLog]Set
MODE
mode of Error
ErrLog:1.E1-0
No Utility
>>
Setup:Language
<<
>>
<<
When the setting has been setting,
Setup value does the blinking display.
ENT
[ITA]
Setup:COM_Prot
[Compoway]
<<<<<<
>>
<<
>>
<<
1
Push the MODE key for 5 second, and enter Mode Selection Display.
2
Push <</>> to select “Setup".
3
Push ENT key and enter mode of User’s setup.
<Protocol>
4
Select “Setup:Protocol” and .push ENT key.
5
User <</>> to change protocol. If you select “Auto”, protocol is detected automatically according to
communication command.
<Node number>
4
Select “Setup:COM_Unit” and .push ENT key.
5
User <</>> to change number.
2 - 4
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
Page 15
<Baud rate>
4
Select “Setup: COM_232C” or “Setup: COM_485”, and .push ENT key.
5
User <</>> to change baud rate.
6
Push MODE key to confirm communication protocol
7
Push MODE key to rerun normal display.
2 Settings
2-3 Communications settings
2
Refer the user’s manual of KPL for more detail information.
2-3-3 Communication settings for KPooL
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
2 - 5
Page 16
2 Settings
2 - 6
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
Page 17
Compoway/F
This section describes how to use Compoway/F communications based on
communications commands.
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
3 - 1
Page 18
3 Compoway/F
3-1CompoWay/F Communications
Specifications
Communications Control Method
Programs can be created in the host computer (e.g., a personal computer) toset or monitor parameters in theKP
inverter. Therefore the descriptions in this section are from the standpoint of the host computer. For example,
"Read/Write" refers to the host computer reading or writing to the inverter.
Communications Specifications
InterfaceRS-485RS-232C
Transmission path
connections
Communications2-wire system half duplexHalf duplex
SynchronizationStart-stopsynchronization
Baud rate
*: default
Transmitted codeASCII
Data bit length7 bits
Stop bit length2 bits
Error detectionVertical parity (even) BCC (block check character)
Data transmission LSB first
Flow controlNone
Retry functionNone
Communications buffer
Response wait time after
RS-485 command
transmitted
Waiting time after RS-485
response
The next command waiting
time after simultaneous
broadcasting
KP40G : 0.5 ms or more
KP100G : 1.0 ms or more e
KP
L : 0 to 99 ms (adjustable)
(Prohibit time from when command is sent from host to
when response is sent from inverter.
5.0 ms or more
(Prohibit time for command transmission after response
received from inverter)
30ms or more
L
KP40G
9600bps
KP100G
9600 / *19200bps
KPL
4800 / *9600 / 19200bps
3 - 2
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
Page 19
3-2Frame Formats
Command 1
from host
Response 1 from
Inverter
Command 2
from host
Period for
2 stop bits
Response wait time after
RS-485 command
transmitted
(Refer page 13)
Wait time after RS-485
response
(Refer page 13)
3 Compoway/F
The host computer sends a command frame, and the KP inverter sends a response frame based on the content
of the command frame. One response frame is sent in response to one command frame.
Host Computer
KP Inverter
After a receiving a response from the inverter, have the host computer wait specified waiting time at least before
sending the next command as shown the figure.
3-2 Frame Formats
3
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
3 - 3
Page 20
3 Compoway/F
3-2-1Command Frame structure
Based on CompoWay/F protocol, commands from the host computer and responses from the KP inverter take
the form of frames.
The data comprising command frames and response frames are explained below.
In the following explanation, an "hex" following a numeric value (for example 02 hex) indicates that the value is a
hexadecimal number. A number or letters enclosed in quotation marks (for example "00") is an ASCII character.
Text
Node No. Subaddress SIDFINS-mini command text BCC
STX 000ETX
122111
BCC calculation range
This code, 02 hex, indicates the beginning of a
communications frame (text). This code must always be
STX
Node No.
Subaddress
SID (Service ID)Not used in the KP inverter. Always set the SID to “00”.
FINS-mini
command and text
ETXThis code, 03 hex, indicates the end of text.
BCC
BCC Calculation Example
STX Node No. Subaddress SID FINS-mini command text ETX BCC
02
30
hex
hex
set as the first byte.
When another STX code is received during reception, the
reception starts again from the point where the STX was
received.
The node address identifies the destination node.
• The node address can be set to "00" to "99".
If you use communication by multiple inverters, set the
node address "01" to "31".
• There will be no response to a transmission with an
invalid node address.
Not used in the KP inverter. Always set the subaddress to
“00”.
The command and required text are placed here. Refer to
3-3 FINS-mini for details.
This is the block check character.
The BCC is calculated by taking the exclusive OR of all
bytes from the node number to the ETX.
The command frame was processed
normally without
any of the following errors.
The specified FINS command could not be
FINS command
error
executed.
Refer to the response code for more
details.
Attempted to write new data to the
reception register when the reception
register was full.
The received BCC did not match the
calculated BCC.
There was an illegal character in the FINS-
mini frame (character other than ASCII 0 to
9 or A to F) or data other than the test data
was returned in response to an Echoback
Te st .
There were no SID and FINS-mini.
There was no FINS-mini.
The FINS-mini MRC and SRC were
incorrect.
The subaddress was invalid (unsupported).
There were no subaddress, SID, and FINS-
mini.
The subaddress was shorter than 2
characters and
there were no SID and FINS-mini.
The received frame exceeds the specified
number of bytes.
Error
priority
None
8
3
5
7
6
4
• An end code is returned for each received command frame addressed to the local node.
• No response will be returned if the message is not complete through the ETX and BCC characters.
• The error priority indicates the priority of the error notification when there were two or more errors.
• The FINS-mini command and text section is not included for end codes other than 00 and 0F.
3
3-2-2 Response Frame Structure
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
3 - 5
Page 22
3 Compoway/F
KP Inverter
Microprocessor
Variable area
Operation commands
and responses
Read/Write
Personal Computer
3-3FINS-mini
The FINS-mini command text and response text provides the contents of the command and response
communications.
3-3-1PDU Formats
Command Text
The MRC (Main Request Code), SRC (Sub-Request Code), and any required data are transmitted in the
command frame.
Service Request PDU
MRC SRCData
Response Text
The MRC and SRC shown above, MRES (Main Response Code), SRES (Sub-Response Code), and the
response data are transmitted in the response frame.
Service Response PDU (Normal Response)
MRC SRCMRESSRESData
If the specified FINS-mini command could not be executed, service response
PDU will contain only the MRC/SRC and MRES/SRES.
Service Response PDU (Specified FINS-mini Command Not Executed)
MRC SRCMRESSRES
The MRES and SRES become the response code when the command was not completed normally.
3-3-2Variable Areas
The area used for data exchange when communicating with the KP inverter is called the "variable area." The
current values are read and various setting data are read and written using the variable area of the KP inverter.
Operation commands and Read Controller Attributes do not use the variable area.
3 - 6
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
Page 23
3-3-3Type code (variable type)
The definition of the type code of the variable area does as follows.
For more information, refer to 5-1 Variable Area (Setting Range) List.
3 Compoway/F
MSB
1 1
LSB
Access size
01:Byte
10:Word
11:Doubleword
Variable type
47xxxR/WByteSet Value for setting country
48xxRByteDC input information
C1xxxR/WDouble wordSet value for protective relay
C2xxxRDouble wordStandard Measurement
C3xxxRDouble wordStandard instruction data
C8xxRDouble wordThree Phase Measurement
CAxxxRDouble wordData for PV/grid information
D0xxxRDouble wordError logging
KP40GKP100GKPL
Support
3-3-4Address
Refer to 5-1 Variable Area (Setting Range) List.
R/WSizeContents
3-3 FINS-mini
3
3-3-3 Type code (variable type)
3-3-5Number of elements
The number of elements is expressed in 2-byte hexadecimal format.
The range for specifying the number of elements differs for each command.
Refer to 3-4 Detailed Description of Services.
3-3-6List of Services
MRCSRC
0101xxxRead from variable areaReads value from variable areas.
0104xComposite read from variable
0501xxxRead Controller informationReads the model and version.
0503xxxRead Controller AttributesReads the model number and
0601xxxRead Controller StatusReads the operating status.
0801xxxEchoback TestPerforms an echoback test
3005xxxOperation CommandPerforms following operations.
4101xxxRead character string area.Reads the character string area.
KP40GKP100GKPL
Support
Service nameProcessing
area
Reads composite values from variable
areas.
communications buffer size.
- Initialize Error log
- Clear the amount of energy for
period user set
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
3 - 7
Page 24
3 Compoway/F
MRC SRC
Response code
(MRES+SRES)
Read data
(No. of elements)
0 1 0 1
224
0, (2 or 8)
×No. of elements
3-4Detailed Description of Services
3-4-1Read from variable area
This service reads data from a variable area.
Command
Service Request PDU
Response
Service Response PDU
MRC SRC
0 1 0 1
2 2 2 424
Variable
Read start address
type
Bit
position
00
No. of elements
(1) Variable Type and Read Start Address
Refer to 5-1 Variable Area (Setting Range) List.
If data outside the address range is read, either 00 or 00000000 is read.
(2) Bit Position
Always "00" because there is no bit access.
(3) Number of Elements
Number of elementsProcessing
The read operation is not performed (read data is not
0000
1~128 (KP40G / KP
1~200 (KP100G)
1~32 (KP40G / KP
1~50 (KP100G)
L)
L)
appended to the service response PDU), and processing ends in
“normal completion.”
When the variable type is "4_"
The read operation is performed, and processing ends in “normal
completion”
When the variable type is "C_" or "D_"
The read operation is performed, and processing ends in “normal
completion”
3 - 8
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
Page 25
3 Compoway/F
Note 1 If the Read Start Address is outside of the variable area, the returned read data will all be 0,
but the specified number of elements will be returned and the processing will end in "normal
completion."
Address
3-4 Detailed Description of Services
Request
Undefined
Undefined
Response
00
Data
00
2 If the Read Start Address is within the variable area and the Read End Address (Read Start
Address + Number of Elements) is beyond the last variable area address, the read operation
will be performed as long as the amount of data up to the last variable area address is within
the specified range of the number of elements. The read data beyond the end of the variable
area will all be set to 0. (See the following example.)
Address
Undefined
RequestResponse
Data
00
Data
3
3-4-1 Read from variable area
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
3 - 9
Page 26
3 Compoway/F
(4) Response Codes
Response
code
(MRES+SRES)
1001Command too longThe command is too long.1
1002Command too shortThe command is too short.2
1101Area type errorThe variable type is incorrect.3
110BResponse too long
1100Parameter errorThe bit position is not 00.5
0000Normal completionNo error.None
Error nameCause
The number of elements exceeds the
maximum.
(5) Read Data
0 digits, 0 bytesWhen the number of elements in the service request PDU is 0000.
2 digits, 1 byteWhen the variable type in the service request PDU is “4_”.
8 digits, 4 bytesWhen the variable type in the service request PDU is "C_" or "D_"
Refer to 5-1 Variable Area (Setting Range) List for data details.
"8 digits, 4 bytes" means that when the internal data is 4 bytes, the communications data is 8 bytes.
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
Page 27
3-4-2Composite read from variable area (KPL only)
MRC SRC
Variable
type
Variable
type
Variable
type
Variable
type
Read addressRead address
Read addressRead address
Bit
position
Bit
position
Bit
position
Bit
position
0 1 0 4
0000
22242242
00 00
2 4 2 2 4 2
This service reads in order the contents of specified addresses in a variable area.
This command cannot mix variable type C_, variable type 4_, and variable type D_.
Command
Service Request PDU
3 Compoway/F
3-4 Detailed Description of Services
3
3-4-2 Composite read from variable area (KPooL only)
Response
Service Response PDU
MRC SRC
0 1 0 4
22422
Response code
(MRES+SRES)
(1) Variable Type and Read Address
Refer to 5-1 Variable Area (Setting Range) List for information on all types.
(2) Bit Position
Always "00" because there is no bit access.
(3) Number of Elements
Number of elementsProcessing
0000
1~33
1~25
Variable
Variable
type
2 or 82 or 8
type
Variable
type
Read
data
2 or 82 or 82
The read operation is not performed (read data is not
appended to the service response PDU), and processing ends in
“normal completion.”
When the variable type is "4_"
The read operation is performed, and processing ends in “normal
completion”
When the variable type is "C_" or "D_"
The read operation is performed, and processing ends in “normal
completion”
Read
data
V
ariable
type
Read
data
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
3 - 11
Page 28
3 Compoway/F
(4) Attention at reading variable area
In case that read address is undefined, read data is [00] (4_ : command) or [00000000](C_, D_:command).
(5) Response Codes
Response
code
(MRES+SRES)
1002Command too shortThe command is too short.3
1101Area type errorThe variable type is incorrect.1
110BResponse too long
1100Parameter errorThe bit position is not 00.2
0000Normal completionNo error.None
Error nameCause
The number of elements exceeds
the maximum.
Error
priority
4
3 - 12
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
Page 29
3-4-3Read Controller information
This service reads the Controller's model and version.
Command
Service Request PDU
MRCSRC
0 5 0 1
2 2
Response
3 Compoway/F
3-4 Detailed Description of Services
3
Service Response PDU
MRCSRC
0 5 0 1
2 2 4 20 20
(1) Model data
The model number is returned in 20 bytes of ASCII data. If the data is less than 20 bytes long, the remaining
bytes will be padded with spaces (20 hex).
The following table shows the model number format.
ModelModel data
KPxxxx-OD-xxKPxxxx-OD-xx-xx (Space code)
(2) Version data
The version number is returned in 20 bytes of ASCII data. If the data is less than 20 bytes long, the remaining
bytes will be padded with spaces (20 hex).
VersionVersion data
V1.001.00(Space code)
(3) Response Codes
Response
code
(MRES+SRES)
1001Command too longThe command is too long.1
0000Normal completionNo error.None
Response code
(MRES+SRES)
Error nameCause
Model data Version data
Error
priority
3-4-3 Read Controller information
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
3 - 13
Page 30
3 Compoway/F
MRC SRC
0 5 0 3
22
3-4-4Read Controller Attributes
This service reads the model number and communications buffer size.
Command
Service Request PDU
Response
Service Response PDU
MRC SRC
Response code
(MRES+SRES)
Model dataBuffer size
0 5 0 3
2 2 4 104
(1) Model data
The model is returned in 10 bytes of ASCII data. If the data is less than 10 bytes long, the remaining bytes will be
padded with spaces (20 hex).
ModelModel data
KPxxxxKPxxxx(Space code)
(2) Buffer Size
The communications buffer size is expressed in 2-byte hexadecimal and is converted to 4-byte ASCII before
being displayed.
ModelBuffer Size
KP40G / KPL
KP100G417bytes (01A1)
273bytes (0111)
(3) Response Codes
Response
code
(MRES+SRES)
1001Command too longThe command is too long.1
0000Normal completionNo error.None
Error nameCause
Error
priority
3 - 14
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
Page 31
3-4-5Read Controller Status
MRC SRC
Response code
(MRES+SRES)
Operating
statsus
Error status
0 6 0 1 1 23 4 56 7 89 10 11 12 13 14
2 2 4 2 14
This service reads the operating status and error status.
Command
Service Request PDU
MRC SRC
0 6 0 1
22
Response
3 Compoway/F
3-4 Detailed Description of Services
3
Service Response PDU
(1) Operating status
Operating statusDescription
MSB
(Bit)
04)Gate Block
1Excluding while blocking the gate
05)[KP40G / KP100G] Reservation
0 06)Reservation
1) Instruction status of KP inverter.
2) 3) The grid relay ON/OFF status
In KP40G, 4 relays are built into. It is occupied whether to have turned on both of relays of a side
nears the grid (Relay3/4) among these. Similarly it shows whether to have turned on the relay of a
side near the inside (Relay1/2).
In KP100G or KPL, 6 relays are built into. It is occupied whether to have turned on relays of a
side nears the grid (Relay4/5/6) among these. Similarly it shows whether to have turned on the relay
of a side near the inside (Relay1/2/3).
3-4-5 Read Controller Status
LSB
(Bit)
0 0 1)[KP100G] Reservation
[KP40G / KPL] Stop
0 1On grid instruction
10Reservation
11Reservation
02)[KP40G] Excluding turning on both Relay3/4
[KP100G / KPL] Excluding turning on both Relay4/5/6
1[KP40G] Turning on both Relay3/4
[KP100G / KPL] Turning on both Relay4/5/6
03)[KP40G] Excluding turning on both Relay1/2
[KP100G / KPL] Excluding turning on both Relay1/2/3
1[KP40G] Turning on both Relay1/2
[KP100G / KPL] Turning on both Relay1/2/3
[ KPL] Excluding turning on Relay N
[KP40G / KP100G] Reservation
[ KPL] Turning on Relay N
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
3 - 15
Page 32
3 Compoway/F
4) The state to stop the switching of inverter is called a gate block, and the stopped state or the power
generation of the output is shown.
5) It shows whether to have turned on the relay of the Neutral line on KPL.
3 - 16
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
Page 33
(2) Error status
KP40G
KPL
KP100GE1-1
KP40G
KPL
KP100GE2-1
KP40G
KPL
KP100G0000E4-1
KP40GE4-5
KPL
KP100G0000000E5-4
KP40GE5-5
KPL00 E5-9
KP100G000E5-8
KP40G
KPL
KP100G0000A2-5
KP40G
KPL
KP100G0000000A1-9
3 Compoway/F
1(MSB~LSB)2
12341234
E1-1
OV
Grid OV
12341234
E2-1
DC
overvoltage
PV over
voltage
12341234
0000E4-1
12341234
Abnormality
of power
source
12341234
Breaking
circuit
detecting
fault current
12341234
0000000E1-0
12341234
A1-1
Voltage
enhancement
control
E1-2
UV
E1-2
Grid UV
0E2-3
0E2-3
E4-6
Abnormal
EEPROM
Sum value
E5-6
Failure of
inverter
(Over
current)
A1-2
MPPT
Control stop
E1-3
OF
E1-3
Grid OF
34
Ground I fault
Ground I
Fault
56
78
E4-7
Failure of
eeprom
910
E5-7
Communication
error
1112
1314
A1-3
Synchronous
gap
generation
E1-4
UF
E1-4
Grid UF
E2-4
Insulation
resistance
fault
E2-4
Isolation fault
E4-8
Abnormality
Device
setting
E5-8
Breaking of
circuit
detecting
leakage
circuit
GFCI Failure
A1-4
DC
undervoltage
E1-5
Islanding
Passive
0E1-6
E3-1
DC
overcurrent
0E3-2
Abnormality
of
comparison
of
measurement
Consistent
fault
E5-1
Failure of
relay
0000
Auto test
failure
E5-9
Auto test
failure
Fan Lock
00A1-7
E1-6
Islanding
Active
Islanding
active
E3-2
AC
overcurrent
Over AC
current
E4-2
Abnormity of
efficiencyc
E4-2
DC sensor
Fault
E5-2
Communication
error between
CPUs
000
A2-6
Hihg DC bus
E1-7
OV instantly
E1-7:Grid OV
instantly
E3-3
DC current
injection
E3-3
DC INJ High
E4-3
Failure of
inverter
0E4-4
0E5-4
0
A2-7
Memory Full
<In the
future>
Output
current
control
E1-8
UV instantly
0
E3-4
Over
temperature
E3-4
Over
temperature
E4-4
Abnormal
ROM version
M-S Ver.
Fault
DC/DC
undervoltage
Low DC bus
No Utility
E1-0
No Utility
0
EEPROM
failure
3-4 Detailed Description of Services
3
3-4-5 Read Controller Status
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
3 - 17
Page 34
3 Compoway/F
(3) Response Codes
Response
code
(MRES+SRES)
1001Command too longThe command is too long.1
0000Normal completionNo error.None
Error nameCause
Error
priority
3 - 18
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
Page 35
3-4-6Echoback Test
This service performs an echoback test.
Command
Service Request PDU
3 Compoway/F
3-4 Detailed Description of Services
MRC SRC
0 8 0 1
22
Test data
0~256
Response
Service Response PDU
MRC SRC
0 8 0 1
224
Response code
(MRES+SRES)
(1) Test Data
Set values for the test data within the ranges 20 to 7E hex in ASCII data.
(2) Response Codes
Response
code
(MRES+SRES)
1001Command too longThe command is too long.1
0000Normal completionNo error.None
Error nameCause
Test data
0~256
3
3-4-6 Echoback Test
Error
priority
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
3 - 19
Page 36
3 Compoway/F
3-4-7Operation Command
This service performs operation command processing to KP inverter.
Command
Service Request PDU
MRC SRC
Instruction
Code
Relevant
information
3 0 0 5
22 24
Response
Service Response PDU
MRC SRC
3 0 0 5
224
Response code
(MRES+SRES)
(1) Command code and related information
Command
code
02Initialize Error log0000: Error history initialization
14
Command contentRelatedinformation
Clear Total Periodic Energy
that user set
(2) Response Codes
Response
code
(MRES+SRES)
1001Command too longThe command is too long.1
1002Command too shortThe command is too short.2
1100Parameter error
0000Normal completionNo error.None
Error nameCause
0000
Command code and related
information are wrong.
Error
priority
3
3 - 20
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
Page 37
3-4-8Read character string area.
This service reads character string area.
Command
Service Request PDU
MRC SRC
4 1 0 1
2244
Read start
address
No. of elements
3 Compoway/F
3-4 Detailed Description of Services
Response
Service Response PDU
MRC SRC
4 1 0 1
2 2 4
Response code
(MRES+SRES)
(1) Variable Type and Read Start Address
Refer to 5-1 Variable Area (Setting Range) List for information on all types.
If data outside the address range is read, read data not added to service response PDU.
(2) Number of Elements
Number of
elements
0000
0001
0002
:
0000
Processing
The read operation is not performed (read data is not appended to the
service response PDU), and processing ends in “normal completion.”
The data readout in one character is performed and processing ends
in “normal completion.”
The data readout in two character is performed and processing ends
in “normal completion.”
The data readout in 15 character is performed and processing ends in
“normal completion.”
(3) Response Codes
Read data
(No. of elements)
3
3-4-8 Read character string area.
Response
code
(MRES+SRES)
Error nameCause
1001Command too longThe command is too long.1
1002Command too shortThe command is too short.2
110BResponse too long
The number of elements exceeds
000F.
0000Normal completionNo error.None
(4) Read Data
Refer to 5-1 Variable Area (Setting Range) List for data details.
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
Error
priority
3
3 - 21
Page 38
3 Compoway/F
3-5Response Code List
Response
code
(MRES+SRES)
0000Normal completionNo error.None
0401Unsupported command
1001Command too longThe command is too long.2
1002Command too shortThe command is too short.3
1101Area type errorThe variable type is incorrect.4
1003
110BResponse too long
1100Parameter error
Number of elements/data
number mismatch
Error nameCause
The service function for the specified command is
not supported.
The amount of data does not match the number of
elements.
The response exceeds the communications buffer
size.
• The bit position is not 00.
• A value that must be 00 was not set to 00.
• Incorrect command code or related information in
the operation command.
• The write data is out of the setting range.
Error
priority
1
5
6
7
3 - 22
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
4-1
Page 40
4 MODBUS
4-1MODBUS Communications
Specifications
Communications Control Method
Programs can be created in the host computer (e.g., a personal computer) to set or monitor parameters in the
KPL. Therefore the descriptions in this section are from the standpoint of the host computer. For example,
"Read/Write" refers to the host computer reading or writing to the inverter.
3.5Char or more
19200bps : about 2ms or more (11bit/Char)
9600bps : about 4ms or more (11bit/Char)
3.5Char or more
19200bps : about 2ms or more (11bit/Char)
9600bps : about 4ms or more (11bit/Char)
4-2
* default
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
Page 41
4 MODBUS
4-2Frame Formats
Modbus is a communications control method that conforms to the RTU Mode of the Modbus protocol
specifications PI-MBUS-300 Rev. J) of Modicon Inc.
The host computer sends a command frame, and the KP inverter sends a response frame based on the content
of the command frame. One response frame is sent in response to one command frame.
4-2-1Command Frame structure
In the following explanation, an "hex" following a numeric value (for example 02 hex) indicates that the value is a
hexadecimal number. A number or letters enclosed in quotation marks (for example "00") is an ASCII character.
In RTU Mode, each frame begins and ends with a silent time interval that is at least 3.5 characters long.
Silent
Interval
3.5Char or more 3.5Char or more
Slave
address
Function
code
Data
CRC-16
Silent
Interval
4-2 Frame Formats
4
4-2-1 Command Frame structure
Byte112
CRC-16 calculation range
Silent interval at least 3.5 characters long.
Specify the node number of the KP inverter between 00 hex
Slave address
Function code
Data
CRC-16
and 63 hex (0 to 99). When broadcasting to all nodes, specify
00 hex. Responses are not returned for broadcasts.
The function code specifies the command from the host
computer.
The code is set in hexadecimal and is 1 byte long. For more
information, refer to 5-1 Variable Area (Setting Range) List
The text of command based on the function code. Specifies
variable addresses and the values for set values in
hexadecimal.
Cyclical Redundancy Check
These two bytes store check code calculated from the slave
address to the end of the data in hexadecimal.
Silent interval at least 3.5 characters long.
Note The maximum size of a MODBUS RTU frame is 256 bytes.
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
4-3
Page 42
4 MODBUS
Example of CRC-16 Calculation
A message is processed 1 byte at a time in a 16-bit processing register called the CRC register.
1
An initial value of FFFF hex is set in the CRC register.
2
An XOR is taken of the contents of the CRC register and the 1st byte of the message, and the
result is returned to the CRC register.
3
The contents of the CRC register is shifted 1 bit to the right, and 0 is placed in the MSB.
4
If the bit shifted from the LSB is 0, step 3 is repeated (i.e., the contents of the register is shifted
1 more bit).
If the bit shifted from the LSB is 1, an XOR is taken of the contents of the CRC register and
A001 hex, and the result is returned to the CRC register.
5
Steps 3 and 4 are repeated until the contents of the register have been shifted 8 bits to the right.
6
If the end of the message has not been reached, an XOR is taken of the next byte of the CRC
register and the message, the result is returned to the CRC register, and the procedure is
repeated from step (3).
7
The result (the value in the CRC register) is placed in the lower byte of the message.
Example of Appending the Result
If the calculated CRC value is 1234 hex, this is appended as follows to the command frame:
Slave
Function
address
code
112
CRC-16 calculation range
DataCRC-16
Low
H’34
High
H’12
4-4
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
Page 43
4-2-2Response Frame Structure
Normal Response Frames
Slave
address
Function
code
11 2
CRC-16 calculation range
Data CRC-16
Error Response Frames
Slave
Function
address
1112
CRC-16 calculation range
code
Error
code
CRC-16
4 MODBUS
4-2 Frame Formats
4
4-2-2 Response Frame Structure
The nodenumber that was specified in the command frame
Slave address
is returned here. This is the node number of the
responding KP inverter.
The function code that was received is returned here.
In an error response frame, 80 hex is added to the value to
Function code
indicate that this is an error response.
Example: Received function code = 03 hex
Function code in error response frame = 83 hex
Error codeAn end code that indicates the error.
Cyclical Redundancy Check
CRC-16
These two bytes are a check code calculated from the
slave address through the end of the data in hexadecimal.
No Response
In the following cases, the received command is not processed and a response is not returned. A timeout will
occur at the host device.
• The slave address in the received command is different from the communications unit number set in the KP
inverter.
• A parity error, framing error, or overrun error occurred due to a transfer error or other error.
• A CRC-16 code error occurred in the received command frame.
• A time interval greater that 3.5 characters occurred between data while receiving a command frame. In the
following case, the command is processed, but a response is not returned.
• Broadcast transmission (Slave address: 00hex)
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
4-5
Page 44
4 MODBUS
4-3Function Codes
Function codeNameDescription
03 (03 hex)
06 (06 hex)Single Write to Variable Area
08 (08 hex)Echoback TestPerforms an echoback test.
Multiple Read from Variable
Area
Reads from a variable area.
Multiple variables that are
consecutive can be read.
Writes to a variable area or an
operation command.
Broadcasting is possible
4-6
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
Page 45
4 MODBUS
KP Inverter
Microprocessor
Variable area
Operation commands
and responses
Read/Write
Personal Computer
4-4Variable Areas
The area used for data exchange when communicating with the KP inverter is called the "variable area." The
current values are read and various setting data are read and written using the variable area of the KP inverter.
4-4 Variable Areas
4
4-4-1 Addresses
4-4-1Addresses
Refer to 5-1 Variable Area (Setting Range) List for parameter addresses. Parameters with the following variable
types can be used with the Modbus protocol:
4-4-2Number of Elements
The number of elements is expressed in 2-byte hexadecimal format.
The range for specifying the number of elements differs for each command.
Refer to 5-1 Variable Area (Setting Range) List.
4-4-3Communications Data
Setting
(monitor)
value
Hexadecimal2 bytes2's complement
Communications
data
(See note.)
Negative valuesDecimal point
The decimal point is removed and
the result is converted to
hexadecimal.
Example: 105.0 1050 041A
NoteRefer to 5-1 Variable Area (Setting Range) List.
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
4-7
Page 46
4 MODBUS
4-5Detailed Description of Services
4-5-1Multiple Read from Variable Area
This service reads data from the variable area.
Command
Slave
Function
address
H’03
11222
Response
[Normal response]
Slave
address
code
Function
code
H’03
Read start
address
Byte
count
Read data 1
No. of
elements
CRC-16
Read data n
CRC-16
11 1
Number of
elements
bytes
×2
2
[Abnormal response]
Slave
address
Function
code
H’83
11 12
Error
code
CRC-16
(1) Read Start Address
Refer to5-1 Variable Area (Setting Range) List.
Same data as Read Controller information (3-4-3 Read Controller information) and Read Controller Status (3-4-5Read Controller Status) in Compoway/F can be read by this service.
Refer to 5-1 Variable Area (Setting Range) List in detail to read Controller information and Controller status.
(2) No. of Elements
Specify the number of elements to read. The specification range is from 0001 to 007D hex (1 to 125 elements).
(3) Byte Count
The number of bytes of data that was read is returned.
(4) Response Codes
Function
code
83 hex
03 hex--Normal completion
Error
code
Error nameCause
02 hexVariable address error
03 hexVariable data error
The read start address is not
correct.
• The command is too long.
• The command is not long
enough.
• The number of elements has
exceeded the maximum limit.
The service was processed
normally.
4-8
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
Page 47
4-5-2Single Write to Variable Area
Slave
address
Function
code
H’86
Error
code
CRC-16
11 12
This service either writes data to the variable area or executes the operation commands
Command
Slave
Function
address
code
H’06
11222
Write start
address
Write data
CRC-16
Response
[Normal response]
Slave
Function
address
code
H’06
11222
[Abnormal response]
Write start
address
Write data
CRC-16
4 MODBUS
4-5 Detailed Description of Services
4
4-5-2 Single Write to Variable Area
(1) Write Start Address
Set the write start address to FFFF hex when executing an operation command.
When writing to the variable area, refer to 5-1 Variable Area (Setting Range) List.
(2) Write Data
When executing an operation command, place the write data as follows.
Upper bite: command code
Lower bite: related information
Command content
Command code
(upper bite)
Initialize Error log0x020x00
Clear Total Periodic Energy that
user set
0x140x00
Related information
(lower bite)
(3) Response Codes
Function
code
86 hex
06 hex--Normal completion
Error
code
Error nameCause
02 hexVariable address error
03 hexVariable data error
The write start address is not
correct.
• The command is too long.
• The command is not long enough.
The service was processed
normally.
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
4-9
Page 48
4 MODBUS
4-10
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
9
5 - 1
Page 50
5 Communications Data
5-1Variable Area (Setting Range) List
The following table lists the variable areas. Items expressed in hexadecimal in the “Content explanation”
column are the setting range for CompoWay/F or MODBUS communications. The values in parentheses are the
actual setting range.
5 - 2
Grid Connect Photovoltaic Inverter KPG/KPL Communication Manual
Page 51
5 Communications Data
Address
Compoway/F
Typ e CodeAddress
47
Set Value for
setting country
Read/Write
0000
0001
48
Set each model
Read Only
0000
Modbus
0A00
(upper)
0A00
(lower)
0B00
(upper)
Model Name
Varia bl e
identifier
Country setting 0x00: [GER]
ReservedReservedReservedReserved
The number of
DC input
KPL
(Compoway/F &
Modbus)
Germany
0x01: [FRA] France
0x02: [GRE]
Greece
0x03: [CZE] Czech
Republic
0x04: [DEN]
Denmark
0x05: [TUR] Turkey
0x06: [RSA]
Republic of South
Africa
0x07: [ESP] Spain
0x08: [POR]
Portugal
0x09: [ITA] Italy