Omron KM50 Communications Manual page 28

Smart power monitor
Table of Contents

Advertisement

Example 2:
One less than the last address is specified as the read start address and
13 elements is specified (0D hex).
Read start address →
Read end address →
The number of elements exceeds the specification range, so only the data to the last
address in the area is read.
(4) Response Code
• Normal Completion
Response code
0000
• Error Completion
Response code
1001
1002
1101
1103
110B
1100
● Communications Example for Read Variable Area
Instantaneous voltage 1 was measured at 101.2 V and instantaneous voltage 2 was measured at
102.3 V. Here, these two values are read with one command.
Service Request PDU
0 1 0 1 C 0 0 0 0 4 0 0 0 0 0 2
Variable
MRC
SRC
type
Service Response PDU
0 1 0 1 0 0 0 0 0 0 0 0 0 3 F 4 0 0 0 0 0 3 F F
Response
MRC
SRC
code
The KM50 returns measurement values converted to hexadecimal without decimal points.
0000 03F4 hex = 1012 decimal
Section 3 CompoWay/F Communications Data specifies one place below the decimal point for
the set value/monitor value for instantaneous voltage 1, so the value is 101.2 V. This also applies
to instantaneous voltage 2, i.e., 0000 03FF hex = 1023 decimal, or 102.3 V.
Address
****
****
Name
Normal completion
Error name
Command too long
Command too short
Area type error
Start address
out-of-range error
Response too long
Parameter error
Read start
No. of elements (Reads two measurement values.)
Bit
address
position
Voltage 1
2. 3 Detailed Descriptions of Services
Variable area
********
← Last address
********
Description
No errors were detected.
Cause
The command is too long.
The command is too short.
The variable type is wrong.
The read start address is out of
range.
The number of elements exceeds
the maximum value.
Bit position is not 00.
Voltage 2
2-9

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents