Configuration Of Messages - YOKOGAWA UTAdvanced Series User Manual

Communication interface (rs-485, ethernet)
Table of Contents

Advertisement

3.1.2

Configuration of Messages

Element
Number of bytes in RTU mode
Number of bytes in ASCII
mode
IM 05P07A01-01EN
The structure of messages sent to the UTAdvanced from the host computer is as follows:
(1)
(2)
Message start
Address No
mark
(ADR)
None
1
1
2
(1) Message start mark
This indicates the start of the message. A colon (:) is required only in the ASCII mode.
(2) Address No. (01 to 99)
This No. is for enabling the host computer to identify the UTAdvanced at the
communication destination.
(Individual UTAdvanced ID numbers are expressed in Hex in messages.)
(3) Function code (See "3.1.5 Messages and Responses.")
The instruction (function code) from the host computer is specified.
(4) Data
The D register / I relay numbers, number of D registers / I relays, parameter values,
etc. are specified according to the function code. (These are expressed in Hex in
messages.)
Writing to string parameters is set in the word unit to enable writing to be performed.
However, although the string length of each string parameter is fixed, once 0x00 is
written, 0x00 is consistently written in the subsequent strings, but not displayed in the
indicator.
Example:
Content of D
Condition
register n
Status before writing
12 (0x3132)
to string parameter
Status after writing
12 (0x3132)
to string parameter
(5) Error check
In the RTU mode, errors are checked by the cyclic redundancy check (CRC-16).
In the ASCII mode, errors are checked by the longitudinal redundancy check (LRC).
(6) Message end mark
This indicates the end of the message. "CR" and "LF" are required only in the ASCII
mode.
 Message format for communication
Example: When setting the target setpoint "50.00," the host computer sends the value
"1388" as message data which is a hexadecimal value of "5000" (50.00 excluding
the decimal point) (this is also true for setting 5.000 or 500.0).
Message data to be sent from the host computer: 1388 (hexadecimal value of 5000)
Message data: 1388
UTAdvanced side
* The UTAdvanced determine the decimal point position for "5000" by
the decimal point position parameter setting (in this case, P.DP = 2).
3.1 Modbus Communication
(3)
(4)
Function code
Data
2n (variable
1
length)
4n (variable
2
length)
Content of D
Content of D
register n+1
register n+2
34 (0x3334)
56 (0x3536)
3 (0x3300)
(0x0000)
Response data from
UTAdvanced : 1388
Target setpoint: 50.00
(5)
(6)
Message end
Error check
mark
2
None
2
2
Content of D
Display data
register n+3
(0x0000)
12345678
(0x0000)
123
3-3
3

Advertisement

Table of Contents
loading

Table of Contents