Omron G9SP-N20S, NJ, G9SP Network Connection Manual

Machine Automation Controller NJ-series
General-purpose Seriarl
Connection Guide (RS-232C)
OMRON Corporation
P545-E1-01
About Intellectual Property Rights and Trademarks
Microsoft product screen shots reprinted with permission from Microsoft Corporation. Windows is a registered trademark of Microsoft Corporation in the USA and other countries.
EtherCAT
is registered trademark and patented technology, licensed by Beckhoff Automation
®
GmbH, Germany. Sysmac is a trademark or registered trademark of OMRON Corporation in Japan and other countries for OMRON factory automation products. Company names and product names in this document are the trademarks or registered trademarks of their respective companies.
Table of Contents
1. Related Manuals........................................................................................ 1
2. Terms and Definitions
3. Remarks..................................................................................................... 2
4. Overview
5. Applicable Products
5.1. Applicable Products ........................................................................... 4
5.2. Devi
6. Serial Comm
6.1. Serial Communications Se
6.2. Cable Wiring Diagram........................................................................ 7
6.3. Example of Checking Connection...................................................... 8
7. Connection Procedure.............................................................................. 9
7.1. Work Flow.......................................................................................... 9
7.2. Setting Up the Safety Controller
7.3. Setting Up the Controller ...................................................................11
7.4. Connection St
8. Initialization
8.1. Initializing the Controller................................................................... 24
9. Project File............................................................................................... 26
9.1. Overview.......................................................................................... 26
9.2. Destination Devi
9.3. Error Detection Processing.............................................................. 33
9.4. Variables.......................................................................................... 34
9.5. Ladder Program............................................................................... 37
9.6. Timing Chart
9.7. Error St
10. Revision Hi story
.................................................................................................... 3
ce Configuration .......................................................................... 5
unications Settings ............................................................. 6
Method................................................................................ 24
atus List ...............................................................................51
............................................................................... 1
and Support Software............................................ 4
ttings........................................................ 6
....................................................... 10
atus Check.................................................................22
ce Command.......................................................... 29
s...................................................................................49
...................................................................................... 54

1. Related Manuals

1. Related Manuals
The table below lists the manuals related to this document. To ensure system safety, make sure to always read and heed the information provided in all Safety Precautions, Precautions for Safe Use, and Precaution for Correct Use of manuals for each device which is used in the system.
Cat. No. Model Manual name W500 NJ501-[][][][] NJ-series CPU Unit Hardware User's Manual W501 NJ501-[][][][] NJ-series CPU Unit Software User's Manual W494 CJ1W-SCU[]2 CJ-series Serial Communications Units Operation Manual for
NJ-series CPU Unit W502 NJ501-[][][][] NJ-series Instructions Reference Manual W504 SYSMAC-SE2[][][] Sysmac Studio Version 1 Operation Manual
Z922 G9SP-[][][][] G9SP Series Safety Controller Operation Manual Z923 G9SP-[][][][] G9SP Series Safety Controller Instructions Reference Manual

2. Terms and Definitions

Terms Explanation and Definition
No-protocol No-protocol Mode enables you to receive or send data by using SCU
Send Serial (SerialSend) or SCU Receive Serial (SerialRcv) instructions. In this mode, messages are sent/received to/from a destination device.
Send message A send message is a communications frame (command) sent from the
Serial Communications Unit to the destination device. This is executed by the SerialSend instruction and sent to the destination device.
Receive message A receive message is a communications frame (response) sent from the
destination device to the Serial Communications Unit. The SerialRcv instruction is used to read data received from the destination device.
1

3. Remarks

(1) Understand the specifications of devices which are used in the system. Allow some
margin for ratings and performance. Provide safety measures, such as installing safety circuit in order to ensure safety and minimize risks of abnormal occurrence.
(2) To ensure system safety, always read and heed the information provided in all Safety
Precautions, Precautions for Safe Use, and Precaution for Correct Use of manuals for each device used in the system.
(3) The user is encouraged to confirm the standards and regulations that the system must
conform to.
(4) It is prohibited to copy, to reproduce, and to distribute a part of or whole part of this
document without the permission of OMRON Corporation.
(5) The information contained in this document is current as of August 2013. It is subject to
change without notice for improvement.
The following notation is used in this document.
Indicates a potentially hazardous situation which, if not avoided, will result in minor or moderate injury, or may result in serious injury or death. Additionally there may be significant property damage.
3. Remarks
Indicates a potentially hazardous situation which, if not avoided, may result in minor or moderate injury or in property damage.
Precautions for Safe Use
Precautions on what to do and what not to do to ensure safe usage of the product.
Precautions for Correct Use
Precautions on what to do and what not to do to ensure proper operation and performance.
Additional Information
Additional information to read as required. This information is provided to increase understanding or make operation easier.
2

4. Overview

This document describes the procedure for connecting a Safety Controller (G9SP series) of OMRON Corporation (hereinafter referred to as OMRON) with an NJ-series Machine Automation Controller (hereinafter referred to as the Controller) via serial communications, and the procedure for checking their connection. Refer to the serial communications settings of the project file you prepared to understand the setting method and key points to connect the devices via serial communications. This project file is used to check a serial connection by sending the monitor I/O command to the destination device.
Obtain the latest "Sysmac Studio project file" from OMRON beforehand.
Name Sysmac Studio project file
(extension: SMC)
File name OMRON_G9SP_SERI232_LD_E V100.SMC
Version Ver.1.00
4. Overview
This document aims to explain the wiring method and communications settings necessary to connect the corresponding devices and provide the setting procedure. The program used in this document is designed to check if the connection was properly established, and is not designed to be constantly used at a site. Therefore, functionality and performances are not sufficiently taken into consideration. When you construct an actual system, please use the wiring method, communications settings and setting procedure described in this document as a reference and design a new program according to your application needs.
3

5. Applicable Products and Support Software

5. Applicable Products and Support Software

5.1. Applicable Products

The applicable devices are as follows:
Manufacturer Name Model
OMRON NJ series CPU Unit NJ501-[][][][]
NJ301-[][][][] OMRON Serial Communications Unit CJ1W-SCU[]2 OMRON Safety Controller G9SP-[][][][] OMRON Expansion I/O Unit CP1W-20EDT[]
CP1W-32ET[] OMRON RS-232C Option Board CP1W-CIF01 OMRON G9SP Configurator Support Software WS02-G9SP[][]-V1
Precautions for Correct Use
As applicable devices above, the devices with the models and versions listed in Section 5.2. are actually used in this document to describe the procedure for connecting devices and checking the connection. You cannot use devices with versions lower than the versions listed in Section 5.2. To use the above devices with versions not listed in Section 5.2 or versions higher than those listed in Section 5.2, check the differences in the specifications by referring to the manuals before operating the devices.
Additional Information
This document describes the procedure to establish the network connection. Except for the connection procedure, it does not provide information on operation, installation or wiring method. It also does not describe the function or operation of the devices. Refer to the manuals or contact your OMRON representative.
4
5. Applicable Products and Support Software

5.2. Device Configuration

The hardware components to reproduce the connection procedure of this document are as follows:
Personal computer (Sysmac Studio installed, OS:Windows7)
4
USB cable
NJ501-1500+ CJ1W-SCU42
Serial Communications Cable (RS-232C)
G9SP-N20S CP1W-CIF01 CP1W-ME05M
Expansion I/O Connecting Cable
Manufacturer Name Model Version OMRON Serial Communications Unit CJ1W-SCU42 Ver.2.0 OMRON NJ-series CPU Unit NJ501-1500 Ver.1.01
OMRON Power Supply Unit NJ-PA3001 OMRON Sysmac Studio
SYSMAC-SE2[][][]
OMRON Sysmac Studio project file OMRON_G9SP_SERI23
2_LD_EV100.SMC
- Personal computer
-
(OS: Windows 7)
- USB cable
-
(USB 2.0 type B connector)
- Serial Communications Cable - OMRON Safety Controller G9SP-N20S Ver.1.00 OMRON RS-232C Option Board CP1W-CIF01 OMRON Memory Cassette CP1W-ME05M OMRON Expansion I/O Unit CP1W-20EDT OMRON Expansion I/O Connecting
CP1W-CN811
Cable
CP1W-20EDT (Up to 2 Expansion I/O
Units can be connected.)
Ver.1.02 Ver.1.00
Precautions for Correct Use
Obtain the latest Sysmac Studio project file from OMRON in advance. (To obtain the files, contact your OMRON representative.)
Additional Information
It may not be possible to reproduce the same operation with different devices or versions. Check the configuration, model and version. If they are different from your configuration. Contact your OMRON representative.
Additional Information
For information on the serial cable (RS-232C), refer to 3-3 RS-232C and RS-422A/485 Wiring in the CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit (Cat.No. W494).
Additional Information
In this document, a USB is used to connect with the Controller. For information on how to install a USB driver, refer to A-1 Driver Installation for Direct USB Cable Connection of the Sysmac Studio Version 1 Operation Manual (Cat.No. W504).
5

6. Serial Communications Settings

6. Serial Communications Settings
This section describes the specifications such as cable wiring and communication parameters that are set in this document.
Additional Information
This document and project file can be used to perform operations using the settings and command described in this section. Modifications are necessary to perform communications using different settings.

6.1. Serial Communications Settings

The table below lists the settings for serial communications.
CJ1W-SCU42 G9SP-N20S Unit number 0 ­Communications (connection) port Port 2 (RS-232C) ­Serial communications mode No-protocol ­Data length 8 bits 8 bits (fixed) Stop bit 1 bit 1 bit (fixed) Parity Even (default value) Even (fixed) Baud rate 9,600 bps (default value) 9,600 bps (fixed) No-protocol Start Code Yes (#40) #40 (fixed) No-protocol End Code No (#2A0D (fixed))
*One byte data can only be set as the no-protocol End Code. Thus, in this document, #2A0D
is treated as data.
Precautions for Correct Use
This document explains the setting procedure with Serial Communication Unit CJ1W-SCU42 whose Unit No. is 0, communication port is port 2 and device name is SCU. To connect devices under different conditions, refer to 9. Project File and create a ladder program by changing the variable names and setting values.
6
6. Serial Communications Settings

6.2. Cable Wiring Diagram

For details on the cable wiring, refer to Section 3 Installation and Wiring in the CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit (Cat.No. W494).
Check the connector configuration and pin assignment before wiring.
Connector configuration and pin assignment < OMRON G9SP-N20S + CP1W-CIF01 > Applicable Connectors: D-sub 9 pin
<OMRON CJ1W-SCU42> Applicable connector: D-sub 9 pin
Cable/pin assignment CJ1W-SCU42 Serial
Communications Unit RS-232C
Interface
D-sub 9-pin Cable connector type: Male
Signal name FG 1 1 FG SD 2 2 SD RD 3 3 RD RS 4 4 RS CS 5 5 CS 5V 6 6 5V DR 7 7 DR ER 8 8 ER SG 9 9 SG FG Shell Shell FG
Pin No. Pin No. Signal
Safety Controller
D-sub 9-pin
(G9SP-N20S)
RS-232C
name
Cable connector type: Male
Interface
7
6. Serial Communications Settings

6.3. Example of Checking Connection

This connection example uses the ladder program for network connection. For details on the ladder program, refer to 9. Project File. The Controller and Safety Controller send and receive a message of Monitor I/O. The following figure shows the outline of the operation.
CPU Serial
Communications
Unit
User memory
Ladder program
SerialSend instruction
RS-232C Safety Controller
G9SP_ Comma ndData
G9SP_ Respon seData
Executing SerialSend instruction Monitoring I/O
Send data
Send data Setting area
Sending/receiving serial communication command Monitoring I/O
SerialRcv instruction
Receive data
Executing SerialRcv instruction
Monitoring I/O
Receive data Storage area
8

7. Connection Procedure

7. Connection Procedure
This section describes the procedure for connecting the Controller via serial communications. This document explains the procedures for setting up the Controller from the factory default setting. For the initialization, refer to Section 8 Initialization Method.

7.1. Work Flow

Take the following steps to connect the Controller via serial communications.
7.2 Setting Up the Safety Controller Set up the Safety Controller.
7.2.1 Installing the Option Board
7.3 Setting Up the Controller Set up the Controller.
7.3.1 Hardware Settings of the Serial
Communications Unit
7.3.2 Starting the Sysmac Studio and
Importing the Project File
7.3.3 Going Online and Transferring
the Project Data
7.4 Connection Status Check Check the serial network connection status.
7.4.1 Checking the Connection Status Confirm that serial communications are performed
7.4.2 Checking Data that are Sent and Received
Install the Option Board of the Safety Controller.
Set the hardware switches on the Serial Communications Unit and connect to the Controller.
Start the Sysmac Studio, and import the Sysmac Studio project file.
Connect online with the Sysmac Studio and transfer the project data to the Controller.
normally.
Confirm that the correct data are sent and received.
Precautions for Correct Use
Obtain the latest Sysmac Studio project file from OMRON in advance. (To obtain the files, contact your OMRON representative.)
9

7.2. Setting Up the Safety Controller

Set up the Safety Controller.

7.2.1. Installing the Option Board

Install the Option Board.
Precautions for Correct Use
Make sure that the power supply is OFF when you install.
Confirm that the power supply to
1
the Safety Controller is OFF.
Remove the cover of the option
2
board slot, and install the RS-232C option board (CP1W-CIF01).
RS-232C communications settings of the Safety Controller are as follows and cannot be changed.
•RS-232C communications setting (fixed)
Baud rate: 9,600 bps Data length: 8 bits Stop bits: 1 bit Parity: E (Even parity)
7. Connection Procedure
(Front of Safety Controller)
Connect the serial cable
3
(RS-232C) to the Safety Controller as shown on the right. Connect the expansion I/O connecting cable to the Safety Controller. Connect the 24VDC(+) line to terminal V1 of the Safety Controller, and the GND line to terminal G1. Turn ON the power supply to the
4
Safety Controller.
(RS-232C Option Board)
24VDC power supply
Serial Cable
10
7. Connection Procedure

7.3. Setting Up the Controller

Set up the Controller.

7.3.1. Hardware Settings of the Serial Communications Unit

Set the hardware switches on the Serial Communications Unit.
Precautions for Correct Use
Make sure that the power supply is OFF when you perform the setting up.
Confirm that the power supply to
1
the Controller is OFF. *If the power supply is turned
ON, settings may not be applicable as described in the following procedure.
Connect the serial cable
2
(RS-232C) to Port 2 connector. *This setting is required to use
Port 2 of Serial Communications Unit.
Set the Unit No. Switch to 0.
3
(The unit number is factory-set to 0.)
Connect the Serial
4
Communications Unit to the Controller. Connect the personal computer, Safety Controller and Controller using the Serial cable and USB cable as shown in 5.2 Device Configuration. Turn ON the power supply to the Controller.
USB cable
NJ501-1500
Power Supply Unit
CJ1W-SCU42
End cover
Serial Cable
11
7. Connection Procedure

7.3.2. Starting the Sysmac Studio and Importing the Project File

Start the Sysmac Studio, and import the Sysmac Studio project file. Install the programming software and USB driver in the personal computer beforehand.
Start the Sysmac Studio.
1
Click the Import Button.
*If a confirmation dialog for an
access right is displayed at start, select to start.
The Import File Dialog Box is
2
displayed. Select OMRON_G9SP_SERI232_LD_ EV100.smc (Sysmac Studio project file) and click the Open Button. *Obtain the Sysmac Studio
project file from OMRON.
OMRON_G9SP_SERI232_LD_
3
EV100 project is displayed. The left pane is called Multiview Explorer, the right pane is called Toolbox and the middle pane is called Edit Pane.
Multiview Explorer
Edit Pane Toolbox
12
7. Connection Procedure

7.3.3. Checking the Parameters and Building

Check the set parameters, execute the program check on the project data and build the Controller.
Double-click CPU/Expansion
1
Racks under Configurations and Setup in the Multiview
Explorer.
The CPU/Expansion Racks Tab
2
is displayed on the Edit Pane. Select the Serial Communications Unit icon as shown on the right. Confirm that CJ1W-SCU42 is displayed, the device name is SCU, and the unit number is 0. *If the settings are different,
change the values.
Click Edit Special Unit Settings. The 0 [Unit 0]: Tab is displayed.
3
Open the pull-down menu of Parameter group to show and select Port2: No-Protocol Settings.
13
7. Connection Procedure
Parameter group to show is set
4
to Port 2: No-Protocol Settings. The items of the Port 2: No-Protocol Settings are displayed. Confirm that the Port2: Port settings is set to User settings and other items are the same as Section 6.1.
*If the settings are different from
the above, change the values from the pull-down menu. Click the Apply Button after changing values.
Double-click I/O Map under
5
Configurations and Setup on the Multiview Explorer. The I/O Map Tab Page is displayed and the parameters of the Unit are displayed. Confirm that the data in the
6
Variable Columns on the I/O Map Tab Page start with SCU and that the Global Variables are set in the Variable Type Columns.
*If the settings are different from
the above, right-click on CJ1W-SCU42 and select Create Device Variable.
Double-click the Task Settings
7
under Configurations and Setup in the Multiview Explorer.
14
The Task Settings Tab Page is
8
displayed in the Edit Pane. Click the Program Assignment Settings Button and confirm that Program0 is set under PrimaryTask.
Select Check All Programs
9
from the Project Menu.
The Build Tab Page is displayed
10
in the Edit Pane. Confirm that "0 Errors" and "0 Warnings" are displayed. Select Rebuild Controller from
11
the Project Menu.
A screen is displayed indicating the conversion is being performed.
7. Connection Procedure
12
Confirm that "0 Errors" and "0 Warnings" are displayed in the Build Tab Page.
15
Loading...
+ 40 hidden pages