SM1410C Us er Ma nual
http://www.sonbus.com/
Sha nghai Son
best Industrial Co., Ltd Page3
Frame type
CAN frame ID
mapping
address
function code
data length
data
Response
frame
00 00
01
03
04
08 AD 0F 7D
In the query response of the above example: 0x03 is the command number, 0x4 has 4 data, the first
data is 08 AD converted into decimal system: 2221, because the module resolution is 0.01, this The value
needs to be divided by 100, that is, the actual value is 22.21 degrees. Each data occup ies two bytes, that is,
an integer variable. The actual value needs to be divided by 100 on the basis of this value. Similarly, 0F 7D
is the second data. Its value is 3965, that is, the true value is 39.65.
2. Change Frame ID
You can use the master station to reset the node number by command. The node number ranges from
1 to 200. After resetting the node number, you must reset the system. Because the communication is in
hexadecimal format, the data in the table Both are in hexadecimal format.
For example, if the host ID is 00 00 and the sensor address is 00 01, the current node 1 is changed to
the 2nd. The communication message for changing the device ID is as follows: 01 06 0B 00 00 02.
Frame type
Frame ID
Set Address
Function id
fixed value
target frame ID
Command
00 01
01
06
0B 00
00 02
Return frame after correct setting: 01 06 01 02 61 88. The format is as shown in the table below.
Frame ID
Set Address
Function id
source frame
ID
current frame
ID
CRC16
00 00
01
06
01
02
61 88
The command will not respond correctly. The following is the command and reply message to change
the Set Address to 2.
3. Change device rate
You can use the master station to reset the device rate through commands. The range of t he rate
number is 1~15. After resetting the node number, the rate will take effect immediately. Because the
communication is in hexadecimal format, the rate in the table The numbers are in hexadecimal format.
Rate value
actual rate
rate value
actual rate
1
20kbps
2
25kbps
3
40kbps
4
50kbps
5
100kbps
6
125kbps
7
200kbps
8
250kbps
9
400kbps
A
500kbps
B
800kbps
C
1M
D
33.33kbps
E
66.66kbps
The rate not in the above range is not currently supported. If you have special requirements, you can
customize it. For example, the device rate is 250k, and the number is 08 according to the above table. To
change the rate to 40k, the number of 40k is 03, the operation communication message is as follows: 01 06
00 67 00 03 78 14, as shown in the figure below.
After the rate modification is performed, the rate will change immediately, and the device will not return
any value. At this time, the CAN acquisition device also needs to switch the corresponding rate to
communicate normally.
4. Return frame ID and rate after power-on
After the device is powered on again, the device will return the corresponding device address and rate