Host Connection Manual: Safety Controller
Host Connection Manual: Safety Controller
Z924-E1-01
G9SP Series
Safety Controller
HOST CONNECTION
MANUAL
OMRON, 2010
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form, or
by any means, mechanical, electronic, photocopying, recording, or otherwise, without the prior written permission of
OMRON.
No patent liability is assumed with respect to the use of the information contained herein. Moreover, because OMRON is con-
stantly striving to improve its high-quality products, the information contained in this manual is subject to change without
notice. Every precaution has been taken in the preparation of this manual. Nevertheless, OMRON assumes no responsibility
for errors or omissions. Neither is any liability assumed for damages resulting from the use of the information contained in
this publication.
Introduction
Thank you for purchasing a G9SP-series Safety Controller. This manual contains information
required to use the G9SP-series Controller. Please thoroughly read and understand this manual
before you use the G9SP-series Controller.
Internded Audience
This manual is intended for the following personnel, who must also have knowledge of electrical
systems (an electrical engineer or the equivalent).
- Personnel in charge of installing FA systems.
- Personnel in charge of designing FA systems.
- Personnel in charge of managing FA systems and facilities.
- Personnel in charge of qualifications and authority in all phases, including system design,
installation, operation, maintenance, and disposal.
1
Manual Configuration
Information on the operation of G9SP-series Safety Controllers is provided in the following
manuals. Refer to the specific manual depending on the information that is required.
2
Table of Contents
Introduction ....................................................................................................................1
Manual Configuration .....................................................................................................2
Table of Contents ...........................................................................................................3
3
Connecting to OMRON PLCs
This section describes how to perform communications with OMRON standard
PLC through an RS-232C Option Board or Ethernet Option Board.
1-2
1-2 RS-232C Serial Communications
1-3
1-3 Ethernet Communications
Refer to Section 7 Communications with a Standard PLC Using an Option Board of the
G9SP Series Safety Controller Operation Manual (Cat. No. Z922).
1-4
Connecting to Mitsubishi Electric PLCs
This section describes how to perform communications with Mitsubishi Electric
Standard PLC through an RS-232C Option Board or Ethernet Option Board.
2-2
2-2 RS-232C Serial Communications
G9SP-series
CP1W-CIF01
Option Board
Note: This example uses the following Mitsubishi Electric Standard PLC.
Product Model/version
CPU Unit (Standard PLC) Q02HCPU
Serial Communication Module QJ71C24N-R2
Support Software (for setup and creating ladder GX Developer Version 8.90U
programs) GX Configurator-SC Version2.21X
2-3
Mitsubishi Electric PLC Q series Settings
Set serial communication module CH2 as given below in the PLC parameter using
the GX Developer and CH2 No-protocol system setting using the intelligent
function utility.
2-4
2-2 RS-232C Serial Communications
Communications cable
The suited cable is different according to the combination of component. Please
produce the cable of the following connecting wires when connecting with a
Mitsubishi Electric Standard PLC Q series (QJ71C24N-R2).
Initialization
Receive processing
Send processing
Receive End Sent command
Receive processing Reception response Send/receive processing
after 300 ms
Receive processing
Send processing
Receive End
2-5
z Mitsubishi Electric Standard PLC Q series Memory Allocations
Start address End address Contents Description
D11 D20 RS-232C send command Data sent by the Standard PLC to the
G9SP-series Controller
D110 D209 RS-232C reception response Data received by the Standard PLC from
the G9SP-series Controller
D330 D351 Checksum calculation work area Work area for RS-232C communications.
Used to calculate the check-sum
X100 X11F G9SP communications reception data Data written to G9SP-series Controller from
(written to G9SP-series Controller) Standard PLC. Stored in the communica-
tions reception data of the G9SP-series
Controller.
Y200 Y21F G9SP communications transmission data Communications data sent from the G9SP-
(read from the G9SP-series Con- series Controller is read.
troller)
Y220 Y24F G9SP Safety Input terminal data (read Safety Input terminal data of the G9SP-
from the G9SP-series Controller) series Controller is read.
2-6
2-2 RS-232C Serial Communications
(5)
Send processing
(6)
(7)
(8)
2-7
- Reception completion processing
(9)
(10)
2-8
2-2 RS-232C Serial Communications
Step Description
(1) The fixed portion of the send command is set. This processing is performed once at
startup.
(2) A communications refresh timer of 300 ms is started. This performs the first sending after
300 ms.
(3) Once 300 ms has elapsed, the RS-232C reception end bit (X0A) is checked, and receive
processing is performed if data has been received. A send command from the Standard
PLC is initially required, and so reception processing is performed after completing the
first send.
(4) To store the reception response in D100, the INPUT instruction is executed.
(5) G9SP communications reception data is set to the send command from X 100 and echo
back bit.
(6) The send command is transferred to the RS-232C send port, which enables sending to
the G9SP-series Controller.
(7) The checksum and the end code are set to the transmission command.The send
command is transferred to the RS-232C send port, which enables sending to the
G9SP-series Controller.
(8) The timer is restarted and the next receive processing is performed after 300 ms.
(9) The checksum calculation subroutine given above is called, and the checksum of the
reception response is calculated.
(10) The checksum of the reception response and the end code are checked, and the G9SP
Communications Transmission Data is copied to Y 200 and G9SP Safety Input Terminal
Data is copied to Y 220.
2-9
2-2-3 Application Example 2(Connecting to the Mitsubishi Standard
PLC FX Series.)
System Configuration
This section uses the following example to describe how to access a G9SP-series
Controller by performing serial communications through a RS-232C Serial
Communications Board (CP1W-CIF01) from a Siemens Standard PLC FX series.
G9SP-series
CP1W-CIF01
Option Board
Note: This example uses the following Mitsubishi Electric Standard PLC.
Product Model/Version
CPU Unit (Standard PLC) FX3UC-32MT-LT
RS-232C Communication Adapter FX3U-232AP
Support Software (for setup and creating ladder GX Developer Version 8.90U
programs)
2-10
2-2 RS-232C Serial Communications
2-11
Sample Ladder Programming for Mitsubishi Electric PLC FX series
This section provides an example of programming to monitor Safety Input terminal
data of a G9SP-series Controller from a Mitsubishi Electric Standard PLC FX
series.
Initialization
Send processing
Sent command
Receive processing
Reception response Send/Receive processing
after 300 ms
Send processing
Receive processing
Sent command
Receive processing
Reception response Send/Receive processing
after 300 ms
Send processing
Receive processing
2-12
2-2 RS-232C Serial Communications
2
Initial Settings (1)
2-13
(2)
(3)
(4)
(5)
(6)
Reception processing
(7)
(8)
(9)
Send processing
(10)
(11)
2-14
2-2 RS-232C Serial Communications
2-15
2-3 Ethernet Communications
This section provides a description and example of connection to a Mitsubishi
Electric Standard PLC. The FINS/UDP Protocol are available for connection with a
Mitsubishi Electric Standard PLC.
G9SP Series
Switching HUB
Option Board
CP1W-CIF41
192.168.250.11
Note: This example uses the following Mitsubishi Electric Standard PLC.
Product Model/Version
CPU Unit (Standard PLC) Q02HCPU
Ethernet Interface Unit QJ71E71-100
Support Software (for setup and creating ladder GX Developer Version 8.90U
programs)
2-16
2-3 Ethernet Communications
2-17
Mitsubishi Electric PLC Q series Settings
Set the Ethernet Intarface Unit as given below in the network parameter of the
Ethernet port using the GX Developer.
z Network parameters : Setting the number of Ethernet/CC IE/MELSECNET cards
Set the setting the number of Ethernet/CC IE/MELSECNET cards by selecting
[Project data list]-[Parameter] – [Network param] – [Ehternet/CC IE/MELSECNET].
z Operation Settings
Set the setting the Ethernet operations by selecting [Project data list]-[Parameter]
– [Network param] – [Ehternet/CC IE/MELSECNET] – [Operation Settings].
2-18
2-3 Ethernet Communications
z Open Settings
Set the setting the Ethernet operations by selecting [Project data list]-[Parameter]
– [Network param] – [Ehternet/CC IE/MELSECNET] – [Open Settings].
Communication cable
2
The Ethernet Option Board is connected with a switching HUBs by using the
twisted-pair cable that applies the modular connector of the RJ45 form to both
ends. Either of category 3, 4, 5 or 5e UTP cable (Unshield twist pair cable), or STP
cable (Shield twist pair cable) is available.
2-19
Sample Ladder Programming for Mitsubishi Electric PLC Q series
This section provides an example of programming to monitor Safety Input terminal
data of a G9SP-series Controller from a Mitsubishi Electric Standard PLC Q
series.
Initialization
Receive processing
Send processing
Receive End Sent command
Receive processing Reception response Send/receive processing
after 300 ms
Receive processing
Send processing
Receive End
2-20
2-3 Ethernet Communications
-
- G9SP Communications Reception Data
15 8 7 0
X100 bit bit bit bit bit bit bit bit bit bit bit bit bit bit bit bit
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
X110 bit bit bit bit bit bit bit bit bit bit bit bit bit bit bit bit
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
(1)
2
Initialization
(2)
(3)
2-21
(4)
(5)
Send processing
(6)
(7)
Reception processing
(8)
Step Description
(1) The fixed portion of the connection process is set. This processing is performed once at startup.
(2) The connection is open after the initialization process is completed.
(3) A communications refresh timer of 300 ms is started. This performs the first sending after 300 ms.
(4) Once 300 ms has elapsed, the reception completion bit (M40) is checked, and receive
processing is performed if data has been received. A send command from the Standard PLC is
initially required, and so reception processing is performed after completing the first send.
(5) Set the FINS data to the sending command.
(6) Set the “G9SP communication reception data” to X100 of sending command and set the “Echo back
bit” and transfer to Ethernet port. By this flow, the sending command is transfered to the G9SP series.
(7) The timer is restarted and the next receive processing is performed after 300 ms.
(8) The ZB.BUFRCV instruction is executed because the reception response is stored to D500.
(9) The checksum of the reception response and the end code are checked, and the G9SP Comm-
unications Transmission Data is copied to Y200 and G9SP Safety Input Terminal Data is copied to
Y220.
2-22
Connecting to Siemens PLCs
This section describes how to perform communications with a Siemens Standard
PLC through an RS-232C Option Board or Ethernet Option Board.
3-2
3-2 RS-232C Serial Communications
Refer to Section 7 Communications with a Standard PLC Using an Option Board of the
G9SP Series Safety Controller Operation Manual (Cat. No. Z922).
RS-232
port 3
G9SP-series
CP1W-CIF01
Controller
Option Board
3-3
Siemens PLC Settings
Set serial port 1 as given below in the Ladder using the STEP 7-Micro/WIN.
Communications cable
The suited cable is different according to the combination of component. Please use the
RS-232/PPI Multi-Master cable when connecting with RS-232C port of a Siemens Standard
PLC.
3-4
3-2 RS-232C Serial Communications
Initialization
Send processing
3-5
z Siemens PLC Memory Allocations
Start address End address Contents Description
V0 V19 RS-232C send command Data sent by the Standard PLC to the
G9SP-series Controller
V100 D299 RS-232C reception response Data received by the Standard PLC from
the G9SP-series Controller
M0 M7 Checksum calculation work area Work area for RS-232C communications.
Used to calculate the check-sum
I0 I3 G9SP communications reception data Data written to G9SP-series Controller from
(written to G9SP-series Controller) Standard PLC. Stored in the communica-
tions reception data of the G9SP-series
Controller.
Q0 Q3 G9SP communications transmission Communications data sent from the G9SP-
data (read from the G9SP-series Con- series Controller is read.
troller)
Q4 Q9 G9SP Safety Input terminal data (read Safety Input terminal data of the G9SP-
from the G9SP-series Controller) series Controller is read.
3-6
3-2 RS-232C Serial Communications
(1)
(2)
3-7
- Send processing(INT_1)
1
(6)
(3)
(7)
(4)
(8)
(5)
(9)
3-8
3-2 RS-232C Serial Communications
- Reception processing(INT_1)
(10)
3
(12)
3-9
- Checksum Calculation Subroutine
Step Description
(1) Control Freeport communication for port1 This processing is performed once at startup.
(2) Enables the 150ms-timer event, receive complete event and send complete even. This processing is performed
once at startup.
(3) Once 100 ms has elapsed,to process each 300ms the counter is added
(4) Once 300 ms has elapsed, enables receive complete event.
(5) Once 300 ms has elapsed, the fixed portion of the send command is set.
(6) G9SP communications reception data is set to the send command from I 0.
(7) The checksum calculation subroutine given above is called, and the checksum of the send command is calculated.
(8) The checksum and the end code are set to the transmission command.The send command is transferred to the
RS-232C send port, which enables sending to the G9SP-series Controller.
(9) The timer is restarted and the next send processing is performed after 300 ms.
(10) The checksum calculation subroutine given above is called, and the checksum of the reception response is
calculated.
(11) The checksum of the reception response and the end code are checked, and the G9SP Communications
Transmission Data is copied to Q 0 and Q 3 and G9SP Safety Input Terminal Data is copied to Q 4 to Q 9.
(12) After the transmission is completed, the reception interruption is enabled.
3-10
3-3 Ethernet Communications
Note: Only CP1W-CIF41 Ethernet Option Boards with unit version 2.0 or later can be used.
If another Option Board is used, the G9SP-series Controller will detect an Un-
supported Option Board Error (the MS indicator will flash red).
Refer to Section 7 Communications with a Standard PLC Using an Option Board of the
System Configuration
This section uses the following example to describe how to access the G9SP-series
Controller from a Standard PLC by performing Ethernet communications through an
Ethernet Communications Board (CP1W-CIF41).
G9SP-series Controller
Switching HUB CP1W-CIF41
Option Board
192.168.250.2
3-11
G9SP-series Controller Settings
Make the settings for TCP/IP in the system settings of the G9SP Configurator.These
settings are set in the G9SP-series Controller and Ethernet Option Board
when the configuration data is downloaded.
Parameter Description Set value for this
example
IP address IP address of Ethernet Option Board. 192.168.250.2
Default value: 192.168.250.1
Subnet mask Subnet mask of Ethernet Option Board. No change is
Default value: 255.255.255.0 required.
Default gateway Set the IP address of the default gate- No change is
way. Default value: 0.0.0.0 (IP routing not supported) required.
FINS node address Set the FINS node address of the Ethernet Option Board. If No change is
automatic setting is specified, a value that matches the rightmost required.
byte of the IP address is stored.
Default value: Automatic (matching the
rightmost byte of the IP address)
Setting range: 1 to 254
FINS/UDP port Specify the UDP port number that is specified in the FINS No change is
communications service. The UDP port number is a number required.
used by UDP to identify the application layer (here, the FINS
communications service).
Default value: 0 (9600)
Setting range: 0 to 65535. When set to
0, the FINS/UDP port number is 9600.
IP address table Set the table that defines correspondence between the FINS No change is
node address and IP address at the Standard PLC.Set the IP required.
address table when IP routing is used.
3-12
3-3 Ethernet Communications
Set Ethernet interface unit as given below in the H/W Config by selecting [General] -
[Properties...].
Communications cable
This is the connector used to connect the twisted-pair cable to the Ethernet.
• Electrical characteristics: Conforms to IEEE802.3 standards.
• Connector structure: RJ45 8-pin modular connector (conforms to ISO8877).
3-13
Sample Ladder Programming for Siemens PLC
This section provides an example of programming to monitor Safety Input terminal data of a
G9SP-series Controller from a Siemens Standard PLC.
Initialization
Send processing
Sent command
Receive processing
Reception response Send/Receive processing
after 300 ms
Send processing
Receive processing
Sent command
Receive processing
Reception response Send/Receive processing
after 300 ms
Send processing
Receive processing
3-14
3-3 Ethernet Communications
3-15
- Initial Settings
(1)
(2)
3-16
3-3 Ethernet Communications
- Reception processing
1
1
(3)
3-17
(5)
3-18
3-3 Ethernet Communications
(5)
3-19
- Send processing
(6)
1
1
(6)
1
1
3-20
3-3 Ethernet Communications
(6)
3
Step Description
(1) A communications refresh timer of 300 ms is started. This performs the first sending after 300 ms.
(2) Once 300 ms has elapsed,send and receive processing is performed and the timer is restarted and
the next send and receive processing is performed after 300 ms
(3) Clear the receive area in preparation for the FC6 instruction. The reception size (#STAT15) is
checked, and receive processing is performed if data has been received. A send command from the
Standard PLC is initially required, and so reception processing is performed after completing the first
send.
(4) Once the data has been stored in the cleared receive area, check the size, and then start receive
processing.
(5) Copy G9SP Communications Transmission Data to QW 100 and QW 101 and G9SP Safety Input
Terminal Data to QW 102 to QW 104.
(6) The fixed portion of the send command is set.
(7) Once receive processing has been completed, set G9SP Communications Reception Data to the
send command from IW 100. The send command is sent to the Ethernet send port, which enables
sending to the G9SP-series Controller.
3-21