5-4
IM 77C01H01-10EN
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.
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.)
[2] Add up the byte-by-byte hex data on a byte-by-byte basis.
→ 11 + 03 + 00 + 2A + 00 + 04 = 42
[3] Find the two’s complement of the lower one byte of the data thus added up → BE
01000010 (0x42) → 10111101 (complement) + 1 = 10111110 (BE)
5.1 Overview
Summary of Contents for UPM100
Page 2: ......
Page 14: ...Blank ...
Page 58: ...Blank ...
Page 74: ...Blank ...
Page 82: ...Blank ...
Page 86: ...Blank ...
Page 100: ...Blank ...
Page 102: ...Blank ...
Page 103: ......
Page 104: ......