Chapter 5 Parameters
|
VFD-B Series
5-86
Revision July 2008, BE16, SW V4.08 & V5.00
06H: write single register
08H: loop detection
10H: write multiple registers
The available function codes and examples for VFD-B are described as follows:
(1) 03H: multi read, read data from registers.
Example: reading continuous 2 data from register address 2102H, AMD address is 01H.
ASCII mode:
Command message:
Response
message:
STX ‘:’
STX ‘:’
‘0’
‘0’
Address
‘1’
Address
‘1’
‘0’
‘0’
Function
‘3’
Function
‘3’
‘2’
‘0’
‘1’
Number of data
(Count by byte)
‘4’
‘0’
‘1’
Starting data
address
‘2’
‘7’
‘0’
‘7’
‘0’
Content of starting
address
2102H
‘0’
‘0’
‘0’
Number of data
(count by word)
‘2’
‘0’
‘D’
‘0’
LRC Check
‘7’
Content of address
2103H
‘0’
CR
‘7’
END
LF
LRC Check
‘1’
CR
END
LF
RTU mode:
Command message:
Response message:
Address 01H
Address 01H
Function 03H
Function 03H
21H
Starting data
address
02H
Number of data
(count by byte)
04H
00H
17H
Number of data
(count by word)
02H
Content of address
2102H
70H
CRC CHK Low
6FH
00H
CRC CHK High
F7H
Content of address
2103H
00H
CRC CHK Low
FEH
CRC CHK High
5CH
(2) 06H: single write, write single data to register.
Example: writing data 6000(1770H) to register 0100H. AMD address is 01H.