NB With CP1L Through COM1/RS232(Host Link) And MX2 (2pcs) Through COM2/RS485(Modbus RTU) IntroductionThis article is related to the article NB HMI and Connecting Peripheral Devices and explains how connection can be established with a CP1L (CP1W-01) using Host Link (RS232C) and two MX2 Inverters using Modbus RTU.
Content1. Connecting Method
1. Connecting MethodsHost Link (RS232C) Modbus RTU (RS485) Start NB-designer, create a new program, drag and drop the NB, the CP1L and the two Modbus RTU’s on the “Project Structure Window”. Connect with the Serial connection line the CP1L’s to the COM1 port of the NB. Connect with the Serial connection line the Modbus RTU’s to the COM2 port of the NB.
2. Wiring diagram
NB pin 2 (SD) to CP1L (CP1W-CIF01) pin 3 (RD) (Default cable: XW2Z-200T or XW2Z-500T) In order to avoid malfunctions caused by interferences, shield the cables properly. COM2 Wiring diagram NB pin 6 (RDB+) to 1e and 2e MX2 (SP) Set the Resistor switch at the last MX2 in the RS485 Network. In order to avoid malfunctions caused by interferences, shield the cables properly.
3. HMI Attribute settingsDouble click on the NB in the “Project Structure Window” to open the HMI Attribute. Select the ‘COM2 Settings’ tab and set the Modbus RTU Communication settings to Type (RS485), Baud Rate (115200), Data Bit (8), Parity Check (Even) and Stop Bit to (1).
4. PLC Attribute and PLC settings (PLC0)Double click on the CP1 in the “Project Structure Window” to open the PLC Attribute. Start CX-Programmer, create a new program and select a CP1L. Open the Settings properties. Select the Serial Port 1 or Port 2 tab where CP1W-CIF01 is mounted.
5. PLC Attribute and MX2 settings (PLC1)In NB-Designer, double click on the Modbus RTU (PLC1) in the “Project Structure Window” to open the PLC Attribute. Start CX-Drive, create a new program and select a MX2. Initialize the MX2 and set the motor values. Go to the ‘Basic Settings’ and set parameter A001 and A002 both to 3 (Modbus). In the ‘Communication’ selection set the parameters C071 to 10 (115200), C072 to 1 (Station No), C074 to 1 (Even parity), C076 to 4 (Deceleration and stopping the motor) and C077 to 2.00 (Communication Error Timeout Time).
6. PLC Attribute and MX2 settings (PLC2)In NB-Designer, double click on the Modbus RTU (PLC2) in the “Project Structure Window” to open the PLC Attribute. Start CX-Drive, create a second new program and select a MX2. Initialize the MX2 and set the motor values. Go to the ‘Basic Settings’ and set parameter A001 and A002 both to 3 (Modbus). In the ‘Communication’ selection set the parameters C071 to 10 (115200), C072 to 2 (Station No), C074 to 1 (Even parity), C076 to 4 (Deceleration and stopping the motor) and C077 to 2.00 (Communication Error Timeout Time). Save, compile and download the NB program, CX-Programmer and CX-Drive settings to the units and restart all.
7. Example programAttached file: Example program for a NB7W-TW00B with a CP1L(PLC0) screen for Read/Write data to the CP1L through Host Link (RS232C). Two MX2 screens for send and receive data from the Inverters through Modbus RTU. And a NB Setup screen to Adjust settings like Date, Time, Buzzer, Screen Saver, Brightness adjust and Calibrate screen. For the CP1L-M there is a CX-Programmer file with the Communication settings for Serial Port 1 and for the MX2’s there are CX-Drive file’s with the Communication settings (default motor parameters). Reference:CP1L Operation Manual (Cat. No. W462) NB-series Manuals (included in NB-designer) Program versions: NB-Designer version 1.23 and CX-Programmer version 9.4
To learn more about a CP1 PLC and MX2 inverter drive control solution on a real pack stacking machine, visit the packaging customer reference site below. industrial.omron.eu/converging_solutions
Link: |
Comments | ||
|