SR-750 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-750 Series and the Siemens S7-1200 Series.
SR-750
SIEMENS S7-1200 SERIES
Chapter
CONFIGURING KEYENCE CODE READER
Table of Contents 3 SR-750 SERIES SETTINGS
Use the Auto ID Network Navigator to configure the communication
Chapter 1 EQUIPMENT USED
settings for the SR-750 Series.
Chapter 2 CONNECTION METHODS
Chapter 3 CONFIGURING KEYENCE CODE READER SR-750 SERIES SETTINGS
Chapter 4 CONFIGURING SIEMENS S7-1200 SERIES SETTINGS
1 Use an Ethernet cable to connect the PC and the SR-750
Series.
Chapter 5 CREATING AND TRANSMITTING LADDER PROGRAMMES
Chapter 6 EXECUTING LADDER PROGRAMMES AND MONITORING READING DATA SR-750 Series
PC
Ethernet hub (AutoID Network Navigator)
Chapter
1 EQUIPMENT USED
Prepare the following equipment. Ethernet cable
CPU module 2D Code Reader
S7-1200 Series SR-750 Series
2 Start AutoID Network Navigator.
When you start AutoID Network Navigator, it will automatically search
for the SR-750 on the network. If the SR-750 cannot be found on the
network, a warning message like the one shown below will be
Ethernet cable Control cable displayed.
OP-87359 (2 m)*1 OP-87224 (2 m)*2
In this situation, follow the procedure below to set a temporary IP
*1 Cable for connecting the code reader and the PLC
*2 Cable for providing the 24 VDC power to the code reader and for use in I/O wiring address and establish communication with the SR-750.
and in sending and receiving RS-232C data
• Click the temporary IP address assignment button .
Chapter
2 CONNECTION METHODS
Overall connection diagram (when using power over Ethernet (POE) to
supply power to the SR-750)
When power is provided by way of power over Ethernet, connect
the S7-1200 Series and the SR-750 Series as shown below.
• Hold down the TEST button of the SR-750 Series unit for
Ethernet switch that supports 5 seconds. When LEDs 1 to 4 are lit, release the button.
SR-750 Series
power over Ethernet S7-1200 Series
Ethernet cable • When the unit has been found, the information below is displayed.
Click OK to assign the temporary IP address.
Port that supports
power over Ethernet
* When you are using the power over Ethernet function, use an Ethernet switch that
supports power over Ethernet.
Overall connection diagram (when the SR-750 is powered by a 24 VDC
source using the control cable)
Connect the S7-1200 Series and the SR-750 Series as shown below.
SR-750 Series Ethernet hub S7-1200 Series
Ethernet cable
Control cable Signal Name Wire Colour
24 V Brown 24 VDC
0V Blue power supply
2
SR-750
SIEMENS S7-1200 SERIES
CONFIGURING SIEMENS S7-1200 SERIES
3
Chapter
Change the settings to those of the desired fixed IP address.
4 SETTINGS
Change the Ethernet settings on the “Communication1” tab.
* TIA Portal V.11 or later is required to configure PROFINET settings.
1 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
4 Click the “Communication2” tab, and then configure
the settings for communication with the PLC.
want to use, and then click “OK.” (You can specify an arbitrary value
for “Device name.” Here, we have used “PLC_1.”)
Setting Item Setting Value
Data Port 2: Interface Ethernet
Protocol PROFINET
Click “Details,” and then enter the setting values.
* The PROFINET device name is a setting required to perform communication with
the PLC. Make sure that this matches the name that set on the PLC side. Also, do
not use a name that already exists on the same network.
Setting Item Setting Value
Data handshake Cleared
Device name sr-750
2 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 or other security software is enabled, the scan may not be performed
correctly. If communication is not performed correctly, temporarily disable the
security software.
When the scan
completes successfully,
the devices on the
network are displayed.
* 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. Open the detected PLC, and then double-click “Online & diagnostics.”
5 Click the send settings button in the upper right of AutoID
Network Navigator to send the settings to the SR-750.
3
SR-750
SIEMENS S7-1200 SERIES
Click “Assign IP address” under “Functions,” set the IP address and Double-click a PLC device from within the list of PLC devices.
subnet mask, and then click “Assign IP address.” Double-click “Devices & networks.”
In the “Hardware catalog” field, click “Other field devices,” “PROFINET IO,”
* 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 “Sensors,” “KEYENCE CORPORATION,” “Keyence Code Readers,”
status, and then return to step 2 of this procedure.
and then check that SR-75X is selectable.
3 Register the GSDML file for the SR-750 to TIA Portal.
GSDML file: definitions file for PROFINET
The GSDML file is in the AutoID Network Navigator installation folder.
• 64-bit version:
C:\Program Files (x86)\KEYENCE Applications\AutoID\GSDML
\SR-750
• 32-bit version:
C:\Program Files\KEYENCE Applications\AutoID\GSDML
\SR-750
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.”
4 Add SR-75X to the Network view.
In the “Devices & networks” field, click the “Network view” tab, and
then drag “SR-75X” 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.”
4
SR-750
SIEMENS S7-1200 SERIES
Click the green box in the upper left of the SR-75X to create a line, Under “Advanced options,” click “IO cycle,” and then set “Update time”
and then extend this line to the green box in the lower left of the PLC. to 64000 ms and “Accepted update cycles without IO data” to 16.
* Adjust these parameters to match your operation environment.
This connects the SR-75X and the PLC.
5 Configure the SR-750 settings.
On the “Network view” tab, click the SR-75X image.
In the “Device overview” window of the “Device view” tab, enter into 6 Set the PLC IP address.
the top of the table the Profinet device name that you set with AutoID Click the “Network view” tab, and then double-click the PLC image.
Network Navigator. On the “General” tab, click “Profinet interface,” click “Ethernet addresses,”
and then set the IP address of the PLC.
Double-click the SR-75X image, click the “General” tab, click
“PROFINET interface,” click “Ethernet addresses,” and then set the IP
7 Transmit the setting information to the PLC.
Click the “Network view” tab, right-click the PLC, point to “Compile,”
address of the SR-750.
and then click “All” to execute the compilation.
* 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. Right-click
* If the IP address that you set for the SR-750 on this screen is different from the IP here.
address that you set with AutoID Network Navigator, the IP address will be forcibly
changed to the one that you set here.
5
SR-750
SIEMENS S7-1200 SERIES
After the compilation is finished, right-click the PLC, point to Chapter
CREATING AND TRANSMITTING LADDER
“Download to device,” and then click “All” to transmit the compiled 5 PROGRAMMES
programme to the PLC.
This chapter explains how to transmit ladder programmes.
(An example without handshaking is explained.)
Right-click
here.
1 Set the PLC tags.
To check the address of the PLC device assigned to the SR-75X,
on the “Network view” tab, click the SR-75X, and then click the
“Device view” tab.
* For details on assigning functions to each module, see the SR-750 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.
On the “Extended download to device” screen, select the interface
that is connected to the PLC. Click the target PLC, 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-750 reading.
If “Different modules” is displayed on the “Load preview” screen,
select “Accept all,” and then click “Load.”
Read Complete is assigned to bit 0 of I address 1.
The data of the code read by the SR-750 is written starting from
I address byte 292.
Q address: output address (PLC ➝ SR-750)
I address: input address (PLC ➝ SR-750)
Q address 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 Operation instruction Control Bits
Read Request (starts reading)
I address 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 Completion Status Bits
After the “Load results” screen is displayed, click “Finish.” Read Complete (reading complete)
When PROFINET communication is established between the SR and
the PLC, the S7-1200 ERROR LED turns off. B292
B293 Result Data
B294
Read Data (reading result data)
6
SR-750
SIEMENS S7-1200 SERIES
Register this address information to PLC tags.
Under “PLC tags,” double-click “Add new tag table.” 3 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 After the compilation is finished, right-click the PLC, point to
device addresses in the “Address” column. “Download to device,” and then click “All” to transmit the compiled
As shown below, you can easily set the number of Result Data bytes by programme to the PLC.
using the mouse to drag the lower-right corner of the Result Data cell.
Right-click
here.
Use the mouse to
drag this corner
down.
To start the ladder programme, register “Start Ladder Bit” to the M1.0
address as well.
On the “Extended download to device” screen, select the interface
that is connected to the PLC. Click the target, and then click “Load.”
2
* 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.
7
SR-750
SIEMENS S7-1200 SERIES
If “Different modules” is displayed on the “Load preview” screen, Chapter
EXECUTING LADDER PROGRAMMES AND
select “Accept all,” and then click “Load.” 6 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.
1 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
After the “Load results” screen is displayed, click “Finish.” “Name” column. For each reading result (Result Data) entry, change
* If you select the “Start all” check box and click “Finish,” the ladder programme will
the value in the “Display format” column to “Character.” (When you
start. 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.)
2 Switch to online mode and start monitoring.
Click to switch to online mode.
On the “Online” menu, click “Monitor all.”
8
SR-750
SIEMENS S7-1200 SERIES
Click “RUN” on the CPU operator panel. Sample code
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.”
9
PROFINET is a trademark or a registered trademark of PROFIBUS & PROFINET International.
Other proper nouns such as product names included in this manual are trademarks or registered trademarks of their respective companies.
SAFETY INFORMATION
Please visit: [Link] Please read the instruction manual carefully in
order to safely operate any KEYENCE product.
KEYENCE CORPORATION
1-3-14, Higashi-Nakajima, Higashi-Yodogawa-ku, Osaka, 533-8555, Japan Phone: +81-6-6379-2211
AUSTRIA GERMANY MALAYSIA SLOVENIA
Phone: +43 22 36-3782 66-0 Fax: +43 22 36-3782 66-30 Phone: +49 61 02 36 89-0 Fax: +49 61 02 36 89-100 Phone: +60-3-2092-2211 Fax: +60-3-2092-2131 Phone: +386 1-4701-666 Fax: +386 1-4701-699
BELGIUM HONG KONG MEXICO SWITZERLAND
Phone: +32 1 528 1222 Fax: +32 1 520 1623 Phone: +852-3104-1010 Fax: +852-3104-1080 Phone: +52-81-8220-7900 Fax: +52-81-8220-9097 Phone: +41 43-45577 30 Fax: +41 43-45577 40
BRAZIL HUNGARY NETHERLANDS TAIWAN
Phone: +55-11-3045-4011 Fax: +55-11-3045-5219 Phone: +36 1 802 73 60 Fax: +36 1 802 73 61 Phone: +31 40 20 66 100 Fax: +31 40 20 66 112 Phone: +886-2-2718-8700 Fax: +886-2-2718-8711
CANADA INDIA POLAND THAILAND
Phone: +1-905-366-7655 Fax: +1-905-366-1122 Phone: +91-44-4963-0900 Fax: +91-44-4963-0901 Phone: +48 71 36861 60 Fax: +48 71 36861 62 Phone: +66-2-369-2777 Fax: +66-2-369-2775
CHINA ITALY ROMANIA UK & IRELAND
Phone: +86-21-68757500 Fax: +86-21-68757550 Phone: +39-02-6688220 Fax: +39-02-66825099 Phone: +40 269-232-808 Fax: +40 269-232-808 Phone: +44-1908-696900 Fax: +44-1908-696777
CZECH REPUBLIC JAPAN SINGAPORE USA
Phone: +420 222 191 483 Fax: +420 222 191 505 Phone: +81-6-6379-2211 Fax: +81-6-6379-2131 Phone: +65-6392-1011 Fax: +65-6392-5055 Phone: +1-201-930-0100 Fax: +1-201-930-0099
FRANCE KOREA SLOVAKIA
Phone: +33 1 56 37 78 00 Fax: +33 1 56 37 78 01 Phone: +82-31-789-4300 Fax: +82-31-789-4301 Phone: +421 2 5939 6461 Fax: +421 2 5939 6200
WW1-1013
The information in this publication is based on KEYENCE’s internal research/evaluation at the time of release and is subject to change without notice.
Copyright (c) 2013 KEYENCE CORPORATION. All rights reserved. PLCConS712SR75-WW-EN0501-GB 1073-1 600C18 Printed in Japan
* 6 0 0 C 1 8 *