How to send Modbus Control commands to slave devices via TrackSo Data Logger

You are here:
← All Topics
Note:
1) Below guide is only applicable for following Data Logger Model No.s-WT805 MI (discontinued), WT405M, WT400M, WT410M, WT420M
2) Only method of sending command and getting response to the logger is via SMS and hence you require a simcard with facility to recieve and send SMS
3) It should be used only in applications where response time is not of very much consideration.
4) User needs to have basic understanding of what is Modbus & how Modbus works before using these commands. Sending wrong commands can trigger wrong actions on the salve end.

Modbus commands can be executed by sending them in following sms command

*2222#<DEVCMD: MBCMD=XXXXXXXXXXXXXXXX >

where XXXXXXXXXXXXXXXX is modbus command which you wish to send with CRC modified to 0000

Note: SMS command is case sensitive

Some FAQ’s

1) On which number i should send these SMS commands ? – On the simcard which is present in the Data Logger. Data logger only pass on the modbus command by appending with right CRC code and get it executed on Modbus and reply you with the Modbus Response.

2) What happens when SMS is not delivered ? – If SMS is not delivered then command has not reached the Data Logger.

3) I have sent the Modbus command but didnt get intended action performed– Data Logger only send and share response of the Modbus Commands sent by you. Final execution depends on the Slave. Interpret the Modbus Response and find what slave has to inform or confirm.

4) I dont know how to write a Modbus Command- If you wish to send any control commands then its a must to first Learn what is Modbus and how to create Modbus command. We suggest not to use Control functionality until and unless you know whats Modbus and how it functions. Invest time in  learning about Modbus and getting comfortable with it before using these.

Sample Commands & Examples

Below accordions contains some sample commands and responses to make you understand the Modbus Commands exectuion via SMS. You can similary execute any modbus command via sending it via SMS.

Sungrow PV Inverter SG50KTL-M Start/Stop Command

Below command was tested on SG50KTL-M. Kindly verify with the modbus sheet before exectuing on any Sungrow PV Inverter.

Sungrow PV Inverter Sample register for Modbus Control/Write Command Testing

 

SMS Command to STOP Inverter  Functioning
SMS Command to STOP

*2222#<DEVCMD: MBCMD=0106138D00CE0000 >

where
01- Slave Id
06-Modbus Write
138D- Register no. 5006 in Hex
00CE- Value in hex to STOP
0000- update CRC to 0000 while sending as SMS command

Response-1 confirming command is being executed WT GW-MODBUS
Respons-2 Response from Slave REPLY: 0106138D00CE9CF1
SMS Command to START Inverter Functioning
Command to START

*2222#<DEVCMD: MBCMD=0106138D00CF0000 >

where
01- Slave Id
06-Modbus Write
138D- Register no. 5006 in Hex
00CF Value in Hex to START
0000- update CRC to 0000 while sending as SMS command

Response-1 confirming command is being executed WT GW-MODBUS
Respons-2 Response from Slave REPLY: 0106138D00CF5D31

Below is the sample testing of the same :

 

Delta RPI Series PV Inverter Power Control

Below command was tested on Delta M70A_260 Kindly verify with the modbus sheet before exectuing on any Delta RPI Series

Delta RPI Series Sample register for Modbus Control/Write Command Testing

 

SMS Command to enable Power Control
Command to enable Power Control

*2222#<DEVCMD: MBCMD=0106BD7F00010000 >

where
01- Slave Id
06-Modbus Write
BD7F- Register no. 48512 in Hex
0001- value in Hex to Enable
0000- update CRC to 0000 while sending a SMS command

Response-1 confirming command is being executed WT GW-MODBUS
Respons-2 Response from Slave REPLY: 0106BD7F00015DBE
SMS Command to set power output to 0% of rated capacity
Command to set power output to 0% of rated capacity

*2222#<DEVCMD: MBCMD=0106BD8000000000 >

where
01- Slave Id
06-Modbus Write
BD80- Register no. 48513 in Hex
0000 value in Hex to set 0%
0000- update CRC to 0000 while sending a SMS command

Response-1 confirming command is being executed WT GW-MODBUS
Respons-2 Response from Slave REPLY: 0106BD800000AC4E
SMS Command to set power output to 100% of rated capacity
Command to set power output to 100% of rated capacity

*2222#<DEVCMD: MBCMD=0106BD8000640000 >

where
01- Slave Id
06-Modbus Write
BD80- Register no. 48513 in Hex
0064 – value in Hex to set 100%
0000- update CRC to 0000 while sending a SMS command

Response-1 confirming command is being executed WT GW-MODBUS
Respons-2 Response from Slave REPLY: 0106BD800064ADA5

Below is the sample testing of the same :

 

 

SMA Solid Q50-60 PV Inverter Power Control

SMS Command to set power output to 0% of rated capacity
SMS Command to STOP

*2222#<DEVCMD: MBCMD=030613A500000000 >

where
03- Slave Id
06-Modbus Write
13A5- Register no. 5029 in Hex
0000- value in Hex to set 0%
0000- update CRC to 0000 while sending as SMS command

Response-1 confirming command is being executed WT GW-MODBUS
Respons-2 Response from Slave REPLY: 030613A500009CBF
SMS Command to set power output to 100% of rated capacity
Command to START

*2222#<DEVCMD: MBCMD=030613A500640000 >

where
03- Slave Id
06-Modbus Write
13A5- Register no. 5029 in Hex
0064 value in Hex to set 100%
0000- update CRC to 0000 while sending as SMS command

Response-1 confirming command is being executed WT GW-MODBUS
Respons-2 Response from Slave REPLY: 030613A500649D 64

 

Crompton Drive Start/Stop Commands

Crompton VFD Sample register for Modbus Control/Write Command Testing

 

SMS Command to Stop
Command to Stop

*2222#<DEVCMD: MBCMD=0106200000050000 >

01- Slave Id
06-Modbus Write
2000- address to write
0005- Value in hex to Stop
0000- Blank CRC for sending the command

Response-1 confirming command is being executed WT GW-MODBUS
Respons-2 Response from Slave REPLY: 0106200000054209
SMS Command to Start
Command to Start

*2222#<DEVCMD: MBCMD=0106200000010000 >

01- Slave Id
06-Modbus Write
2000- address to write
0001- Value in hex to Start
0000- Blank CRC for sending command

 

Response-1 confirming command is being executed WT GW-MODBUS
Respons-2 Response from Slave REPLY: 01062000000143CA

 

Fuji Drive Start/Stop Commands

FUJI VFD Sample register for Modbus Control/Write Command Testing

  Group Address (in Dec)
1..Vfd ON/OFF Command S06 41799
SMS Command to Stop
Command to Stop

*2222#<DEVCMD:MBCMD=0106070600000000>

01- Slave Id
06-Modbus Write
0706- address to write
0000- Value in hex to Stop
0000- Blank CRC for sending the command

Response-1 confirming command is being executed WT GW-MODBUS
Respons-2 Response from Slave REPLY: 01060706000068BF
SMS Command to Start
Command to Start

*2222#<DEVCMD:MBCMD=0106070600010000>

01- Slave Id
06-Modbus Write
0706- address to write
0001- Value in hex to Stop
0000- Blank CRC for sending the command

Response-1 confirming command is being executed WT GW-MODBUS
Respons-2 Response from Slave REPLY: 010607060001A97F