Application note
Integrated Modbus support
AN00198
ABB Motion control products
17
new.abb.com/motion
NextMove e100 and ESB-2 Modbus configuration
These products are only capable of operating as Modbus Servers. Both products support Modbus RTU, only NextMove e100
supports Modbus TCP.
The Mint keyword ModbusParameter allows configuration of:
•
Modbus enable/disable
•
Register mapping (to comms or netdata locations)
•
Byte order
•
Word order
•
Diagnostics
Configuration
All Modbus parameters are configured via a Mint keyword
– ModbusParameter.
Before enabling Modbus operation it is necessary to set the correct byte and word order to suit the connected Modbus Client
(Client) and to configure how Modbus registers in the received data packets are mapped to internal data areas in the NextMove
controller.
value = ModbusParameter (bus, index)
ModbusParameter (bus, index) = value
Mint pre-defined constant values for bus are:
_busETHERNET
5
For Modbus TCP parameters
_busSERIAL1
6
For Modbus RTU parameters
Mint pre-defined constant values for index are:
_mpENABLE
0
0 = Disabled, 1 = Enabled
_mpREGISTER_MAPPING
1
0 = NetData array (e100 default), 1 = Comms array (ESB-2 default)
_mpBYTE_ORDER
2
0 = Big Endian (default), 1 = Little Endian
_mpWORD_ORDER 3
0 = Big Endian (default), 1 = Little Endian
_mpDROPPED_FRAMES 6
Read only counter of number of invalid packets received
_mpDEBUG
7
Parameter used to display Modbus diagnostics
Mint pre-defined constant values for _mpREGISTER_MAPPING are:
_rmNET_DATA
0
To access netinteger / netfloat data
_rmCOMMS_ARRAY
1
To access commsinteger / comms data
NextMove ESB-2 is only provided with Comms array data so attempting to configure a Netdata register mapping on this
controller will result in a ‘Data Out of Range’ error.
The default byte and word orders are configured to match the requirements for communication with other ABB Motion, PLC and
HMI products. Some third party Modbus products tend to use little endian word order so when using a third party Client it may
be necessary to
include…ModbusParameter (bus, _mpWORD_ORDER) = 1…in the Mint Startup block code.
The following baud rates are supported on all controllers:
•
19200
•
38400
•
57600
•
115200