Connect to ACN VFD with ModbusTCP

This procedure will walk through setting up read/write communications between the LS XEM PLC and Ironhorse ACN VFD using the Modbus TCP protocol.

Modbus TCP communications is set through the Project configuration. No ladder programming is required for communications.

Step Action
1

Connect the XEM processor and drive via Ethernet. Determine the PLC internal memory addresses for use.

2

Set the Ethernet Address in the LS XEM processor. In the Project window, open Network Configuration and double-click LS PLC[B0S1 Internal FE net].

3

Add ModbusTCP communications configuration. Right-click Internal FENet. Choose Add ItemP2P Communication. Select 02 and click OK. This will create the P2P 02 configuration selections in the Project tree.

4

Set up the Channel for the Modbus TCP comms to the VFD. Double-click P2P Channel and the Channel Setting window will open. From the drop down , choose Modbus TCP Client and press Enter.

Enter the IP address of the ACN drive and select OK.

The channel is now available for selection in the P2P Block window.

5

Use the P2P Block configuration to set the Read/Write blocks to the VFD. Double-click P2P Block and the LSPLC P2P 02 Block configuration window will open. From the drop down, choose Channel 0 (created in previous step) and press Enter.

Driver Setting is automatically set to Modbus TCP Client based on the Channel 0 setup. The row will show up Red until the configuration is complete. After all the fields are completed, the red highlight will be removed, indicating the configuration is complete and accurate.

6

Set the P2P Block configuration fields.

7

Set the Modbus TCP registers to Read. Click Setting. The Variable setting box will appear. Set the Read Area to the VFD ModbusTCP register. Set the Save Area to the LS PLC internal register. Select OK.

8

Complete the Modbus TCP registers Read and Write configuration. If all data is entered correctly the row will be Grey/White. If row is Red, recheck all fields.

Note: Direct Memory Tags are required for Modbus TCP data ( M or W type is recommended).

9

(OPTIONAL) Add Descriptions to PLC memory address for ease of identifying the registers only.

  1. Open Global/Direct Variables window

  2. Choose the Direct Variable Comment tab

  3. Type the variable in the Search Window

  4. Enter Description in the “Comment” field.

Choose Show Defined Comments to filter the list to only variables with comments.

10

Write the Program to the PLC. Compile, verify no errors, and save the program.

Note: At least 1 task program must be configured or an error will occur.

Connect to the PLC. Write the program to the PLC. Verify that P2P 02 is enabled. Run the program and Communications will be active.

 

 

 

 

 

 

 

 

 

 

 

LP204