This user’s manual describes the communication functions of the UPM100 and UPM101
universal power monitors and contains information on how to create communication
programs.
Read the manual carefully to understand the communication functions of the UPM100 and
UPM101 universal power monitors.
In this manual, “UPM100 and UPM101 universal power monitors” are referred to as
“UPM100 universal power monitor” because the communication functions of UPM100
and UPM101 universal power monitors are common.
And the illustrations of “UPM100 universal power monitor with display function” are used
for description.
The UPM100 universal power monitor has the following communication protocols.
• PC link communication protocol
• MODBUS communication protocol
• UPM01 communication protocol
1
You are required to have background knowledge of the communication specifications
of higher-level devices, their communication hardware, language used for creating
communication programs, and so on.
1: The UPM01 communication protocol is the original communication protocol for the UPM01,
UPM02, and UPM03. The protocol can be used only for the UPM100 universal power monitor
with the optional measuring function “Integral resolution Wh” specified at ordering.
Intended Readers
This manual is intended for people familiar with the functions of the UPM100 universal
power monitor, control engineers and personnel in charge of maintaining instrumentation
and control equipment.
Related Documents
The following user’s manuals all relate to the communication functions of the UPM100
universal power monitor. Read them as necessary.
• Model UPM100 Universal Power Monitor User’s Manual
Document number: IM 77C01H01-00EN
• Model UPM100 Universal Power Monitor User’s Manual
(for 920 MHz Wireless Communication model)
Document number: IM 77C01H01-43EN
Note: 920 MHz wireless communication can be used only in the Republic of Korea.
• Model UPM101 Universal Power Monitor (With Dedicated CT) User’s Manual
Document number: IM 77C01J01-00EN
See AlsoGives reference locations for further information on the topic.
Symbols Used in Figures and Tables
Markings
[See Also]Gives reference locations for further information on the topic.
NoteDraws attention to information that is essential for understanding
the operation and/or features of the product.
TIPGives additional information to complement the present topic.
[NOTE]Draws attention to information that is essential for understanding
the features of the product.
[TIP]Gives additional information to complement the present topic.
Description of Displays
1. Some of the representations of product displays shown in this manual may be
exaggerated, simplified, or partially omitted for reasons of convenience when explaining
them.
2. Figures and illustrations representing the universal power monitor’s displays may differ
from the real displays in regard to the position and/or indicated characters (uppercase or lower-case, for example), the extent of difference does not impair a correct
understanding of the functions and the proper operations and monitoring of the system.
ii
IM 77C01H01-10EN
Notices
Regarding This User’s Manual
1. This manual should be passed on to the end user. Keep the manual in a safe place.
2. Read this manual carefully to gain a thorough understanding of how to operate this
product before you start using it.
3. This manual is intended to describe the functions of this product. Yokogawa Electric
Corporation (hereinafter simply referred to as Yokogawa) does not guarantee that these
functions are suited to the particular purpose of the user.
4. Under absolutely no circumstance may the contents of this manual, in part or in whole,
be transcribed or copied without permission.
5. The contents of this manual are subject to change without prior notice.
6. Every effort has been made to ensure accuracy in the preparation of this manual.
Should any errors or omissions come to your attention however, please contact your
nearest Yokogawa representative or our sales office.
Regarding Protection, Safety, and Prohibition Against Unauthorized Modification
1. In order to protect the product and the system controlled by it against damage and
ensure its safe use, be certain to strictly adhere to all of the instructions and precautions
relating to safety contained in this document. Yokogawa does not guarantee safety if
products are not handled according to these instructions.
2. The following safety symbols are used on the product and/or in this manual.
Symbols Used on the Product and in This Manual
Markings
This symbol on the product indicates that the operator must refer
to an explanation in the user’s manual in order to avoid the risk
of injury or death of personnel or damage to the instrument. The
manual describes how the operator should exercise special care
to avoid electric shock or other dangers that may result in injury or
loss of life.
Protective
Grounding
Terminal
This symbol indicates that the terminal must be connected to
ground prior to operating the equipment.
IM 77C01H01-10EN
iii
Force Majeure
1. Yokogawa does not make any warranties regarding the product except those mentioned
in the WARRANTY that is provided separately.
2. Yokogawa assumes no liability to any party for any loss or damage, direct or indirect,
caused by the use or any unpredictable defect of the product.
3. Be sure to use the spare parts approved by Yokogawa when replacing parts or
consumables.
4. Modification of the product is strictly prohibited.
5. Reverse engineering such as the disassembly or decompilation of software is strictly
prohibited.
6. No portion of the software supplied by Yokogawa may be transferred, exchanged,
leased, or sublet for use by any third party without the prior permission of Yokogawa.
iv
IM 77C01H01-10EN
Contents
Introduction ................................................................................................................................................ i
Documentation Conventions .................................................................................................................... ii
8.3.1 Measured Items (Category A) ................................................................................................8-5
8.3.2 Statistical Items (Category B) .................................................................................................8-7
8.3.3 Set Items (Category C) ..........................................................................................................8-8
8.3.4 User Control Items (Category E) ..........................................................................................8-10
Appendix
Appendix 1 Table of ASCII Codes (Alphanumeric Codes) .................................................................App-1
Revision Information
vi
IM 77C01H01-10EN
010101E.EPS
Chapter 1 Setup
1 Setup
This chapter describes the setup procedure required to use the communication functions
and the communication specifications of the UPM100 universal power monitor.
Hereafter, the UPM100 universal power monitor is simply referred to as the UPM100.
1.1 Setup Procedure
Set up the communication functions on the UPM100 as follows:
Set up the communication function parameters of the UPM100.
For the UPM100 with display function, set up the communication conditions using the
front panel keys.
For the UPM100 without display function, set up the communication conditions using
the front DIP switches. (See the user's manual of Model UPM100 Power Monitor
<Initial Setup Operations>.)
Connect a higher-level device and a UPM100.
(See the user's manual of Model UPM100 Power Monitor <Installation>.)
1
Setup
Create communication programs for the higher-level device to perform communication.
(See "4. PC Link Commnication" or "5. MODBUS Communication" for the communication
protocol. See "6. Functions and Usage of D Registers", "7. Functions and Usage of I
Relays" and "8. UPM01 Communication" for the data storing.)
To avoid an electric shock, be sure to turn off the power supply source to the
equipment involved before you start wiring.
Note
• In the case of PLC (MELSEC:Mitsubishi Electric Corporation’s sequencer), “B” is for (-), and “A”
is for (+).
• Do not share the grounding wire with another instrument. Doing so may result in a failure of the
instrument. Use crimp terminals at cable ends.
Note Create communication programs referring to the documentation of each higher-level device.
Higher-level devices : PCs, PLCs (sequencers), touch panels, and others.
IM 77C01H01-10EN
1-1
1.2 Notes on Setting RS-485 Communication Conditions
This section describes the setting parameters for using the communication functions
and their setting ranges.
Note
The details of the UPM100 communication conditions need to be the same as those of the
communication conditions of the higher-level device to be connected.
• UPM100 without display function (UPM100-xx0xx-20 or UPM100-xx2xx-20): Set up
the communication conditions using the front DIP switches. (See the user’s manual of Model
UPM100 Universal Power Monitor <Initial Setup Operations>.)
• UPM100 with display function (UPM100-xx1xx-20 or UPM100-xx3xx-20): Set up
the communication parameters using the front panel keys. (See the user’s manual of Model
UPM100 Universal Power Monitor <Initial Setup Operations>.)
Table 1-1 Parameters to be Set for Communication Functions
Initial Setting
Parameter
Name
RS-485
communication
protocol
Parameter
Symbol
(COMM)
Setting Range
PC link without checksum PCLK1
PC link with checksumPCLK2
MODBUS (ASCII mode) M ASC
MODBUS (RTU mode)M RTU
UPM01UPM01
Without 920
MHz Wireless
Communication
PCLK2M RTU
2
With 920 MHz
Wireless
Communication
3
RS-485
station number
RS-485
communication
baud rate
(ST-NO)
(B-RT)
1 to 99 (1 to 31 recommended)11
2400 bps
9600 bps
960019200
19200 bps
NoneNONE
Parity
Stop bit
Data length
(PRI)
(STP)
1
(DLN)
EvenEVEN
OddODD
1
2
7
8
NONENONE
11
88
3
3
1: When “MODBUS (ASCII mode)” is selected in protocol selection, select “7” or “8” for the data
length. When “MODBUS (RTU mode)” is selected, select “8.” Otherwise, communication cannot
be achieved.
2: The UPM01 communication is selectable only when the optional measuring function “Integral
resolution Wh” is specified at ordering.
3: When using 920 MHz Wireless Communication, please use the default value above.
Note: 920 MHz wireless communication can be used only in the Republic of Korea.
3
3
1-2
IM 77C01H01-10EN
1.2 Notes on Setting RS-485 Communication Conditions
Use the DIP switches to enter the settings on UPM100 without display function.
Referring to the diagram below, set the binary values, with the first bit on the left.
When using 920 MHz Wireless Communication, please use the factory setting values except
for the address.
Note: 920 MHz wireless communication can be used only in the Republic of Korea.
<Address (station number)>
0: Usage prohibited
1 to 99 can be set (1 to 31
recommended)
(Initial setting: 1)
<UPM01 protocol>
0: None
1: With protocol
denotes initial settings.
1
0
<Parity>
00: None
01: Even
10: Odd
11: Usage prohibited
<Data length>
0: 8 bits
1: 7 bits
<Stop bit>
0: 1 bit
1: 2 bits
<Communication protocol>
00: PC link without SUM
01: PC link with SUM
10: MODBUS ASCII
11: MODBUS RTU
<Baud rate>
00: 2400 bps
01: 9600 bps
10: 19200 bps
RS-485 communication protocol (COMM)
Set the communication protocol identical to that of the higher-level device to be connected.
1
Setup
RS-485 communication baud rate (B-RT)
Set the baud rate identical to that of the higher-level device to be connected. (Otherwise,
proper communication cannot be achieved.)
Parity (PRI)
Set the handling of parity to be carried out when data is sent or received. Set the parity bit
state identical to that of the higher-level device to be connected.
Stop bit (STP)
Set the stop bit identical to that of the higher-level device to be connected.
Data length (DLN)
Set the data length identical to that of the higher-level device to be connected. (When
“MODBUS (RTU mode)” is selected in protocol selection, select “8” for the data length.
When “MODBUS (ASCII mode)” is selected, select “7” or “8.”)
RS-485 station number (ST-NO)
Set the station number of the UPM100 itself. A station number of 1 to 99 may be assigned
in any order. However, there is a limitation - the number of UPM100 to be connected to a
single communication port is limited to 31.
When connecting two or more power monitors to a single communication port, make sure
none of the station numbers 1 to 31 is set twice.
IM 77C01H01-10EN
1-3
PC
010202E.EPS
1.2 Notes on Setting RS-485 Communication Conditions
Example of connecting four UPM100 to a higher-level device by setting station numbers of
01, 05, 10, and 20
Maximum overall cable length of 1200 m for a maximum of 31 slave stations
ST-NO=01ST-NO=05ST-NO=10ST-NO=20
<Binary Number Quick Reference Chart>
The following table is a binary number quick reference chart for use in setting addresses
(station numbers) with DIP switches.
The RS-485 communication interface has the PC link communication, MODBUS
communication, and UPM01 communication protocols.
Table 2-1 UPM100 Communication Specifications
Communication Hardware2-wire RS-485 communication system
PC link communication without checksum
Communication Protocol Specifications
Maximum Baud Rate19200 bps
Maximun Communication Distance1200 m
Communication Cable
*1 The UPM01 communication is selectable only when the optional measuring function “Integral
resolution Wh” is specified at ordering.
Table 2-2 Communication Protocols and Types of Devices to be Connected
Communication ProtocolExample of Connected Devices
PCs and the like which are installed with a MODBUS communication
MODBUS communication
PC link communication
UPM01 communication
driver and SCADA software.
PLCs which support MODBUS
PCs and the like which are installed with a PC-link communication
driver and SCADA software.
Touch panel (GP series)
PLCs (FA-M3’s UT link module)
PCs and the like which are installed with the PR970 which supports
the UPM01 protocol.
PCs and the like which are installed with SCADA software which
supports the UPM01 protocol.
PC link communication with checksum
MODBUS communication (ASCII mode)
MODBUS communication (RTU mode)
UPM01 communication*1
Shielded twisted-pair cable
(wire size equivalent to AWG24)
2
RS-485 Communication Specifications
Table 2-3 RS-485 Communication Interface
ItemSpecifications
StandardConforms to EIA, RS-485
Maximum number of devices to be connected31
Communication system2-wire, half duplex
SynchronizationStart-stop synchronization
Communication protocolNo protocol
Maximum communication distance1200 m
Baud rate2400, 9600 and 19200 bps
IM 77C01H01-10EN
2-1
Blank
Chapter 3 Procedures for Setting UPM100/UPM101 Functions
3
Procedures for Setting UPM100/UPM101 Functions
To set the functions of the UPM100, use the protocols described in “4. PC Link
Communication,” “5. MODBUS Communication,” or “8. UPM01 Communication” according
to the instructions in this chapter.
For details of each function, refer to the standard manuals that come with the UPM100.
For set value ranges, initial values, and data backup for registers, refer to “6. Functions and
Usage of the D Register.” D Register numbers are explained in this chapter, but refer to
Chapter 6 also for reference numbers for MODBUS communications.
The UPM100 offers registers for floating-point data. To perform settings via communication
starting from larger digits, floating-point data is displayed by IEEE754 (single precision).
Note
• The UPM100 has data (D register) the unit of which is two words. When 2-word data need to
be written or read, writing or reading operations must be performed for the 2- word data at the
same time.
• Even if data written to the D register is out of the effective range, a normal response is returned.
The part of the written data within the effective range becomes effective on the UPM100 when
the equivalent setting change status is written for that data.
3
Procedures for Setting UPM100/UPM101 Functions
IM 77C01H01-10EN
3-1
3.1 Basic Setting
3.1.1 Setting of VT Ratio
[Procedure]
1. Write a VT ratio to the two D registers in the table below. The data type is 4-byte floating
point.
2. After writing that value, write “1” to the setting change status register, D0072.
D Register Reference No.H No.DescriptionEffective Range
• The pulse unit-1 of electric energy value can be set for the UPM100 with pulse outputs.
• To set the pulse unit-1 of electric energy value using the UPM100 with the integral resolution
(kWh) option via communication, set it to 1/10th the value of the displayed (true) value (e.g., set
it to 5 when setting the pulse unit-1 of electric energy value to 50 Wh/pls).
The value of the UPM100 with the integral resolution (Wh) option should be the same as that of
the displayed value.
IM 77C01H01-10EN
3-5
3.2 Setting Pulse Output
3.2.2 ON Pulse Width-1 of Electric Energy
[Procedure]
1. Write an ON pulse width-1 of electric energy value to the D register in the table below.
The data type is integer.
2. After writing that value, write “1” to the setting change status register, D0072.
Note
When the value to be set for the ON pulse width-1 is greater than the value calculated by the
following equation, the value cannot be set:
ON pulse width (ms) ≤
D Register Reference No.H No.DescriptionEffective Range
D0052400520033
D0072400720047Setting change status
Default value of ON pulse width-1 of electric energy: 5 (50 ms)
Secondary rated power [W] x VT ratio x CT ratio x 1.2 x 2
Pulse unit [Wh/pls] x 60 x 60 x 1000
ON pulse width-1 of electric
energy value
1 to 127
Unit: x 10 ms
If other than 1: Invalid
If 1: Writing is executed
[Example]
To set the ON pulse width-1 of electric energy value to 100 ms, write “000A.”
For station number 01, use PC link communication (without checksum) and the random write
command as shown below:
• The pulse unit-2 of electric energy value can be set for the UPM100 with pulse outputs and the
one with the reactive power/reactive energy measuring function.
• To set the pulse unit-2 of electric energy value using the UPM100 with the integral resolution
(kWh) option via communication, set it to 1/10th the value of the displayed (true) value (e.g., set
it to 5 when setting the pulse unit-2 of electric energy value to 50 varh/pls).
The value of the UPM100 with the integral resolution (Wh) option should be the same as that of
the displayed value.
3
Procedures for Setting UPM100/UPM101 Functions
IM 77C01H01-10EN
3-7
3.2 Setting Pulse Output
3.2.4 LAG/LEAD/Regenerative Selection for Pulse Output of Electric Energy
[Procedure]
1. Write a value for LAG/LEAD/regenerative selection for pulse output of electric energy to
the D register in the table below. The data type is integer.
2. After writing that value, write “1” to the setting change status register, D0072.
D Register Reference No.H No.DescriptionEffective Range
D0087400870056
D0072400720047Setting change status
Default value for LAG/LEAD/regenerative selection for output pulse of electric energy:
With the optional reactive power/reactive energy measuring function: 0 (LAG PULSE)
Without the optional reactive power/reactive energy measuring function: 2 (Regenerative PULSE)
Value for LAG/LEAD/
regenerative selection for
output pulse of electric energy
[Example]
To set a value for LAG/LEAD/regenerative selection to 1 (LEAD):
For station number 01, use PC link communication (without checksum) and the random write
command as shown below:
0: LAG PULSE
1: LEAD PULSE
2: Regenerative PULSE
If other than 1: Invalid
If 1: Writing is executed
The value for LAG/LEAD/regenerative selection for output pulse of electric energy value can be set
for the UPM100 with pulse outputs and the one with the reactive power/reactive energy measuring
function. For the UPM100 without the reactive power/reactive energy measuring function, only the
regenerative PULSE is available.
3-8
IM 77C01H01-10EN
3.2.5 ON Pulse Width-2 of Electric Energy
[Procedure]
1. Write an ON pulse width-2 of electric energy value to the D register in the table below.
The data type is integer.
2. After writing that value, write “1” to the setting change status register, D0072.
3.2 Setting Pulse Output
Note
When the value to be set for the ON pulse width-2 is greater than the value calculated by the
following equation, the value cannot be set:
ON pulse width (ms) ≤
D Register Reference No.H No.DescriptionEffective Range
D0085400850054
D0072400720047Setting change status
Default value of ON pulse width-2 of electric energy: 5 (50 ms)
Secondary rated power [W] x VT ratio x CT ratio x 1.2 x 2
[Example]
To set the ON pulse width-2 of electric energy value to 100 ms, write “000A.”
For station number 01, use PC link communication (without checksum) and the random write
command as shown below:
If other than 1: Invalid
If 1: Writing is executed
3
Procedures for Setting UPM100/UPM101 Functions
IM 77C01H01-10EN
Note
• The ON pulse width-2 of electric energy value can be set for the UPM100 with pulse outputs
and the one with the reactive power/reactive energy measuring function.
• To set the ON pulse width-2 of electric energy value via communication, set it to 1/10th the
value of the displayed (true) value (e.g., set it to 5 when setting the ON pulse width-2 of electric
energy value to 50 ms).
3-9
3.3 Executing Reset Operations
3.3.1 Remote Reset
[Procedure]
1. To execute remote reset, write data to the D register or the I relay in the table below.
The data type is integer.
D Register Reference No.H No.I relayDescriptionEffective Range
D005940059003AI0010Remote reset
Note
• By executing remote reset, the maximum, minimum, and instantaneous voltage and current
values are reset. Remote reset stops while the optional electric energy measuring function is in
operation.
• Even if remote reset is executed, data on active energy, reactive energy, and apparent energy
and the values set to their parameters will be saved.
• The D register and the I relay in the table above have the same functions.
[Example]
To execute remote reset:
For station number 01, use PC link communication (without checksum) and the random write
command as shown below:
If other than 1: Invalid
If 1: UPM100 is reset
[Command]
[STX] 01010WRW01D0059, 0001 [ETX] [CR]
[Response]
[STX] 0101OK [ETX] [CR]
Note
After remote reset is executed, the micro-computer of the UPM100 is reset. Wait for more than 5
seconds before executing another command.
3-10
IM 77C01H01-10EN
3.3.2 Active Energy Reset
[Procedure]
1. To execute active energy reset, write data to the D register or the I relay in the table
below. The data type is integer.
D Register Reference No. H No. I relayDescriptionEffective Range
D006040060003BI0011
Note
The D register and the I relay in the table above have the same functions.
[Example]
To execute active energy reset:
For station number 01, use PC link communication (without checksum) and the random
write command as shown below:
[Command]
[STX] 01010WRW01D0060, 0001 [ETX] [CR]
[Response]
[STX] 0101OK [ETX] [CR]
3.3 Executing Reset Operations
Reset the active energy
(D0001 and D0002)
If other than 1: Invalid
If 1: Active energy is reset
3
Procedures for Setting UPM100/UPM101 Functions
3.3.3 Maximum/Minimum Values Reset
[Procedure]
1. To execute maximum/minimum values reset, write data to the D register or the I relay in
the table below. The data type is integer.
D Register Reference No. H No. I relayDescriptionEffective Range
D006140061003CI0012
Note
The D register and the I relay in the table above have the same functions.
[Example]
To execute maximum/minimum values reset:
For station number 01, use PC link communication (without checksum) and the random write
command as shown below:
[Command]
[STX] 01010WRW01D0061, 0001 [ETX] [CR]
[Response]
[STX] 0101OK [ETX] [CR]
Reset the maximum/
minimum values
(D0023 to D0040)
If other than 1: Invalid
If 1: Maximum/minimum
values are reset
IM 77C01H01-10EN
3-11
3.3 Executing Reset Operations
3.3.4 Regenerative Energy Reset
[Procedure]
1. To execute regenerative energy reset, write data to the D register in the table below.
The data type is integer.
D Register Reference No. H No.DescriptionEffective Range
D006440064003F
[Example]
To execute regenerative energy reset:
For station number 01, use PC link communication (without checksum) and the random write
command as shown below:
[Command]
[STX] 01010WRW01D0064, 0001 [ETX] [CR]
[Response]
[STX] 0101OK [ETX] [CR]
Reset the regenerative energy
(D0067 and D0068)
If other than 1: Invalid
If 1: Regenerative energy
is reset
3.3.5 Reactive Energy Reset
Note
Data can be written to the UPM100 with the optional reactive power/reactive energy measuring
function.
[Procedure]
1. To execute reactive energy reset, write data to the D register or the I relay in the table
below. The data type is integer.
D Register Reference No. H No. I relayDescriptionEffective Range
D009340093005CI0015
Note
The D register and the I relay in the table above have the same functions.
[Example]
To execute reactive energy reset:
For station number 01, use PC link communication (without checksum) and the random write
command as shown below:
[Command]
[STX] 01010WRW01D0093, 0001 [ETX] [CR]
[Response]
[STX] 0101OK [ETX] [CR]
Reset the reactive energy
(D0077 to D0080)
If other than 1: Invalid
If 1: Reactive energy is
reset
3-12
IM 77C01H01-10EN
3.3.6 Apparent Energy Reset
[Procedure]
1. To execute apparent energy reset, write data to the D register in the table below.
The data type is integer.
D Register Reference No. H No.DescriptionEffective Range
D0097400970060
[Example]
To execute apparent energy reset:
For station number 01, use PC link communication (without checksum) and the random write
command as shown below:
[Command]
[STX] 01010WRW01D0097, 0001 [ETX] [CR]
[Response]
[STX] 0101OK [ETX] [CR]
Reset the apparent energy
(D0083 and D0084)
3.3 Executing Reset Operations
If other than 1: Invalid
If 1: Apparent energy is reset
3
Procedures for Setting UPM100/UPM101 Functions
IM 77C01H01-10EN
3-13
3.4 Other Settings
3.4.1 Start of Optional Integration
[Procedure]
1. To start optional integration, write data to the D register or the I relay in the table below.
The data type is integer.
D Register Reference No. H No. I relayDescriptionEffective Range
D006240062003DI0013
Note
The D register and the I relay in the table above have the same functions.
[Example]
To start optional integration:
For station number 01, use PC link communication (without checksum) and the random write
command as shown below:
[Command]
[STX] 01010WRW01D0062, 0001 [ETX] [CR]
[Response]
[STX] 0101OK [ETX] [CR]
Start of optional integration
(D0003 to D0006)
If other than 1: Invalid
If 1: Optional integration
is started
3.4.2 Stop of Optional Integration
[Procedure]
1. To stop optional integration, write data to the D register or to the I relay in the table
below. The data type is integer.
D Register Reference No. H No. I relayDescriptionEffective Range
D006340063003EI0014
Note
The D register and the I relay in the table above have the same functions.
[Example]
To stop optional integration:
For station number 01, use PC link communication (without checksum) and the random write
command as shown below:
[Command]
[STX] 01010WRW01D0063, 0001 [ETX] [CR]
[Response]
[STX] 0101OK [ETX] [CR]
Stop of optional integration
(D0003 and D0004)
If other than 1: Invalid
If 1: Optional integration is
stopped
3-14
IM 77C01H01-10EN
3.4.3 Start/Stop of Integration
[Procedure]
1. To start/stop integration, write data to the D register in the table below. The data type is
integer.
D Register Reference No. H No.DescriptionEffective Range
D0053400530034
[Example]
To start/stop integration:
For station number 01, use PC link communication (without checksum) and the random write
command as shown below:
<Start>
[Command]
[STX] 01010WRW01D0053, 0000 [ETX] [CR]
[Response]
[STX] 0101OK [ETX] [CR]
Active energy (D0001 and D0002)
Apparent energy (D0083 and D0084)
Regenerative energy (D0067 and D0068)
Reactive energy (D0077 to D0080)
3.4 Other Settings
0: Integration is started
1: Integration is stopped
3
Procedures for Setting UPM100/UPM101 Functions
<Stop>
[Command]
[STX] 01010WRW01D0053, 0001 [ETX] [CR]
[Response]
[STX] 0101OK [ETX] [CR]
IM 77C01H01-10EN
3-15
3.4 Other Settings
3.4.4 Active Energy Writing
[Procedure]
1. Write an active energy value to the two D registers in the table below. The data type is
integer.
2. After writing that value, write “1” to the write status register, D0073.
D Register Reference No. H No.DescriptionEffective Range
D0057400570038
D0058400580039
D0073400730048
[Example]
To set the active energy value to 12345:
For station number 01, use PC link communication (without checksum) and the random write
command as shown below:
If 12345 is converted into a hexadecimal value, the value is 0000 3039. Then the order of
the upper two bytes and the lower two bytes is reversed → 3039 0000.
Set active energy value
(lower 2 bytes)
Set active energy value
(upper 2 bytes)
Set active energy value write
status
Refer to the "Note" below.
If other than 1: Invalid
If 1: Writing is executed
The set active energy value range of the UPM100 with the integral resolution (kWh) option changes
depending on the values of the VT and CT ratios. The table below shows the set value range.
[Secondary Rated Power] x [VT Ratio] x [CT Ratio]Possible Set Value Range
Below 1 MW 0 to 999999 kWh
1 MW to 10 MW 0.00 to 9999.999 MWh
10 MW or above 0.0 to 99999.999 MWh
Regardless of the value of [Secondary rated power] x [VT ratio] x [CT ratio], the set active
energy value range of the UPM100 with the integral resolution (Wh) option can be set within
the range below:
Possible set value range: 0 to 99999999 Wh
Note
The secondary rated power of the UPM100 changes depending on its model and suffix codes.
3-16
IM 77C01H01-10EN
3.4.5 Apparent Energy Writing
[Procedure]
1. Write an apparent energy value to the two D registers in the table below. The data type
is integer.
2. After writing that value, write “1” to the write status register, D0098.
3.4 Other Settings
D Register Reference No. H No.DescriptionEffective Range
D009540095005E
D009640096005F
D0098400980061
Set apparent energy value
(lower 2 bytes)
Set apparent energy value
(upper 2 bytes)
Set apparent energy value
write status
Refer to the “Note” below.
If other than 1: Invalid
If 1: Writing is executed
[Example]
To set the apparent energy value to 12345:
For station number 01, use PC link communication (without checksum) and the random write
command as shown below:
If 12345 is converted into a hexadecimal value, the value is 0000 3039. Then the order of
the upper two bytes and the lower two bytes is reversed → 3039 0000.
The set apparent energy value range of the UPM100 with the integral resolution (kWh) option
changes depending on the values of the VT and CT ratios. The table below shows the set value
range.
3
Procedures for Setting UPM100/UPM101 Functions
IM 77C01H01-10EN
[Secondary Rated Power] x [VT Ratio] x [CT Ratio]Possible Set Value Range
Below 1 MVA0 to 999999 kVAh
1 MVA to 10 MVA0.00 to 9999.999 MVAh
10 MVA or above0.0 to 99999.999 MVAh
Regardless of the value of [Secondary rated power] x [VT ratio] x [CT ratio], the set
apparent energy value range of the UPM100 with the integral resolution (Wh) option can be
set within the range below:
Possible set value range: 0 to 99999999 VAh
Note
The secondary rated power of the UPM100 changes depending on its model and suffix codes.
3-17
3.4 Other Settings
3.4.6 LEAD Reactive Energy Writing
Note
A LEAD reactive energy value can be written to the UPM100 with the optional reactive power/
reactive energy measuring function.
[Procedure]
1. Write a LEAD reactive energy value to the two D registers in the table below. The data
type is integer.
2. After writing that value, write “1” to the write status register, D0094.
D Register Reference No. H No.DescriptionEffective Range
D0089400890058
D0090400900059
D009440094005D
[Example]
To set the LEAD reactive energy value to 12345:
For station number 01, use PC link communication (without checksum) and the random write
command as shown below:
If 12345 is converted into a hexadecimal value, the value is 0000 3039. Then the order of
the upper two bytes and the lower two bytes is reversed → 3039 0000.
Set LEAD reactive energy
value (lower 2 bytes)
Set LEAD reactive energy
value (upper 2 bytes)
Set reactive energy value
write status
Refer to the “Note” below.
If other than 1: Invalid
If 1: Writing is executed
The set LEAD reactive energy value range of the UPM100 with the integral resolution (kWh) option
changes depending on the values of the VT and CT ratios. The table below shows the set value
range.
[Secondary Rated Power] x [VT Ratio] x [CT Ratio]Possible Set Value Range
Below 1 Mvar0 to 99999 kvarh
1 Mvar to 10 Mvar0.00 to 999.999 Mvarh
10 Mvar or above0.0 to 9999.999 Mvarh
Regardless of the value of [Secondary rated power] x [VT ratio] x [CT ratio], the set LEAD
reactive energy value range of the UPM100 with the integral resolution (Wh) option can be
set within the range below:
Possible set value range: 0 to 9999999 varh
Note
The secondary rated power of the UPM100 changes depending on its model and suffix codes.
3-18
IM 77C01H01-10EN
3.4.7 LAG Reactive Energy Writing
Note
A LAG reactive energy value can be written to the UPM100 with the optional reactive power/
reactive energy measuring function.
[Procedure]
3.4 Other Settings
1. Write a LAG reactive energy value to the two D registers in the table below. The data
type is integer.
2. After writing that value, write “1” to the write status register, D0094.
D Register Reference No. H No.DescriptionEffective Range
D009140091005A
D009240092005B
D009440094005D
Set LAG reactive energy value
(lower 2 bytes)
Set LAG reactive energy value
(upper 2 bytes)
Set reactive energy value
write status
Refer to the “Note” below.
If other than 1: Invalid
If 1: Writing is executed
[Example]
To set the LAG reactive energy value to 12345:
For station number 01, use PC link communication (without checksum) and the random write
command as shown below:
If 12345 is converted into a hexadecimal value, the value is 0000 3039. Then the order of
the upper two bytes and the lower two bytes is reversed→ 3039 0000.
The set LAG reactive energy value range of the UPM100 with the integral resolution (kWh) option
changes depending on the values of the VT and CT ratios. The table below shows the set value
range.
[Secondary Rated Power] x [VT Ratio] x [CT Ratio]Possible Set Value Range
Below 1 Mvar0 to 99999 kvarh
1 Mvar to 10 Mvar0.00 to 999.999 Mvarh
10 Mvar or above0.0 to 9999.999 Mvarh
Regardless of the value of [Secondary rated power] x [VT ratio] x [CT ratio], the set LAG
reactive energy value range of the UPM100 with the integral resolution (Wh) option can be
set within the range below:
Possible set value range: 0 to 9999999 varh
Note
The secondary rated power of the UPM100 changes depending on its type.
IM 77C01H01-10EN
3-19
3.4 Other Settings
3.4.8 Regenerative Energy Writing
[Procedure]
1. Write a regenerative energy value to the two D registers in the table below. The data
type is integer.
2. After writing that value, write “1” to the write status register, D0071.
D Register Reference No. H No.DescriptionEffective Range
D0069400690044
D0070400700045
D0071400710046
[Example]
To set the regenerative energy value to 12345:
For station number 01, use PC link communication (without checksum) and the random write
command as shown below:
If 12345 is converted into a hexadecimal value, the value is 0000 3039. Then the order of
the upper two bytes and the lower two bytes is reversed → 3039 0000.
Set regenerative energy value
(lower 2 bytes)
Set regenerative energy value
(upper 2 bytes)
Set regenerative energy value
write status
Refer to the “Note” below.
If other than 1: Invalid
If 1: Writing is executed
The set regenerative energy value range of the UPM100 with the integral resolution (kWh) option
changes depending on the values of the VT and CT ratios. The table below shows the set value
range.
[Secondary Rated Power] x [VT Ratio] x [CT Ratio]Possible Set Value Range
Below 1 MW0 to 999999 kWh
1 MW to 10 MW0.00 to 9999.999 MWh
10 MW or above0.0 to 99999.999 MWh
Regardless of the value of [Secondary rated power] x [VT ratio] x [CT ratio], the set
regenerative energy value range of the UPM100 with the integral resolution (Wh) option can
be set within the range below:
Possible set value range: 0 to 99999999 Wh
Note
The secondary rated power of the UPM100 changes depending on its model and suffix codes.
3-20
IM 77C01H01-10EN
040101E.EPS
PLC
Chapter 4 PC Link Communication
4 PC Link Communication
4.1 Overview
The use of PC link communication enables the UPM100 to communicate with a device
such as a PC, touch panel, or FA-M3(PLC)’s UT link module. Such a device can be used in
communication to read/write data from/to D registers or I relays, both of which are internal
registers of the UPM100.
Model of UT link module
Maximum overall cable length of 1200 m for a maximum of 31 slave stations
4
PC Link Communication
Figure 4-1 Example of Connection for PC Link Communication
Hereafter, PCs are generically called “higher-level devices.”
See Also
Chapters 6 and 7 for information on the D registers and I relays.
In PC link communication, a higher-level device identifies each UPM100 with a station
number of 1 to 99.
Note
• The UPM100 has data (D register) the unit of which is two words. When 2-word data need to
be written or read, writing or reading operations must be performed for the 2- word data at the
same time.
• Even if data written to the D register is out of the effective range, a normal response is returned.
The part of the written data within the effective range becomes effective on the UPM100 when
the equivalent setting change status is written for that data.
IM 77C01H01-10EN
4-1
4.1 Overview
4.1.1 Configuration of Command
Commands sent from a higher-level device to the UPM100 consist of the following elements.
Number
of
Bytes
ElementSTX
(1)(2)(3)(4)(5)(6)(7)(8)(9)
12213
Station
number
(ST-NO)
CPU
number
(01)
Time to
wait for
response
(0)
Command
Variable
length
Data
corresponding
to command
Checksum
211
ETXCR
1. STX (Start of Text)
This control code indicates the start of a command. The ASCII code is 02 in
hexadecimal.
2. Station Number (01 to 99)
Station numbers are used by the higher-level device to identify the UPM100 at the
communication destination. (These numbers are identification numbers specific to
individual UPM100.) P1: Broadcasting mode
3. CPU number
This number is fixed to “01”. The ASCII codes are 30 and 31 in hexadecimal.
4. Time to Wait for Response
This is fixed to “0”. The ASCII code is 30 in hexadecimal.
5. Command (See section 4.2, “Command and Response”)
Specify a command to be issued from the higher-level device.
6. Data Corresponding to Command
Specify an internal register (D register or I relay), number of data pieces, and others.
7. Checksum
This is required if the protocol with checksum is selected for the RS-485 communication
protocol parameter “COMM.”
It converts the ASCII codes of texts between the character next to STX and the
character immediately before the checksum into hexadecimal values and adds them
byte by byte. It then fetches the single lowermost byte of the added results as the
checksum.
This column is required only for PC link communication with checksum. PC link
communication without checksum does not require this 2-byte space of ASCII code.
[Example]
[STX]01010BRDI0001, 001[ ][ ] [ETX][CR]
Add up the hexadecimal values of the ASCII codes of each text.
(“0” : 30, “1” : 31, “B” : 42, “R” : 52, “D” : 44, “I” : 49, “,” : 2C)
Lowermost two digits of the added results as the checksum.
[STX]01010BRDI0001,00191[ETX][CR]
8. ETX (End of Text)
This control code indicates the end of a command string. The ASCII code is “03” in
hexadecimal.
9. CR (Carriage Return)
This control code indicates the end of a command. The ASCII code is “0D” in
hexadecimal.
4-2
Note
The control codes “STX”, “ETX”, and “CR” are essential for commands when you create a
communication program for PC link communication. Omission of any of them or incorrect order of
them results in communication failure.
IM 77C01H01-10EN
4.1.2 Configuration of Response
Responses from the UPM100 with respect to a command sent from the higher-level
device consist of the elements shown below, which differ depending on the condition of
communication; normal or failure.
1. Normal Communication
When communication completes normally, the UPM100 returns a character string “OK” and
data corresponding to a command.
No parameter data area for write command.
4.1 Overview
Number of
Bytes
ElementSTX
1222Variable length211
Station
number
(ST-NO)
CPU
number
(01)
OKParameter data
Checksum
ETXCR
2. In the Event of Failure
If communication does not complete normally, the UPM100 returns a character string “ER”
and error code (EC1 and EC2). (See subsection 4.1.3, “Response Error Codes”.)
• No response is made in case of an error in station number specification or CPU number
specification.
• If a UPM100 cannot receive ETX in a command, response may not be made.
Note: As a countermeasure, provide a timeout process in the communication functions of the
higher-level device or in communication programs.
Number
of Bytes
ElementSTX
1222223211
Station
number
(ST-NO)
CPU
number
(01)
EREC1 EC2 Command Checksum ETXCR
4
PC Link Communication
IM 77C01H01-10EN
4-3
4.1 Overview
4.1.3 Response Error Codes
See Also
4.1.2, “Configuration of Response”, for the structure of response in the event of error.
The error codes (EC1) and detailed error codes (EC2) of responses are as follows.
Table 4-1 List of Error Codes EC1
Error
Code
02Command error
03Register specification error
Out of setpoint range
04
(when in writing operation)
05Out of data count range
06Monitor error
08Parameter error• An illegal parameter is set.
42Checksum error• The sum does not match the expected value.
43Internal buffer overflow• A data value greater than the specified was received.
44Character reception timeout • The end-of-data or end-of-text character has not been received.
MeaningCause(s)
• No command exists.
• Command not executable
• No register number exists.
• Invalid specification of bit register (I relay) when it is used on a
word basis
• Any character other than 0 or 1 is used for bit setting.
• A value other than hexadecimal values (0 to 9, A to F) has been
specified in word specification.
• The position of a start for a data load/save is out of the address
range.
• The specification of the number of bits, words, etc. is out of the
range of use.
• An attempt was made to execute monitoring without specifying
the monitor (BRS or WRS).
Table 4-2 List of Detailed Error Codes EC2
Error
Code
(EC1)
03Register specification error
04Out of setpoint range
05Out of data count range
08Parameter error
MeaningDetailed Error Code (EC2)
Parameter number where error occurred (HEX)
This is the sequence number of a parameter that first resulted in
an error when counted from the leading parameter.
[STX] 0101ER0304WRW[ETX][CR]
In this case, EC1=03 and EC2=04.
For error codes other than those noted as EC1, there is no EC2 meaning, and 0x00 is
returned as a response.
[The Order of Priority for Error Codes]
Order of priorityError codes (EC1)
High
Low
If no response is returned:
1. A transmission error (overrun, framing or parity) is encountered.
2. The station number in the command is wrong. Including broadcast specification.
3. CPU address in the command is not “01.”
4. The interval between data composing a message is longer than 2 seconds.
5. The receiving buffer has overflowed.
44
43
42
02
03, 04, 05, 06, 08
4-4
IM 77C01H01-10EN
4.1.4 Specifying Broadcast
PC
040110E.EPS
Broadcast addressing allows the corresponding multiple UPM100 to receive the command.
1. In the station number of the command, specify the broadcast address “P1” and
execute it.
2. Broadcast addressing works independently of the station number of the UPM100.
3. Broadcast addressing is applicable to write commands only.
4. No response is returned when broadcast addressing is used.
Maximum overall cable length of 1200 m for a maximum of 31 slave stations
Broadcast data.
* No response from slaves
4.1 Overview
4
PC Link Communication
Figure 4-2 Broadcasting
D registers and I relays are used for processing in the UPM100 communication.
[Example of Starting Optional Integrations]
For station number 01, use PC link communication (without checksum) and the random write
command as shown below:
[STX]P1010WRW01D0062,0001[ETX][CR]
D Register Reference No.H No.DescriptionEffective Range
D006240062003DStart of optional integration
If other than 1: Invalid
If 1: Optional integration
(D0003 to D0006) starts
IM 77C01H01-10EN
4-5
4.2 Command and Response
The following are the lists of commands available in PC link communication. The details of
them are explained in the description of each command.
1. Bit-basis Access Commands Dedicated to I Relays
CommandDescriptionNumber of bits handled
BRDBit-basis read1 to 164 bits
BWRBit-basis write1 to 164 bits
BRRBit-basis, random read1 to 32 bits
BRWBit-basis, random write1 to 32 bits
BRSSpecifies I relays to be monitored on a bit-by-bit basis.1 to 32 bits
BRMBit-basis monitoring—
2. Word-basis Access Commands
CommandDescriptionNumber of words handled
WRDWord-basis read1 to 64 words
WWRWord-basis write1 to 64 words
WRRWord-basis, random read1 to 32 words
WRWWord-basis, random write1 to 32 words
WRS
WRMWord-basis monitoring—
Specifies internal registers to be monitored on
a word-by-word basis.
1 to 32 words
3. Information Commands
CommandDescriptionNumber of monitors handled
INF6Reads model, suffix codes, and version.1
INF7Reads the maximum value of CPU.1
4-6
IM 77C01H01-10EN
BRD Reads I relays on a bit-by-bit basis
Function
Reads the ON/OFF statuses of a sequence of contiguous I relays by the specified number of
bits, starting at a specified I relay number.
• The number of bits to be read at a time is 1 to 164.
• For the format of response in the event of failure, see subsection 4.1.2.
• The command shown below includes the checksum function. When performing
communication without checksum, do not include the 2-byte checksum element in the
command.
4.2 Command and Response
Command/Response (for normal operation)
Number
of Bytes
Command
element
Number
of Bytes
Response
element
The response is “0” when the status is OFF or “1” when ON.
dn: read data of the specified number of bits (n = 1 to 164)
dn = 0 (OFF)
(
dn = 1 (ON)
12213513211
Station
STX
number
(ST-NO)
1222111…1211
STX
number
(ST-NO)
number
Station
number
CPU
(01)
CPU
(01)
Time to
wait for
response
BRD
(0)
OKd1d2d3…dn
Example
Read the input overrange for the input full scale (relay symbol: IN_OVER) flag of the
UPM100 at station number 01.
The following command reads the input overrange flag for the input full scale (I0001).
[Command]
[STX]01010BRDI0001, 00191 [ETX] [CR]
I relay
number
Comma
or
space
Number
of bits
(n)
)
Checksum
Checksum
4
PC Link Communication
ETXCR
ETXCR
IM 77C01H01-10EN
The following response is returned with respect to the above command.
[Response]
[STX]0101OK15D [ETX] [CR]
I0001 has been ON since 1 was returned.
4-7
4.2 Command and Response
BWR Writes data into I relays on a bit-by-bit basis
Function
Writes ON/OFF data into a sequence of contiguous I relays by the specified number of bits,
starting at a specified I relay number.
• The number of bits to be written at a time is 1 to 164.
• For the format of response in the event of failure, see subsection 4.1.2.
• The command shown below includes a checksum function. When performing
communication without checksum, do not include the 2-byte checksum element in the
command.
Command/Response (for normal operation)
Example
Number
of Bytes
Command
element
Command (continued)
…1211
… dn
12213513111
Station
STX
number
(ST-NO)
Checksum ETX CR
number
CPU
(01)
Time to
wait for
response
(0)
BWR
I relay
number
Comma
or
space
Number
of bits
(n)
Comma
or
space
d1d2
Write information is “0” to set OFF or “1” to set ON.
dn: write data of the specified number of bits (n = 1 to 164)
dn = 0 (OFF)
(
dn = 1 (ON)
Number
of Bytes
Response
element
1222211
STX
Station
number
(ST-NO)
CPU
number
(01)
OK
Checksum
ETXCR
)
Set the active energy reset (relay symbol: Wh RST) flag of the UPM100 at station number
01 to ON.
The following command writes “1” into the active energy reset (I0011).
[Command]
[STX]01010BWRI0011, 001, 1B0 [ETX] [CR]
4-8
“OK” is returned in response to the above command.
[Response]
[STX]0101OK5C[ETX] [CR]
IM 77C01H01-10EN
BRR Reads I relays on a bit-by-bit basis in a random order
Function
Reads the ON/OFF statuses of the individual I relays specified in a random order by the
specified number of bits.
• The number of bits to be read at a time is 1 to 32.
• For the format of response in the event of failure, see subsection 4.1.2.
• The command shown below includes a checksum function. When performing
communication without the checksum, do not include the 2-byte checksum element in the
command.
4.2 Command and Response
Command/Response (for normal operation)
Number
of Bytes
Command
element
Command (continued)
…5211
…
Number
of Bytes
Response
element
The response is “0” when the status is OFF or “1” when ON.
dn: read data of the specified number of bits (n = 1 to 32)
dn = 0 (OFF)
(
dn = 1 (ON)
1221325151
Station
STX
number
(ST-NO)
I relay
number
Checksum
n
122211…1211
Station
STX
number
(ST-NO)
number
CPU
number
(01)
Time to
CPU
wait for
response
(01)
ETXCR
(0)
OKd1d2…dn
Example
Read the user area (relay symbol: USERAREA) flag of the UPM100 at station number 01.
The following command reads the user area (I0101 and I0103) flag.
[Command]
[STX]01010BRR02I0101, I010381 [ETX] [CR]
BWR
Number
of bits
(n)
I relay
number
1
)
Comma
or
space
Checksum
I relay
number
2
ETXCR
4
PC Link Communication
Comma
or
space
IM 77C01H01-10EN
The following response is returned with respect to the above command.
[Response]
[STX]0101OK108D [ETX] [CR]
User area (I0101) is ON, and user area (I0103) is OFF.
4-9
4.2 Command and Response
BRW Writes data into I relays on a bit-by-bit basis in a random order
Function
Writes ON/OFF data into the individual I relays specified in a random order by the specified
number of bits.
• The number of bits to be written at a time is 1 to 32.
• For the format of response in the event of failure, see subsection 4.1.2.
• The command shown below includes the checksum function. When performing
communication without the checksum, do not include the 2-byte checksum element in the
command.
Command/Response (for normal operation)
Example
Number
of Bytes
Command
element
Command (continued)
111…511211
Comma
or
space
12213251115
STX
d2
Station
number
(ST-NO)
Comma
or
space
number
CPU
(01)
…
Time to
wait for
response
(0)
I relay
number
n
BWR
Comma
or
space
Number
of bits
(n)
dn
I relay
number
1
Checksum
Comma
or
space
ETXCR
Comma
d1
or
space
I relay
number
2
Write information is “0” to set OFF or “1” to set ON.
dn: write data of the specified number of bits (n = 1 to 32)
dn = 0 (OFF)
(
dn = 1 (ON)
Number
of Bytes
Response
element
1222211
STX
Station
number
(ST-NO)
CPU
number
(01)
OK
Checksum
ETXCR
)
Execute the active energy reset (relay symbol: Wh RST), maximum and minimum values
reset (relay symbol: MAX RST), and reactive energy reset (relay symbol: kVarh RST) of the
UPM100 at station number 01.
The following command writes “1” into the active energy reset (I0011), maximum and
minimum values reset (I0012), and reactive energy reset (I0015).
“OK” is returned in response to the above command.
[Response]
[STX]0101OK5C [ETX] [CR]
IM 77C01H01-10EN
BRS Specifies I relays to be monitored on a bit-by-bit basis
Function
Specifies the numbers of I relays to be monitored on a bit-by-bit basis. Note that this
command simply specifies I relays. Actual monitoring is performed by the BRM command
after the I relay numbers are specified with this command.
When the volume of data is large and you wish to increase the communication rate, it
is effective to use a combination of the BRS and BRM commands rather than the BRR
command.
• The number of registers to be specified at a time is 1 to 32.
• For the format of response in the event of failure, see subsection 4.1.2.
• The command shown below includes the checksum function. When performing
communication without the checksum, do not include the 2-byte checksum element in the
command.
Command/Response (for normal operation)
4.2 Command and Response
4
PC Link Communication
Example
Number
of Bytes
Command
element
Command (continued)
…5211
…
Number
of Bytes
Response
element
1221325151
Station
STX
number
(ST-NO)
I relay
number
Checksum
n
1222211
Station
STX
number
(ST-NO)
number
number
Time to
CPU
wait for
response
(01)
ETXCR
CPU
(01)
(0)
OK
BRS
Checksum
Number
of bits
(n)
ETXCR
I relay
number
1
Comma
or
space
I relay
number
2
Comma
or
space
Specify that the use area (relay symbol: USERAREA) flag of the UPM100 at station number
01 is to be monitored. (This command is used simply for specifying registers.)
The following command specifies the user area (I0101 and I0103) to be monitored.
[Command]
[STX]01010BRS02I0101, I01037F [ETX] [CR]
“OK” is returned in response to the above command.
[Response]
[STX]0101OK5C [ETX] [CR]
IM 77C01H01-10EN
4-11
4.2 Command and Response
BRM Monitors I relays on a bit-by-bit basis
Function
Reads the ON/OFF statuses of the I relays that have been specified in advance by the BRS
command.
• Before executing this command, the BRS command must always be executed to specify
which I relays are to be monitored. If no relay has been specified, error code 06 is
returned.
• For the format of response in the event of failure, see subsection 4.1.2.
• The command shown below includes the checksum function. When performing
communication without the checksum, do not include the 2-byte checksum element in the
command.
Command/Response (for normal operation)
Example
Number
of Bytes
Command
element
Number
of Bytes
Response
element
12213211
Station
STX
number
(ST-NO)
1222111…1211
Station
STX
number
(ST-NO)
number
CPU
number
(01)
Time to
CPU
wait for
response
(01)
(0)
OKd1d2d3…dn
BRM
Checksum
ETXCR
Checksum
ETXCR
The response is “0” when the status is OFF and “1” when ON.
dn: read data of the number of bits specified by the BRS command (n = 1 to 32)
dn = 0 (OFF)
(
dn = 1 (ON)
)
When the user area (relay symbol: USERAREA) flag of the UPM100 at station number 01
has been specified to be monitored:
(This command reads the statuses of the registers specified by the BRS command.)
[Command]
[STX]01010BRMD3 [ETX] [CR]
The following response is returned with respect to the above command.
[Response]
[STX]0101OK10BD [ETX] [CR]
“1” is set for the user area (I0101) and “0” is set for the user area (I0103).
4-12
IM 77C01H01-10EN
WRD Reads D registers and I relays on a word-by-word basis
Function
Reads a sequence of contiguous register information on a word-by-word basis by the
specified number of words, starting at the specified register number.
• The number of words to be read at a time is 1 to 64.
• For the format of response in the event of failure, see subsection 4.1.2.
• The command shown below includes the checksum function. When performing
communication without the checksum, do not include the 2-byte checksum element in the
command.
• Specify the leading I relay number to read I relays on a word-by-word basis. Data of 16
bits starting at the leading I relay are to be read.
Command/Response (for normal operation)
4.2 Command and Response
4
PC Link Communication
Example
Number
of Bytes
Command
element
Number
of Bytes
Response
element
12213512211
Station
STX
number
(ST-NO)
122244…4211
Station
STX
number
(ST-NO)
number
number
CPU
(01)
CPU
(01)
Time to
wait for
response
(0)
OKdddd1dddd2…ddddn
WRD
Register
number
Comma
or
space
Number
of words
(n)
Checksum
Checksum
ETXCR
ETXCR
The response is returned in a 4-digit character string (0000 to FFFF) in hexadecimal.
ddddn: read data of the specified number of words
ddddn = character string in hexadecimal
(
n = 1 to 64 words
)
Read the active energy (register symbol: kWh L and kWh H) of the UPM100 at station
number 01.
The following command reads the active energy (D0001 and D0002).
[Command]
[STX]01010WRDD0001, 02A2 [ETX] [CR]
The data of active energy (2 words) is returned in response to the above command.
[Response]
[STX]0101OK7840017DA9 [ETX] [CR]
25000000 [kWh] in decimal. See the Note below.
IM 77C01H01-10EN
Note: To use the response data as the reading, reverse the order of the upper and lower words.
WWR Writes data into D registers and I relays on a word-by-word basis
Function
Writes information into a sequence of contiguous registers on a word-by-word basis by the
specified number of words, starting at the specified register number.
• The number of words to be written at a time is 1 to 64.
• For the format of response in the event of failure, see subsection 4.1.2.
• The command shown below includes the checksum function. When performing
communication without the checksum, do not include the 2-byte checksum element in the
command.
• Specify the leading I relay number to write data into I relays on a word-by-word basis.
Data of 16 bits starting at the leading I relay are to be written.
Command/Response (for normal operation)
Example
Number
of Bytes
Command
element
Command (continued)
4…1211
dddd2…ddddn
1221351214
STX
Station
number
(ST-NO)
number
Checksum
CPU
(01)
Time to
wait for
response
(0)
ETXCR
WWR
Register
number
Comma
or
space
Number
of words
(n)
Comma
or
space
dddd1
Write information is specified in a 4-digit character string (0000 to FFFF) in hexadecimal.
ddddn: write data of the specified number of words
ddddn = character string in hexadecimal
(
n = 1 to 64 words
Number
of Bytes
Response
element
1222211
Station
STX
number
(ST-NO)
CPU
number
(01)
OK
Checksum
)
ETXCR
Write the floating point data “00004120” into the VT ratio (register symbol: VT L and VT H)
and CT ratio (register symbol: CT L and CT H) of the UPM100 at station number 01.
[Command]
[STX]01010WWRD0043,04,000041200000412097[ETX][CR]
4-14
“OK” is returned in response to the above command.
WRR Reads D registers and I relays on a word-by-word basis in random order
Function
Reads the statuses of the individual registers, on a word-by-word basis, specified in a
random order by the specified number of words.
• The number of words to be read at a time is 1 to 32.
• For the format of response in the event of failure, see subsection 4.1.2.
• The command shown below includes the checksum function. When performing
communication without the checksum, do not include the 2-byte checksum element in the
command.
• Specify the leading I relay number to read I relays on a word-by-word basis. Data of 16
bits starting at the leading I relay are to be read.
Command/Response (for normal operation)
4
PC Link Communication
Example
Number
of Bytes
Command
element
Command (continued)
…5211
…
Number
of Bytes
Response
element
1221325151
Station
STX
number
(ST-NO)
Register
number
Checksum
(n)
122244…4211
Station
STX
number
(ST-NO)
number
CPU
number
(01)
Time to
CPU
wait for
response
(01)
ETXCR
(0)
OKdddd1dddd2…ddddn
WRR
Number
of words
(n)
Register
number
1
Comma
or
space
Checksum
Register
number
2
ETXCR
The response is returned in a 4-digit character string (0000 to FFFF) in hexadecimal.
ddddn: read data of the specified number of words
ddddn = character string in hexadecimal
(
n = 1 to 32 words
)
Read the instantaneous voltage 1 (register symbol: V1 L and V1 H) and instantaneous
current 1 (register symbol: I1 L and I1 H) of the UPM100 at station number 01.
The following command reads the instantaneous voltage 1 (D 0009 and D0010) and
instantaneous current 1 (D0015 and D0016).
[Command]
[STX]01010WRR04D0009,D0010,D0015,D0016FC[ETX][CR]
Comma
or
space
IM 77C01H01-10EN
The data 800V for the instantaneous voltage 1 and 50A for the instantaneous current 1 are
returned in response to the above command.
[Response]
[STX]0101OK000044480000424882[ETX][CR]
Note: To use the response data as the reading, reverse the order of the upper and lower words.
Instantaneous voltage 1: floating-point hex data 0000 4448→ (reversed) → Hex 4448 0000
→ Decimal 800
Instantaneous current 1: floating-point hex data 0000 4248→ (reversed) → Hex 4248 0000
→ Decimal 50
800 [V] and 50 [A] in decimal. See the Note below.
4-15
4.2 Command and Response
WRW Writes data into D registers and I relays on a word-by-word basis
in random order
Function
Writes register information specified for each register into the registers specified in a random
order by the specified number of words.
• The number of words to be written at a time is 1 to 32.
• For the format of response in the event of failure, see subsection 4.1.2.
• The command shown below includes the checksum function. When performing
communication without the checksum, do not include the 2-byte checksum element in the
command.
• Specify the leading I relay number to write data into I relays on a word-by-word basis.
Data of 16 bits starting at the leading I relay are to be written.
Command/Response (for normal operation)
Example
Number
of Bytes
Command
element
Command (continued)
514…514211
Register
number
2
1221325141
STX
Comma
or
space
Station
number
(ST-NO)
dddd2
number
CPU
(01)
…
Time to
wait for
response
(0)
Register
number
n
WRW
Comma
or
space
Number
of words
(n)
ddddn
Register
number
1
Checksum
Comma
or
space
ETXCR
dddd1
Comma
or
space
Write information is specified in a 4-digit character string (0000 to FFFF) in hexadecimal.
ddddn: repetition of register numbers and write information of the specified number of words
ddddn = character string in hexadecimal
(
n = 1 to 32 words
Number
of Bytes
Response
element
1222211
STX
Station
number
(ST-NO)
CPU
number
(01)
OK
Checksum
ETXCR
Write “1” into the remote reset (register symbol: RMT RST), active energy reset (register
symbol: kWh RST), reactive energy reset (register symbol: kVarh RST), and apparent
energy reset (register symbol: kVAh RST) of the UPM100 at station number 01.
The following command writes “1” into the remote reset (D0059), active energy reset
(D0060), reactive energy reset (D0093), apparent energy reset (D0097), and regenerative
energy reset (D0064).
“OK” is returned in response to the above command.
[Response]
[STX]0101OK5C[ETX][CR]
IM 77C01H01-10EN
4.2 Command and Response
WRS Specifies the D registers and I relays to be monitored on a word-by-word basis
Function
Specifies the numbers of the registers to be monitored on a word-by-word basis. Note that
this command simply specifies the registers. Actual monitoring is performed by the WRM
command after the register numbers are specified by this command.
If the volume of data is large and you wish to increase the communication rate, it is effective
to use a combination of the WRS and WRM commands rather than the WRR command. If
the power supply is turned off, the register numbers specified will be erased.
• The number of words to be specified at a time is 1 to 32.
• For the format of response in the event of failure, see subsection 4.1.2.
• The command shown below includes the checksum function. When performing
communication without the checksum, do not include the 2-byte checksum element in the
command.
• Specify the leading I relay number to read I relays on a word-by-word basis. Data of 16
bits starting at the leading I relay are to be read.
Command/Response (for normal operation)
4
PC Link Communication
Example
Number
of Bytes
Command
element
Command (continued)
…5211
…
Number
of Bytes
Response
element
1221325151
Station
STX
number
(ST-NO)
Register
number
Checksum
n
1222211
Station
STX
number
(ST-NO)
number
CPU
number
(01)
Time to
CPU
wait for
response
(01)
ETXCR
(0)
OK
WRS
Checksum
Number
of words
(n)
ETXCR
Register
number
1
Comma
or
space
Register
number
2
Comma
or
space
Specify that the instantaneous active power (register symbol: W L and W H) of the UPM100
at station number 01 is to be monitored. (This command simply specifies the registers.)
The following command specifies the instantaneous active power (D0007 and D0008) to be
monitored.
[Command]
[STX]01010WRS02D0007,D000893[ETX][CR]
“OK” is returned in response to the above command.
[Response]
[STX]0101OK5C[ETX][CR]
IM 77C01H01-10EN
4-17
4.2 Command and Response
WRM Monitors the D register and I relays on a word-by-word basis
Function
Reads the information of the registers that have been specified in advance by the WRS
command.
• Before executing this command, the WRS command must always be executed to specify
which registers are to be monitored. If no register has been specified, error code 06 is
returned.
• For the format of response in the event of failure, see subsection 4.1.2.
• The command shown below includes the checksum function. When performing
communication without the checksum, do not include the 2-byte checksum element in the
command.
Command/Response (for normal operation)
Example
Number
of Bytes
Command
element
Number
of Bytes
Response
element
12213211
Station
STX
number
(ST-NO)
122244…4211
Station
STX
number
(ST-NO)
number
CPU
number
(01)
Time to
CPU
wait for
response
(01)
(0)
OKdddd1dddd2…ddddn
WRM
Checksum
ETXCR
Checksum
ETXCR
The response is returned in a 4-digit character string (0000 to FFFF) in hexadecimal.
ddddn: read data of the number of words specified by the WRS command
ddddn = character string in hexadecimal
(
n = 1 to 32 words
)
Monitor the instantaneous active power (register symbol: W L and W H) of the UPM100 at
station number 01. (This command reads the status of the register specified by the WRS
command.)
[Command]
[STX]01010WRME8[ETX][CR]
The data 2500 is returned in response to the above command.
[Response]
[STX]0101OK0000451CF9[ETX][CR]
4-18
Note: To use the response data as the reading, reverse the order of the upper and lower words.
Instantaneous active power: floating-point hex data 0000 451C→ (reversed) →
Hex 451C 0000 → Decimal 2500
IM 77C01H01-10EN
INF6 Reads the model, suffix codes, and version information
Function
Reads the model, suffix codes, and version number of the UPM100.
• For the format of response in the event of failure, see subsection 4.1.2.
Command/Response (for normal operation)
4.2 Command and Response
Number
of Bytes
Command
element
Number
of Bytes
Response
element
Response (continued)
Start register
specified
for write
refreshing*
122131211
Station
STX
number
(ST-NO)
122211544
Station
STX
number
(ST-NO)
44211
Number of
registers
specified
for write
refreshing*
number
number
Checksum
CPU
(01)
CPU
(01)
Time to
wait for
response
(0)
OK
ETXCR
INF6
Model code:
UPM100
□□□□□
(Note 1)
Checksum
Version and
revision
numbers
(Note 2)
The * mark indicates fields the FA-M3’s UT link module refers to.
Note 1: Model and suffix codes information
UPM100 -
□□□□□
- 20
<Model> <Suffix codes>
Example: UPM100-443□2-20
0: without the optional communication function
4: with the wireless communication (with serial gateway function)
<For the Republic of Korea>
ETXCR
Start register
specified
for readout
refreshing*
4
PC Link Communication
Number of
registers
specified
for readout
refreshing*
IM 77C01H01-10EN
Example
Note 2: Version and revision numbers
<Revision number>
<Version number>
Example: _0102
Read the model information of the UPM100 at station number 01.
Command]
[STX]01010INF605[ETX][CR]
The UPM100-44302-20 is returned in response to the above command.
Phase and wire type: Three-phase 4-wire, Rated input voltage/current: 127V/5A AC,
Output function: with display function, with pulse output,
Optional communication function: 920 MHz wireless communication,
Optional measuring function: Reactive power/energy
The maximum value of CPU of a station in PC link communication is returned.
• For the format of response in the event of failure, see subsection 4.1.2.
Command/Response (for normal operation)
Example
Number
of Bytes
Command
element
Number
of Bytes
Response
element
122131211
Station
STX
number
(ST-NO)
12221211
Station
STX
number
(ST-NO)
number
number
CPU
(01)
CPU
(01)
Time to
wait for
response
(0)
OK
INF7
CPU
maximum
value
(Note1)
Checksum
Note 1: The maximum value of CPU for universal power monitor is “1.”
Read the CPU number of the UPM100 at station number 01.
[Command]
[STX]01010INF706[ETX][CR]
The data 1 is returned in response to the above command.
[Response]
[STX]0101OK18D[ETX][CR]
Checksum
ETXCR
ETXCR
4-20
IM 77C01H01-10EN
4.3 Communication with Higher-level Devices
040130E.EPS
PLC
Higher-level devices are those capable of using the PC link communication protocol.
4.3.1 Communication with FA-M3 (UT Link Module)
Communication with FA-M3 is achieved by simply connecting the UPM100 to a UT link
module using the PC link communication protocol. Set the communication conditions of the
UPM100 identical to those of the UT link module.
Model of UT link module: F3LC51-2N
Maximum overall cable length of 1200 m for a maximum of 31 slave stations
Figure 4-3 Communication with UT Link Module
The UT link module function has the following two modes, which allow you to communicate
with FA-M3 without being aware of it. For more information, see the optionally available “UT
Link Module User’s Manual (IM 34M06H25-01E).”
1. Automatic mode
This mode enables the instruments’ fixed devices (those that cannot be specified by the
user) to be constantly refreshed by reading from and/or writing to them. The fixed devices
are D0001 to D0022, and the read areas cannot be written to.
4
PC Link Communication
IM 77C01H01-10EN
2. Manual mode (constant access)
This mode reads and refreshes the instrument’s devices (those that can be specified by the
user).
See Also
The devices mentioned here are D registers and I relays. For more information on D
registers and I relays, see Chapters 6 and 7.
4-21
4.3 Communication with Higher-level Devices
FA-M3’s UT Link Module Setup Procedure (Example)
This section explains the procedure for setting up the FA-M3’s UT link module when the
“Automatic mode” is used.
1. Setting Up the UT Link Module
Before following the procedure, always make sure that the FA-M3’s UT link module is
turned off. Then, open the inner cover and follow the setup steps described below.
Configure the DIP switch of the UT link module as shown below:
Switch No. StatusDescription
SW1ONData length: 8 bits
SW2, SW3ONParity: none (default: even)
SW4OFFStop bit: one
SW5OFFChecksum: none
SW6ONTermination character: yes (CR)
SW7ONMode: Automatic mode
SW8OFFNot used.
Set the Baud Rate switch to 9600 bps.
Set the Communication Mode switch to 7 (Normal).
2. Setting Up the UPM100
Set the communication conditions of the UPM100 as shown below:
For details on how to set the conditions, see the user’s manual of Model UPM100 Universal
Power Monitor <Initial Setup Operations> or “1.2 Notes on Setting RS-485 Communication
Conditions” in this manual.
ParameterDescription
Communication protocolPC link communication (without checksum)
Data length8 bits
ParityNone
Stop bitOne
Baud rate9600 bps
3. Turn on the FA-M3.
4-22
IM 77C01H01-10EN
4.3.2 Communication with Touch Panel
040304E.EPS
Touch panel
Communication with a touch panel is achieved using the PC link communication protocol.
Set the communication conditions of the UPM100 identical to those of the touch panel.
4.3 Communication with Higher-level Devices
Maximum overall cable length of 1200 m for a maximum of 31 slave stations
Figure 4-4 Communication with Touch Panel
For more information, refer to the user’s manual of the touch panel to be connected.
ModelDescription
Digital’s Pro-face
Note 1: For Digital’s graphic panels, contact Digital Corp. directly.
Note 2: The system data area should be assigned to D0101 to D0150 of user area.
*1: Display devices differ depending on the model.
GP-570
GP-2300
(*1)
4
PC Link Communication
IM 77C01H01-10EN
4-23
Blank
PC
050101E.EPS
Chapter 5 MODBUS Communication
5 MODBUS Communication
5.1 Overview
The use of MODBUS communication enables the UPM100 to communicate with a
device such as a PC, PLC (sequencer), or touch panel. Such a device can be used in
communication to read/write data from/to D registers which are internal registers of the
UPM100. Access to the I relays is impossible.
Hereafter, PCs are generically called “higher-level devices.”
5
MODBUS Communication
Maximum overall cable length of 1200 m for a maximum of 31 slave stations
Figure 5-1 Example of Connection for MODBUS Communication
See Also
Chapter 6 for information on the D registers.
IM 77C01H01-10EN
5-1
5.1 Overview
For MODBUS communication with the UPM100, we provide the ASCII mode and RTU mode
(binary system) for the transmission mode.
Table 5-1 ASCII and RTU Modes
ItemASCII ModeRTU Mode
Number of data bits7 bits (ASCII), 8 bits (ASCII)8 bits (binary)
Message start mark: (colon)Not necessary
Message end markCR+LF (*2) Not necessary
Message length (*1)2N+1N
Data time intervals1 second or less24 bit time or less (*3)
*1: When message length in the RTU mode is assumed to be “N”, message length in ASCII mode
is “2N+1”.
*2: LF is a synchronization character indicating that the UPM100 is ready to accept the next signal.
In the RTU mode, synchronization is achieved during the time interval between characters. If
there is a period of time equivalent to 3.5 characters before the next character is received, the
message being received next is recognized as a new frame.
*3: Theoretically, points of termination are detected at an interval of 24-bit time in the RTU mode.
In the case of the UPM100 however, this detection is carried out at a time interval in multiples
of 0.833 milliseconds. If the Baud rate is 9600 bps, the time interval is 1 ÷ 9600 x 24 seconds or
shorter.
In MODBUS communication, a higher-level device identifies each UPM100 with a station
number of 1 to 99.
Note
• The UPM100 has data (D register) the unit of which is two words. When 2-word data need to be
written or read, writing or reading operations must be performed for the 2-word data at the same
time.
• Even if data written to the D register is out of the effective range, a normal response is returned.
5-2
IM 77C01H01-10EN
5.1.1 Configuration of Message
Messages sent from the higher-level device to the UPM100 consist of the following
elements.
5.1 Overview
Element
Number of bytes
in RTU mode
Number of bytes
in ASCII mode
Start of
Message Mark
None11
122
(1)(2)(3)(4)(5)(6)
Station Number
(ST-NO)
Function
Code
Data
2n
(variable)
4n
(variable)
Error
Check
Message Mark
2None
22
End of
(1) Start of Message Mark
This mark indicates the start of a message. Note that only ASCII mode requires a colon (:).
(2) Station Number (01 to 99)
Station numbers are used by the higher-level device to identify the UPM100 at the
communication destination. (These numbers are identification numbers specific to individual
UPM100, which are expressed in hexadecimal in the message.)
(3) Function Code (See section 5.2, “Message and Response”)
This element specifies a command (function code) from the higher-level device.
(4) Data
This element specifies D register numbers, the number of D registers, parameter values,
or others in accordance with the function code. (It is expressed in hexadecimal in the
message.)
(5) Error Check
In RTU mode: Carried out by the cyclic redundancy check (CRC-16) system.
In ASCII mode: Carried out by the longitudinal redundancy check (LRC) system.
5
MODBUS Communication
(6) End of Message Mark
This mark indicates the end of a message. Note that only ASCII mode requires CR + LF.
IM 77C01H01-10EN
5-3
5.1 Overview
5.1.2 Specifying D Registers
Specification of D registers using commercially available SCADA or other software
and specification of D registers for messages used in a customer-created communication
program are different. Take note of this.
1. When using commercially available SCADA or other software, specify a “reference
number” in which “D,” the first character of a D register number, is replaced by “4.”
2. For a customer-created communication program, specify a value in hexadecimal that is
obtained by subtracting 40001 from a reference number.
Example: Specifying “D0043”
1. For messages when using commercially available SCADA or other software, specify the
reference number “40043.”
2. For messages in the customer-created communication program, specify “002A,” the
hexadecimal number of value 42 obtained by subtracting 40001 from the reference
number.
5.1.3 Checking Errors
MODBUS communication has two modes, i.e., the ASCII mode which is communication
based on ASCII characters and the RTU mode which is binary code communication. These
modes use different error-checking methods.
ASCII Mode
In the ASCII mode, errors are checked by means of an LRC longitudinal redundancy check.
The LRC value is the two’s complement of the sum obtained by adding up data byte by byte,
from the station number to the last data item, excluding “:”, “CR” and “LF”. Ignore the carry
that may occur at the upper digit when adding up the data.
Example:
The method of calculating the LRC for the [:]1103002A0004[LRC][CR][LF] command for
reading a series of four D registers of the device at station number 17, starting with the
D0043 (VT ratio) register, is as follows:
[1] Station number 17 is 11 in hexadecimal.
[2] Add up the byte-by-byte hex data on a byte-by-byte basis.
[3] Find the two’s complement of the lower one byte of the data thus added up → BE
Change the data to byte-by-byte hex data → 11,03,00,2A,00,04.
(In the MODBUS ASCII message, this data is represented by the ASCII code as two
bytes, i.e., H 31 and H 31.)
In the RTU mode, errors are checked by means of a CRC-16 cyclic redundancy check. The
CRC-16 value is the 16-bit remainder when the value obtained by concatenating the 8 bits
of all blocks (from the station number to the last data item) of a message, excluding the start
bit, stop bit and parity bit, is divided by a predetermined 17-bit binary number.
Example of CRC-16 Calculation
When executing function code 03 (read the status of the specific coil) to read the status from
the slave at station number 11 (0Bh), send the 0B03002A0004 command.
[1] The default is FFFF. Find the XOR value of this default and the first character (=
station number 11).
[2] Refer to the lower byte of the result of executing the function code (or the upper
byte, if the result is regarded as a block of text). From the table, obtain the value
corresponding to that byte. Since the result is F4h in this example, you refer to the
244th value in the table and obtain 8701h.
[3] Find the XOR value of the upper byte of the XOR operation in step [1] and the result
of step [2]. This value is the first character of the CRC-16 calculation.
[4] Using the result of step [3] (remainder) as the next initial value, make the same
calculation to evaluate the second character (function code 03).
5
MODBUS Communication
0B
-------- FF F4
87 01
------- 87 FE
03
------- 87 FD
81 C1
------- 81 46
•
•
•
E5 9E
------- E5 9A
6B 80
-------6B 65
[5] Repeat steps [1] to [4] to perform the calculation up to the last character string “04”.
•
•
•
04
find the corresponding number in Table
5.2, and substitute the number into the
formula.
In the example shown on the left,
244. From Table 5.2, the number
corresponding to 244 proves to be 8701.
[6] Reverse the order of the upper and lower bytes of 6B65 and append 656B to the end
of the character string as the error code.
0B03002A0004656B
First reverse the order of the upper and lower bytes of the calculated result, then compare the
value with the received data or store the value in the transmission buffer.
IM 77C01H01-10EN
5-5
5.1 Overview
Table 5-2 Results of Performing CRC on 0th to 255th Values at A001h
Number01234567
Result0000C0C1C1810140C30103C00280C241
Number89101112131415
ResultC60106C00780C7410500C5C1C4810440
Number1617181920212223
ResultCC010CC00D80CD410F00CFC1CE810E40
Number2425262728293031
Result0A00CAC1CB810B40C90109C00880C841
Number3233343536373839
ResultD80118C01980D9411B00DBC1DA811A40
Number4041424344454647
Result1E00DEC1DF811F40DD011DC01C80DC41
Number4849505152535455
Result1400D4C1D5811540D70117C01680D641
Number5657585960616263
ResultD20112C01380D3411100D1C1D0811040
Number6465666768697071
ResultF00130C03180F1413300F3C1F2813240
Number7273747576777879
Result3600F6C1F7813740F50135C03480F441
Number8081828384858687
Result3C00FCC1FD813D40FF013FC03E80FE41
Number8889909192939495
ResultFA013AC03B80FB413900F9C1F8813840
Number96979899100101102103
Result2800E8C1E9812940EB012BC02A80EA41
Number10410510610710810911 0111
ResultEE012EC02F80EF412D00EDC1EC812C40
Number11 211311411 511611711811 9
ResultE40124C02580E5412700E7C1E6812640
Number120121122123124125126127
Result2200E2C1E3812340E10121C02080E041
Number128129130131132133134135
ResultA00160C06180A1416300A3C1A2816240
Number136137138139140141142143
Result6600A6C1A7816740A50165C06480A441
Number144145146147148149150151
Result6C00ACC1AD816D40AF016FC06E80AE41
Number152153154155156157158159
ResultAA016AC06B80AB416900A9C1A8816840
Number160161162163164165166167
Result7800B8C1B9817940BB017BC07A80BA41
Number168169170171172173174175
ResultBE017EC07F80BF417D00BDC1BC817C40
Number176177178
ResultB40174C07580B5417700B7C1B6817640
Number184185186187188189190191
Result7200B2C1B3817340B10171C07080B041
Number192193194195196197198199
Result500090C191815140930153C052809241
Number200201202203204205206207
Result960156C057809741550095C194815440
Number2082092102
Result9C015CC05D809D415F009FC19E815E40
Number216217218219220221222223
Result5A009AC19B815B40990159C058809841
Number224225226227228229230231
Result880148C0498089414B008BC18A814A40
Number232233234235236237238239
Result4E008EC18F814F408D014DC04C808C41
Number240241242243244245246247
Result440084C185814540870147C046808641
Number248249250251252253254255
Result820142C043808341410081C180814040
179180181182183
11212213214215
5-6
IM 77C01H01-10EN
5.1.4 Responses from Slaves
The UPM100 receives a command message from the higher-level device. If the received
command message is found to be normal and directed at the station number of the UPM100
itself, the UPM100 concludes the content of the message to be normal. Thus, the UPM100
enters the phase of executing message processing, deciphers the content of the command
message, and processes with the message.
The UPM100 does not execute message processing, however, if the received command
message is found to be abnormal. In that case, the UPM100 either ignores the received
message or creates a response message telling the received message is erroneous.
After receiving a normal command message and executing a given process, the UPM100
creates and sends a response message to which error check data appropriate for the
command function code of the higher-level device is added.
Responses to Normal Messages
5.1 Overview
For a loop back function or a function for writing to a single register, the UPM100 returns the
received command message as a response message.
For a function for writing to multiple registers, the UPM100 returns part of the received
command message as the response message.
For a readout function, the UPM100 adds the read data to the ends of the station number
and function code of the received command message, and returns the message as the
response message.
5
MODBUS Communication
IM 77C01H01-10EN
5-7
5.1 Overview
Responses to Abnormal Messages
If there is any failure other than transmission errors, the UPM100 returns the following
response message without executing any process:
Element
Number of bytes in RTU modeNone1112None
Number of bytes in ASCII mode122222
*1: The value of “Function code (Hex) + 80 (Hex)” for the Function code.
Start of
Message
Mark (:)
Station
Number
(ST-NO)
Function
Code (*1)
Error
Code
The following table summarizes details on the error codes.
Error CodeMeaningCause
01Function code errorFunction code does not exist.
02Abnormal D register numberD register number out of the range is specified.
03Abnormal number of D registersNumber of D registers out of the range is specified.
The UPM100 does not regard it as an error even if there is any unused register among
those with consecutive register numbers specified by a readout function; rather, the UPM100
returns a value of 0 in this case.
The UPM100 returns the error code 02 or 03 if the specified consecutive registers are
made to fall outside the given range by the number of registers specified, even though the
D-register start number was initially within the range. (Depend on the function code.)
Cases when There Are No Responses to Transmitted Messages
• A transmission error (overrun, framing, parity, LRC or CRC-16 error) is encountered.
• The station number in the command message is wrong.
• The interval between data composing a message is longer than 2 seconds.
• The station number is “00” (broadcast specification).
• The receiving buffer has overflowed.
Note: As a measure against the abovementioned problems, add a time-out process to the
communication function or program of the higher-level device.
Error
Check
[CR][LF]
5-8
IM 77C01H01-10EN
5.1.5 Specifying Broadcast
050108E.EPS
PC
Broadcast addressing allows the corresponding multiple UPM100 to receive the command.
1. In the station number of the command, specify the broadcast address “00” and execute
it.
2. Broadcast addressing works independently of the station number of the UPM100.
3. Broadcast addressing is applicable to write commands only.
4. No response is returned when broadcast addressing is used.
Maximum overall cable length of 1200 m for a maximum of 31 slave stations
5.1 Overview
* No response from slaves
5
MODBUS Communication
Figure 5-2 Broadcasting
D registers are used for processing in the UPM100 communication.
[Example]
Write “0001” into the D0059 (Remote reset) using broadcast command.
[Message]
[:]0006003A0001BF[CR][LF]
“00”: broadcast addressing, “06”: function code 06,
“003A”: D register specification 58, “0001”: data 0001, “BF”: error check
* Numbers in quotation mark are hexadecimal.
No response is returned to the above message.
D-Reg No.Ref No.H No.DescriptionEffective Range
D005940059003ARemote reset
If other than 1: Invalid
If 1: UPM100 is hard-reset
IM 77C01H01-10EN
5-9
5.2 Message and Response
Function codes are command words used by the higher-level device to obtain the D
registers information of UPM100.
Table 5-3 Function Codes
CodeFunctionDescription
03 Reads data from multiple D registers.
06 Writes data into D register.Capable of writing data to one register. (D0001 to D0150)
08 Performs loop back test.Used when checking communication wiring.
16 Writes data into multiple D registers.
• The write function codes will not write into read-only or disabled D registers.
• Broadcast addressing is possible with function codes 06 and 16 only. (Also in this case,
read-only or disabled D registers will not be written.)
Capable of reading data from a maximum of 64
successive registers. (D0001 to D0150)
Capable of writing data into a maximum of 32 successive
registers. (D0001 to D0150)
5-10
IM 77C01H01-10EN
03 Reads data from multiple D registers
Function
This function code reads the contents of successive D registers by the specified number
starting from a specified D registers number.
• The maximum number of D registers to be read at a time is 64.
• For the format of responses in the event of failure, see subsection 5.1.4.
Message (for normal operation)
Element
Number of bytes
in RTU mode
Number of bytes
in ASCII mode
Message (continued)
Error Check
2None
22
Start of
Message Mark
(:)
None1122
12244
End of
Message Mark
(CR + LF)
Station
Number
(ST-NO)
Function Code
(03)
5.2 Message and Response
D-Register
Start Number
Number of
D Registers
5
MODBUS Communication
Response (for normal operation)
Element
Number of bytes
in RTU mode
Number of bytes
in ASCII mode
Response (continued)
Contents of
D Register
22None
422
Start of
Message
Mark (:)
None1112...
12224...
Error Check
Example (ASCII mode)
Read a series of four D registers starting with the D0043 (VT ratio and CT ratio) at station
number 11. (D register specification is “42.”)
[Message] [:]0B03002A0004C4[CR][LF]
“0B”:station number 11, “03”: function code 03, “002A”: D register specification 42, “0004”:
number of D registers 4, and “C4”: error check
* Numbers in quotation marks are hexadecimal.
The following response is returned with respect to the above message.
[Response] [:]0B030800003F8000003F806C[CR][LF]
* The CT ratio and VT ratio are floating-point data. The two words of “D0044” and “D0043” indicate
“1.” This is the same for “D0046” and “D0045.” The order of the upper word “3F80” and lower
word “0000” are converted.
* 3F800000 (floating-point data) → 1 (decimal)
Station
Number
(ST-NO)
End of
Message Mark
(CR + LF)
Function
Code
(03)
Byte
Count
Contents of
D Register
...
IM 77C01H01-10EN
5-11
5.2 Message and Response
06 Writes data into D register
Function
This function code writes data into a specified D registers number.
• The maximum number of D registers to be written into at a time is 1.
• For the format of response in the event of failure, see subsection 5.1.4.
• Broadcast addressing is possible (by setting “00” to the station number).
Message (for normal operation)
Element
Number of bytes
in RTU mode
Number of bytes
in ASCII mode
Message (continued)
Write Data
(Upper Digit)
112None
2222
Start of
Message Mark
(:)
None1111
12222
Write Data
(Lower Digit)
Station
Number
(ST-NO)
Error Check
Function Code
(06)
End of
Message Mark
(CR + LF)
D-Register
Number
(Upper Digit)
D-Register
Number
(Lower Digit)
Response (for normal operation)
Element
Number of bytes
in RTU mode
Number of bytes
in ASCII mode
Response (continued)
Write Data
(Upper Digit)
112None
2222
Start of
Message Mark
(:)
None1111
12222
Write Data
(Lower Digit)
Example (ASCII mode)
Write “0001” into the D0062 (start of optional integration) at station number 11. (D register
specification is “61.”)
[Message] [:]0B06003D0001B1[CR][LF]
“0B”: station number 11, “06”: function code 06, “003D”: D register specification 61, “0001”:
Data 0001, and “B1”: error check
* Numbers in quotation marks are hexadecimal.
The following response is returned with respect to the above message.
[Response] [:]0B06003D0001B1[CR][LF]
The frame same as the message is returned.
Station
Number
(ST-NO)
Error Check
Function Code
(06)
End of
Message Mark
(CR + LF)
D-Register
Number
(Upper Digit)
D-Register
Number
(Lower Digit)
5-12
IM 77C01H01-10EN
08 Performs loop back test
Function
This function code is used to check connection for communication.
• For the format of response in the event of failure, see subsection 5.1.4.
• The “00” shown below (marked with an asterisk *) are fixed.
• Any value can be selected for send data.
Message (for normal operation)
Element
Number of bytes
in RTU mode
Number of bytes
in ASCII mode
Message (continued)
Error Check
2None
22
5.2 Message and Response
Start of
Message Mark
(:)
None1122
12244
End of
Message Mark
(CR + LF)
Station
Number
(ST-NO)
Function Code
(08)
00*
0000
Send Data
(Arbitrary)
5
MODBUS Communication
Response (for normal operation)
Element
Number of bytes
in RTU mode
Number of bytes
in ASCII mode
Response (continued)
Error Check
2None
22
Start of
Message Mark
(:)
None1122
12244
End of
Message Mark
(CR + LF)
Diagnostic Codes
Diagnostic CodeMeaningData
0000Command message returnArbitrary
Example (ASCII mode)
Send data “0000” (fixed) and send data 04D2 (arbitrary) to the station number 11 to check
the connection for communication.
[Message] [:]0B08000004D217[CR][LF]
Station
Number
(ST-NO)
Function Code
(08)
00
0000
Same as Send
Data
IM 77C01H01-10EN
When the connection is normal, the following response same as the command is returned.
[Response] [:]0B08000004D217[CR][LF]
5-13
5.2 Message and Response
16 Writes data into multiple D registers
Function
This function code writes data into successive D registers by the number starting from a
specified D registers number.
• The maximum number of D registers to be written into at a time is 32.
• For the format of response in the event of failure, see subsection 5.1.4.
• Broadcast addressing is possible (by setting “00” to the station number).
No response for broadcast addressing.
Message (for normal operation)
Element
Number of bytes
in RTU mode
Number of bytes
in ASCII mode
Message (continued)
Number of
D Registers
(Upper Digit)
11111…2None
22222…22
Start of
Message Mark
None1111
Number of
D Registers
(Lower Digit)
Station
Byte
Count
Number
(ST-NO)
(Upper Digit)
(:)
12222
Function Code
Data
(10)
Data
(Lower Digit)
D-Register
Start Number
(Upper Digit)
…
D-Register
Start Number
(Lower Digit)
Error
Check
End of
Message
Mark
(CR + LF)
Response (for normal operation)
Element
Number of bytes
in RTU mode
Number of bytes
in ASCII mode
Response (continued)
Number of
D Registers
(Upper Digit)
112None
2222
Start of
Message Mark
(:)
None1111
12222
Number of
D Registers
(Lower Digit)
Station
Number
(ST-NO)
Error Check
Function Code
(10)
End of
Message Mark
(CR + LF)
D-Register
Start Number
(Upper Digit)
D-Register
Start Number
(Lower Digit)
5-14
IM 77C01H01-10EN
Example (ASCII mode)
Write “10” into a series of four D registers starting with the D0043 (VT ratio and CT ratio) at
station number 11. (D register specification is “42.”)
[Message] [:]0B10002A0004080000412000004120ED[CR][LF]
“0B”: station number 11, “10”: function code 16, “002A”: D register specification 42, “0004”:
number of D registers 4, “08”: byte count (number of D registers × 2), “0000”: VT ratio lower
two bytes, “4120”: VT ratio upper two bytes, “0000”: CT ratio lower two bytes, “4120”: CT
ratio upper two bytes and “ED”: error check
* Numbers in quotation marks are hexadecimal.
The following response is returned with respect to the above message.
[Response]
[:]0B10002A00004B7[CR][LF]
Write “1” into the D0072 (setup change status) to activate the writing into the VT ratio and
CT ratio.
[:]0B0600470001A7[CR][LF]
“0B”: station number 11, “06”: function code 06, “0047”: D register specification 71, “0001”:
writing data 0001, and “A7”: error check
* Numbers in quotation marks are hexadecimal.
5.2 Message and Response
5
MODBUS Communication
IM 77C01H01-10EN
5-15
Blank
Chapter 6 Functions and Usage of D Registers
6 Functions and Usage of D Registers
6.1 Overview of D Registers
This section describes the functions and usage of D registers.
The D registers store the input values, statuses, and others that are handled by the
UPM100. By connecting UPM100 to higher-level device capable of PC link communication
or MODBUS communication, you can readily use these internal data items by reading from
or writing to the D registers.
6
Functions and Usage of D Registers
IM 77C01H01-10EN
6-1
6.2 Interpretation of D Register Map Table
Register
060201E.EPS
This section explains how to read the D Register Map tables in this chapter. The numbers
listed in the leftmost column are D register numbers ((1) below). The fivedigit numbers in
the next column are reference numbers used for MODBUS communication ((2) below). The
numbers in the column third from left are register numbers in hexadecimal notation used in
MODBUS communication programs ((3) below).
D-Reg
No.
D0001400010000
D0002400020001kWh H
Ref
No.
H No.
Symbol
kWh L
Active energy (uint32, lower 2 bytes)
Active energy (uint32, upper 2 bytes)R
Register symbolRegister nameEffective (setting) range and unit
(3) Hex number (for MODBUS communication)
(2) Reference number (for MODBUS communication)
(1) D register number
Data Format Abbreviations
float: single precision floating decimal point
unit: without sign integer
int: with sign integer
Register NameEffective Range
0 to 99,999,999 [kWh]
0 to 99,999,999 [Wh]
Backed up at instantaneous
Permission of read/write by communcation
writing action is limited to 100,000.
Initial
Value
Back-
up
–●
R/W
R
Initial value
Backup of data
power failure
Backed up at setting
R: Read/W: Write
An asterisk (*) in this column
indicates that the number of
6-2
IM 77C01H01-10EN
6.3 Configuration of D Registers
Table 6-1 D Register Configuration
Register No.ClassificationDescription
D0001 to D0042 Process dataMeasured value of electric energy, etc.
D0043 to D0053
D0057, D0058
D0059 to D0064 Control dataControl of operations such as remote reset
D0067, D0068Process dataMeasured value of regenerative energy
D0069, D0070Parameter dataRegenerative energy setpoint
D0071StatusRegenerative energy writing status
D0072Setup change statusSwitch for triggering setup change
D0073, D0094
D0098
D0075 to D0084 Process dataMeasured value of electric energy, etc.
D0085 to D0092 Parameter dataSetup conditions such as pulses and reactive energy
D0093, D0094Control dataReactive energy reset Reactive energy writing status
D0095, D0096Parameter dataApparent energy setpoint
D0097, D0098Control dataApparent energy reset Apparent energy writing status
D0099, D0100
D0101 to D0150 User areaCan be used freely by the user.
OtherProhibited areaCannot be used. Writing to this area is not guaranteed.
Parameter dataSetup conditions such as VT ratio and CT ratio
Integrated value writing
status
Area used for internal
settings
Switch for triggering integrated value writing
ADC failure, various types of error information
6
Functions and Usage of D Registers
Measuring Ranges
The measuring range varies depending on the type of configuration. Variations in the range
of measured values are shown below.
a) Variation 1 in the range of measured values
Active energy (D0001, D0002), apparent energy (D0083, D0084), and regenerative energy
(D0067, D0068)
TypeSecondary Rated Power x VT x CTRange of Integrated Values
130 W or greater to less than 1 MW0 to 999,999 kWh
2999.99 kW or greater to less than 10 MW0.00 to 9,999,999 kWh
39.9999 MW or greater0.0 to 99,999,999 kWh
b) Variation 2 in the range of measured values
Reactive energy (D0077 to D0080)
TypeSecondary Rated Power x VT x CTRange of Integrated Values
130 var or greater to less than 1 Mvar0 to 99,999 kvarh
2999.99 kvar or greater to less than 10 Mvar 0.00 to 999,999 kvarh
39.9999 Mvar or greater0.0 to 9,999,999 kvarh
• If the upper limit of the range of integrated values is exceeded, the integrated value resets to 0
and re-integration begins.
• If the VT or CT ratio is changed, the measured active energy, reactive energy and apparent
energy values are reset. The active energy setpoint (D0057, D0058), reactive energy (LEAD,
LAG) setpoint (D0089 to D0092) and apparent energy setpoint (D0095, D0096) are also reset,
and re-integration begins from 0.
• No values can be written beyond the ranges of measured values set in the D registers for
active, reactive and apparent energy setpoints.
• If the primary rated power calculated using the formula “secondary rated power x VT x CT” is
greater than 10 GW, the set data will not be validated (the previous data remains valid).
200000 W (primary rated power) = 200 W (secondary rated power) x 1000 (CT) x 1 (VT)
From this primary rated power value and according to Case a) above, the range of active
energy (D0001, D0002) and apparent energy (D0083, D0084) values that can be integrated
and measured is 0 to 999,999 kWh.
6-3
6.4 D Register Map
D-Reg
Ref No. H No.
No.
D0001400010000kWh LActive energy (uint32, lower 2 bytes)0 to 99,999,999 [kWh]
D0002400020001kWh HActive energy (uint32, upper 2 bytes)R
D0003400030002Wh1 LOptional electric energy - current value (uint32, lower 2 bytes)
D0004400040003Wh1 HOptional electric energy - current value (uint32, upper 2 bytes)R
D0005400050004Wh2 LOptional electric energy - previous value (uint32, lower 2 bytes)
D0006400060005Wh2 HOptional electric energy - previous value (uint32, upper 2 bytes)R
D0007400070006W LInstantaneous active power (float, lower 2 bytes)
D0008400080007W HInstantaneous active power (float, upper 2 bytes)R
D0009400090008V1 LInstantaneous voltage 1 (float, lower 2 bytes)
D0010400100009V1 HInstantaneous voltage 1 (float, upper 2 bytes)R
D001140011000AV2 LInstantaneous voltage 2 (float, lower 2 bytes)
D001240012000BV2 HInstantaneous voltage 2 (float, upper 2 bytes)R
D001340013000CV3 LInstantaneous voltage 3 (float, lower 2 bytes)
D001440014000DV3 HInstantaneous voltage 3 (float, upper 2 bytes)R
D001540015000EI1 LInstantaneous current 1 (float, lower 2 bytes)
D001640016000FI1 HInstantaneous current 1 (float, upper 2 bytes)R
D0017400170010I2 LInstantaneous current 2 (float, lower 2 bytes)
D0018400180011I2 HInstantaneous current 2 (float, upper 2 bytes)R
D0019400190012I3 LInstantaneous current 3 (float, lower 2 bytes)
D0020400200013I3 HInstantaneous current 3 (float, upper 2 bytes)R
D0021400210014PF LInstantaneous power factor (float, lower 2 bytes)
D0022400220015PF HInstantaneous power factor (float, upper 2 bytes)R
D0023400230016V1MAX LVoltage-1 maximum value (float, lower 2 bytes)
D0024400240017V1MAX HVoltage-1 maximum value (float, upper 2 bytes)R
D0025400250018V1MIN LVoltage-1 minimum value (float, lower 2 bytes)
D0026400260019V1MIN HVoltage-1 minimum value (float, upper 2 bytes)R
D002740027001AV2MAX LVoltage-2 maximum value (float, lower 2 bytes)
D002840028001BV2MAX HVoltage-2 maximum value (float, upper 2 bytes)R
D002940029001CV2MIN LVoltage-2 minimum value (float, lower 2 bytes)
D003040030001DV2MIN HVoltage-2 minimum value (float, upper 2 bytes)R
D003140031001EV3MAX LVoltage-3 maximum value (float, lower 2 bytes)
D003240032001FV3MAX HVoltage-3 maximum value (float, upper 2 bytes)R
D0033400330020V3MIN LVoltage-3 minimum value (float, lower 2 bytes)
D0034400340021V3MIN HVoltage-3 minimum value (float, upper 2 bytes)R
D0035400350022I1MAX LCurrent-1 maximum value (float, lower 2 bytes)
D0036400360023I1MAX HCurrent-1 maximum value (float, upper 2 bytes)R
D0037400370024I2MAX LCurrent-2 maximum value (float, lower 2 bytes)
D0038400380025I2MAX HCurrent-2 maximum value (float, upper 2 bytes)R
D0039400390026I3MAX LCurrent-3 maximum value (float, lower 2 bytes)
D0040400400027I3MAX HCurrent-3 maximum value (float, upper 2 bytes)R
D0041400410028VA LInstantaneous apparent power (float, lower 2 bytes)
D0042400420029VA HInstantaneous apparent power (float, upper 2 bytes)R
Register
Symbol
Register NameEffective Range
0 to 99,999,999 [Wh]
(Note 4)
0 to 999,999 [Wh]0X
0 to 999,999 [Wh]0X
0.1 to 9,999,999.9 [W]0X
0.1 to 9,999,999.9 [V]0X
0.1 to 9,999,999.9 [V]
(Note 1)
0.1 to 9,999,999.9 [V]
(Note 2)
0.001 to 9,999,999.990 [A]0X
0.001 to 9,999,999.990 [A]
(Note 1)
0.001 to 9,999,999.990 [A]
(Note 2)
-0.500 to 1.000 to +0.500
(Note 3)
0.1 to 9,999,999.9 [V]0X
0.1 to 9,999,999.9 [V]0X
0.1 to 9,999,999.9 [V]
(Note 1)
0.1 to 9,999,999.9 [V]
(Note 1)
0.1 to 9,999,999.9 [V]
(Note 2)
0.1 to 9,999,999.9 [V]
(Note 2)
0.001 to 9,999,999.990 [A]0X
0.001 to 9,999,999.990 [A]
(Note 1)
0.001 to 9,999,999.990 [A]
(Note 2)
0.1 to 9,999,999.9 [VA]0X
Initial
Value
–●
0X
0X
0X
0X
0X
0X
0X
0X
0X
0X
0X
Back-
up
R/W
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
Note 1: For the UPM100-1xxxx and UPM100-3xxxx, the readout is always “0”.
Note 2: For the UPM100-1xxxx and UPM100-2xxxx, the readout is always “0”.
Note 3: The UPM100-1 allows these registers to be read.
Note 4: For the UPM100-xxxx0 to -xxxx3, the unit is [kWh].
For the UPM100-xxxx4 to -xxxx7, the unit is [Wh].
6-4
IM 77C01H01-10EN
6.4 D Register Map
D-Reg
Ref No. H No.
No.
D004340043002AVT LVT ratio (float, lower 2 bytes)
D004440044002BVT HVT ratio (float, upper 2 bytes)* R/W
D004540045002CCT LCT ratio (float, lower 2 bytes)
D004640046002DCT HCT ratio (float, upper 2 bytes)* R/W
D004740047002ELOWCUT LIntegral low-cut power (float, lower 2 bytes)
D004840048002FLOWCUT HIntegral low-cut power (float, upper 2 bytes)* R/W
D0049400490030PULSE1Pulse unit-1 of electric energy (uint16)
D0050400500031–Do not use.––––
D0051400510032–Do not use.––––
D0052400520033
D0053400530034
D0054400540035–Do not use.––––
D0055400550036–Do not use.––––
D0056400560037–Do not use.––––
D0057400570038kWh SET LActive energy - setpoint (uint32, lower 2 bytes)0 to 99,999,999 [kWh]
D0058400580039kWh SET HActive energy - setpoint (uint32, upper 2 bytes)W
D005940059003ARMT RSTRemote reset
D006040060003BkWh RSTActive energy reset
D006140061003CMAX RSTMaximum/minimum values reset
D006240062003DWh STARTStart of optional integration
D006340063003EWh STOPStop of optional integration
D006440064003FRWhRegenerative energy reset
D0065400650040–Do not use.––––
D0066400660041–Do not use.––––
D0067400670042RKWH LRegenerative energy (uint32, lower 2 bytes)
D0068400680043RKWH HRegenerative energy (uint32, upper 2 bytes)0○R
D0069400690044RWH SET LRegenerative energy - setpoint (uint32, lower 2 bytes)0–W
D0070400700045RWH SET H Regenerative energy - setpoint (uint32, upper 2 bytes)0–W
D0071400710046RWH STSRegenerative energy writing status
D0072400720047SET STSSetup change status
D0073400730048kWh STSActive energy writing status
Register
Symbol
PULSE1
WIDTH
INTEG START
STOP
Initial
Register NameEffective Range
1 to 60001○
0.05 to 320001.00○
0.05 to 20.00 [%]0.05○
1 to 50,000 [x10Wh/pls]
(Note 1)
ON pulse width-1 of electric energy (uint8)
Start/stop of integration0: Start, 1: Stop0○* R/W
1 to 127 [x10ms]
(Note 1)
0 to 99,999,999 [Wh]
(Note 2)
If other than 1: Invalid
If 1: UPM100 is hard-reset
If other than 1: Invalid
If 1: Active energy
(D0001, D0002) is reset
If other than 1: Invalid
If 1: Maximum/minimum
values (D0023 to D0040)
are reset
If other than 1: Invalid
If 1: Optional integration
(D0003 to D0006) starts
If other than 1: Invalid
If 1: Optional integration
(D0003, D0004) stops
If other than 1: Invalid
If 1: Regenerative energy
(D0067, D0068) is reset
0 to 99,999,999 [kWh]
0 to 99,999,999 [Wh]
(Note 2)
If other than 1: Invalid
If 1: The values of D0069
and D0070 are written as
the integrated value
If other than 1: Invalid
If 1: Initialization is
performed to validate setup
changes (D0043 to D0049,
D0052, D0085, D0087, and
D0088 are validated)
If other than 1: Invalid
If 1: The values of D0057
and D0058 are written as
the integrated value
Back-
Value
100○* R/W
5○* R/W
0X
0XW
0XW
0XW
0XW
0XW
0–W
0○R
0–W
0XW
0XW
R/W
up
* R/W
* R/W
* R/W
W
6
Functions and Usage of D Registers
Note 1: The UPM100-xx2xx and UPM100-xx3xx allow this register to be read and written.
Note 2: For the UPM100-xxxx0 to -xxxx3, the unit is [kWh].
D007740077004CLead Varh LLEAD reactive energy (uint32, lower 2 bytes)0 to 9,999,999 [kvarh]
D007840078004DLead Varh H LEAD reactive energy (uint32, upper 2 bytes)R
D007940079004ELag Varh LLAG reactive energy (uint32, lower 2 bytes)0 to 9,999,999 [kvarh]
D008040080004FLag Varh HLAG reactive energy (uint32, upper 2 bytes)R
D0081400810050Var LInstantaneous reactive power (float32, lower 2 bytes)
D0082400820051Var HInstantaneous reactive power (float32, upper 2 bytes)R
D0083400830052kVAh LApparent energy (lower 2 bytes)0 to 99,999,999 [kVAh]
D0084400840053kVAh HApparent energy (upper 2 bytes)R
D0085400850054PULSE2Pulse unit-2 of electric energy (uint16)
D0086400860055–Do not use.––––
D0087400870056
D0088400880057
D0089400890058
D0090400900059
D009140091005A
D009240092005B
D009340093005CkVarh RSTReactive energy reset
D009440094005DkVarh STSReactive energy writing status
D009540095005EkVAh SET LApparent energy - setpoint (lower 2 bytes)0 to 99,999,999 [kVAh]
D009640096005FkVAh SET HApparent energy - setpoint (upper 2 bytes)W
D0097400970060kVAh RSTApparent energy reset
D0098400980061kVAh STSApparent energy writing status
D0099400990062ADERRORADC failure––R
D0100401000063ERRORVarious types of error information––R
D0101401010064USERUser area (Note 4)0 to 655350XR/W
•
•
•
•
•
•
D0150401500095USERUser area (Note 4)0 to 655350XR/W
Register
Symbol
PULSE2
SLCT
PULSE2
WIDTH
Lead kVarh
SET L
Lead kVarh
SET H
Lag kVarh
SET L
Lag kVarh
SET H
•
•
•
LAG/LEAD/regenerative selection for
pulse output of electric energy
ON pulse width-2 of electric energy (uint8)1 to 127 [x10ms]5○* R/W
LEAD reactive energy - setpoint (uint32, lower 2 bytes)
LEAD reactive energy - setpoint (uint32, upper 2 bytes)W
LAG reactive energy - setpoint (uint32, lower 2 bytes)
LAG reactive energy - setpoint (uint32, upper 2 bytes)W
•
•
•
•
•
•
Register NameEffective Range
45.0 to 65.0 [Hz]0X
0 to 9,999,999 [varh]
(Note 1) (Note 5)
0 to 9,999,999 [varh]
(Note 1) (Note 5)
0.1 to ±9,999,999.9 [var]
(Note 1)
0 to 99,999,999 [VAh]
(Note 6)
1 to 50,000 [x10varh/pls]
(Note 2)
0: LAG pulse,
1: LEAD pulse,
2: Regenerative pulse
(Note 2)
0 to 9,999,999 [kvarh]
0 to 9,999,999 [varh]
(Note 3) (Note 5)
0 to 9,999,999 [kvarh]
0 to 9,999,999 [varh]
(Note 3) (Note 5)
If other than 1: Invalid
If 1: Reactive energy
(D0077 to D0080) is reset
If other than 1: Invalid
If 1: The values of D0089
to D0092 are written as the
integrated value
0 to 99,999,999 [VAh]
(Note 6)
If other than 1: Invalid
If 1: Apparent energy
(D0083, D0084) is reset
If other than 1: Invalid
If 1: The values of D0095
and D0096 are written as
the integrated value
•
•
•
Initial
Back-
Value
0●
0●
0X
0●
100○* R/W
0○* R/W
0X
0X
0XW
0X
0XW
•
•
•
up
XW
XW
•
•
•
R/W
W
W
W
R
R
R
R
R
•
•
•
Note 1: The UPM100-xxxx2 allows these registers to be read.
Note 2: The UPM100-xx2x2 and UPM100-xx3x2 allow this register to be read and written.
Note 3: The UPM100-xxxx2 allows these registers to be written.
Note 4: Use the user area when using a display unit from Digital Corporation.
Note 5: For the UPM100-xxxx0 to -xxxx3, the unit is [kvarh].
For the UPM100-xxxx4 to -xxxx7, the unit is [varh].
Note 6: For the UPM100-xxxx0 to -xxxx3, the unit is [kVAh].
For the UPM100-xxxx4 to -xxxx7, the unit is [VAh].
6-6
IM 77C01H01-10EN
Bit Information for ADC Failure (D0099)
BitSymbolFailure StatusDescription
0 to 14
15ADC_COMM_FAILADC communication errorOccurs if the ADC fails.
Bit Information for Various Types of Errors (D0100)
Bit Failure Status
0System data error, calibration data error, parameter error, backup data error
1EEPROM error
2Overranged instantaneous power
3Overranged instantaneous apparent power
4Overranged instantaneous reactive power
5Overranged instantaneous current (I1)
6Overranged instantaneous current (I2)
7Overranged instantaneous current (I3)
8Overranged instantaneous voltage (V1)
9Overranged instantaneous voltage (V2)
10Overranged instantaneous voltage (V3)
11Under-ranged instantaneous voltage (V1)
12Under-ranged instantaneous voltage (V2)
13Under-ranged instantaneous voltage (V3)
14Overranged power factor
15Overranged frequency
6.4 D Register Map
6
Functions and Usage of D Registers
IM 77C01H01-10EN
6-7
Blank
070101E.EPS
Chapter 7 Functions and Usage of I Relays
7 Functions and Usage of I Relays
This chapter describes the functions and usage of the I relays.
The I relays contain information on errors, reset commands, and others of the UPM100.
The higher-level device can read/write data from/to I relays using PC link communication.
Relay No.
1Input overrange for the input full scaleR0
Relay number
Relay NameRelay Symbol
IN_OVER
Relay nameRelay symbol
Backed up at setting
Permission of read/write by communcation
An asterisk (*) in this column
indicatees that the number of
writing action is limited to 100,000.
Initial
Value
Initial value
Backup of data
Back-
R/W
up
R: Read/W: Write
7
Functions and Usage of I Relays
IM 77C01H01-10EN
7-1
7.1 Configuration of I Relays
Table 7-1 I Relay Configuration
I Rlay No.ClassificationDescription
1Error informationError regarding input overrange
10 to 15Control dataOperation control such as remote reset, etc.
101 to 164User areaCan be used freely by the user.
OtherProhibited areaCannot be used. Writing to/reading from this area is not guaranteed.
7-2
IM 77C01H01-10EN
7.2 I Relay Map
Table 7-2 I Relay Map
Relay No.Relay NameRelay Symbol
1Input overrange for the input full scaleIN_OVER0R
2–––––
3–––––
4–––––
5–––––
6–––––
7–––––
8–––––
9–––––
10Remote resetRMT RST0W
11Active energy resetWh RST0W
12Maximum/minimum values resetMAX RST0W
13Start of optional integrationWh START0W
14Stop of optional integrationWh STOP0W
15Reactive energy resetkVarh RST0W
16–––––
101User areaUSERAREA0–R/W
•
•
•
164User areaUSERAREA0–R/W
Initial
Value
•
•
•
•
•
•
Back-
up
•
•
•
•
•
•
R/W
•
•
•
7
Functions and Usage of I Relays
IM 77C01H01-10EN
7-3
Blank
PC
080101E.EPS
Chapter 8 UPM01 Communication (Original Communication Protocol)
8
UPM01 Communication (Original Communication Protocol)
8.1 Overview
The UPM01 communication protocol uses specified categories to facilitate communications
not only with the UPM01, but also with the UPM02 and the UPM03. The specified categories
that can be used by the UPM100 are A, B, C, and E (the UPM100 is not designed to handle
D).
Hereinafter, PCs are generically called “higher-level devices.”
Maximum overall cable length of 1200 m for a maximum of 31 slave stations
8
UPM01 Communication
Figure 8-1 Example of Connection for UPM01 Communication
In this setting, the UPM100 as a slave returns a response to a command of a higher-level
device (master or slave). The UPM100 does not send a command.
IM 77C01H01-10EN
8-1
8.2 Frame Configuration
The tables below show the frame configuration of commands sent from the higher-level
device to the UPM100 and that of responses sent from the UPM100 to the higher-level
device. Different elements are used for each category. For details, refer to “8.3 Functions.”
< Frame configuration of data sent from higher-level device to UPM100 >
Number
of bytes
Element
1133
FRAME
LENGTH
(FLEN)
(1)(2)(3)(4) (5)(6)(7)(8)
Control
slot P
AP
command
Address
(SA)
Variable length
(0 to 53)
DataBCCETXCR
211
< Frame configuration of data from UPM100 to higher-level device >
Number
of bytes
Element
1133Variable length211
FRAME
LENGTH
(FLEN)
Control
slot U
AP
command
(3)
Address
(SA)
DataBCCETXCR
(1) FRAME LENGTH (FLEN)
FLEN is the total number of bytes of “Control slot” + “AP Command” + “Station
Address” + “Data.” The number is a binary value, but not an ASCII code.
(2) Control Slot (P/U)
This slot determines whether the frame is a command (denoted by P) or a response
(denoted by U).
(3) AP Command
The contents differ depending on the value of the AP command (P or U).
8-2
P: Command
Number of bytes111
ElementREAD/WRITECategory (X1)Data No. (X2)
U: Response
Number of bytes111
ElementREAD/WRITECategory (X1)Status (S)
READ/WRITE
This slot indicates whether data are read (R), written (W), or re-read (F) (the UPM100
performs the same operation as R).
Category (X1)
Data are largely divided into five categories, denoted by A (measured value), B (statistical
data), C (set item), and E (user control item) (the UPM100 is not designed to handle D).
IM 77C01H01-10EN
Data No (X2)
This slot indicates a subcategory of data, which can be specified by 0 to 9 and A to Z
(different depending on the category). Data to be written and data to be read are specified.
For details, refer to “8.3 Functions.”
Status (S)
This slot is used to return the status of the UPM100 (binary value). The “S” in the response
of the AP command is converted into a binary value, so each bit has a different meaning.
Element
b7: Unauthorized command
b6: UPM100 is not designed to handle
b5: Set value error
b4: Over-ranged Q (reactive power)
b3: Over-ranged I (rms current)
b2: Over-ranged V (rms voltage)
b1: Over-ranged P (rms power)
b0: UPM100 is not designed to hand
8.2 Frame Configuration
Bitb7b6b5b4b3b2b1b0
CMD_ERR
TROUBLE VAL_ERR
OVRI_OVRV_OVRP_OVRNO_P
Note
The over-range threshold of the UPM100 (1.2 times that of the rated value) is used as the standard
specification value. The over-ranged values of reactive power and rms power are determined from
the sums of their respective measurements at all phases. Those of rms current and rms voltage are
determined from I1 and V1 measurements, respectively.
(4) Station Address (SA)
The values that can be assigned to SA are 001 to 031 (an ASCII code is sent).
(5) Data
An ASCII code or 16-bit value (binary) is used for representation. For details, refer to
“8.3 Functions.”
When the AP command indicates READ, data are set to the frame to send a response
to the higher-level device. When the AP command indicates WRITE, upon completion
of writing, the written data are read and set back to the frame, and a response is sent
to the higher-level device.
(6) BCC
The BCC slot performs the checksum function. The number of bytes of each slot
between the FRAME LENGTH slot and the Data slot is converted into a 1-byte
hexadecimal value. Then the value of each slot is summed. Each of the lower two
digits of the summed value is converted into an ASCII code to obtain 2-byte data.
8
UPM01 Communication
IM 77C01H01-10EN
8-3
8.2 Frame Configuration
Note
A string of “&H” is added to a numerical value, so that it can be recognized as a hexadecimal value.
A to F of hexadecimal values must be uppercase.
Example) For a sum in hexadecimal value, &H234: 3 → &H33 and 4 → &H34 → “BCC
Example) For a sum in hexadecimal value, &H1DF: D → &H44 and F → &H46 → “BCC
= &H33 &H34.”
= &H44 &H46.”
(7) End of Text (ETX)
This slot indicates that the next slot is the last one of the frame. Its hexadecimal value
in ASCII code is &H03.
(8) Carriage Return (CR)
This slot is the last slot of the frame. Its hexadecimal value in ASCII code is &H0D.
8-4
IM 77C01H01-10EN
8.3 Functions
This section describes the functions of commands and responses and the contents of
frames. For the meaning of each element, refer to “8.2 Frame Configuration.”
Slots between FRAME LENGTH (FLEN) and ETX as well as the CR slot are data
exchanged between the higher-level device and stations. The response status (S), the
station address (SA), and BCC do not have specific values, so the columns of these three
variables are blank in tables of this section. A data format is specified for each type of data.
8.3.1 Measured Items (Category A)
Data No.
*1
0Batch transfer (Wh, P, V, I, Q, ɳ
1Electric energy Wh
2Power P
3Voltage Vrms
4Current Irms
5Reactive power Q
6UPM100 is not designed to handle
7UPM100 is not designed to handle
8All-harmonic distortion factor
9Power P, reactive power Q
Description
*2
*2
)
*1: Data No. items in Category A.
*2: The UPM100 does not measure all-harmonic distortion factor. The measured value read out
is always “&H20,” for which no value is given (refer to Appendix, “ASCII Code Table”). The
sequence of the batch transfer is Wh, P, V, I, Q, ɳ. Each of these data has a specific data
0Time T + Average power P + Time T + Average voltage V + Time T + Average current I
1Time Tp + Minimum power P + Time Tv + Minimum voltage V + Time Ti + Minimum current I
2Time Tp + Maximum power P + Time Tv + Maximum voltage V + Time Ti + Maximum current I
* The unit of time is second. The maximum time is 5400 seconds, where the time is reset to 0.
< Command: Reading out >
Element FLEN P/U R/W X1
&H07PRB0ETX CR
Data
< Response: Reading out >
&H07PRB1ETX CR
&H07PRB2ETX CR
X2
(Data No.)
8.3 Function
SABCC ETX CR
Example
Element FLEN P/U R/W X1SSAData formatBCC ETX CR
&H34URB□□□□□±□.□□□□E±□ₓ3
Data
&H07URB□□□□□±□.□□□□E±□ₓ38ETX CR
&H07URB□□□□□±□.□□□□E±□ₓ310ETX CR
□□□□□±□.□□□□E±□ₓ3 or the like: ASCII
Time T is a lapse of time between the last data communication and the one before. Tp, Tv, and Ti
are lapses of time between the time when the maximum or minimum value of power, voltage, and
current was measured, respectively, and the time when data communication to collect its statistics
occurred.
Data
Unit
length
s,W
58ETX CR
s,V
s,A
s,W
s,V
s,A
s,W
s,V
s,A
To use Category B to send a command to read out “Time T + Average power P + Average
voltage V + Average current I”:
Station address: 01
[Command]
07505242303030314143
[Response]
8
UPM01 Communication
Time + Average power
Time + Average voltageAverage voltage
• A thin underline “_“ indicates a command. A thick underline “_“ indicates data to be read
out.
• Response data do not actually have spaces in between. Spaces are inserted in the
example above to make numbers easy to read.
• For analysis of response data, refer to Appendix, “ASCII Code Table.”
IM 77C01H01-10EN
8-7
8.3 Function
8.3.3 Set Items (Category C)
Data
No.
Description
0PT (VT) ratio1 to 600011
1CT ratio1 to 3200011
2Pulse width10 to 12701050msec
3Pulse weight1 to 5000011000Wh/pls
Possible set
value range
Unit increment
Set unit
increment upon
shipping
Unit
Note
• After writing a set value, execute reset (manual or remote). It takes about 5 seconds for
restoration after resetting.
• The UPM100 can set the value of CT ratio down to the second decimal digit. However, when the
value is read out by the UPM01 communication protocol, decimal digits are truncated.
• The UPM100 is set to measure pulse width in increments of 10 msec. The UPM01
communication protocol truncates 1-msec-digit values.
• When a value out of the set value range is entered, a set value error is set to the status of the
response, and the currently set value is set to the response and returned.
< Command: Reading out >
Element FLEN P/U R/W X1X2 (Data No.)SABCCETX CR
&H07PRC0ETX CR
Data
&H07PRC1ETX CR
&H07PRC2ETX CR
&H07PRC3ETX CR
< Command: Writing >
Element FLEN P/U R/W X1X2SAData formatBCCETX CR
&H34PWC0000001PT8ETX CR
Data
&H07PWC1000001CT8ETX CR
&H07PWC2000050MS8ETX CR
&H07PWC3001000WH8ETX CR
Data length
< Response: Reading out/Writing >
Element FLEN P/U R/W X1SSAData formatBCCETX CR
&H34UR/WC000001PT8ETX CR
Data
&H07UR/WC000001CT8ETX CR
&H07UR/WC000050MS8ETX CR
&H07UR/WC001000WH8ETX CR
Data length
8-8
IM 77C01H01-10EN
Example
0F55524310303031 3030303030315054 3546030D
080313E.EPS
0F55574310303031 3030303030325054 3635030D
080314E.EPS
8.3 Function
To use Category C to send a command to read out “PT ratio (VT ratio)”:
Station Address: 01
[Command]
07505243303030314144030D
[Response]
PT (VT) ratio
To use Category C to send a command to write 2 to “PT ratio”:
Station Address: 01
[Command]
0F5057433030303130303030303250543830030D
[Response]
PT (VT) ratio
• A thin underline “_“ indicates a command. A thick underline “_“ indicates data to be read
out.
• Response data do not actually have spaces in between. Spaces are inserted in the
example above to make numbers easy to read.
• For analysis of response data, refer to Appendix, “ASCII Code Table.”
• After writing, execute manual or remote reset. For remote reset commands, refer to the
examples in “8.3.4 User Control Items (Category E).”
8
UPM01 Communication
IM 77C01H01-10EN
8-9
8.3 Function
8.3.4 User Control Items (Category E)
Data No.Description
0Integration startNegative logic
1Statistics resetNegative logic
2Remote resetPositive logic
3Wh initializationNegative logic
4Error Status 1–
5Error Status 2–
6Error Count 2–
* The Wh initialization command is executed upon reception, after which remote reset is not
needed (same as the standard operation of the UPM100).
< Command: Reading out >
Element FLEN P/U R/W X1X2 (Data No.)SABCCETX CR
&H07PRE0ETX CR
&H07PRE1ETX CR
&H07PRE2ETX CR
Data
&H07PRE3ETX CR
&H07PRE4ETX CR
&H07PRE5ETX CR
&H07PRE6ETX CR
< Command: Writing >
Element FLEN P/U R/W X1X1SAData formatBCCETX CR
&H34PWE0&H00/ Other than &H00Integration start/stop1ETX CR
&H07PWE1&H00/ Other than &H00
&H07PWE2&H00/ Other than &H00
Data
&H07PWE3&H00/ Other than &H00
&H07PWE4&H40Refer to Error Status 11ETX CR
&H07PWE5&H18Refer to Error Status 21ETX CR
&H07PWE6&H20Refer to Error Count 21ETX CR
Description
Statistics reset/current
status retain
Current status retain/
remote reset
Wh initialization/
current status retain
Data
length
1ETX CR
1ETX CR
1ETX CR
< Command: Reading out/Writing >
Element FLEN P/U R/W X1SSAData formatBCCETX CR
&H34UR/WE&H00/ Other than &H00 "Integration start/stop1ETX CR
&H07UR/WE&H00/ Other than &H00
&H07UR/WE&H00/ Other than &H00
Data
&H07UR/WE&H00/ Other than &H00
&H07UR/WE&H40Refer to Error Status 11ETX CR
&H07UR/WE&H18Refer to Error Status 21ETX CR
&H07UR/WE&H20Refer to Error Count 2”1ETX CR
Description
Statistics reset/current
status retain
Current status retain/
remote reset
Wh initialization/
current status retain
Data
length
1ETX CR
1ETX CR
1ETX CR
8-10
IM 77C01H01-10EN
Example
0855524530303031 00 4235030D
t
080319E.EPS
[Response]
0F55574310303031 3030303030325054 3635030D
080320E.EPS
8.3 Function
To use Category E to send a command to read out “Integration start”:
Station Address: 01
[Command]
07505245303030314146030D
[Response]
Integration star
To use Category E to send a command to write “Remote reset”:
Station Address: 01
[Command]
0F5057433030303130303030303250543830030D
[Response]
PT (VT) ratio
• A thin underline “_“ indicates a command. A thick underline “_“ indicates data to be read
out.
• Response data do not actually have spaces in between. Spaces are inserted in the
example above to make numbers easy to read.
• For analysis of response data, refer to Appendix, “ASCII Code Table.”
1. Error Status 1
No response is returned when an error is detected in the data link. The detected error is
indicated on Error Status 1. If there is a station that does not return a response within the
expected time, read out the error status immediately to receive the error contents in order to
find out the details of the error.
The contents of the error are saved in Error Status 1, which is updated as an error is
detected in the data link. By setting to 1 the remote reset status or the reset switch of the
UPM100’s main body, Error Status 1 is initialized (in other words, set to &H00, which means
there are no errors).
bitErrorDescription
7Station address errorAn error in station address (the UPM100 is not designed to handle)
6Blank
5Blank
4Blank
3Control slot errorThe data in the control slot is not P/U.
2Frame length errorThe FRAME LENGTH is different from the actual length of a frame.
1Checksum errorInconsistency in checksum
0UART error
An overrun error, noise flag, or framing error is detected by the MCU
(the UPM100 is not designed to handle).
8
UPM01 Communication
IM 77C01H01-10EN
8-11
8.3 Function
2. Error Status 2, Error Count 2
A response is returned when an error is detected in the application. Error Status 2 and Error
Count 2 are updated as well. Error Count 2 counts from 0 to 255 and then goes back to 0.
By setting to 1 the remote reset status or the reset switch of the UPM100’s main body, Error
Status 2 and Error Count 2 are initialized (in other words, they are set to &H00, which means
there are no errors).
• When an unauthorized value is assigned
When VT ratio, CT ratio, pulse width, or pulse weight is set to an out-of-range value, bit5 of
the status of the response is set to 1. The current value of the data remains the same. By
reading out the status of the error immediately after its occurrence, it is possible to confirm
that bit4 of Error Status 2 in the User Controlled Items is set to 1.
• When an unauthorized command is executed
bit7 of the status of the response is set to 1. Also, one of bit0 to bit3 of Error Status 2 is set
to 1.
bitErrorDescription
7Blank
6Blank
5Blank
4Set value errorEntry of an unauthorized value was attempted.
3Memory access error
2Fetch errorFetch was attempted under a condition that is not possible.
1Write errorWriting to read-only data was attempted.
0INVALID command errorThere are invalid data in R/W, Category, or Data No.
An unauthorized access to the memory occurred
(the UPM100 is not designed to handle).
8-12
IM 77C01H01-10EN
APP01E.EPS
DEL($7F): control code
Appendix
Appendix 1 Table of ASCII Codes (Alphanumeric Codes)
In order to implement PC link communication, create a transmission/receiving program by
referring to the Table of ASCII Codes below.
0
0
0
0
0
0
0
0
0
0
1
0
1
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
0
NUL DLE
SOH DC1
STX DC2
ETX DC3
EOT DC4
ENQ NAK
ACK SYN
BEL ETB
CAN
BS
EM
HT
SUB
LF
ESC
VT
FS
FF
GS
CR
RS
SO
US
SI
b1
b2
b3
b4
b5b6b7b8
0
0
0
0
1
0
0
0
0
1
0
0
1
1
0
0
0
0
1
0
1
0
1
0
0
1
1
0
1
1
1
0
0
0
0
1
1
0
0
1
0
1
0
1
1
1
0
1
0
0
1
1
1
0
1
1
0
1
1
1
1
1
1
1
SP
%
&
0
0
1
1
1
0
3
2
0
1
!
2
“
3
#
4
$
5
6
7
‘
8
(
9
)
:
*
;
+
<
,
=
-
>
.
?
/
@
1
1
0
0
1
0
5
4
P
Q
A
R
B
S
C
T
D
U
E
V
F
W
G
X
H
Y
I
Z
J
[
K
\
L
]
M
•
N
_
O
0
0
1
1
1
1
1
0
7
6
p
`
q
a
r
b
s
c
t
d
u
e
v
f
w
g
x
h
y
i
z
j
{
k
l
}
m
~
n
DEL
o
App
Appendix
IM 77C01H01-10EN
Control codeCharacter code
Note: SP($20): space
App-1
Blank
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.