
CHAPTER 2: RS485 INTERFACE (MODBUS RTU)
PERFORMING COMMANDS USING FUNCTION CODE 10H
MM200 MOTOR MANAGEMENT SYSTEM – COMMUNICATIONS GUIDE
2-25
Performing Commands Using Function Code 10H
Commands can be performed using function code 16 as well as function code 5. When
using FUNCTION CODE 16, the Command Function register must be written with a value of
5. The Command Operation register must be written with a valid command operation
number. The Command Data registers must be written with valid data; this is dependent
upon the command operation.
For example, consider a request for slave 17 to perform command operation 1 (RESET): The
master/slave packets have the following format:
Table 2-9: MASTER/SLAVE PACKET FORMAT FOR PERFORMING COMMANDS
Bit 1
Thermal Inhibit
Bit 2
AutoMode
Bit 3
Manual Mode
Bit 4
AutoManualMode
Bit 8
Forward Limit
Bit 9
Reverse Limit
Bit 15
Comms Ctrl Active
Bit 16
Hard Wired Ctrl Active
Bit 17
Field Ctrl Active
Bit 18
MCC Ctrl Active
Code
Type
Definition
MASTER TRANSMISSION
BYTES
EXAMPLE
DESCRIPTION
SLAVE ADDRESS
1
11
message for slave 17
FUNCTION CODE
1
10
store multiple
setpoints
DATA STARTING ADDRESS
2
00 80
setpoint address 00
80
NUMBER OF SETPOINTS
2
00 02
2 setpoints = 4 bytes
total
BYTE COUNT
1
04
4 bytes of data
DATA 1
2
00 05
data for address 00
80
DATA 2
2
00 01
data for address 00
81
CRC
2
7E CE
CRC error code
SLAVE RESPONSE
BYTES
EXAMPLE
DESCRIPTION
SLAVE ADDRESS
1
11
message from slave
17
FUNCTION CODE
1
10
store multiple
setpoints
DATA STARTING ADDRESS
2
00 80
setpoint address 00
80
NUMBER OF SETPOINTS
2
00 02
2 setpoints
CRC
2
42 B0
CRC error code
Содержание MM200
Страница 4: ...MM200 MOTOR MANAGEMENT SYSTEM COMMUNICATIONS GUIDE ...
Страница 8: ...1 2 MM200 MOTOR MANAGEMENT SYSTEM COMMUNICATIONS GUIDE CHAPTER 1 COMMUNICATIONS INTERFACES ...
Страница 92: ...3 58 MM200 MOTOR MANAGEMENT SYSTEM COMMUNICATIONS GUIDE DEVICENET PROTOCOL CHAPTER 3 FIELDBUS INTERFACE ...