NB With CP1L-EM(FINS/UDP) And SMC-EX250(Modbus/TCP) IntroductionThis article is related to the article NB HMI and Connecting Peripheral Devices and explains how connection can be established with a CP1L-EM (FINS/UDP) and a SMC-EX250-SEN1-X133 Solenoid Valve using Ethernet (Modbus/TCP). Note: This example is setup within the IP address range of the SMC (192.168.1.1 to 192.168.1.62).
Content1. Connecting Method
1. Connecting MethodsEthernet (FINS/UDP)
2. Wiring diagramIn order to avoid malfunctions caused by interferences, use shielded cables.
3. HMI Attribute settingsStart NB-designer, create a new program, drag and drop the NB (*TW001) and one Omron CP Series Ethernet (UDP Slave) and one Modbus TCP/Slave on the “Project Structure Window”. Double click on the NB in the “Project Structure Window” to open the HMI Attribute.
4. PLC Attribute and PLC settings (PLC0)Double click on the CP(PLC0) in the “Project Structure Window” to open the PLC Attribute. Set the IP address to (192.168.1.2), Port (9600) and the Node ID to (2) in the PLC tab.
Start CX-Programmer, create a new program and select a CP1L-EM. Open the Settings properties. Select the Build-in Ethernet tab.
5. PLC Attribute and PLC settings (PLC1)In NB-Designer double click on the Modbus TCP Slave (PLC1) in the “Project Structure Window” to open the PLC Attribute. Set the IP address to (192.168.1.10), Port (502) and the Station No to (10) in the PLC tab.
Set the Node Address Setting Switch at the front of the SMC to (10).
6. HMI and PLC Network settingsDouble click on the NB in the “Project Structure Window” to open the HMI Attribute.
Add a Device, set Device Type to (HMI), Device No. (HMI0), IP Address (192.168.1.1), Port Num: (9600), Comm Protocol (OMRON CP Series Ethernet UDP) and Node ID to (1).
Add a Device, set Device Type to (PLC), Device No. (PLC0), IP Address (192.168.1.2), Port Num: (9600) and Node ID to (2).
Add a second Master Device, set Device Type to (HMI), Device No. (HMI0), IP Address (192.168.1.1), Port Num: (502), Comm Protocol (Modbus TCP).
Add a Device, set Device Type to (PLC), Device No. (PLC1), IP Address (192.168.1.10), Port Num: (502) and Station NO to (10). Save, compile and download the NB program and CX-Programmer settings to the units and restart all.
7. Example programAttached file: Example program for a NB7W-TW01B with one CP1L-EM(PLC0) and one SMC-EX250-SEN1-X133(PLC1) screen for Read/Write data to the CP1L/SMC through Ethernet and a NB Setup screen to Adjust settings like Date, Time, Buzzer, Screen Saver, Brightness adjust and Calibrate screen. For the CP1L-EM there is a CX-Programmer file with the Communication settings for the Build-in Ethernet port. Reference:CP1L Operation Manual (Cat. No. W462) Programmable Terminals Host Connection Manual (Cat. No. V108) NB-series Manuals (included in NB-designer) Program versions: NB-Designer version 1.23 and CX-Programmer version 9.4 Link: |
Comments | ||
|