Controlling a SERVOLASER Xpert via a Siemens SIMATIC S using the Profibus protocol

Similar documents
Service & Support. How can you establish a connection between a S PLC and SIMATIC NET OPC? S PLC, SIMATIC NET OPC.

Training Document for Comprehensive Automation Solutions Totally Integrated Automation (T I A) MODUL E04

Service & Support. How can you establish a connection between an S PLC and SIMATIC NET OPC? S PLC, SIMATIC NET OPC.

PROCESS AUTOMATION PLANNING AND INTEGRATION INFORMATION LB8106* Integration in Siemens SIMATIC PCS 7

Using the WAGO PROFINET Coupler as Remote I/O with a Siemens S7 PLC

ABB industrial drives. Quick start-up guide Drive Manager for SIMATIC

1 Application Description Objective Goals... 3

The goal is to program the PLC and HMI to count with the following behaviors:

Application Note Profinet Modules

PROFINET IRT: Getting Started with The Siemens CPU 315 PLC

Training Document for Comprehensive Automation Solutions Totally Integrated Automation (T I A) MODULE A5 Programming the CPU 314C-2DP

CPU PN/DP: Configuring an ET. 200S as PROFINET IO device SIMATIC. PROFINET CPU PN/DP: Configuring an ET 200S as PROFINET IO device

Validity 1. Improvements in STEP 7 2. Improvements in WinCC 3. Simatic. Readme. Readme

Anybus OPC Server. Application Note. Doc.Id. SCM Rev HMS Industrial Networks AB

1 Application Description System Topology Hardware and Software Requirements... 3

Application Note Siemens PLC and SIMATIC STEP 7 / TIA Portal

TECHNICAL NOTE TNOI34

Application about Communication

Profinet to EDV111 Series LED Signs Siemens Function Block Software Manual

Configuration a Profibus-DP node using Step7 and WAGO-I/O components Application note

BECKHOFF. Application Notes. BC9000: Getting Started Guide. For additional documentation, please visit.

Easy Setup Guide for the Sony Network Camera

About This Guide SolarEdge Configuration Tool Software Guide. About This Guide

How-To-Do. EtherCAT Communication with CPU 300S

Crown Field Support Engineering

Applications & Tools. Configuration of Messages and Alarms in WinCC (TIA Portal) WinCC (TIA Portal) Application description December 2012

Ethernet Module Manual

WinCC. Communication Manual. Manual 2. This manual is part of the documentation package with the order number: 6AV6392-1CA05-0AB0 C79000-G8276-C156-01

WinCC Runtime Professional Readme SIMATIC HMI. WinCC V11 SP1. Readme WinCC Runtime Professional. Special considerations for Windows 7.

STEP 7 MICRO/WIN TUTORIAL. Step-1: How to open Step 7 Micro/WIN

Using a USB to Serial adapter and Terminal Emulator in Windows 7 to communicate with a DM101

Getting Started - SINAMICS Startdrive. Startdrive. SINAMICS Getting Started - SINAMICS Startdrive. Introduction 1

AXIS Camera Station Quick Installation Guide

Training Document for Comprehensive Automation Solutions Totally Integrated Automation (T I A) MODULE C2. High Level Programming with S7-SCL

How-To-Do. Hardware Configuration SLIO CPU 014

SIMATIC Expert Communication Connecting S7-400H to PC Station (WinCC)

Smart Control Center. User Guide. 350 East Plumeria Drive San Jose, CA USA. November v1.0

Instructions for the installation of drivers and data reading software (TOOLBOX 4) The simple and reliable way to measure radioactivity.

MS830 / MS833 Barcode Reader v1.0 9-December-2014

User Manual Revision English

IGSS. Interactive Graphical SCADA System. Quick Start Guide

Document authored by: Native Instruments GmbH Hardware version: Traktor Kontrol X1 MK2 (01/2013)

SIMATIC PDM V6.0. Getting Started Edition 12/2004

Siemens S7 PLC and FC 300 Profibus

Visualization SIMATIC. Visualization. Present sample project. HMI configuration. Insert HMI device from libraries 3. Configuring HMI connection 4

iloq P10S.10/20 Programming device User's Guide

Moxa Device Manager 2.0 User s Guide

OPERATION MANUAL. MV-410RGB Layout Editor. Version 2.1- higher

Anoto pendocuments. User s Guide

Application Note. WAGO EtherNet/IP Communications with a CompactLogix PLC Using Explicit Messaging. A500620e, English Version: 1.0.

NetDisk & NetDisk Mini

Ethernet/IP Comms between a WAGO and a Mettler Toledo JAGXTREME Terminal Application note

Training Document for Comprehensive Automation Solutions Totally Integrated Automation (T I A) MODULE E05

USB 2.0 Video Grabber TX 20

Siemens S7 TCP/IP Master with TIA S7 Tag Import Communications Driver

ABB solar inverters. User s manual ABB Remote monitoring portal

CMS Server Installation Guide

User Manual Revision English

Keep it Simple Timing

ACU-1000 Manual Addendum Replacement of CPM-2 with CPM-4

Accessing EtherNet/IP Network Variables in a WAGO with a ControlLogix PLC Application note

CAP 501. User s Guide

Using IDENT M System T with Modbus/TCP

Applications & Tools. Migration to TIA Portal. WinCC Basic / Comfort / Advanced STEP 7 V5.x / WinCC flexible 2008 SP3. Migration Guide September 2013

FAQ about Drive Technology

E-Loader Operation Manual

A PC

S7 for Windows S7-300/400

Cover sheet PROFINET IO. SIMATIC MV440 Code Reading System. FAQ February Service & Support. Answers for industry.

Modicon M340 Firmware

PL-2303 (Chip Rev H, HX, X) USB to Serial Adapter Windows Driver Installer Manual

Caplio Utility for Windows

OSM 2007 MONITORING SOFTWARE

S7 OPC Server Tutorial

FINS Gateway For OMRON PLCs

USER GUIDE. Ethernet Configuration Guide (Lantronix) P/N: Rev 6

Schneider OS-Loader usage via Ethernet or USB.

Application Note: Connecting to a 2500 Series Processor using PLC Workshop

PLC training panel (Twido version)

Adding a Modbus TCP Device to the Network. Setting Up Your Network

Flexi Soft Ethernet IP: Implicit Messaging with a Omron PLC

UDS2100 Quick Start Guide

USB PC Adapter V4 Configuration

Network/Floating License Installation Instructions

MDM Mass Configuration Tool User s Manual

Patching the Windows 2000 Server Operating System on S8100 Media Servers, IP600 Communications Servers, & DEFNITY ONE Communications Systems

ADSL Router Quick Installation Guide Revised, edited and illustrated by Neo

HTML Code Generator V 1.0 For Simatic IT Modules CP IT, IT, IT

Device Installer User Guide

SLC 5/05 Processors Firmware/Operating System ControlFLASH Upgrade

R&S AFQ100A, R&S AFQ100B I/Q Modulation Generator Supplement

Bluetooth Installation

FAQ Communication over IE

Using the AnyBus -X Gateway to Communicate between a DVT camera and a Profibus Master

Universal Serial Bus (USB) to DH-485 Interface Converter

Hypercom Key Loading and Management (HKLM) RS232 PPP Key Injection PC Setup Guide

Operating Instructions

ProSAFE 8-Port and 16-Port Gigabit Click Switch

8/23/13 Configuring the S7 Server for Windows NT 4.0 to Access S7-400 PLCs via the Siemens CP1613 Card for ISO (Industrial Ethernet)

Transcription:

Pr White paper Controlling a SERVOLASER Xpert via a Siemens SIMATIC S7-1500 using the Profibus protocol Please read carefully prior to commissioning! Keep this document for future reference. Translation of the original LAP GmbH, MAN-1375 Rev 2 en-gb, 2016-07

SERVOLASER Xpert positioning system All brand names and product names are trademarks or registered trademarks of the respective title holder. LAP GmbH Laser Applikationen, Lüneburg, 2016 The reproduction, distribution and utilisation of this document as well as the communication of its contents to others without express authorisation are prohibited. Offenders will be held liable for the payment of damages. All rights reserved in the event of the grant of a patent, utility model or design. This document is intended to be used by the owner of the LAP product, his/her users and contractual partners of LAP. It must not be handed to other persons or made available to third parties. This document is subject to a document content service and subject to change without prior notice. LAP can assume no liability for the correctness, completeness or upto-dateness of any laws, regulations or guidelines (e.g. DIN, VDE,...) referenced directly or indirectly or quotes taken from such sources in this publication. We recommend that the complete regulation or guideline in the latest valid version be consulted for work to be carried out, where applicable. Subject to technical changes. This product complies with European statutory regulations and the requirements of the European directives. These directives are listed in the accompanying EC declaration of conformity. 2 LAP GmbH, MAN-1375 Rev 2 en-gb, 2016-07

SERVOLASER XpertSERVOLASER Xpert Profibus protocol Table of contents 1 Introduction... 4 1.1 System configuration and purpose of the white paper... 4 2 Configuring the Profibus interface... 7 3 Creating a new project in the TIA Portal... 11 4 Application example... 18 4.1 Creating the tag table... 18 4.2 Uploading the program to the PLC... 19 5 Summary... 24 6 References... 25 LAP GmbH, MAN-1375 Rev 2 en-gb, 2016-07 3

SERVOLASER Xpert positioning system 1 Introduction 1.1 System configuration and purpose of the white paper The purpose of this document is to present an application example for commissioning and programming a SERVOLASER Xpert positioning system, hereinafter referred to as "Xpert". References are made to the corresponding installation and operation manual (MAN-1282 Rev 4 en-gb) [1]. The hardware of the test system for commissioning consists of the following: SERVOLASER Xpert SLX-S-M-2-1-2-L1-D4-1,7-IE-1-1 Siemens SIMATIC S7-1516-3 PN/DP Version 1.7 LAP Setup-Box HP PC with 8 GB RAM and Windows 7 Professional The following programming software is used: Siemens "Totally Integrated Automation (TIA)" Portal Kunbus GSD file (on supplied CD-ROM) PuTTY (free network tool) The components used and the system configuration are shown in Fig. 1-1. SERVOLASER Xpert PC Profibus Ethernet/IP Fig. 1-1: System configuration and Profibus cabling The Xpert has its own controller with a Profibus port and two movable laser modules (Fig. 1-2). Two devices can be connected to form a system with up to four movable lasers. An additional fixed laser, which is installed in the centre, is optional. This fixed laser is positioned above the linear rail. This enables the movable laser modules to use the entire travel range. 4 LAP GmbH, MAN-1375 Rev 2 en-gb, 2016-07

SERVOLASER XpertSERVOLASER Xpert Profibus protocol Three different laser colours are available, i.e. can be configured (red, green, blue). The laser colours can be combined in any way. Maximum visibility in different lighting conditions and on different projection surfaces can be ensured by the choice of laser colour. The laser modules are available with different aperture angles. The standard aperture angle is 90 for red and green lasers and 70 for blue lasers. The different laser classes provide different levels of laser power. The maximum possible laser output power of the Xpert is 40 mw. Models with a maximum laser output power corresponding to the permitted limit are available for each laser class. The dimming function allows you to set each individual laser module separately to the optimum visibility. Fig. 1-2: SERVOLASER Xpert This white paper is structured to follow the procedure during commissioning. In principle, a different sequence of steps would be possible in some places, but a modified order of steps has generally led to problems. Therefore, it is recommended that you adhere to the sequence of steps specified here. After the system cables have been connected as shown in Fig. 1-1, the first step is to configure the Profibus interface using the Setup-Box and a network tool. Connect the Setup-Box to the overall system and then to the PC via USB cable. After that you configure the USB serial port and the connection setup with the Xpert using a network tool. From the Setup menü you can assign a Profibus node ID to the Xpert. In the second step, create a new TIA Portal project and add the hardware. Select the SIMATIC S7-1500 with the CPU 6ES7 516-3AN00-0AB0 used here as the device type. In order to set up the Xpert, you must now install the general station description (GSD) file provided on the supplied CD- ROM. After successful installation, you can set up the Xpert as a Kunbus- IC participant. Once configuration in the project is successful, you can virtually create the Profibus connection in the TIA Portal and assign the input and outputs. LAP GmbH, MAN-1375 Rev 2 en-gb, 2016-07 5

SERVOLASER Xpert positioning system The last chapter of the white paper shows an application example for controlling the Xpert. It deals with the creation of a tag table for controlling the incoming data packets and for reading the outgoing data packets of the Xpert. It also describes the procedure for loading the project onto the programmable logic controller. 6 LAP GmbH, MAN-1375 Rev 2 en-gb, 2016-07

SERVOLASER XpertSERVOLASER Xpert Profibus protocol 2 Configuring the Profibus interface For communication with the device via the Profibus interface, you need to configure a Profibus node ID. In order to to configure the Profibus node ID, you need Setup-Box. Connect it between the 24 VDC supply connection and the power supply unit (Fig. 2-1). Then you can connect the Setup-Box to the PC using a USB cable. port Xpert port Power supply unit port USB Fig. 2-1: Setup-Box When you have connected the Setup-Box to the PC using a USB cable, you can switch on the power supply. Then you must assign a COM port number to the USB port. You can configure this using the Geräte- Manager (Fig. 2-2). Fig. 2-2: Configuring the USB serial port You can first set the various parameters according to the relevant installation and operation manual via the Eigenschaften of the selected USB serial port (Fig. 2-3). You can then enter an appropriate COM interface (COM2) via the Erweitert button. LAP GmbH, MAN-1375 Rev 2 en-gb, 2016-07 7

SERVOLASER Xpert positioning system Fig. 2-3: Properties of the selected USB serial port When you have successfully configured the USB serial port, you can start a terminal program (Hyperterminal, HTerm, Realterm, etc.) on the PC. In this case the free PuTTY program is used (Fig. 2-4). You can establish connections via serial interfaces, for example, with this tool. Fig. 2-4: PuTTY network tool 8 LAP GmbH, MAN-1375 Rev 2 en-gb, 2016-07

SERVOLASER XpertSERVOLASER Xpert Profibus protocol On the Connection Serial screen, you must first select the previously defined COM interface and configure the associated settings (Fig. 2-5). Fig. 2-5: Serial settings in the PuTTY tool Then on the Session screen you can set the Connection type to Serial. After this the correct interface and speed should automatically be displayed (Fig. 2-6). If this is the case, you can click Open to launch the connection to the Xpert. Fig. 2-6: PuTTY configuration LAP GmbH, MAN-1375 Rev 2 en-gb, 2016-07 9

SERVOLASER Xpert positioning system A new window opens. Press the M key on the keyboard to open the Xpert setup menu (Fig. 2-7). Fig. 2-7: SERVOLASER Xpert terminal interface Then press the 1 key to set the Profibus node ID (Fig. 2-8), which can be a number between 0 and 126. If you enter 126 as the node ID, the device waits for a Profibus master to automatically assign a node ID. After the node ID has been set, you must reboot the Xpert. After you reboot the device, the new node ID is active and the device is a participant in the Profibus. Fig. 2-8: Setting the node ID 10 LAP GmbH, MAN-1375 Rev 2 en-gb, 2016-07

SERVOLASER XpertSERVOLASER Xpert Profibus protocol 3 Creating a new project in the TIA Portal If the cables of the overall system have been connected and a Profibus node ID has been assigned to the Xpert, you can then open the Totally Integrated Automation (TIA) Portal software and create a new project [2,3]. You can enter a project name, the storage path and the name of the author in the fields. Then click Create to create the new project (Fig. 3-1). Fig. 3-1: Creating a new project in the TIA Portal Next you must add the programmable logic controller to the project as the second step. To do so, on the next screen click Configure a device and then Add new device. After that select the correct device, give it an appropriate name and add it to the project (Fig. 3-2). Be sure to select the correct version. LAP GmbH, MAN-1375 Rev 2 en-gb, 2016-07 11

SERVOLASER Xpert positioning system Fig. 3-2: Adding the PLC to the project If the project has been successfully created, the programmable logic controller is added to the Project Explorer (Fig. 3-3). Fig. 3-3: Project Explorer Now incorporate the Xpert general station description file into the project as the third step. The GSD file adds the KUNBUS-IC Profibus communications module to the TIA Portal. To incorporate the file select the Manage general station description files (GSD) option on the main menu (Fig. 3-4). 12 LAP GmbH, MAN-1375 Rev 2 en-gb, 2016-07

SERVOLASER XpertSERVOLASER Xpert Profibus protocol Fig. 3-4: Opening the device database You can install and uninstall general station description files in the device database. To add a new device, select the corresponding path (Fig. 3-5). Fig. 3-5: Adding a general station description file If the correct path is selected, the general station description file is automatically displayed. Tick the checkbox in front of the file to install it (Fig. 3-6). LAP GmbH, MAN-1375 Rev 2 en-gb, 2016-07 13

SERVOLASER Xpert positioning system Fig. 3-6: Installing the general station description file In the next step you can incorporate the Xpert into the PLC development environment as a Kunbus-IC Profibus participant. First select the Devices & networks tab. Then in the catalog via the following path, you can drag the Xpert to add it as a Kunbus-IC Profibus participant (Fig. 3-7): Catalog > Other field devices > PROFIBUS DP > I/O > KUNBUS GmbH > Kunbus > KUNBUS-IC Profibus > KUNBUS-IC Profibus Fig. 3-7: Adding the Xpert as a Kunbus-IC Profibus participant You must now create a Profibus connection between the PLC and the Xpert using a drag-and-drop operation. Be sure to select the correct port on the PLC screen (Fig. 3-8). Fig. 3-8: Creating the Profibus connection 14 LAP GmbH, MAN-1375 Rev 2 en-gb, 2016-07

SERVOLASER XpertSERVOLASER Xpert Profibus protocol The next step is to configure the Kunbus-IC Profibus participant (Slave_1). To do so, double-click the participant and select the PROFIBUS address tab in the lower part of the screen. Set the Address parameter to 1 (Fig. 3-9). This parameter was defined in chapter 2 with the Profibus node ID. Fig. 3-9: Configuring the Profibus address of the Kunbus-IC participant (Xpert) Now configure the Profibus address of the programmable logic controller. Be sure to select the correct port for the configuration. To do so, doubleclick the Profibus port and select the PROFIBUS address tab in the lower part of the screen. Set the Address parameter to 2 (Fig. 3-10). Fig. 3-10: Configuring the Profibus address on the PLC You must also configure the Ethernet/IP address for the connection to the PC on the programmable logic controller. To do so, double-click the corresponding Ethernet/IP port. On the Ethernet-addresses tab, set the IP address for the programmable logic controller (Fig. 3-11), which must be in the same subnet as the PC s IP address. LAP GmbH, MAN-1375 Rev 2 en-gb, 2016-07 15

SERVOLASER Xpert positioning system Fig. 3-11: Configuring the Ethernet/IP address on the PLC The next step is to define the input and output addresses for the Kunbus- IC participant. The input length is 72 bytes (corresponds to 36 words or 18 Dwords) and the output length is 60 bytes (corresponds to 30 words or 15 Dwords) [1]. To do so you must call up the Device view in the upper right corner, and then assign the inputs and outputs using a drag-and-drop operation (Fig. 3-12). The definition and structure of the input and output data words for controlling and monitoring the Xpert are described in the relevant installation and operation manual [1]. This ends the hardware configuration. The last chapter of the white paper shows an application example for controlling and monitoring the Xpert. 16 LAP GmbH, MAN-1375 Rev 2 en-gb, 2016-07

SERVOLASER XpertSERVOLASER Xpert Profibus protocol Fig. 3-12: Device view definition: length of inputs and outputs LAP GmbH, MAN-1375 Rev 2 en-gb, 2016-07 17

SERVOLASER Xpert positioning system 4 Application example 4.1 Creating the tag table You have different options for controlling the Xpert. For instance you can control it via a function block [1] or, as in this example, via a tag table which has been created. With this table you can easily and conveniently control and read the individual tags of the incoming and outgoing data packets. In the project navigation, click the PLC tags folder and select Add new tag table (Fig. 4-1). Fig. 4-1: Creating a new tag table You declare the input and output tags in this block. The tags are described in the relevant installation and operation manual (MAN-1282 Rev 4 en-gb) [1]. Fig. 4-2 shows the declared input and output tags. 18 LAP GmbH, MAN-1375 Rev 2 en-gb, 2016-07

SERVOLASER XpertSERVOLASER Xpert Profibus protocol 4.2 Uploading the program to the PLC Fig. 4-2: Declaration of the input and output tags To upload the program to the PLC, you must first compile the program, transfer it and then click the Start button to launch it. In the project navigation, right-click the PLC_1 folder and compile the project for the PLC via the following path (Fig. 4-3): PLC_1 [CPU 1516-3 PN/DP] -> Compile -> Hardware and software (only changes) LAP GmbH, MAN-1375 Rev 2 en-gb, 2016-07 19

SERVOLASER Xpert positioning system Fig. 4-3: Compiling the project for the PLC Then right-click the PLC_1 folder again and select the following path to load the project onto the device (Fig. 4-4): PLC_1 [CPU 1516-3 PN/DP] -> Download to device -> Hardware and software (only changes) Fig. 4-4: Preparing to load the project onto the PLC When you execute the command to load the project onto the programmable logic controller, the Extended download to device window opens (Fig. 4-5). First select the correct interfaces. Then click Start search to perform the search. If the interfaces have been configured correctly, the programmable logic controller is displayed in the lower field. Click Load to upload the program to the PLC. 20 LAP GmbH, MAN-1375 Rev 2 en-gb, 2016-07

SERVOLASER XpertSERVOLASER Xpert Profibus protocol Fig. 4-5: Selecting the interfaces and searching for the PLC Following this, a message appears prompting you to assign an IIP address to the PG/PC in the same subnet as the PLC. Click Yes to confirm this message. Then an IP address is automatically assigned and confirmed again in a message (Fig. 4-6). Fig. 4-6: Automatic assignment of an IP address If the IP address was assigned correctly, a preview window for loading the project is then opened. Two settings are made here: First, all modules for loading the project are stopped; second, all differences between the PLC and the new project are overwritten. You can then click Load to load the project onto the programmable logic controller (Fig. 4-7). LAP GmbH, MAN-1375 Rev 2 en-gb, 2016-07 21

SERVOLASER Xpert positioning system Fig. 4-7: Preview for loading the project onto the PLC If the project was successfully loaded onto the programmable logic controller, you can then establish an online connection. Then the program is launched (Fig. 4-8). Fig. 4-8: Establishing an online connection Once the connection is established, you can observe the various inputs (Fig. 4-9). Fig. 4-9: Observing the inputs 22 LAP GmbH, MAN-1375 Rev 2 en-gb, 2016-07

SERVOLASER XpertSERVOLASER Xpert Profibus protocol To be able to control the outputs and thus the Xpert via the programmable logic controller, you must create a force table. In the project navigation, select the Watch and force tables folder to create a new force table. All outputs in the force table are loaded using drag-and-drop operations (Fig. 4-10). Fig. 4-10: Creating a force table Then you can control the Xpert via the force table. To do so, enter values in the Forcewert column and click the Play button to copy them (Fig. 4-11). The values are immediately transferred to the Xpert and executed. Fig. 4-11: Force table with writable tags LAP GmbH, MAN-1375 Rev 2 en-gb, 2016-07 23

SERVOLASER Xpert positioning system 5 Summary This white paper provides a sample application for commissioning and programming a SERVOLASER Xpert positioning system in connection with a Siemens S7-1500 control system. The first chapter describes the hardware and software used as well as the purpose of the white paper. It also provides general information about the Xpert. The second chapter describes the configuration of the Profibus interface. In this process, the LAP Setup-Box and a network tool are used to configure the node ID for the Xpert. The third chapter describes the creation of a new TIA Portal project, which contains the configuration of the programmable logic controller, the incorporation of the general station description file, as well as the configuration of the Kunbus-IC participant. In addition it describes the settings and creation of a new Profibus connection with the Xpert. The last chapter describes an application example for controlling the Xpert. It deals with the creation of a tag table for controlling the incoming data packets and for reading the outgoing data packets of the Xpert. In addition it describes the procedure for uploading data to the programmable logic controller. In principle the Xpert and the Siemens S7-1500 have always worked together without problems or errors when the Profibus protocol is used and when the relevant installation and operation manual (MAN-1282 Rev 4 de-de) and the points described in this white paper are adhered to. 24 LAP GmbH, MAN-1375 Rev 2 en-gb, 2016-07

SERVOLASER XpertSERVOLASER Xpert Profibus protocol 6 References [1] Installation and Operation Manual "MAN-1282 Rev 4-en-GB", LAP GmbH, Lüneburg, 2014 [2] Siemens SIMATIC S7-1500 Programming and Operation Manual Collection, Siemens, 2014 [3] Siemens PROFINET Function Manual, Siemens, 2014 LAP GmbH, MAN-1375 Rev 2 en-gb, 2016-07 25