Website:-www.bholanath.in
E-mail id:[email protected]
26
Slave Address
Function Code
Holding ADDR
Op-Code
01
06
0x25
0A
Command: 01, 06, 00, 25, 00,0A
01 -> Slave Address
06* -> Function Code
00* -> LSB Address of Holding Register
25* -> MSB Address of Holding Register
00, 0A* -> Op-code for
SET_DEFAULT_PROGRAM
(* indicates these values are
fixed
)
Response: 01, 06, 00, 25, 00,0A
16.Multiple register Write (commands):
These commands are used in Manual Mode.
Address(1
Byte)
Address(1
Byte)
Register
Number of Register
Default
Value
Range in
Value of
Register
(Decimal 0 to
255)
(hex)(0 to FF)
(each Register is 16
bit)
(hex)
Decimal
for
configuration
37
0x25
MB_RUN_CMD
5
0x0000
Speed: 20 bit
value
DIR: 1= FW
Speed unit:
0=REV
step/tick
37
0x25
MB_MOVE_CMD
5
0x0000
No of Step: 22
bit,
Speed unit:
Speed:20 bit
DIR:
1FW,0=REV
step/tick
37
0x25
MB_GO_HOME_CMD
5
0x0000
Speed:20
Speed unit:
bit
step/tick