Ver.3− − − − 76
Example 2-3: As same as the Query in example 2-1, this query sets 3000sec to Acceleration time (1) (F002,
register number = 1103h). But the data resolution of this Holding register is 0.01sec, so the data to be
written is 300000d = 000493E0h.
Compared with Example 2-1 in which Big Endian is used, this Special Endian example swaps data in high
order (2bytes) and low order (2 bytes).
Query:
No
1
Slave address
2
Function code
3
Start address (high byte)
4
Start address (low byte)
5
Number of holding
registers (high byte)
6
Number of holding
registers (low byte)
7
Byte number
8
Change data 1 (high byte)
9
Change data 1 (low byte)
10
Change data 2 (high byte)
11
Change data 2 (low byte)
12
CRC-16 (high byte)
13
CRC-16 (low byte)
Notice the data from eighth to eleventh.
Write data (Change data 1, 2) are subject to the Endian function.
(As for the data arrangements of Special Endian, please refer to "[2] How data are arranged by each
endian.")
Field Name
Example
(Hex)
01
10
11
Register address value = Register
02
Number - 1
00
02
04
93
Subject to Endian function :
E0
Write Data : 0 00493E0h
00
04
9F
57