This document is intended to assist the user in setting up their Lexium MDrive to communicate over Modbus TCP/IP to a Maple Systems HMI using the Lexium MDrive Software Suite and Maple’s EasyBuilder 5000 software. Schneider Electric Motion has also provided an example EasyBuilder 5000 file created using version 4.65.07 of the EasyBuilder software.
- Lexium MDrive
Maple Systems HMI5070TH Modular Display w/ Lexium MDrive Communicating Modbus TCP/IP
Lexium MDrive Setup
- Locate the Lexium MDrive Software Suite for download at the below link: https://motion.schneider-electric.com/lmd/lexium-mdrive-software.php
- Once installed on your PC, open the Lexium MDrive Software Suite and select “Install Lexium MDrive Ethernet Interface”. This will install the TCP/IP utility within the Lexium MDrive Software Suite for use.
- After installing this utility, a green check mark will be placed by the new command button that states “Launch Lexium MDrive Ethernet Interface”. Select the command button with a single mouse-click. You should now see the Ethernet Interface software utility launch.
- Select “Refresh” in the upper left hand corner of the screen to insure your “Adapter (NIC)” list is current with your PC settings:
- After selecting the proper “Adapter (NIC)” IP address that your PC is set up to communicate with the Lexium MDrive in the drop down box provided, choose the “Select” button to the right of “Refresh” to solidify the selection. You should see a similar recognition as the image below:
- We now need to physically connect to the motor to insure the application protocol over Ethernet is set for Modbus TCP/IP. To do this, locate the “Connection” area in the upper right hand side of the TCP/IP utility and enter your IP address in the “Connection” box. For a first time Lexium MDrive user, all of our drives come from the factory with an IP address of 192.168.33.1. Once the IP address has been entered, choose “Connect” to the right of the “Connection” box where you entered the device IP address. You should have a similar screen as shown in Figure 3 below:
- If you are successfully connected to the LMD device you will also see confirmation in the center of the TCP/IP utility at the bottom of the screen. Figure 4 below shows a successful connection between (NIC) 192.168.33.100 and LMD device 192.168.33.1:
- We now are able to read and write values for the connected device to configure it properly in your network. For this example we are going to keep the default IP address of 192.168.33.1 and insure the Ethernet Application Protocol is set to Modbus TCP/IP. By selecting “Read All” in the center of the TCP/IP utility, you can see what has been set in the device you are working with:
- In this case, the motor has already been set to “Modbus/TCP” in the Application Protocol section, and the device IP address has been set to 192.168.33.1. If you wished to make changes, you simply would edit the proper fields, select “Write” (or “Set” for the Application Protocol), and then cycle power to the drive so the updated information can take effect in the device.
- Once you have your IP settings and Application Protocol selected, you now can proceed to the Proface GP-Pro EX software to set up your HMI to talk to the LMD device.
- Open EasyBuilder 5000 Software and create a “New” project. Once prompted, select the proper model of HMI you are using. For this application we are using the HMI5070TH display:
Once this selection has been made, EasyBuilder 5000 will open up to the “System Parameters” utility that will allow you to create, select, and edit different devices for communication with the HMI.
- In the “System Parameters” section of EasyBuilder 5000, select the “New” button in order to create a new device for the HMI to communicate with:
- The “Device Properties” box will now be active, within this utility you will setup the properties for the Lexium MDrive you are communicating with.
- First give the Device a name. In this example we are naming the device “Lexium MDrive”
- Insure you have selected “PLC” as the Device type, and given it a “Local” location
- Set the PLC Type to “Modbus TCP/IP Master”
- Set PLC I/F to “Ethernet”
- Select the “IP” settings tab and configure the IP address for the device. In this example we are using the Lexium MDrive default IP address of 192.168.33.1
- All other default settings in the Device Properties utility work fine for this example, a sample image of these settings is below:
- Once these communication settings are set, you then can begin to build your project as you see fit. The only other critical piece of information to realize when working with the Maple Systems device is that the register mapping starts at a value of “1” and we (Schneider Electric Motion) start at a value of “0”. Because of this, when working with our Modbus register map, you just need to add a value of 1 to any starting address for the register you want to access. For example, our slewing command, SL, has an address of 120 in our map. For the Maple Systems device you would want to select the starting address to be 121. See the example of this below for a “Numeric Input” device allowing the user to enter a Slew speed:
Note about Modbus registers
Also worth noting from the example above, our Modbus registers are “holding” registers and are denoted by the “4x” address type in the Maple Interface software. Our registers can be 1, 2, or 4 bytes in length. If I am reading or writing a value for run current for example, you would want to select the “16-bit Unsigned” Data format for the information to be read back or set (RC can only be a value between 1-100 in terms of percentage). If I were looking to input a slewing velocity, or read a position register, it will be much longer so the “32-bit Signed” Data format would need to be selected. If it is a longer value than it is a double word and the address type should be 4x_Double as opposed to 4x. See the numeric format for the slewing example below: