You are on page 1of 10

SR-1000

Auto-ID Technical Guide

SIEMENS S7-1200 SERIES


Connection Guide: PROFINET Communication
This manual explains how to use PROFINET communication to connect
to the SR-1000 Series and the Siemens S7-1200 Series.

SR-1000
SIEMENS S7-1200 SERIES

Chapter

Table of Contents

CONFIGURING KEYENCE CODE READER


SR-1000 SERIES SETTINGS

Chapter 1 EQUIPMENT USED

Use the Auto ID Network Navigator to configure the communication


settings for the SR-1000 Series.

Chapter 3 CONFIGURING KEYENCE CODE READER SR-1000 SERIES SETTINGS

Chapter 2 CONNECTION METHODS

Chapter 4 CONFIGURING SIEMENS S7-1200 SERIES SETTINGS

Chapter 5 CREATING AND TRANSMITTING LADDER PROGRAMMES

Chapter 6 EXECUTING LADDER PROGRAMMES AND MONITORING READING DATA

Chapter

Use an USB cable to connect the PC and the SR-1000 Series.


PC
(AutoID Network Navigator)

SR-1000 Series

EQUIPMENT USED
USB cable

Prepare the following equipment.


CPU module
S7-1200 Series

Code Reader
SR-1000 Series

Start AutoID Network Navigator.

Double click the AutoID Network Navigator icon on your desktop.


When you start AutoID Network Navigator, it will automatically search
for the SR-1000 on the network.
Ethernet cable
OP-87227 (2 m)

Control cable
OP-87224 (2 m)

When the connection completes successfully, the below image is


displayed .

SB cable
OP-51580 (2 m)

Chapter

CONNECTION METHODS

Overall connection diagram


Connect the S7-1200 and the SR-1000 Series as shown below.
SR-1000 Series

Ethernet hub

S7-1200 Series

Ethernet cable

Control cable

Signal Name Wire Colour


24 V

Brown

0V

Blue

24 VDC
power supply

SR-1000
SIEMENS S7-1200 SERIES

Chapter

Change the settings to those of the desired fixed IP address.

Change the Ethernet settings on the "Ethernet" tab.

CONFIGURING SIEMENS S7-1200 SERIES


SETTINGS

* TIA Portal V.11 or later is required to configure PROFINET settings.

Use TIA Portal to create a new project.

Start TIA Portal, and then click Project view in the lower left of
the screen.
Click the new project button
to display the Create a new project
screen. Enter a project name, and then click Create.

Double-click Add new device under the new project that has been
added to the Project tree.
On the Add new device screen, click the S7-1200 Series that you will
use, and then click OK. (You can specify an arbitrary value for
Device name. Here, we have used PLC_1.)

Click the Start the setup wizard, and set as shown below.

Set an IP address on the PLC.

Open the Online access branch in the Project tree, and then click
the network card of the PC that the S7-1200 Series is connected to.
Double-click Update accessible devices to automatically scan for
and display the devices that can be accessed from the selected
network card.
* If a firewall is enabled, the scan may not be performed correctly. In this situation,
temporarily disable the firewall.

Setting Item
Data handshake
Device name

Setting Value
Disabled
sr-1000

* The PROFINET device name is a setting required to perform communication with


the PLC. Make sure that this matches the name that you will set on the PLC side.
Also, do not use a name that already exists on the same network.
* The handshake function has the SR output data synchronised with the data output
instructions of the PLC.
Enabled: The SR does not send new data to the PLC until there is an instruction
from the PLC.
Disabled: The SR sends new data to the PLC regardless of instructions from the PLC.
Here, disable this function.

When the scan completes


successfully, the devices on
the network are displayed.

Click the send settings button


in the upper right of
AutoID Network Navigator to send the settings to the SR-1000.
Open the detected PLC, and then double-click Online & diagnostics.

SR-1000
SIEMENS S7-1200 SERIES

Click Assign IP address under Functions, set the IP address and


subnet mask, and then click Assign IP address.

Double-click a PLC device from within the list of PLC devices.


Double-click Devices & networks.

* If the PLC has already been set, you may not be able to assign the IP address. In
this situation, click Reset to factory settings to return the PLC to its factory default
status, and then return to step 2 of this procedure.

Register the GSDML file (definitions file for SR-1000 Series


PROFINET) for the SR-1000 to TIA Portal.

In the Hardware catalog field, click Other field devices, PROFINET IO,
Sensors, KEYENCE CORPORATION, Keyence Code Readers,
and then check that SR-1000X is selectable.

* The GSDML file is in the AutoID Network Navigator installation folder.

64-bit version:
C:\Program Files (x86)\KEYENCE Applications\AutoID\GSDML
\SR-1000
32-bit version:
C:\Program Files\KEYENCE Applications\AutoID\GSDML
\SR-1000
On the Options menu, click Install general station description file
(GSD).

Specify the folder that contains the GSDML file for the Source path.
Select the check box of the corresponding GSDML file, and then click
Install.

Add SR-1000X to the Network view.

In the Devices & networks field, click the Network view tab, and
then drag SR-1000X from the catalogue to this tab.

After the GSDML file is read, you will be prompted to restart, so save
the project, and then restart the setup software.
Click Project view in the lower left of the screen, and then click
Open on the Project menu.
Click on a project, and then click Open.
After the Open existing project screen is displayed, click a project,
and then click Open.

SR-1000
SIEMENS S7-1200 SERIES

Click the green box in the upper left of the SR-1000X to create a line,
and then extend this line to the green box in the lower left of the PLC.

Under Advanced options, click IO cycle, and then set Update time
to 64.000 ms and Accepted update cycles without IO data to 16.
* Adjust these parameters to match your operation environment.

This connects the SR-1000X and the PLC.

Configure the SR-1000 settings.

Set the PLC IP address.

Click the Network view tab, and then double-click the PLC image.
On the General tab, click Profinet interface, click Ethernet addresses,
and then set the IP address of the PLC.

On the Network view tab, click the SR-1000X image.


In the Device overview window of the Device view tab, enter into
the top of the table the Profinet device name that you set with AutoID
Network Navigator.

Transmit the setting information to the PLC.

Click the Network view tab, right-click the PLC, point to Compile,
and then click All to execute the compilation.
Double-click the SR-1000X image, click the General tab, click
PROFINET interface, click Ethernet addresses, and then set the IP
address of the SR-1000X.

Right-click
here.

* If you attempt to specify the IP address that belongs to the PLC that you will set
later, the warning The IP address is not unique within the subnet. will be displayed.
Change the address of the PLC or SR.
* If the IP address that you set for the SR-1000 on this screen is different from the IP
address that you set with AutoID Network Navigator, the IP address will be forcibly
changed to the one that you set here.

After the compilation is finished, right-click the PLC, point to


Download to device, and then click All to transmit the compiled
programme to the PLC.
Right-click
here.

SR-1000
SIEMENS S7-1200 SERIES

On the Extended download to device screen, select the interface


that is connected to the PLC. Click the target PLC, and then click
Load.

Chapter

CREATING AND TRANSMITTING LADDER


PROGRAMMES

This chapter explains how to transmit ladder programmes.


(An example without handshaking is explained.)

Set the PLC tags.

To check the address of the PLC device assigned to the SR-1000X,


on the Network view tab, click the SR-1000X, and then click the
Device view tab.
* For details on assigning functions to each module, see the SR-1000 Series User's
Manual.
* The addresses are assigned to each module automatically (you can assign these
addresses manually). The assignments shown in the image below are used in the
explanation that follows.

If Different modules is displayed on the Load preview screen,


select Accept all, and then click Load.

Module names

Process memory assignments

Operation instruction Control Bits_1 is assigned to Q address 1.


Set bit 0 of Operation instruction Control Bits_1 to TRUE to start
SR-1000 reading.
After the Load results screen is displayed, click Finish.
When PROFINET communication is established between the SR and
the PLC, the S7-1200 ERROR LED turns off.

Read Complete is assigned to bit 0 of I address 1.


The data of the code read by the SR-1000 is written starting from
I address byte 292.
Q address: output address (PLC SR-1000)
I address: input address (PLC SR-1000)
Q address
1

15 14 13 12 11 10 9

Operation instruction Control Bits

Read Request (starts reading)


I address
1

15 14 13 12 11 10 9

Completion Status Bits

Read Complete (reading complete)


B292
B293

Result Data

B294

Read Data (reading result data)

SR-1000
SIEMENS S7-1200 SERIES

Register this address information to PLC tags.


Under PLC tags, double-click Add new tag table.

Compile and transmit the programme.

Double-click Devices & networks in the Project tree, right-click the


PLC, point to Compile, and then click All to execute the compilation.
* You cannot compile in Online mode. Click

to switch to Offline mode.

Right-click
here.

Tag table_1 is added. Enter the arbitrary names of the data in the
Name column, the data types in the Data type column, and the
device addresses in the Address column.
You can download the Tag Description CSV file on the WEB
(barcodereader.com).
Please copy the CSV file data and paste Tag table.(Before copy and
paste, please fit the column between CSV file and your Tag table.)

After the compilation is finished, right-click the PLC, point to


Download to device, and then click All to transmit the compiled
programme to the PLC.
Right-click
here.

On the Extended download to device screen, select the interface


that is connected to the PLC. Click the target, and then click Load.
To start the ladder programme, register Start Ladder Bit to the M1.0
address as well.

* This screen may not be displayed.

Create the ladder programme.

Under Program blocks, double-click Main [OB1] to open the


programme block, and then enter the following ladder programme.

Explanation

When Start Ladder Bit is changed to TRUE, Read Request (the


trigger ON instruction) is executed, which starts the reading operation.

SR-1000
SIEMENS S7-1200 SERIES

If Different modules is displayed on the Load preview screen,


select Accept all, and then click Load.

Chapter

EXECUTING LADDER PROGRAMMES AND


MONITORING READING DATA

This chapter explains how to start SR reading through PROFINET


and how to check that the reading results are written to the data map.

Register devices to the Watch table.

Click Watch and force tables, and then double-click Add new watch
table.

In Watch table_1, enter the tag names registered to PLC tags in the
Name column. For each reading result (Result Data) entry, change
the value in the Display format column to Character. (When you
write a name registered to PLC tags in the Name column, the data
is written to the other columns automatically. You can also copy data
from the Tag Table.)

After the Load results screen is displayed, click Finish.


* If you select the Start all check box and click Finish, the ladder programme will
start.

2
Click

Switch to online mode and start monitoring.


to switch to online mode.

On the Online menu, click Monitor all.

SR-1000
SIEMENS S7-1200 SERIES

Sample code

Click RUN on the CPU operator panel.

KEYENCE

In the Watch table, right-click the value in the Monitor value column
for Start Ladder Bit, point to Modify, and then click Modify to 1 to
start reading.
Right-click
here.

When the sample code is read, the data read is stored in the Result
Data area as shown below. Also, you can check whether reading is
complete by checking whether Read Complete has changed to
TRUE.

To complete reading without reading the code, use Modify to 0 to


set Start Ladder Bit to FALSE.

Please visit:

SAFETY INFORMATION

www.keyence.com

Please read the instruction manual carefully in


order to safely operate any KEYENCE product.

KEYENCE CORPORATION
AUSTRIA
Phone: +43 22 36-3782 66-0

CZECH REPUBLIC
Phone: +420 222 191 483

INDIA
Phone: +91-44-4963-0900

MALAYSIA
Phone: +60-3-2092-2211

SINGAPORE
Phone: +65-6392-1011

THAILAND
Phone: +66-2-369-2777

BELGIUM
Phone: +32 1 528 1222

FRANCE
Phone: +33 1 56 37 78 00

INDONESIA
Phone: +62-21-2966-0120

MEXICO
Phone: +52-55-8850-0100

SLOVAKIA
Phone: +421 2 5939 6461

UK & IRELAND
Phone: +44-1908-696900

BRAZIL
Phone: +55-11-3045-4011

GERMANY
Phone: +49 61 02 36 89-0

ITALY
Phone: +39-02-6688220

NETHERLANDS
Phone: +31 40 20 66 100

SLOVENIA
Phone: +386 1-4701-666

USA
Phone: +1-201-930-0100

CANADA
Phone: +1-905-366-7655

HONG KONG
Phone: +852-3104-1010

JAPAN
Phone: +81-6-6379-2211

POLAND
Phone: +48 71 36861 60

SWITZERLAND
Phone: +41 43-45577 30

VIETNAM
Phone: +84-4-3760-6214

CHINA
Phone: +86-21-68757500

HUNGARY
Phone: +36 1 802 73 60

KOREA
Phone: +82-31-789-4300

ROMANIA
Phone: +40 269-232-808

TAIWAN
Phone: +886-2-2718-8700
WW1-1065

The information in this publication is based on KEYENCEs internal research/evaluation at the time of release and is subject to change without notice.
Company and product names mentioned in this catalogue are trademarks or registered trademarks of their respective companies.
PLCConS712SR1000-WW-EN-GB 1114-2 600F51 Printed in Japan
Copyright (c) 2014 KEYENCE CORPORATION. All rights reserved.

You might also like