7. Serial Communications Connection Procedure
7.3. Setting up PLC
7.2.1. Hardware Settings Set the hardware switches on Inverter and connect the cables.
↓
7.2.2. Parameter Settings Set the parameters for Inverter.
↓
7.3. Setting up PLC Set up PLC.
↓
7.3.1. Hardware Settings Set the hardware switches on Serial Communications Unit and connect the cables.
↓
7.3.2. Opening the Project File and Connecting Online with PLC
Start CX-Programmer, open the project file, and connect online with PLC.
↓
7.3.3. Creating the I/O Table Create the I/O table for PLC.
↓
7.3.4. Parameter Settings Set the parameters for Serial Communications Unit.
↓
7.3.5. Transferring the Project Data Transfer the project data to PLC.
7.2. Setting up Inverter
Set up Inverter.
7.2.1. Hardware Settings
Set the hardware switches on Inverter and connect the cables.
Precautions for Correct Use
Make sure that the power supply is OFF when you perform the setting up.
1
Make sure that the power supply to Inverter is OFF.*If the power supply is turned ON, settings may not be applicable as described in the following procedure.
2
Remove Option Unit Cover from the Inverter front panel as shown in the right figure.1: Loosen the mounting screw (x 1) from Option Unit Cover of the Inverter front panel.
2: Remove Option Unit Cover.
3
Check that Terminating Resistor Selector Switch inside of the terminal block cover is OFF.4
Connect a Serial cable to RS-485 terminal (RS-, RS+).Connect Terminating resistor (120Ω 1/2W) to RS-485 terminal (RS-, RS+).
RS-485 terminal
Option Unit Cover
Mounting screw
Control Circuit Terminal Block A Control Circuit Terminal Block B SDB+
SDA- Serial cable
5
Connect 3-Phase 200 VAC power supply to Main power supply input terminal on Inverter with a Power supply cable.*For details on wiring specifications of the power supply, refer to 2-3 Wiring of the Inverter Multi-function Compact Inverter MX2 Series Type V1 User’s Manual (Cat.
No. I585).
6
Mount Option Unit Cover on the Inverter front panel.Main power supply input terminal
3-Phase 200 VAC power supply
Power supply cable
7.2.2. Parameter Settings
Set the parameters for Inverter.
1
Check the positions of Data display and Operation keys on Digital Operator.
Digital Operator
2
Turn ON the power supply to Inverter.3
Use the procedure on the right to display the parameters in the extended function mode C.*If the output frequency is not displayed in Data display, press and hold the Mode Key for 3 seconds or more to display the output frequency.
0.00
Press the Mode Key 5 times.
c001
Data display
Operation keys
C001 parameter is displayed.
The output frequency is displayed in Data display.
4
Use the procedure on the right to set the parameters as follows:C071 (Communication Speed Selection): 05 (9600bps) 03: 2400bps 07: 38.4kbps 04: 4800bps 08: 57.6kbps 05: 9600bps 09: 76.8kbp 06: 19.2kbps 10: 115.2kbps
c001
to set the parameters as follows:C072 (Communication Station No. Selection): 1.
Slave address: 1.
Setting range 1. to 247.
C071 parameter is displayed.
Check that the displayed value is the default value ''05''.
*If the setting is different, change the set value.
C071parameter is displayed again.
C072 parameter is displayed.
Check that the displayed value is the default value ''1.''.
*If the setting is different, change the set value.
C072 parameter is displayed again.
6
Use the procedure on the right to set the parameters as follows:C074 (Communication Parity Selection): 00 (No parity) 00: No parity
01: Even parity 02: Odd parity to set the parameters as follows:
C075 (Communication Stop Bit Selection): 01 (1 bit)
01: 1 bit
C074 parameter is displayed.
Check that the displayed value is the default value ''00''.
*If the setting is different, change the set value.
C074 parameter is displayed again.
C075 parameter is displayed.
Check that the displayed value is the default value ''01''.
*If the setting is different, change the set value.
C075 parameter is displayed again.
8
Use the procedure on the right to set the parameters as follows:C096 (Communication Selection): 00 (Modbus communication)
00: Modbus communication 01: Co-inverter communication 02: Co-inverter communication
(management inverter)
*After connecting to PLC in the procedure described on the following page, turn ON the power supply again.
C096 parameter is displayed again.
C096 parameter is displayed.
Check that the displayed value is the default value ''00''.
*If the setting is different, change the set value.
7.3. Setting up PLC
Set up PLC.
7.3.1. Hardware Settings
Set the hardware switches on Serial Communications Unit and connect the cables.
Precautions for Correct Use
Make sure that the power supply is OFF when you perform the setting up.
1
Make sure that the power supply to PLC is OFF.*If the power supply is turned ON, settings may not be applicable as described in the following procedure.
2
Check the positions of hardware switches on the front panel of Serial Communications Unit by referring to the right figure.3
Set Unit number switch to 0.*The unit number is set to 0 as the factory default setting.
4
Set Terminating resistance ON/OFF switch to ON(Terminating resistance ON).
5
Set 2-wire or 4-wire switch to 2 (2-wire).TERM (Terminating resistance ON/OFF switch) OFF: Terminating resistance OFF
ON: Terminating resistance ON
WIRE (2-wire or 4-wire switch) 2:2-wire;4: 4-wire
6
Connect Serial Communications Unit to PLC as shown on the right.Connect Inverter to Port 1 on Serial Communications Unit with a Serial cable (RS-485).
*For connections, refer to 6.2 Cable Wiring Diagram.
Connect Personal computer to PLC with a USB cable.
PLC Serial Communications Unit End Cover
Serial cable (RS-485)
Personal computer
USB cable
Power Supply Unit CPU Unit
Inverter
7.3.2. Opening the Project File and Connecting Online with PLC
Start CX-Programmer, open the project file, and connect online with PLC.
Install CX-Programmer and a USB driver on Personal computer beforehand.
1
Turn ON the power supplies to PLC and Inverter.2
Start CX-Programmer.*If a confirmation dialog for an access right is displayed at start, execute a selection to start.
3
CX-Programmer starts.4
Select Open from the File Menu.5
The Open CX-Programmer Project Dialog Box is displayed.Select
OMRON_3G3MX2-V1_Mod485 _EV100.cxp and click Open.
*Obtain the project file from OMRON.
6
After opening the project file, select Programs in the project workspace.7
Select Change Model from the PLC Menu.8
The Change PLC Dialog Box is displayed.From the pull-down list of Device Type, select the device type of PLC that you use.
Click Settings.
*CJ2M is selected in this document.
9
The Device Type Settings Dialog Box is displayed.From the pull-down list of CPU Type, select the CPU type that
10
Check that USB is set for Network Type on the Change PLC Dialog Box.Click OK.
*If USB is not set for Network Type, select USB from the pull-down list.
*If you changed Device Type in step 8 or CPU Type in step 9, the dialog box on the right is displayed. Check that there is no problem and click Yes.
Make sure that the program was normally converted. ("0 errors" must be shown.) (Although duplicated output warnings were detected in the right dialog box, they are not problems.)
11
Select Programs in the project workspace.Select Work Online from the PLC Menu.
12
A confirmation dialog box on the right is displayed.Check that there is no problem and click Yes.
13
Check that CX-Programmer and PLC are normally connected online.*The icon is pressed down during online connection.
Additional Information
If PLC cannot be connected online, check the cable connection
After you check the cable connection, return to step 6, check the settings such as the
connection type in steps 7 to 9 and try again. For details, refer to Connecting Directly to a CJ2 CPU Unit Using a USB Cable of the CX-Programmer OPERATION MANUAL (Cat. No.
W446).
Additional Information
The dialog boxes explained in this document may not be displayed depending on the
environmental settings of CX-Programmer. For details on the environmental settings, refer to Options and Preferences in CHAPTER 3 Project Reference in PART 1: CX-Programmer of the CX-Programmer OPERATION MANUAL (Cat. No. W446).
This document explains the setting procedures when ''Confirm all operations affecting the PLC'' is selected.
7.3.3. Creating the I/O Table
Create the I/O table for PLC.
1
If the operating mode of PLC is Run Mode or Monitor Mode, change it to Program Mode by following the steps below.(1)Select Operating Mode - Program from the PLC Menu of CX-Programmer.
(2)A confirmation dialog box on the right is displayed. Check that there is no problem and click Yes.
*Refer to Additional Information on the previous page for the settings concerning the dialog display.
(3)Check that Stop/Program Mode is displayed on the right of the PLC model in the project workspace tree.
2
Select Edit - I/O Table and Unit Setup from the PLC Menu of CX-Programmer.The PLC IO Table Window is displayed.
Precautions for Correct Use
The PLC will be reset after creating and transferring the I/O table in step 3 and subsequent steps. Always confirm safety before creating and transferring the I/O table.
3
Select Create from the Options Menu in the PLC IO Table Window.A confirmation dialog box on the right is displayed. Check that there is no problem and click Yes.
A confirmation dialog box on the right is displayed. Check that there is no problem and click Yes.
4
The Transfer from PLC Dialog Box is displayed.Select IO Table and SIO Unit Parameters and click Transfer.
When the transfer is completed, the Transfer Results Dialog Box is displayed.
7.3.4. Parameter Settings
Set the parameters for Serial Communications Unit.
1
Double-click [0000] Main Rack in the PLC IO Table Window to expand the tree.2
Right-click 00 [1500]CJ1W-SCU42 and select Unit Setup.
3
The View Parameters Dialog Box is displayed.Select Port1: Serial Gateway Settings from the pull-down list of Displayed Parameter.
4
The setting items of Port1: Serial Gateway Settings are listed as shown in the right figure. (The figure shows the default values.)5
Select User settings from the pull-down list of Set Value for Port1: Port Settings.6
Set the following parameters in the same way as step 5.・Serial communications mode : Serial Gateway
・Data length: 8 bits
・Stop bits: 1 bit
・Parity: None
・Baud rate: Default(9600bps)
7
A confirmation dialog box on the right is displayed. Check that there is no problem and click Yes.Check that the transfer is completed as shown in the right dialog box. Click Close.
8
A confirmation dialog box on the right is displayed. Check the contents and click Yes.The Select Port Dialog Box is displayed.
Select All ports and click OK.
9
The dialog box on the right is displayed. Check the contents and click OK.10
Click Compare on the View Parameters Dialog Box.11
Check that a message"Compare successful" is displayed in the dialog box on the right. Click Close.
12
Click OK on the View Parameters Dialog Box.7.3.5. Transferring the Project Data
Transfer the project data to PLC.
1
Select Programs in the project workspace of CX-programmer.Select Transfer - To PLC from the PLC Menu.
2
Select Program(s), Comments, and Program index.Click OK.
*The I/O table and Special Unit Setup are unnecessary to transfer here, because they are already set in 7.3.3. Creating the I/O Table and 7.3.4.
Parameter Settings.
*The Comments and the Program index Check Boxes may not be displayed
depending on the device type.
In such a case, select Program(s) only and transfer the project data.
3
A confirmation dialog box on the right is displayed. Check that there is no problem and click Yes.4
The dialog box on the right is displayed (stating "Download successful") when the transfer is completed. Click OK.5
Select Programs in the project workspace. Select Transfer - Compare with PLC from the PLC Menu.6
Select Program(s) and click OK.7
Check that a message stating"Compare successful" is displayed. Click OK.