Omron KM50 Communications Manual

Omron KM50 Communications Manual

Smart power monitor
Table of Contents

Advertisement

Cut Energy Losses
Cat. No. N165-E1-02
Smart Power Monitor
Smart Power Monitor
Smart Power Monitor
Communications Manual
Communications Manual
Communications Manual
KM50
KM50
KM50
KM50
KM50
KM50

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the KM50 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Omron KM50

  • Page 1 Smart Power Monitor Smart Power Monitor Smart Power Monitor KM50 KM50 KM50 KM50 KM50 KM50 Cut Energy Losses Communications Manual Communications Manual Communications Manual Cat. No. N165-E1-02...
  • Page 2: Introduction

    Introduction Serial communications can be used for the KM50-C/-E. This manual describes the communications functions that are supported by the KM50-C/-E. Read and understand this manual before attempting to use communications, and use the communications functions correctly. Keep this manual in a safe and convenient location so that it can be used as reference whenever...
  • Page 3 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. IN NO EVENT SHALL OMRON BE RESPONSIBLE FOR WARRANTY, REPAIR, OR OTHER CLAIMS...
  • Page 4 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.
  • Page 5: Safety Precautions

    ●Definition of Precautionary Information The following notation is used in this manual to provide precautions that are required to ensure safe usage of the KM50-C/-E. The safety precautions that are provided are extremely important to safety. Always read and heed the information provided in all safety precautions.
  • Page 6 ●Safety Precautions Caution Property damage may occasionally occur due to fire. Tighten terminal screws to the specified tightening torque. The recommended tightening torque is 0.69 to 0.88 N⋅m. Confirm that the screws are straight (i.e., not at an angle) after tightening them. Minor or moderate bodily harm or property damage may occasionally occur due to explosion.
  • Page 7: Precautions For Safe Use

    • Locations that are affected by electric or magnetic fields • Locations that are subject to splashing brine 2) Install the product in a panel with a panel thickness of 1 to 5 mm for the KM50-C and with a thickness of 1 to 8 mm for the KM50-E.
  • Page 8: Installation Precautions

    Use the KM50 within the following temperature and humidity ranges. Temperature: −10 to 55°C (with no icing or condensation), Humidity: 25% to 85% When the KM50 is installed in a control panel, ensure that the temperature around the KM50 (not the temperature around the panel) does not exceed 55°C.
  • Page 9: Precautions For Correct Use

    Waterproof Packing: Y92S-29 for the KM50-C and Y92S-P5 for the KM50-E 7) Remove the protective film from the front of the product before using the product. 8) Wire the middle row (terminals 11 to 15 for the KM50-C and terminals 21 to 30 for the KM50-E) last.
  • Page 10: Preoperational Checks

    Process Item to check Description Immediately External After you purchase the KM50, make sure there are no dents in the KM50 or the after appearance packaging box. purchase If there is internal damage, correct measurements may not be possible depending on the location of the damage.
  • Page 11 Mode. This parameter has been changed to Active Power to avoid confusion. Related Manuals This manual describes the communications functions that are supported by the KM50-C/-E. Refer to the Smart Power Monitor Operation Manual (KM50-C: Cat. No. N163, KM50-E: Cat. No. N164) for information on the functions of the Power Monitor.
  • Page 12: Table Of Contents

    Table of Contents Introduction ..........................I Safety Precautions......................IV Precautions for Safe Use ....................VI Installation Precautions ...................... VII Precautions for Correct Use....................VIII Preoperational Checks......................IX Revision History ........................IX Table of Contents........................ XI Section 1 Overview ..................1-1 1. 1 Communications Protocols...................1-2 ■...
  • Page 13 ■ Operation Command ................... 2-19 Response Codes....................2-21 Section 3 CompoWay/F Communications Data.......... 3-1 3. 1 Variable Area .......................3-3 3. 2 Status Information ....................3-44 3. 3 Parameter Area....................3-45 Section 4 Modbus Communications Protocol ..........4-1 4. 1 Data Formats .......................4-2 ■ Command Frames ....................4-2 ■...
  • Page 14: Overview

    Section 1 Overview 1. 1 Communications Protocols ..............1-2 ■ Introduction ......................1-2 ■ Communications Specifications ................ 1-3 ■ Transmission Procedure ..................1-3 ■ Interface ......................1-3 ■ Wiring ......................1-4 ■ Communications Parameters ................1-4...
  • Page 15: Communications Protocols

    Communications can be used to monitor measurement data, collect measurement data, and change settings for the KM50-C/-E from a host (e.g., computer). A program must be created for the host. This manual describes communications from the viewpoint of the host.
  • Page 16: Communications Specifications

    * The baud rate, data length, number of stop bits, and vertical parity can all be set individually. ■ Transmission Procedure The host (e.g., computer) sends a command frame. The KM50-C/-E returns a response according to the contents of the command. One response frame is always returned for each command frame.
  • Page 17: Wiring

    Section 1 Overview ■ Wiring ● RS-485 • The connection configuration is 1:1 or 1:N. For a 1:N configuration, up to 31 KM50-C/-E nodes can be connected for CompoWay/F and up to 99 KM50-C/-E nodes can be connected for Modbus.
  • Page 18 1. 1 Communications Protocols ● Communications Parameters Changes to the settings are enabled when you return to Measurement Mode. • Protocol Selection (80.psl) Select the communications protocol. You can select either CompoWay/F or Modbus. If Modbus is selected, the data length will always be 8 bits and the number of stop bits will be set automatically according to the vertical parity.
  • Page 19 Section 1 Overview...
  • Page 20 Section 2 CompoWay/F Communications Protocol This section describes performing communications using the CompoWay/F protocol. 2. 1 Data Formats ................2-2 ■ Command Frame ..................2-2 ■ BCC Calculation Example................ 2-3 ■ Response Frame..................2-3 ■ Communications Data................2-4 ■ End Code Examples ................2-4 2.
  • Page 21: Section 2 Compoway/F Communications Protocol

    • Responses are also not returned if any other node numbers are specified. Sub-address This is not used by the KM50-C/-E. Always set it to 00. SID (service ID) This is not used by the KM50-C/-E. Always set it to 00.
  • Page 22: Bcc Calculation Example

    2. 1 Data Formats ■ BCC Calculation Example The BCC (Block Check Character) is determined by finding the exclusive OR of the bytes from the node number through the ETX. The 8-bit result is written to the BCC byte at the end of the frame. ■...
  • Page 23: Communications Data

    Section 2 CompoWay/F Communications Protocol ■ Communications Data Communications Set value Negative values Decimal points protocol (monitor value) Data is converted to hexadecimal without the CompoWay/F 8-digit hexadecimal Two's complement decimal point. Example: 105.0 → 1050 → 0000 041A hex ■...
  • Page 24: Structure Of Command Text

    MRC/SRC and MRES/SRES. ■ Variable Areas and Parameter Areas The KM50-C/-E use two areas for data communications. The variable area is accessed to read measurement values. The variable area is separated into areas for the three types of measurement values, instantaneous, maximum, and minimum, and an area to read the measurement log.
  • Page 25: Area Definitions

    Section 2 CompoWay/F Communications Protocol ■ Area Definitions There are two areas: the variable area and the parameter area. The codes for each area are defined as follows: • Variable Area Variable type (1 byte) Access size Type code 11: Double word •...
  • Page 26: Addresses

    Using these variable types is convenient for new systems. *3 These type codes are used only for the KM50-E. *4 The time units for the measurement values are as follows: Every 5-minute period: Values measure over a 5-minute period, e.g., 00:05 to 00:10.
  • Page 27: Detailed Descriptions Of Services

    For details on variable types and read start addresses, refer to SECTION 3 CompoWay/F Communications Data. (2) Bit Position Bit access is not supported by the KM50-C. Always use 00. (3) Number of Elements Specify the number of variables to read.
  • Page 28 Voltage 1 Voltage 2 code The KM50 returns measurement values converted to hexadecimal without decimal points. 0000 03F4 hex = 1012 decimal Section 3 CompoWay/F Communications Data specifies one place below the decimal point for the set value/monitor value for instantaneous voltage 1, so the value is 101.2 V. This also applies...
  • Page 29: Read Parameter Area

    Section 2 CompoWay/F Communications Protocol ■ Read Parameter Area This service reads from the parameter area. • Service Request PDU Parameter Read start No. of type address elements (Numbers below the frame are the number of bytes.) • Service Response PDU Response Parameter Read start...
  • Page 30 2. 3 Detailed Descriptions of Services Example 2: One less than the last address is specified as the read start address and 13 elements is specified (0D hex). Address Parameter Area **** ******** Read start address → **** ******** ← Last address Read end address →...
  • Page 31: Write Parameter Area

    Section 2 CompoWay/F Communications Protocol ■ Write Parameter Area This service writes to the parameter area. Execute this service after changing to a Setting Mode. • Service Request PDU Parameter type Write start No. of Write data (for the number of address elements elements)
  • Page 32 2. 3 Detailed Descriptions of Services ● Changing Set Values Set the parameters while the Power Monitor is in a Setting Mode However, even if the set values are changed, the changes will not be applied in the Setting Mode. Changes to parameters that are made in a Setting Mode are enabled by changing to Measurement Mode.
  • Page 33: Read Controller Attributes

    (1) Model The model number is expressed in 10 bytes of ASCII. When 10 bytes are not required, the remaining bytes are padded with spaces. Example: The following model number is given for the KM50-C1-FLK. − C Model "-FLK" is not returned in the response.
  • Page 34: Read Controller Status

    VT or 110% of the selected VT value is exceeded. Single-phase, Two-wire Circuits KM50-C: Line voltage of 264 V KM50-E: Line voltage of 528 V (480 × 110%) Single-phase, Three-wire Circuits Vrn-Vsn phase voltage of 132 V or Vrs line voltage of 264 V Three-phase, Three-wire Circuits KM50-C: Line voltage of 264V (240 ×...
  • Page 35: Read Time Data

    Section 2 CompoWay/F Communications Protocol ■ Read Time Data This service reads the time data. • Service Request PDU • Service Response PDU Response code Year Month Hour Min- utes (1) Time Data The present time of the internal clock is read using two digits each for the year (last two digits), month, day, hour (universal time).
  • Page 36: Write Time Data

    2. 3 Detailed Descriptions of Services ■ Write Time Data This service writes the time data. The seconds will be treated as 00. Execute this service after changing to a Setting Mode. The internal clock will start as soon as a normal completion is achieve for the write service. •...
  • Page 37: Echoback Test

    Section 2 CompoWay/F Communications Protocol ■ Echoback Test This service performs an echoback test. • Service Request PDU Test data 0 to 90 • Service Response PDU Response Test data code 0 to 90 (1) Test Data Set between 0 and 90 bytes of user-defined test data. Set the test data within the ranges shown below according to the communications data length.
  • Page 38: Operation Command

    2. 3 Detailed Descriptions of Services ■ Operation Command Use this service to perform remote control for the KM50-C/-E. • Service Request PDU Com- Related mand infor- code mation • Service Response PDU Response code (1) Command Code and Related Information...
  • Page 39 Section 2 CompoWay/F Communications Protocol (3) Operation Commands and Precautions ● Reset Total Power Consumption The total power consumptions are reset to 0. The consumptions are totaled again as soon as they are reset. ● Go to Measurement Mode The Power Monitor is changed to Measurement Mode. When moving to Measurement Mode, the Power Monitor saves changes to settings to EEPROM and is reset.
  • Page 40: Response Codes

    Response Codes Response Codes Normal Completion Error Response Name Description detection code priority 0000 Normal completion No errors were detected. None Error Completion Error Response Name Description detection code priority The service function for the relevant command is not 0401 Unsupported command supported.
  • Page 41 Section 2 CompoWay/F Communications Protocol 2-22...
  • Page 42: Compoway/F Communications Data

    Section 3 CompoWay/F Communications Data This section lists the data that can be used for CompoWay/F communications. 3. 1 Variable Area ..................3-3 ● Communications Data................... 3-3 ● Variable Area....................3-3 ● C0 (Previous): Instantaneous Value Level ........... 3-3 ● C1 (Previous): Average Value Level............. 3-6 ●...
  • Page 43 Section 3 CompoWay/F Communications Data ● E1: Minimum Measurement Values.............3-39 ● E2: Alarm History ..................3-42 3. 2 Status Information ................3-44 3. 3 Parameter Area ................3-45 ● Parameter Area....................3-45...
  • Page 44: Variable Area

    Values are converted to hexadecimal without the decimal point. ● Variable Area • The KM50 variable area contains parameters that are in the same structure as those of the KM100 and KM20-B40 (labeled below as "previous"), as well as parameters that are in the data structure of the KM50-C (labeled below as "new").
  • Page 45 Section 3 CompoWay/F Communications Data Variable Address Parameter name Set value (monitor value) type 0000 0000 to 0000 03E8 hex (0.000 to 1.000) 0017 HIGH Total Time Ratio *Three digits to the right of the decimal point (fixed). 0000 0000 to 05F5 E0FF hex (0.000 to 99,999.999) MIDDLE Total Power 0018 *Three digits to the right of the decimal point (fixed).
  • Page 46 3. 1 Variable Area Variable Address Parameter name Set value (monitor value) type Pulse Input Count 2 for the 0000 0000 to 0001 869F hex (0 to 99,999) 0038 Day (pulses) FFFF FF6A to 0000 0578 hex (−15.0 to 140.0) *One digit to the right of the decimal point (fixed).
  • Page 47: C1 (Previous): Average Value Level

    ---: These values will read as 0. *3 These addresses can be read only with the KM50-E. They cannot be read with the KM50-C. *4 The ratios for various values read as 1.000 for 100% for the status from the start time until the end time.
  • Page 48: C2 (Previous): Maximum Value Level

    3. 1 Variable Area ● C2 (Previous): Maximum Value Level Variable Address Parameter name Set value (monitor value) type 0000 0000 to 000F 423F hex (0.0 to 99,999.9) 0000 Maximum Voltage 1 *One digit to the right of the decimal point (fixed). 0001 Maximum Voltage 2 Same as above.
  • Page 49: C8 (New): Instantaneous Value Level

    Section 3 CompoWay/F Communications Data ● C8 (New): Instantaneous Value Level Variable Address Parameter name Set value (monitor value) type Instantaneous Voltage 1 0000 0000 to 000F 423F hex (0.0 to 99,999.9) 0000 *One digit to the right of the decimal point (fixed). Instantaneous Voltage 2 0001 Same as above.
  • Page 50 3. 1 Variable Area Variable Address Parameter name Set value (monitor value) type Total Active Power 0021 0000 0000 to 3B9A C9FF hex (0 to 999,999,999) Consumption (Wh) Total Regenerated Energy 0022 0000 0000 to 0000 00009 hex (0 to 9) (GWh) Total Regenerated Energy 0023...
  • Page 51 *1, *2: See the notes for the C0 variable type. *3: These addresses can be read only with the KM50-E. They cannot be read for the KM50-C. *4: The ratios for various values read as 1.000 for 100% for the status from the start time until the end time.
  • Page 52: C9 (New): Average Value Level

    3. 1 Variable Area ● C9 (New): Average Value Level This variable type is not used by the KM50-C/-E. (The KM50-C/-E do not support averaging for the data logging cycle.) ● CA (New): Maximum Value Level Variable Address Parameter name...
  • Page 53: D0: Total Power Consumption For Every Five-Minute Period (0.1-Kwh Increments)

    The total power consumption for every five-minute period for the present day cannot be read for times that are in the future compared to the present time in the KM50 internal clock. If the total power consumption is read for future times, the service response PDU will be returned with a measurement value of 0.
  • Page 54: D0: Total Power Consumption Every Five-Minute Period (0.001-Kwh Increments)

    The total power consumption for every five-minute period for the present day cannot be read for times that are in the future compared to the present time in the KM50 internal clock. If the total power consumption is read for future times, the service response PDU will be returned with a measurement value of 0.
  • Page 55: D1: Total Power Consumption Every Five Minutes (0.1-Kwh Increments)

    The total power consumption every five minutes for the present day cannot be read for times that are in the future compared to the present time in the KM50 internal clock. If the total power consumption is read for future times, the service response PDU will be returned with a measurement value of 0.
  • Page 56: D1: Total Power Consumption Every Five Minutes (0.001-Kwh Increments)

    The total power consumption every five minutes for the present day cannot be read for times that are in the future compared to the present time in the KM50 internal clock. If the total power consumption is read for future times, the service response PDU will be returned with a measurement value of 0.
  • Page 57: D2: Total @@ Power Consumption Every Five-Minute Period (0.1-Kwh Increments)

    The total @@ power consumption for every five-minute period for the present day cannot be read for times that are in the future compared to the present time in the KM50 internal clock. If a value is read for a future time, the service response PDU will be returned with a measurement value of 0.
  • Page 58: D2: Total @@ Power Consumption Every Five-Minute Period (0.001-Kwh Increments)

    The total power consumption for every five-minute period for the present day cannot be read for times that are in the future compared to the present time in the KM50 internal clock. If a value is read for a future time, the service response PDU will be returned with a measurement value of 0.
  • Page 59: D3: Total @@ Power Consumption Every Five Minutes (0.1-Kwh Increments)

    The total @@ power consumption every five minutes for the present day cannot be read for times that are in the future compared to the present time in the KM50 internal clock. If a value is read for a future time, the service response PDU will be returned with a measurement value of 0.
  • Page 60: D3: Total @@ Power Consumption Every Five Minutes (0.001-Kwh Increments)

    The total @@ power consumption every five minutes for the present day cannot be read for times that are in the future compared to the present time in the KM50 internal clock. If a value is read for a future time, the service response PDU will be returned with a measurement value of 0.
  • Page 61: D4: Total Power Consumption For Every Hour (0.1-Kwh Increments)

    The total power consumption for every hour for the present day cannot be read for times that are in the future compared to the present time in the KM50 internal clock. If the total power consumption is read for future times, the service response PDU will be returned with a measurement value of 0.
  • Page 62: D4: Total Power Consumption For Every Hour (0.001-Kwh Increments)

    The total power consumption for every hour for the present day cannot be read for times that are in the future compared to the present time in the KM50 internal clock. If the total power consumption is read for future times, the service response PDU will be returned with a measurement value of 0.
  • Page 63: D5: Total Power Consumption For Every Day (0.1-Kwh Increments)

    Section 3 CompoWay/F Communications Data ● D5: Total Power Consumption for Every Day (0.1-kWh increments) The total power consumption for every day can be read. The total power consumption for every day can be read for the present day and the last eight days. Specify the address for the day to read in the service request PDU.
  • Page 64: D6: Pulse Input On Time For Every Day

    3. 1 Variable Area ● D6: Pulse Input ON Time for Every Day The pulse ON time for every day can be read. The pulse input ON time for every day can be read for the present day and the last eight days. Specify the address for the day to read in the service request PDU.
  • Page 65: D8: Pulse Input Count For Every Day

    Section 3 CompoWay/F Communications Data ● D8: Pulse Input Count for Every Day The pulse input count for every day can be read. The pulse input count for every day can be read for the present day and the last eight days. Specify the address for the day to read in the service request PDU.
  • Page 66: Db: Total Power Consumption For Every Month (0.1-Kwh Increments)

    3. 1 Variable Area ● DB: Total Power Consumption for Every Month (0.1-kWh increments) The total power consumption for every month can be read. The total power consumption for every month can be read for the present month and the last 13 months.
  • Page 67: Db: Total Power Consumption For Every Month (0.001-Kwh Increments)

    Section 3 CompoWay/F Communications Data ● DB: Total Power Consumption for Every Month (0.001-kWh increments) The total power consumption for every month can be read. The total power consumption for every month can be read for the present month and the last 13 months.
  • Page 68: Dc: High Total Power Consumption Every Five-Minute Period (0.001-Kwh Increments)

    The HIGH total power consumption for every five-minute period for the present day cannot be read for times that are in the future compared to the present time in the KM50 internal clock. If the HIGH total power consumption is read for future times, the service response PDU will be returned with a measurement value of 0.
  • Page 69: Dc: High Total Power Consumption Every Day (0.001-Kwh Increments)

    Section 3 CompoWay/F Communications Data ● DC: HIGH Total Power Consumption Every Day (0.001-kWh increments) KM50-E Only The HIGH total power consumption for every day can be read. The HIGH total power consumption for every day can be read for the present day and the last eight days.
  • Page 70: Dc: High Total Time For Every Day

    HIGH Total Time for Eight Days Ago Same as above. ● DC: HIGH Total Time Ratio for Every Day KM50-E Only The HIGH total time ratio for every day can be read. The HIGH total time ratio for every day can be read for the present day and the last eight days.
  • Page 71: Dd: Middle Total Power Consumption Every Five-Minute Period (0.001-Kwh Increments)

    The MIDDLE total power consumption for every five-minute period for the present day cannot be read for times that are in the future compared to the present time in the KM50 internal clock. If the MIDDLE total power consumption is read for future times, the service response PDU will be returned with a measurement value of 0.
  • Page 72: Dd: Middle Total Power Consumption Every Day (0.001-Kwh Increments)

    Same as above. to 24:00 Eight Days Ago (kWh) ● DD: MIDDLE Total Power Consumption Ratio for Every Day KM50-E Only The MIDDLE total power consumption ratio for every day can be read. The MIDDLE total power consumption ratio for every day can be read for the present day and the last eight days.
  • Page 73: Dd: Middle Total Time For Every Day

    Same as above. Days Ago ● DD: MIDDLE Total Time Ratio for Every Day KM50-E Only The MIDDLE total time ratio for every day can be read. The MIDDLE total time ratio for every day can be read for the present day and the last eight days.
  • Page 74: De: Low Total Power Consumption Every Five-Minute Period (0.001-Kwh Increments)

    The LOW total power consumption for every five-minute period for the present day cannot be read for times that are in the future compared to the present time in the KM50 internal clock. If the LOW total power consumption is read for future times, the service response PDU will be returned with a measurement value of 0.
  • Page 75: De: Low Total Power Consumption Every Day (0.001-Kwh Increments)

    Section 3 CompoWay/F Communications Data ● DE: LOW Total Power Consumption Every Day (0.001-kWh increments) KM50-E Only The LOW total power consumption for every day can be read. The LOW total power consumption for every day can be read for the present day and the last eight days.
  • Page 76: De: Low Total Time For Every Day

    0A08 Same as above. ● DE: LOW Total Time Ratio for Every Day KM50-E Only The LOW total time ratio for every day can be read. The LOW total time ratio for every day can be read for the present day and the last eight days.
  • Page 77: E0: Maximum Measurement Values

    Section 3 CompoWay/F Communications Data ● E0: Maximum Measurement Values The maximum measurement values can be read. The maximum measurement values for every day can be read for the present day and the last eight days. However, the reactive power can be read only for the present day. Specify the address for the day and measurement item to read in the service request PDU.
  • Page 78 3. 1 Variable Area Variable Address Parameter name Set value (monitor value) type Measurement 0000 HHMM hex 0014 Time Reactive − Power Today Measurement C465 3601 to 3B9A C9FF hex ( 9,999,999.99 to 9,999,999.99) 0015 Value (kvar) *Two digits to the right of the decimal point (fixed). Measurement 0000 HHMM hex 0100...
  • Page 79 Section 3 CompoWay/F Communications Data Variable Address Parameter name Set value (monitor value) type Measurement 0000 HHMM hex 070E Active Power Time Seven Days − Measurement C465 3601 to 3B9A C9FF hex ( 99,999,999.9 to 99,999,999.9) 070F Value (W) *One digit to the right of the decimal point (fixed). Measurement 0000 HHMM hex 0710...
  • Page 80 3. 1 Variable Area ● E1: Minimum Measurement Values The minimum measurement values can be read. The minimum measurement values for every day can be read for the present day and the last eight days. However, the reactive power can be read only for the present day. Specify the address for the day and measurement item to read in the service request PDU.
  • Page 81 Section 3 CompoWay/F Communications Data Variable Address Parameter name Set value (monitor value) type Measurement 0000 HHMM hex 0014 Time Reactive − Power Today Measurement C465 3601 to 3B9A C9FF hex ( 9,999,999.99 to 9,999,999.99) 0015 Value (kvar) *Two digits to the right of the decimal point (fixed). Measurement 0000 HHMM hex 0100...
  • Page 82 3. 1 Variable Area Variable Address Parameter name Set value (monitor value) type Measurement 0000 HHMM hex 0710 Active Power Time HH (hour): 0 to 17 hex (0 to 23), MM (minutes): 0 to 3B hex (0 to 59) Seven Days Measurement C465 3601 to 3B9A C9FF hex (9,999,999.99 to 9,999,999.99) 0711...
  • Page 83 Section 3 CompoWay/F Communications Data ● E2: Alarm History The history of alarms that occurred in the past can be read. Up to 10 alarms that occurred in the past can be read out. The smaller the address is, the newer the information is.
  • Page 84 3. 1 Variable Area Variable Address Parameter Set value (monitor value) type 0015 Alarm Type Refer to Table: List of Alarm Types. Date and Time MMDD hhmm hex* 0016 Alarm of Occurrence Record 8 Date and Time MMDD hhmm hex* 0017 Cleared 0018...
  • Page 85: Status Information

    31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 Hasn't Status name Occurred occurred C0: Not used. For C8: OUT1 C0: Not used. − For C8: OUT2 (KM50-E only) − Not used. − Not used. LOW status (KM50-E only) MIDDLE status (KM50-E...
  • Page 86: Parameter Area

    3. 3 Parameter Area ● Parameter Area • Addresses are arranged so that the same addresses are used for the KM50 parameters as those used for KM100 and KM20-B40 parameters. There are therefore places where some addresses are not used.
  • Page 87 0000 0001 hex: H-ON (pulse input ON time C000 001E Event Input Setting P.CSP measurement) 0000 0002 hex: 0000 0002 hex: 3-ST (Three-state Classification) (KM50-E only) Event Input 1 0000 0000 hex: PNP C000 001F NPN/PNP Input 0000 0001 hex: NPN...
  • Page 88 3. 3 Parameter Area Default Parameter type Address Parameter name Set value (monitor value) setting Active Power Alarm 0000 0000 to 0000 05DC hex (0.0% to 150.0%) C000 002B Upper Limit 80.0% *One digit to the right of the decimal point (fixed). Threshold Active Power Alarm 0000 0000 to 0000 00C7 hex (0.0% to 19.9%)
  • Page 89 Section 3 CompoWay/F Communications Data Default Parameter type Address Parameter name Set value (monitor value) setting Reactive Power 0000 0000 to 0000 03E7 hex (0.0 to 99.9 s) C000 0049 0.0 s Alarm ON Delay *One digit to the right of the decimal point (fixed). Reactive Power 0000 0000 to 0000 05DC hex (0.0% to 150.0%) C000...
  • Page 90 3. 3 Parameter Area Default Parameter type Address Parameter name Set value (monitor value) setting Reactive Power 0000 0000 hex: Do not display. C000 0064 Display. Display Selection 0000 0001 hex: Display. Frequency Display 0000 0000 hex: Do not display. C000 0065 Display.
  • Page 91 *4: The conversion coefficient varies with the region. Please check the home page of your power company. The default setting is the CO coefficient for Kyushu Electric Power Company for 2009. *5: These addresses are used only for the KM50-E. They cannot be read or written with the KM50-C. 3-50...
  • Page 92 *7: Addresses 002A (Active Power Alarm Setting), 004D, and 0053 have the following relation. Addresses 002A and 004D (Active Power Alarm Setting (Output Terminal 1)) are for the same parameter for KM50-C. Addresses 002A and 0053 (Active Power Alarm Setting (Output Terminal 2)) are for the same parameter for KM50-E.
  • Page 93 Section 3 CompoWay/F Communications Data 3-52...
  • Page 94: Modbus Communications Protocol

    Section 4 Modbus Communications Protocol This section describes performing communications using the Modbus protocol. 4. 1 Data Formats ..................4-2 ■ Command Frames ..................4-2 ■ Response Frames..................4-3 ■ Error Codes ....................4-4 4. 2 Function List..................4-5 4. 3 Variable Area ..................4-6 ■...
  • Page 95: Data Formats

    Frames that comply with the Modbus RTU communications protocol are used as the unit of data for commands from the host (e.g., a computer) and responses from the KM50-C/-E. The format of command frames and response frames is given below.
  • Page 96: Response Frames

    4. 1 Data Formats ● CRC-16 Calculation Example Messages are processed one byte at a time in the work memory (a 16-bit register known as the CRC register). The CRC register is initialized to FFFF hex. An XOR operation is performed on the content of the CRC register and the first byte of the message, and the result is returned to the CRC register.
  • Page 97: Error Codes

    Section 4 Modbus Communications Protocol The number specified in the command frame is entered as-is. Slave address This is the unit number of the node returning the response. This is the received function code. However, a hexadecimal value of 80 hex is added to indicate that the response is an error response.
  • Page 98: Function List

    4. 2 Function List 4. 2 Function List The following table lists the function codes. • Function Code List Function code Name Processing 03 (03 hex) Read Variable This function reads from the variable area. (Multiple) It is possible to read two or more consecutive variables. 16 (10 hex) Write Variable This function writes to the variable area.
  • Page 99: Variable Area

    Section 4 Modbus Communications Protocol 4. 3 Variable Area The variable area is the region of memory used to exchange data with the KM50-C/-E through communications. Operations such as reading the process value and reading/writing parameters are performed on the variable area. Operation commands, however, do not use the variable area.
  • Page 100: Detailed Descriptions Of Services

    (Numbers below the frame are the number of bytes.) Name Description Slave address Specify the unit number of the KM50-C/-E. The slave address can be set to between 01 and 63 hex (1 and 99). Function code The function code for Read Variable Area is 03 hex.
  • Page 101 Section 4 Modbus Communications Protocol • Response Codes Error Function code Error name Cause code 83 hex 02 hex Variable The read start variable address is incorrect. address error The variable area number is incorrect. The address in the variable area is out of range.
  • Page 102: Write Variable Area

    Lower bytes Name Description Slave address Specify the unit number of the KM50. The slave address can be set to between 01 and 63 hex (1 and 99). Function code The function code for Write Variable Area is 10 hex.
  • Page 103 Section 4 Modbus Communications Protocol • Response Codes Error Function code Error name Cause code 90 hex 02 hex Variable The write start address is incorrect. address error The variable area number is incorrect. The address in the variable area is out of range.
  • Page 104: Operation Command

    4. 4 Detailed Descriptions of Services ■ Operation Command Use this service to perform remote control for the KM50-C/-E. • Command Frame Write start Slave Function address Write data address code CRC-16 06 hex 00 hex 00 hex 2 bytes •...
  • Page 105 Section 4 Modbus Communications Protocol • Error Completion Function code Error code Error name Description 86 hex 02 hex Variable The write start address is not 0000 hex. address error 03 hex Variable data The write data is incorrect. error The command code or related information is incorrect.
  • Page 106: Echoback Test

    4. 4 Detailed Descriptions of Services ■ Echoback Test • Command Frame Slave Function Write start address code address Test data CRC-16 08 hex 00 hex 00 hex 2 bytes • Response Frame Slave Function Write start Test data address code address CRC-16...
  • Page 107 Section 4 Modbus Communications Protocol 4-14...
  • Page 108: Modbus Communications Data

    Section 5 Modbus Communications Data This section lists the data that can be used for Modbus communications. 5. 1 Variable Area ..................5-3 ● Communications Data................... 5-3 ● Variable Area....................5-3 ● Addresses ..................... 5-3 ● Addresses 0000 to 0044: Instantaneous Values .......... 5-4 ●...
  • Page 109 Section 5 Modbus Communications Data ● Addresses 6A00 to 6A08 hex: LOW Total Time Every Day 5-33 ● Addresses 6B00 to 6B08 hex: LOW Total Time Ratio Every Day....5-33 ● Addresses 7000 to 723F hex: Total Power Consumption Every Five-minute Period (0.001-kWh increments) ..............5-34 ●...
  • Page 110: Variable Area

    KM100 and KM20-B40 (labeled below as "previous"), as well as parameters that are in the data structure of the KM50-C/-E (labeled below as "new"). For the Modbus format, only the new data structure is supported.
  • Page 111 Parameter Table 1 FF00 FF06 Parameter Table 2 *1. These addresses are used only for the KM50-E. They cannot be used for the KM50-C. *2. @@: Regenerative, leading reactive, lagging reactive, or reactive ● Addresses 0000 to 0044: Instantaneous Values Address...
  • Page 112 5. 1 Variable Area Address Parameter name Set value (monitor value) 0000 0000 to 0000 03E8 hex (0.000 to 1.000) * 001E LOW Total Time Ratio *Three digits to the right of the decimal point (fixed). Total Power Consumption 001F 0000 0000 to 3B9A C9FF hex (0 to 999,999,999) (Wh) Total Active Power...
  • Page 113 ---: These values will read as 0. *3: These addresses are used only for the KM50-E. They cannot be read for the KM50-C. *4: The ratios for various values read as 1.000 for 100% for the status from the start time until the end time.
  • Page 114 5. 1 Variable Area *6: The pulse input counts are counter values that are reset on a daily basis. The total pulse input count is not reset on a daily basis, rather it is reset to zero when the count upper limit is reached, and starts counting again.
  • Page 115: Section 5 Modbus Communications Data

    Section 5 Modbus Communications Data ● Addresses 0080 to 009F hex: Average Values These addresses not used by the KM50. The KM50 does not support averaging for the data logging cycle. ● Addresses 00A0 to 00B3: Maximum Values Address Parameter name Set value (monitor value) 0000 0000 to 000F 423F hex (0.0 to 99,999.9)
  • Page 116 The total power consumption for every five-minute period for the present day cannot be read for times that are in the future compared to the present time in the KM50 internal clock. If the total power consumption is read for future times, the service response PDU will be returned with a measurement value of 0.
  • Page 117 The total power consumption every five minutes for the present day cannot be read for times that are in the future compared to the present time in the KM50 internal clock. If the total power consumption is read for future times, the service response PDU will be returned with a measurement value of 0.
  • Page 118: Addresses 1000 To 123F Hex: Total Power Consumption For Every

    The total @@ power consumption for every five-minute period for the present day cannot be read for times that are in the future compared to the present time in the KM50 internal clock. If a value is read for a future time, the service response PDU will be returned with a measurement value of 0.
  • Page 119: Minutes (0.1-Kwh Increments)

    The total @@ power consumption every five minutes for the present day cannot be read for times that are in the future compared to the present time in the KM50 internal clock. If a value is read for a future time, the service response PDU will be returned with a measurement value of 0.
  • Page 120: Addresses 2000 To 202F Hex: Total Power Consumption For Every Hour (0.1-Kwh Increments)

    The total power consumption for every hour for the present day cannot be read for times that are in the future compared to the present time in the KM50 internal clock. If the total power consumption is read for future times, the service response PDU will be returned with a measurement value of 0.
  • Page 121: Addresses 2100 To 212F Hex: Total Power Consumption For Every Hour (0.001-Kwh Increments)

    The total power consumption for every hour for the present day cannot be read for times that are in the future compared to the present time in the KM50 internal clock. If the total power consumption is read for future times, the service response PDU will be returned with a measurement value of 0.
  • Page 122: Addresses 2200 To 2208 Hex: Total Power Consumption For Every Day (0.1-Kwh Increments)

    5. 1 Variable Area ● Addresses 2200 to 2208 hex: Total Power Consumption for Every Day (0.1-kWh Increments) The total power consumption for every day can be read. The total power consumption for every day can be read for the present day and the last eight days. Specify the address for the day to read in the service request PDU.
  • Page 123: Addresses 2400 To 2408 Hex: Pulse Input On Time For Every Day

    Section 5 Modbus Communications Data ● Addresses 2400 to 2408 hex: Pulse Input ON Time for Every Day The pulse input ON time for every day can be read. The pulse input ON time for every day can be read for the present day and the last eight days. Specify the address for the day to read in the service request PDU.
  • Page 124: Addresses 2700 To 2708 Hex: Pulse Input Count For Every Day

    5. 1 Variable Area ● Addresses 2700 to 2708 hex: Pulse Input Count for Every Day The pulse input count for every day can be read. The pulse input count for every day can be read for the present day and the last eight days. Specify the address for the day to read in the service request PDU.
  • Page 125: Addresses 2F00 To 2F0D Hex: Total Power Consumption For Every Month (0.001-Kwh Increments)

    Section 5 Modbus Communications Data ● Addresses 2F00 to 2F0D hex: Total Power Consumption for Every Month (0.001-kWh Increments) The total power consumption for every month can be read. The total power consumption for every month can be read for the present month and the last 13 months.
  • Page 126: Addresses 3000 To 38011: Maximum Measurement Values

    5. 1 Variable Area ● Addresses 3000 to 38011: Maximum Measurement Values The maximum measurement values can be read. The maximum measurement values for every day can be read for the present day and the last eight days. However, the reactive power can be read only for the present day. Specify the address for the day and measurement item to read in the service request PDU.
  • Page 127 Section 5 Modbus Communications Data Address Parameter name Set value (monitor value) Measurement 0000 HHMM hex 3010 Active Power Time HH (hour): 0 to 17 hex (0 to 23), MM (minutes): 0 to 3B hex (0 to 59) Today Measurement C465 3601 to 3B9A C9FF hex (−9,999,999.99 to 9,999,999.99) 3011 Value (kW)
  • Page 128 5. 1 Variable Area Address Parameter name Set value (monitor value) Measurement 0000 HHMM hex 3708 Current 2 Time Seven Days Measurement 0000 0000 to 0098 967F hex (0.000 to 99,999.999) 3709 Value (A) *Three digits to the right of the decimal point (fixed). Measurement 0000 HHMM hex 370A...
  • Page 129: Addresses 4000 To 4811: Minimum Measurement Values

    Section 5 Modbus Communications Data ● Addresses 4000 to 4811: Minimum Measurement Values The minimum measurement values can be read. The minimum measurement values for every day can be read for the present day and the last eight days. However, the reactive power can be read only for the present day. Specify the address for the day and measurement item to read in the service request PDU.
  • Page 130 5. 1 Variable Area Address Parameter name Set value (monitor value) Measurement 0000 HHMM hex 4100 Voltage 1 One Time HH (hour): 0 to 17 hex (0 to 23), MM (minutes): 0 to 3B hex (0 to 59) Day Ago Measurement 0000 0000 to 000F 423F hex (0.0 to 99,999.9) 4101...
  • Page 131 Section 5 Modbus Communications Data Address Parameter name Set value (monitor value) Measurement 0000 HHMM hex 4710 Active Power Time HH (hour): 0 to 17 hex (0 to 23), MM (minutes): 0 to 3B hex (0 to 59) Seven Days Measurement 0000 0000 to 3B9A C9FF hex (0.00 to 9,999,999.99) 4711...
  • Page 132: Addresses 5000 To 523F Hex: High Total Power Consumption Every Five-Minute Period (0.001-Kwh Increments)

    The HIGH total power consumption for every five-minute period for the present day cannot be read for times that are in the future compared to the present time in the KM50 internal clock. If the HIGH total power consumption is read for future times, the service response PDU will be returned with a measurement value of 0.
  • Page 133: Addresses 5300 To 553F Hex: Middle Total Power Consumption Every Five-Minute Period (0.001-Kwh Increments)

    The MIDDLE total power consumption for every five-minute period for the present day cannot be read for times that are in the future compared to the present time in the KM50 internal clock. If the MIDDLE total power consumption is read for future times, the service response PDU will be returned with a measurement value of 0.
  • Page 134: Addresses 5600 To 583F Hex: Low Total Power Consumption Every Five-Minute Period (0.001-Kwh Increments)

    The LOW total power consumption for every five-minute period for the present day cannot be read for times that are in the future compared to the present time in the KM50 internal clock. If the LOW total power consumption is read for future times, the service response PDU will be returned with a measurement value of 0.
  • Page 135: Addresses 6000 To 6008 Hex: High Total Power Consumption Every Day (0.001-Kwh Increments)

    Section 5 Modbus Communications Data ● Addresses 6000 to 6008 hex: HIGH Total Power Consumption Every Day (0.001-kWh increments) KM50-E Only The HIGH total power consumption for every day can be read. The HIGH total power consumption for every day can be read for the present day and the last eight days.
  • Page 136: Addresses 6200 To 6208 Hex: High Total Time Every Day

    HIGH Total Time Eight Days Ago Same as above. ● Addresses 6300 to 6308 hex: HIGH Total Time Ratio Every Day KM50-E Only The HIGH total time ratio for every day can be read. The HIGH total time ratio for every day can be read for the present day and the last eight days.
  • Page 137: Addresses 6400 To 6408 Hex: Middle Total Power Consumption Every Day (0.001-Kwh Increments)

    Section 5 Modbus Communications Data ● Addresses 6400 to 6408 hex: MIDDLE Total Power Consumption Every Day (0.001-kWh increments) KM50-E Only The MIDDLE total power consumption for every day can be read. The MIDDLE total power consumption for every day can be read for the present day and the last eight days.
  • Page 138: Addresses 6600 To 6608 Hex: Middle Total Time Every Day

    5. 1 Variable Area ● Addresses 6600 to 6608 hex: MIDDLE Total Time Every Day KM50-E Only The MIDDLE total time for every day can be read. The MIDDLE total time for every day can be read for the present day and the last eight days.
  • Page 139: Addresses 6800 To 6808 Hex: Low Total Power Consumption Every Day (0.001-Kwh Increments)

    Section 5 Modbus Communications Data ● Addresses 6800 to 6808 hex: LOW Total Power Consumption Every Day (0.001-kWh increments) KM50-E Only The LOW total power consumption for every day can be read. The LOW total power consumption for every day can be read for the present day and the last eight days.
  • Page 140: Addresses 6A00 To 6A08 Hex: Low Total Time Every Day

    6A08 Same as above. ● Addresses 6B00 to 6B08 hex: LOW Total Time Ratio Every Day KM50-E Only The LOW total time ratio for every day can be read. The LOW total time ratio for every day can be read for the present day and the last eight days.
  • Page 141: Addresses 7000 To 723F Hex: Total Power Consumption Every Five-Minute Period (0.001-Kwh Increments)

    The total power consumption for every five-minute period for the present day cannot be read for times that are in the future compared to the present time in the KM50 internal clock. If the total power consumption is read for future times, the service response PDU will be returned with a measurement value of 0.
  • Page 142: Addresses 7400 To 723F 763F: Total Power Consumption Every Five Minutes (0.001-Kwh Increments)

    The total power consumption every five minutes for the present day cannot be read for times that are in the future compared to the present time in the KM50 internal clock. If the total power consumption is read for future times, the service response PDU will be returned with a measurement value of 0.
  • Page 143: Addresses 7800 To 7A3F Hex: Total @@ Power Consumption For Every

    The total @@ power consumption for every five-minute period for the present day cannot be read for times that are in the future compared to the present time in the KM50 internal clock. If a value is read for a future time, the service response PDU will be returned with a measurement value of 0.
  • Page 144: Addresses 7C00 To 7E3F Hex: Total @@ Power Consumption Every Five

    The total @@ power consumption every five minutes for the present day cannot be read for times that are in the future compared to the present time in the KM50 internal clock. If a value is read for a future time, the service response PDU will be returned with a measurement value of 0.
  • Page 145: Addresses 8000 To 801D Hex: Alarm History

    Section 5 Modbus Communications Data ● Addresses 8000 to 801D hex: Alarm History The history of alarms that occurred in the past can be read. Up to 10 alarms that occurred in the past can be read out. The smaller the address is, the newer the information is.
  • Page 146 5. 1 Variable Area Address Parameter Set value (monitor value) 8018 Alarm Type Refer to Table: List of Alarm Types. Date and Time MMDD hhmm hex* 8019 Alarm of Occurrence Record 9 Date and Time MMDD hhmm hex* 801A Cleared 801B Alarm Type Refer to Table: List of Alarm Types.
  • Page 147: Status Information

    31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 Status name OUT1 OUT2 (KM50-E only) − Not used. − Not used. LOW status (KM50-E only) MIDDLE status (KM50-E only) HIGH status (KM50-E only) Active Power Alarm Regenerative Power Alarm Current Alarm Voltage Alarm Power Factor Alarm Not used.
  • Page 148: Variable Area Setting Ranges

    Set value (monitor value) F000 Applicable Circuit 0000 0000 hex: Single-phase, two-wire circuit 0000 0001 hex: Single-phase, three-wire circuit 0000 0002 hex: Three-phase, three-wire circuits 0000 0003 hex: Three-phase, four-wire circuits (KM50-E only) F001 VT Primary Voltage none 0000 0000 hex:...
  • Page 149 F014 Event Input Setting P.CSP 0000 0000 hex: P.CSP (pulse input count) 0000 0001 hex: H-ON (pulse input ON time measurement) 0000 0002 hex: 3-ST (Three-state Classification) (KM50-E only) F015 Event Input 1 0000 0000 hex: PNP NPN/PNP Input Mode...
  • Page 150 5. 3 Variable Area Setting Ranges Address Parameter name Default setting Set value (monitor value) F026 Active Power Alarm 0.0 s 0000 0000 to 0000 03E7 hex (0.0 to 99.9 s) ON Delay *One digit to the right of the decimal point (fixed). F027 Active Power Alarm 0.0%...
  • Page 151 Section 5 Modbus Communications Data Address Parameter name Default setting Set value (monitor value) F046 Voltage Alarm Setting 0000 0000 hex: OFF (Output Terminal 1) 0000 0001 hex: ON F047 Power Factor Alarm 0000 0000 hex: OFF Setting (Output 0000 0001 hex: ON Terminal 1) F048 Reactive Power Alarm...
  • Page 152 5. 3 Variable Area Setting Ranges Address Parameter name Default setting Set value (monitor value) HIGH Total Power Display. 0000 0000 hex: Do not display. F064 Consumption Display 0000 0001 hex: Display. Selection MIDDLE Total Power Display. 0000 0000 hex: Do not display. F065 Consumption Display 0000 0001 hex: Display.
  • Page 153 Kyushu Electric Power Company for 2009. *4: These addresses are used only for the KM50-E. They cannot be read or written with the KM50-C. *5: Always set the LOW threshold to a lower value than the HIGH threshold.
  • Page 154: Addresses Ff00 To Ff06

    Read-only 2D@@ 312D hex 2 (model) 2D (ASCII) = − The data for @@ depends on the model as given below. KM50-C 43 (ASCII) = C KM50-E 45 (ASCII) = E 31 (ASCII) = 1 2D (ASCII) = − FF04...
  • Page 155 Section 5 Modbus Communications Data 5-48...
  • Page 156: Appendicies

    Appendicies ASCII Table ....................A-2 Troubleshooting..................A-3...
  • Page 157: Ascii Table

    Appendicies ASCII Table “ & ‘ < \ >...
  • Page 158: Troubleshooting

    Check Using the Following Table First Communications do not operate properly, check any relevant items in the following table before requesting repairs. If communications still do not operate properly, contact your OMRON representative. Problem: Communications are not possible or communications errors occur. Reference...
  • Page 159 Appendicies...
  • Page 160: Index

    Index A F address (CompoWay/F)....... 2-7 FINS............. 1-2 addresses (Modbus)........4-6 function list ........... 4-5 area definitions ..........2-6 I ASCII table........... A-2 interface ............1-3 B L Baud Rate..........1-4, 1-5 BCC ............2-2, 2-3 list of services ..........2-7 C...
  • Page 161 response codes (CompoWay/F) ....2-21 Transmission Wait Time ......1-4, 1-5 response frame (CompoWay/F) ....2-3 troubleshooting..........A-3 response frame (Modbus)......4-3 type code (variable area) ......2-6 RS-485............1-4 V S variable area (CompoWay/F) ....... 3-3 set values (Modbus) ........4-6 variable area (Modbus) ........
  • Page 162 The Netherlands IL 60173-5302 U.S.A. Tel: (31)2356-81-300/Fax: (31)2356-81-388 Tel: (1) 847-843-7900/Fax: (1) 847-843-7787 © OMRON Corporation 2009 All Rights Reserved. OMRON (CHINA) CO., LTD. OMRON ASIA PACIFIC PTE. LTD. In the interest of product improvement, Room 2211, Bank of China Tower, No.

Table of Contents