Parameter
structure
Keypad and
display
Parameter x.00
Parameter
description format
Advanced parameter
descriptions
Macros
Serial comms
protocol
Electronic
nameplate
Performance
RFC mode
404
Unidrive SP Advanced User Guide
www.controltechniques.com Issue Number: 10
7.2.1 MODBUS RTU
Physical layer
* The drive will accept a packet with 1 or 2 stop bits but will always transmit 2 stop bits
RTU framing
The frame has the following basic format
The frame is terminated with a minimum silent period of 3.5 character
times (for example, at 19200 baud the minimum silent period is 2ms).
Nodes use the terminating silence period to detect the end of frame and
begin frame processing. All frames must therefore be transmitted as a
continuous stream without any gaps greater or equal to the silence
period. If an erroneous gap is inserted then receiving nodes may start
frame processing early in which case the CRC will fail and the frame will
be discarded.
MODBUS RTU is a master slave system. All master requests, except
broadcast requests, will lead to a response from an individual slave. The
slave will respond (i.e. start transmitting the response) within the quoted
maximum slave response time (this time is quoted in the data sheet for
all Control Techniques products). The minimum slave response time is
also quoted but will never be less that the minimum silent period defined
by 3.5 character times.
If the master request was a broadcast request then the master may
transmit a new request once the maximum slave response time has
expired.
The master must implement a message time out to handle transmission
errors. This time out period must be set to the maximum slave response
time + transmission time for the response.
7.2.2 Slave address
The first byte of the frame is the slave node address. Valid slave node
addresses are 1 through 247 decimal. In the master request this byte
indicates the target slave node; in the slave response this byte indicates
the address of the slave sending the response.
Global addressing
Address zero addresses all slave nodes on the network. Slave nodes
suppress the response messages for broadcast requests.
7.2.3 MODBUS registers
The MODBUS register address range is 16bit (65536 registers) which at
the protocol level is represented by indexes 0 through 65535.
PLC registers
Modicon PLCs typically define 4 register 'files' each containing 65536
registers. Traditionally, the registers are referenced 1 through 65536
rather than 0 through 65535. The register address is therefore
decremented on the master device before passing to the protocol.
The register file type code is NOT transmitted by MODBUS and all
register files can be considered to map onto a single register address
space. However, specific function codes are defined in MODBUS to
support access to the "coil" registers.
All standard CT drive parameters are mapped to register file '4' and the
coil function codes are not required.
CT parameter mapping
All CT products are parameterized using the #menu.param notation.
Indexes 'menu' and 'param' are in the range 0 through 99. The
#menu.param is mapped into the MODBUS register space as menu*100
+ param.
Attribute
Description
Normal physical layer for multi-drop operation
EIA485 2 wire
Bit stream
Standard UART asynchronous symbols with Non Return to Zero (NRZ)
Symbol
Each symbol consists of:-
1 start bit
8 data bits (transmitted least significant bit first)
2 stop bits*
Baud rates
300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200
Message data
SLAVE
ADDRESS
16bit CRC
message data
FUNCTION
CODE
Silent
interval
Master request
Time
frame detect
Slave frame
processing
Slave response
Slave response time
Master request
New master request
can start here
minimum silence
period
minimum silence
period
File type
Description
1
Read only bits ("coil")
2
Read / write bits ("coil")
3
Read only 16bit register
4
Read / write 16bit register
Summary of Contents for unidrive sp
Page 419: ......
Page 420: ...0471 0002 10 ...