Website:-www.bholanath.in
E-mail id:-support@bholanath.in
19
Note : R- Read Only, W- Write Only, WR- Write read Both.
CONNECT/DISCONNECT COMMAND :
This command is used to connect device to Modbus. For 0x00 disconnect and for 0x01 connect.
Slave Address
Function Code
Holding ADDR
Data
0x01
0x06
0x00
0x00 or 0x01
Command: 01, 06, 00,00,00,01
01 -> Slave Address
06* -> Function Code
00* -> Holding Register Address(LSB)
00* -> Holding Register Address(MSB)
00, 01 -> Connect to device op-code
(* indicates these values are fixed
)
Response: 01, 06, 00,00,00,01
SLAVE ADDRESS:
The following command is used to change the slave address (Device ID).
In this for Broadcast id 0 (Zero) used to send command to all devices connected over
MODBUS. It has limitation that for broadcast address there will be no any response. So PC
application does get any information about device that device is connected or not.
In broadcast mode we can’t send some parameter which are definite for particular
device like Micro-steps, current, Gear ratio etc.