l-com SRWQ100-YL105-9001 User Manual page 7

Table of Contents

Advertisement

Write Floating Point Number
Host Computer Transmission Format:
ID
Func-
tion
Code
Eg:
0x01
0x10
Write
Value
Offset
Slave Computer Response Format:
ID
Address
Eg: Return
0x01
Value Offset
Note: The measured value if offset by 1.00, floating point number 1.00 coverts to
hexadecimal 0X3F800000, transpose the high and low positions 0X00003F80 and write
0X0012.
Write Integer
Host Computer Transmission Format:
ID
Ad-
dress
Eg: Write
0x01
Device
Address
Slave Computer Response Format:
ID
Ad-
dress
Eg: Device
0x01
Return
Address
Note: Change the local computer address 1 to address 2 and write the hexadecimal
number 0X00 02 into register 0X00 19.
Register
Qty. Of
Start
Registers
Address
High
Low
High
Low
Byte
Byte
Byte
Byte
0x00 0x12 0x00 0x02 0x04
Function
Register Start
Code
Address
High
Byte
0x13
0x00
Func-
Register Start
tion
Address
Code
High
Low
Byte
Byte
0x06
0x00
0x19
Func-
Register Start
tion
Address
Code
High
Low
Byte
Byte
0x06
0x00
0x19
Qty
Register Data in
Of
Hexadecimal Floating
Byte
Point Number
C
D
0x
0x
0x
00
00
3F
Qty. Of
Registers
Low
High
Low
Byte
Byte
Byte
0x12
0x00
0x02
Register Data in
Hexadecimal Integer
A
B
0x00
0x02
Register Data in
Hexadecimal Integer
A
B
0x00
0x02
7
CRC16
A
B
High
Low
Byte
Byte
0x
0x2A 0x63
80
CRC16
High
Low
Byte
Byte
0xCD
0xE1
CRC16
High
Low
Byte
Byte
0xCC
0xD9
CRC16
High
Low
Byte
Byte
0xCC
0xD9

Advertisement

Table of Contents
loading

Table of Contents