Using CP1 Control For MX2 Inverter Drives
This document describes the procedure to configure and connect a CP1L-M30 PLC to an MX2 inverter drive for simple motion control. This example is intended for a new CP1/MX2 user and illustrates easy programming and configuration for simple inverter motion control of a new system.
To learn more about a CP1 PLC and MX2 inverter drive control solution on a real pack stacking machine, click the link below.
This document contains the following sections:
The example provided below uses the CP1L-M30 PLC with a CP1W-CIF11 installed in the rightmost option board position (slot 2). The PLC uses the CP1W-CIF11 serial option module to communicate with the MX2 inverter using the Modbus protocol for functions such as start/stop, speed control, status monitoring and error reset. Up to 31 inverters may be connected to a Modbus "master" (the CP1 in this example) using an unshielded, twisted-pair cable.
A basic CX-Programmer project is provided and detailed for this tutorial. Typically, an HMI or other external user input device is needed for real application, but this tutorial does not cover such detail and only includes simplified programming for trial operation.
WIRING CONNECTIONS AND SETTINGS
The MX2 inverter will be controlled entirely by MODBUS commands over the RS485 serial communication link (to the CP1L PLC), so no I/O wiring is required. The communication wiring should connect the ‘SN’ and ‘SP’ terminals of the MX2 and the screw terminals of the CP1W-CIF11 RS422/485 communications option module, fitted in the right-hand slot of the CP1L PLC. Use the following steps to connect the CP1W-CIF11 to the MX2 inverter.
DIP Switch Settings
1. Set the DIP switch to ON (to the right) for the MX2 termination resistor. This switch is labeled as MD SW1 and its location is shown below.
2. Set the DIP switches on the rear of the CP1W-CIF11 unit according to the diagram below.
3. Connect the MX2 terminal labeled "SN" to the CP1W-CIF11 terminal labeled "RDA-".
4. Connect the MX2 terminal labeled "SP" to the CP1W-CIF11 terminal labeled "RDA+".
By default, the MX2 is set to accept speed reference and run command signals from the built-in front panel keypad and external digital input signals. In order for the MX2 to be controlled entirely over Modbus, the following parameters (A0001 and A0002 in bold, below) must be changed. Please be sure to cycle the power to the inverter after changing these parameters in order for the new settings to take effect. The sample CX-Programmer project uses Modbus settings of 9,600bps (baud rate), 8 data bits, 1 stop bit and no parity, and also assumes that the MX2 has a node number (network address) of 1. Therefore, no other parameters need to be changed from the defaults, as they already match these settings.
Please refer to section 2-5 of the MX2 User’s Manual (Cat. No. I570-E2-01) if you are unfamiliar with the operation of the front panel keypad.
Transferring the included CX-Programmer project will configure the PLC with the appropriate serial option port 2 custom communication settings of 9600 baud, 8,1,N format in Serial Gateway mode.
The included PLC Program is completely documented for an easy understanding of functionality and operation. This program incorporates a Function Block that provides control and status monitoring of the MX2 using the Modbus protocol. More information about the operation of the Function block can be found in the article Refresh-FB for Modbus communication CJ/CS with SCU or CP1 to MX2 and JX/MX-inverter.