0% found this document useful (0 votes)
43 views53 pages

Host Connection Manual: Safety Controller

This document provides instructions for connecting a G9SP-series Safety Controller to standard PLCs from other manufacturers like OMRON, Mitsubishi Electric, and Siemens using either RS-232C or Ethernet communications. It describes the functionality, communication formats, and includes application examples for connecting to specific PLC models.

Uploaded by

Murilo Oliveira
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views53 pages

Host Connection Manual: Safety Controller

This document provides instructions for connecting a G9SP-series Safety Controller to standard PLCs from other manufacturers like OMRON, Mitsubishi Electric, and Siemens using either RS-232C or Ethernet communications. It describes the functionality, communication formats, and includes application examples for connecting to specific PLC models.

Uploaded by

Murilo Oliveira
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 53

Cat. No.

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.

Manula name Contents Cat. No.


G9SP-series Safety Controller This manual provides sample ladder Z924
Host Connection Manual (this programming and describes how to
connect to a Standard PLC from another
manual)
manufacturer using the communications
functionality of the G9SP-series Controller's
Option Board. The procedure for connecting to a
Standard PLC from another manufacturer is
described in the G9SP Operation Manual.
G9SP-series Safety Controller This manual provides detailed specifications and Z922
Operation Manual describes functions and application methods for
the G9SP-series Controller in detail.
G9SP-series Safety Controller This manual describes the safety programming Z923
Instructions Reference Manual methods, provides the specifications, and
describes the functions and operating methods
of the G9SP-series Controllers.

2
Table of Contents
Introduction ....................................................................................................................1
Manual Configuration .....................................................................................................2
Table of Contents ...........................................................................................................3

Section 1 Connecting to OMRON PLCs


1-1 Functionality ..................................................................................................1-2
1-2 RS-232C Serial Communications ..................................................................1-3
1-3 Ethernet Communications .............................................................................1-4

Section 2 Connecting to Mitsubishi Electric PLCs


2-1 Functionality ..................................................................................................2-2
2-2 RS-232C Serial Communications ..................................................................2-3
2-2-1 Communication Format..............................................................2-3
2-2-2 Application Example 1(Connecting to the Mitsubishi Standard PLC
Q Series)....................................................................................2-3
2-2-3 Application Example 2(Connecting to the Mitsubishi Standard PLC
FX Series) ................................................................................2-10
2-3 Ethernet Communications ...........................................................................2-16
2-3-1 Communication Format............................................................2-16
2-3-2 Application Example ..............................................................2-16

Section 3 Connecting to Siemens PLCs


3-1 Functionality ..................................................................................................3-2
3-2 RS-232C Serial Communications ..................................................................3-3
3-2-1 Communication Format..............................................................3-3
3-2-2 Application Example ................................................................3-3
3-3 Ethernet Communications ...........................................................................3-11
3-3-1 Communication Format............................................................3-11
3-3-2 Application Example ..............................................................3-11

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-1 Functionality.................................................................................................. 1-2


1-2 RS-232C Serial Communications ................................................................. 1-3
1-3 Ethernet Communications............................................................................. 1-4
1-1 Functionality
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-2
1-2 RS-232C Serial Communications

1-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).

Connecting to OMRON PLCs


1

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-1 Functionality.................................................................................................. 2-2


2-2 RS-232C Serial Communications ................................................................. 2-3
2-2-1 Communications Format ..................................................................2-3
2-2-2 Application Example 1(Connecting to the Mitsubishi Standard PLC Q
Series.) .............................................................................................2-3
2-2-3 Application Example 2(Connecting to the Mitsubishi Standard PLC FX
Series.) ...........................................................................................2-10
2-3 Ethernet Communications............................................................................2-16
2-3-1 Communications Format ................................................................2-16
2-3-2 Application Example .......................................................................2-16
2-1 Functionality
Refer to Section 7 Communications with a Standard PLC Using an Option Board of
the G9SP Series Safety Controller Operation Manual (Cat. No. Z922).

2-2
2-2 RS-232C Serial Communications

2-2 RS-232C Serial Communications


This section provides a description and example of connection to a Mitsubishi
Electric Standard PLC. The No-protocol communications are available for
connection with a Mitsubishi Electric Standard PLC.

2-2-1 Communications Format

Refer to Section 7 Communications with a Standard PLC Using an Option Board of

Connecting to Mitsubishi Electric PLCs


the G9SP Series Safety Controller Operation Manual (Cat. No. Z922).

2-2-2 Application Example 1(Connecting to the Mitsubishi Standard


PLC Q Series.)
System Configuration
This section uses the following example to describe how to access the
G9SP-series Controller by performing serial communications through a
RS-232C Serial Comm- unications Board (CP1W-CIF01) from a Mitsubishi
Electric Standard PLC Q series.

Mitsubishi Standard PLC(See Note.)

MELSEC-Q Serial No-protocol


series Communication
Module
2

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

G9SP-series Controller Settings


Settings are not required. Make the communications settings in the Mitsubishi
Electric Standard PLC to match the serial communications specifications of the
G9SP-series Controller.

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.

z PLC parameter settings


Set serial communication module CH2 as given below in the PLC parameter by
selecting[Project data list]-[Parameter]-[PLC parameter]-[I/O assignment].

Parameter Description Set value for this example


Communication protocol setting Communication protocol Non-procedure
Transmission setting Transmission setting Data bit :8bits
Parity bit :Yes
Odd/even parity:Even
Stop bit :1bit
Sum check code :No
Communication rate setting Baud rate 9600bps

z Intelligent function utility settings


Set serial communication module CH2 as given below in the CH2 Non procedure
system setting by selecting [Tools]-[Intelligent function utility]-[Start].

Parameter Description Set value for this example


Received data count designation Received data count 00C7(199bytes)
Receive complete code designation Receive complete code FFFF(Not designated)

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).

G9SP-series Mitsubishi Electric Q series


RS-232C Serial Communications serial communication module
Board
Connector Signal Pin No. Pin No. Signal Connector
FG 1 1 CD

Connecting to Mitsubishi Electric PLCs


SD 2 2 RD
D-Sub RD 3 3 SD D-Sub
male RS 4 4 ER male
9-pin 9-pin
CS 5 5 SG
5V 6 6 DR
DR 7 7 RS
ER 8 8 CS
SG 9 9 RI

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.
2

z RS-232C Serial Communications Sequence


The G9SP-series Controller returns a response to the command sent from the
Standard PLC.
Standard PLC G9SP-series Controller

Initialization

Send processing Sent command


Receive processing Reception response Send/receive processing
after 300 ms

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.

- 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

- G9SP Communications Transmission Data


15 8 7 0
Y200 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
Y210 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

- G9SP Safety Input Terminal Data


15 8 7 0
Y220 Si Si Si Si Si Si Si Si Si Si Si Si Si Si Si Si
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Y230 Reserved Si Si Si Si
19 18 17 16
Y240 Reserved

2-6
2-2 RS-232C Serial Communications

z Sample Ladder Programming


- From Initial Settings to Cyclic Send/Receive

Initial Settings (1)

Connecting to Mitsubishi Electric PLCs


(2)
(3)

Reception processing (4)

(5)

Send processing
(6)

(7)

(8)

2-7
- Reception completion processing

(9)

Reception completion processing

(10)

2-8
2-2 RS-232C Serial Communications

- Checksum Calculation Subroutine

Connecting to Mitsubishi Electric PLCs


2

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.

Mitsubishi Standard PLC(See Note.)

MELSEC-FX Communi Non procedure


series cation
Adapter

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)

G9SP-series Controller Settings


Settings are not required. Make the communications settings in the Mitsubishi
Electric Standard PLC to match the serial communications specifications of the
G9SP-series Controller.

Mitsubishi Electric PLC FX series Settings


Set RS-232C communication adapter CH1 as given below in the PLC parameter
using the GX Developer.
z PLC parameter settings
Set RS-232C communication adapter CH2 as given below in the PLC parameter
by selecting[Project data list]-[Parameter]-[PLC parameter]-[PLC System(2)].

Parameter Description Set value for this


example
Protocol Communication protocol Non-procedural
Data length Transmission setting 8bit
Parity Even
Stop bit 1bit
Transmission Speed Baud rate 9600
Header Set the header. Yes
H/W Type Normally choose RS-232 or Regular/RS232C
RS-485.
Transmission control Choose format 1/format 4. Form1(without
procedure CR,LF)
Time out judge time Set the time-out period. 30(300msec)

2-10
2-2 RS-232C Serial Communications

Connecting to Mitsubishi Electric PLCs


Communications cable
The suited cable is different according to the combination of component. Please
2
produce the cable of the following connecting wires when connecting with a
Mitsubishi Electric Standard PLC FX series.

G9SP-series Mitsubishi Electric FX series


RS-232C Serial Communications RS-232 communication adapter
Board
Connector Signal Pin No. Pin No. Signal Connector
FG 1 1 CD
SD 2 2 RD
D-Sub RD 3 3 SD D-Sub
male RS 4 4 ER male
9-pin 9-pin
CS 5 5 SG
5V 6 6 DR
DR 7 7
ER 8 8
SG 9 9

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.

z RS-232C Serial Communications Sequence


The G9SP-series Controller returns a response to the command sent from the
tandard PLC.
Standard PLC G9SP-series Controller

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

z Mitsubishi Electric Standard PLC FX series Memory Allocations


Start address End address Contents Description
D100 D108 RS-232C send command Data sent by the Standard PLC to the
G9SP-series Controller
D200 D298 RS-232C reception response Data received by the Standard PLC from
the G9SP-series Controller
D330 D336 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 Communications data sent from the G9SP-
data (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-12
2-2 RS-232C Serial 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

- G9SP Communications Transmission Data


15 8 7 0
Y200 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
Y210 bit bit bit bit bit bit bit bit bit bit bit bit bit bit bit bit

Connecting to Mitsubishi Electric PLCs


31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16

- G9SP Safety Input Terminal Data


15 8 7 0
Y220 Si Si Si Si Si Si Si Si Si Si Si Si Si Si Si Si
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Y230 Reserved Si Si Si Si
19 18 17 16
Y240 Reserved

z Sample Ladder Programming


- From Initial Settings to Cyclic Send/Receive

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

- Checksum Calculation Subroutine

Connecting to Mitsubishi Electric PLCs


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) To execute the sending and receiving of the RS232C port, the RS instruction is executed.
(4) Once 300 ms has elapsed, to execute the transmission processing, the pulse is set to M0. 2
(5) Once 300 ms has elapsed, the RS-232C reception end bit (M8123) 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.
(6) The checksum calculation subroutine given above is called, and the checksum of the
reception response is calculated.
(7) The checksum of the reception response and the end code are checked, and the G9SP
Communications Transmission Data is copied to Y200 and G9SP Safety Input Terminal
Data is copied to Y220.
(8) G9SP communications reception data is set to the send command from X 100.
(9) The checksum calculation subroutine given above is called, and the checksum of the
transmission command is calculated.
(10) The checksum 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.
(11) The timer is restarted and the next receive processing is performed after 300 ms.

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.

2-3-1 Communications Format

Refer to Section 7 Communications with a Standard PLC Using an Option Board of


the G9SP Series Safety Controller Operation Manual (Cat. No. Z922).

2-3-2 Application Example


System Configuration
This section uses the following example to describe how to access the
G9SP-series Controller by performing Ethernet communications through a
Ethernet Communica- tions Board (CP1W-CIF41) from a Mitsubishi Electric
Standard PLC Q series.

Mitsubishi Standard PLC(See Note.)

Q002 Ethernet FINS/UDP


Interface
Unit 192.168.250.18

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

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.11
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 gateway. No change is

Connecting to Mitsubishi Electric PLCs


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 required.
rightmost 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. required.
Set the IP address table when IP routing is used.

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].

Parameter Description Set value for this example


Network type Select installed unit Ethernet
Starting I/O No. Set a top address of unit 0000
Network No. Set a network number of unit 1
Group No. Set a group number of unit 1
Station No. Select a station number of unit 1
Mode Select a operation mode of unit On line

z Operation Settings
Set the setting the Ethernet operations by selecting [Project data list]-[Parameter]
– [Network param] – [Ehternet/CC IE/MELSECNET] – [Operation Settings].

Parameter Description Set value for this example


IP Address IP address of QJ71E71-100. 192.168.250.18

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].

Parameter Description Set value for this example


Protocol Set a communication protocol UDP
Fixed buffer Select a communicatin procedure using No procedure
communication fixed buffer
procedure
Paring open Select a paring open Enable
Existence Select an existence confirmation Confirm

Connecting to Mitsubishi Electric PLCs


confirmation
Host station Port No. Set a port number of the host station 2580
Transmission target Set an IP address of the transmission 192.168.250.11
device IP address target device
Transmission target Set a por number of the transmission 2580
device Port No. target device

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.

z Ethernet Communications Sequence


The G9SP-series Controller returns a response to the command sent from the
Standard PLC.
Standard PLC G9SP-series Controller

Initialization

Send processing Sent command


Receive processing Reception response Send/receive processing
after 300 ms

Receive processing
Send processing
Receive End Sent command
Receive processing Reception response Send/receive processing
after 300 ms

Receive processing
Send processing
Receive End

z Mitsubishi Electric Standard PLC Q series Memory Allocations


Start address End address Contents Description
D300 D312 Ethernet send command Data sent by the Standard PLC to the G9SP-series
Controller.
D500 D603 Ethernet reception response Data received by the Standard PLC from the G9SP-
series Controller.
D3000 - BUFSND instruction control Control data for the BUFSND instruction is stored.
data
D5000 - BUFRCV instruction control Control data for the BUFRCVinstruction is stored.
data
X100 X11F G9SP communications rece- Data written to G9SP-series Controller from Standard
ption data (written to G9SP- PLC. Stored in the communications reception data of the
series Controller) G9SP-series Controller.
Y200 Y21F G9SP communications Communications data sent from the G9SP-series
transmission data (read from Controller is read.
the G9SP-series Controller)
Y220 Y24F G9SP Safety Input terminal Safety Input terminal data of the G9SPseries
data (read from the G9SP- Controller is read.
series Controller)

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

- G9SP Communications Transmission Data


15 8 7 0
Y200 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
Y210 bit bit bit bit bit bit bit bit bit bit bit bit bit bit bit bit

Connecting to Mitsubishi Electric PLCs


31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16

- G9SP Safety Input Terminal Data


15 8 7 0
Y220 Si Si Si Si Si Si Si Si Si Si Si Si Si Si Si Si
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Y230 Reserved Si Si Si Si
19 18 17 16
Y240 Reserved

z Sample Ladder Programming


- From Initial Settings to Cyclic Send/Receive

(1)
2
Initialization

(2)

(3)

2-21
(4)

(5)

Send processing

(6)

(7)

Reception processing
(8)

Reception completion processing


(9)

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-1 Functionality ................................................................................................... 3-2


3-2 RS-232C Serial Communications..................................................................... 3-3
3-2-1 Communications Format ..................................................................3-3
3-2-2 Application Example .........................................................................3-3
3-3 Ethernet Communications............................................................................3-11
3-3-1 Communications Format ................................................................3-11
3-3-2 Application Example .......................................................................3-11
3-1 Functionality
Refer to Section 7 Communications with a Standard PLC Using an Option Board of the
G9SP Series Safety Controller Operation Manual (Cat. No. Z922).

3-2
3-2 RS-232C Serial Communications

3-2 RS-232C Serial Communications


This section provides a description and example of connection to a Siemens Standard PLC.
Freeport protocol communications are used for connection with a Siemens Standard PLC.

3-2-1 Communications Format

Refer to Section 7 Communications with a Standard PLC Using an Option Board of the
G9SP Series Safety Controller Operation Manual (Cat. No. Z922).

3-2-2 Application Example

Connecting to Siemens PLCs


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.

Siemens Standard PLC(See Note.)

S7-200 series PLC Freeport protocol

RS-232
port 3
G9SP-series
CP1W-CIF01
Controller
Option Board

Note: This example uses the following Siemens Standard PLC.


Product Model/version
CPU Unit (Standard PLC) S7-200 CPU 224XP
Support Software (for setup and STEP 7-Micro/WIN V4.0.5.08
creating ladder programs)

G9SP-series Controller Settings


Settings are not required. Make the communications settings in the Siemens Standard PLC
to match the serial communications specifications of the G9SP-series Controller.

3-3
Siemens PLC Settings
Set serial port 1 as given below in the Ladder using the STEP 7-Micro/WIN.

Parameter Description Set value for this


example
Freeport Control Freeport Please set SMB130 to $49.
Control communication for SMB130 Bit Format
Registers serial port MSB LSB
7 6 5 4 3 2 1 0
P D B M
P:Parity(0 1=Even parity)
D:Data bits(0=8 data bits per character)
B:Baud rate(0 1 0=9600bps)
M:Protocol(0 1=Freeport protocol)

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.

G9SP-series Siemens S7-200-series


RS-232C Serial Communications RS-232 port
Board
Connector Signal Pin No. Pin No. Signal Connector
FG 1 1 CD
SD 2 2 RD
D-Sub RD 3 3 SD D-Sub
male RS 4 4 ER male
9-pin 9-pin
CS 5 5 SG
5V 6 6 DR
DR 7 7 RS
ER 8 8 CS
SG 9 9 RI

3-4
3-2 RS-232C Serial Communications

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.

z RS-232C Serial Communications Sequence


The G9SP-series Controller returns a response to the command sent from the
Standard PLC.
Standard PLC G9SP-series Controller

Initialization

Send processing Sent command


Reception response Send/receive processing
Send processing

Connecting to Siemens PLCs


after 300 ms
Receive processing

Send processing Sent command

Reception response Send/receive processing


Send processing
after 300 ms
Receive processing

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.

- G9SP Communications Reception Data


15 8 7 0
I0-I1 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
I2-I3 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

- G9SP Communications Transmission Data


15 8 7 0
Q0-Q1 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
Q2-Q3 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

- G9SP Safety Input Terminal Data


15 8 7 0
Q4-Q5 Si Si Si Si Si Si Si Si Si Si Si Si Si Si Si Si
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Q6-Q7 Reserved Si Si Si Si
19 18 17 16
Q8-Q9 Reserved

3-6
3-2 RS-232C Serial Communications

z Sample Ladder Programming


- Initial Settings(MAIN)

(1)

Connecting to Siemens PLCs


Initial Settings

(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)

Connecting to Siemens PLCs


(11)

- Send end processing(INT_2)

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

3-3 Ethernet Communications


This section provides a description and example of connection to a Siemens
Standard PLC. Connection can be performed to an Siemens Standard PLC
using the FINS/UDP protocol.

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).

3-3-1 Communications Format

Refer to Section 7 Communications with a Standard PLC Using an Option Board of the

Connecting to Siemens PLCs


G9SP Series Safety Controller Operation Manual (Cat. No. Z922).

3-3-2 Application Example

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).

Siemens Standard PLC(See Note) 3


S7-300 Ethernet FINS/UDP
Interface
Unit 192.168.250.1

G9SP-series Controller
Switching HUB CP1W-CIF41
Option Board

192.168.250.2

Note: This example uses the following Siemens Standard PLC.


Product Model/version
CPU Unit (Standard PLC) S7-300 CPU315-2 DP
Ethernet Interface Unit CP343-1
Support Software (for setup and creating STEP 7 V5.3+SP3
ladder/Function Block programs)

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

Siemens PLC Settings


Set the Ethernet port as shown below in the Hardware Configuration using the STEP7.

z Ethernet Interface unit settings

Set Ethernet interface unit as given below in the H/W Config by selecting [General] -
[Properties...].

Parameter Description Set value for this example


IP address IP address of the CP343-1 192.168.250.1
Subnet mask Subnet mask of the CP343-1 255.255.255.0

Connecting to Siemens PLCs


3

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.

z Ethernet Communications Sequence


The G9SP-series Controller returns a response to the command sent from the
Standard PLC.

Standard PLC G9SP-series Controller

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

z Siemens PLC Memory Allocations


Start address End address Contents Description
DB201.0 DB201.23 Ethernet send command Data sent by the Standard PLC to the
G9SP-series Controller
DB201.50 DB201.261 Ethernet reception response Data received by the Standard PLC from
the G9SP-series Controller
DB200.4.0 DB200.6.0 FC6 instruction control data Control data for the FC6 instruction is
stored.
DB200.4.0 DB200.6.0 FC5 instruction control data Control data for the FC5 instruction is
stored.
IW100 IW101 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. (Refer to Operation Manual
7-1-3 Transmission/Reception Data.)
QW100 QW101 G9SP communications transmission Communications data sent from the G9SP-
data (read from the G9SP-series Con- series Controller is read. (Refer to Operation
troller) Manual 7-1-3 Transmission/Reception Data.)
QW102 QW104 G9SP Safety Input terminal data (read Safety Input terminal data of the G9SP-
from the G9SP-series Controller) series Controller is read. (Refer to Operation
Manual 7-1-3 Transmission/Reception Data.)

3-14
3-3 Ethernet Communications

- G9SP Communications Reception Data


15 8 7 0
IW100 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
IW101 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

- G9SP Communications Transmission Data


15 8 7 0
QW100 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
QW101 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

- G9SP Safety Input Terminal Data


15 8 7 0

Connecting to Siemens PLCs


QW102 Si Si Si Si Si Si Si Si Si Si Si Si Si Si Si Si
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
QW103 Reserved Si Si Si Si
19 18 17 16
QW104 Reserved

z Sample Ladder Programming


- DB200 Settings

3-15
- Initial Settings

(1)

(2)

3-16
3-3 Ethernet Communications

- Reception processing

1
1

(3)

Connecting to Siemens PLCs


(4)
3

3-17
(5)

3-18
3-3 Ethernet Communications

(5)

Connecting to Siemens PLCs


1
1

3-19
- Send processing

(6)

1
1

(6)

1
1

3-20
3-3 Ethernet Communications

(6)

Connecting to Siemens PLCs


(7)

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

You might also like