Profinet with the AKD Training and Overview Rev. B Aug

Slides:



Advertisements
Similar presentations
SPiiPlus Training Class
Advertisements

Chapter 4 Device Management and Disk Scheduling DEVICE MANAGEMENT Content I/O device overview I/O device overview I/O organization and architecture I/O.
Software setup with PL7 and Sycon V2.8
EZ Positioning with SINAMICS S120 Agenda
EZ Positioning with SINAMICS S120 Agenda
LSU 10/22/2004Serial I/O1 Programming Unit, Lecture 5.
Specview 32 Release 2.5 Enhancements
GPRS functionality overview in Horner OCS. GPRS functionality – Peer to Peer communication over GPRS – CSCAPE connectivity over GPRS – Data exchange using.
S IGMA S TUDIO I NTEGRATION Dennis Kaloi October 22, 2015.
+ Lecture#2: Ethernet Asma ALOsaimi. + Objectives In this chapter, you will learn to: Describe the operation of the Ethernet sublayers. Identify the major.
1 Computer System Overview Chapter 1. 2 Operating System Exploits the hardware resources of one or more processors Provides a set of services to system.
Lesson 1 PLC BASICS. PLC Definition  Programmable Logic Controllers are industrial computers that control machine and other applications.  PLC have.
Managing a Cisco Devices Internetwork
SPiiPlus Training Class
Do-more Technical Training
BRX Technical Training
Chapter Objectives In this chapter, you will learn:
Semester 3, Chapter 7 Allan Johnson
Introduction to Networks v6.0
Industrial communication protocols
STO/GM December 2011 ABB STOTZ-KONTAKT GmbH ABB i-bus® KNX DGN/S DALI Gateway for emergency lighting © STO/G - Slide 1.
Architectures of Digital Information Systems Part 1: Interrupts and DMA dr.ir. A.C. Verschueren Eindhoven University of Technology Section of Digital.
Muen Policy & Toolchain
Do-more Technical Training
6.10 MODULE SETUP – TAPE STATIONS
BRX Technical Training
Lab 2: Packet Capture & Traffic Analysis with Wireshark
Instructor Materials Chapter 5: Ethernet
Control Unit Lecture 6.
Connecting Network Components
Modbus RTU CP1L with V1000 and Celciux.
Do-more Technical Training
Haiwell PLC Modules Introduce
Drives Training Foils Encoder Module Installation
Chapter 11: Inter-Integrated Circuit (I2C) Interface
MCTS Guide to Microsoft Windows 7
Single-Area OSPF 1 Cisco Networking Academy program Routing Protocols
DT80 range Modbus capability
Profinet with the AKD Training and Overview Rev. C Sept
Open S7 Program & S7 Hardware
Layered Architectures
Instructor & Todd Lammle
90-30 DeviceNet configuration
Chapter 5: Switch Configuration
Newly Released PLC product
Modbus with the AKD Using Modbus Poll and Wireshark Rev. F Dec
Setup Of 4050 EIP To Control LOGIX PLC
Siemens Step 7 Project with Controllere in 7 Steps: Step 1
Programmable Logic Controllers (PLCs) An Overview.
Reference Sources Profibus Documentation Contacts
Profinet with the AKD Training and Overview, with Siemens TIA Portal Rev. D May 10, 2018 Jimmy Coleman.
AT91RM9200 Boot strategies This training module describes the boot strategies on the AT91RM9200 including the internal Boot ROM and the U-Boot program.
AT91 Memory Interface This training module describes the External Bus Interface (EBI), which generatesthe signals that control the access to the external.
Remote Login: Telnet Objectives Chapter 18
OptiSystem-MATLAB data interchange model and features
Chapter 5: Switch Configuration
Instruction encoding We’ve already seen some important aspects of processor design. A datapath contains an ALU, registers and memory. Programmers and compilers.
Distributed Energy Engineering
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
Training Module Introduction to the TB9100/P25 CG/P25 TAG Customer Service Software (CSS) Describes Release 3.95 for Trunked TB9100 and P25 TAG Release.
Unit 12 CPU Design & Programming
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
8253 – PROGRAMMABLE INTERVAL TIMER (PIT). What is a Timer? Timer is a specialized type of device that is used to measure timing intervals. Timers can.
Control units In the last lecture, we introduced the basic structure of a control unit, and translated our assembly instructions into a binary representation.
Controller interfaces
ECE 352 Digital System Fundamentals
Chapter 1 Computer System Overview
EZ Positioning with SINAMICS S120 S7 Simatic Manager Programming
Profinet with the AKD Training and Overview Rev. C Sept
Exceptions and networking
Presentation transcript:

Profinet with the AKD Training and Overview Rev. B Aug Profinet with the AKD Training and Overview Rev. B Aug. 19, 2015 Jimmy Coleman

Reference Sources Profinet Documentation Software Manual – AKD Profinet Communications Manual Software Simatic Step7 Sample Project WireShark (unmanaged switch, “Port Mirroring”, or “true hub” required) Convert Dec Hex Bin The Lucent Hex Calc 64

Profinet Communication Settings Port: Profinet communication on the AKD drive is handled through the Service Port. That is the X11 Ethernet port that is use for communication with the Workbench software. Workbench uses ASCII commands over Telnet communication. It is possible to communicate via Profinet and Telnet at the same time from the same PC. TCP/IP: The AKD is identified over Profinet communication by the IP address of the drive and the name of the drive (the drive name in Workbench). Firmware: This document is based on firmware version 1-13-00-004.

Profinet Baud Rate Baud Rate Settings: Automatic 16ms (from GSDML file) Set the baud rate to “Automatic” for best results. The GSDML file sets the baud rate to 16ms. You can set the baud rate to 16ms with a “Fixed update time”, but if you do, the PLC will not reconnect to the drive after the drive is power cycled. If the baud rate is set any faster than 16ms (shorter time), then the communication buffer will fill up and the drive will fault.

AKD Command Source with Profinet When the AKD drive is in Position Mode, the command source will be “Service”. When the drive is in Velocity Mode, the command source will be “Fieldbus”. Service for Position mode (Telegrams 7 and 9) Fieldbus for Velocity mode (Telegram 1) The command source is based on where the actual motion command is generated. With the AKD in position mode and running motion tasks, the motion command is coming from the Command Generator in the drive. The PLC sends the values for the motion task, but the incremental/instantaneous command is from the drive itself. In velocity mode, the motion command is coming directly from the PLC. When setting the Opmode (PNU 930) and Telegram number (PNU 922) using the “Parameter Access” channel from the PLC, the command source will be set automatically.

Standard Telegrams The Profinet communication protocol uses a telegram consisting of up to 12 words (16 bits each) for command setpoints and 12 words (16 bits each) for status. Telegrams 1, 350, and 351 are used for velocity control. Telegrams 7, 9, 352, and 353 are used for position control. The position commands are sent to Motion Task 0 in the AKD. The telegram is specified in the PLC hardware configuration. When communication is established between the PLC and the AKD drive, the PLC sets the telegram number in the AKD. You can read the telegram number that has been configured by the PLC in FBUS.PARAM01. Even though this is not a read-only parameter, setting the value of this parameter will not configure the telegram number. It should be treated as read-only. The telegram number can be changed by the PLC program using PNU 922 (in the Parameter Access channel). Each telegram contains the Control Word and the Status Word. Profinet uses a State Machine as described in the manual. As a quick start, the bits of the Control Word should be used in the following sequence for enabling the drive and starting motion: Turn on bit 1, then turn on bits 2, 4, and 5 (stop and pause functions) in any order, then turn on bit 0 (software enable), then turn on bit 3 (operation enable), then use either bit 6, 8, 9, 11, or 12 (depending on the desired function) to start motion.

Free Mapping a Telegram You can free-map a telegram with any data that has a Signal number. Use Telegram 400 for free mapping. The manual says to use Telegram 0, but 400 is better. TG400 is similar to TG0, but it defines the data size more appropriately. TG400 has available 12 words (16 bits each) for commands and 12 words (16 bits each) for status. The telegram is mapped using PNU 915 for the command words and PNU 916 for the status words. Each index of these PNU’s correspond to the word number in the telegram. The value that is used to map specific data to each word is called a signal number. The available signal numbers are listed in the manual. Further work is needed to implement signal numbers for more AKD parameters. PNU 915 for the commands and setpoints: Write PNU 915 Index 0 = 1 (for STW1) Write PNU 915 Index 1 = 32 (for SATSANW) Write PNU 915 Index 2 = 34 (for MDI_TARPOS) (Index 3 will automatically be the lower 16 bits of MDI_TARPOS) Write PNU 915 Index 4 = (for MDI_VELOCITY) (Index 5 will automatically be the lower 16 bits of MDI_VELOCITY) Write PNU 915 Index 6 = 36 (for MDI_ACC) Write PNU 915 Index 7 = 37 (for MDI_DEC) Write PNU 915 Index 8 = 38 (for MDI_MOD) PNU 916 for the status and actual values: Write PNU 916 Index 0 = 2 (for ZSW1) Write PNU 916 Index 1 = 33 (for AKTSATZ) Write PNU 916 Index 2 = 28 (for XIST_A, PL.FB) (Index 3 will automatically be the lower 16 bits of PL.FB) Write PNU 916 Index 4 = 52 (for ITIST_GLATT, IL.FB)

User Units over Profinet Position Scaling: PNU# 1002 sets the number of bits per motor rev. Default is 16 for 2^16 counts per rev. Velocity Scaling: 2^15 = 100% of maximum speed, which is 12,000 rpm for the AKD. So 2^15 = 12,000 rpm Velocity Mode: MDI_Velocity = (Speed in rpm) * 2^15 / 12000 = (Speed in rpm) * 32768 / 12000 Speed in rpm = (MDI_Velocity) * 12000 / 2^15 Position Mode: MDI_Velocity = (Speed in rpm) * 2^32 / 12000 Speed in rpm = (MDI_Velocity) * 12000 / 2^32 MDI_ACC = accel in rpm/s * 2^16 / 50,000,000 Accel in rpm/s = MDI_ACC * 50,000,000 / 2^16 Accel and decel in the drive will be in increments of about 763 rpm/s. Command Values in Telegram 9: T9_STW1 Turn on bits: 10, 1 and 2, 0, 3 (enable), 4 and 5, 6 (start motion) T9_SATZANW1 - Set to task #. 0x8000 uses TG9 move profile T9_MDI_TARPOS =DW#16#00010000 = 10000 hex = 65536 counts = 1 rev T9_MDI_VELOCITY =DW#16#02222222 = 100 rpm T9_MDI_ACC =W#16#03E8 = 1000 rpm/s T9_MDI_DEC =W#16#03E8 = 1000 rpm/s T9_MDI_MOD - 1 = absolute move; 0 = relative move; (TG9 profile only) MT.CNTL Bits 10 and 11 have been added in FW1-13 beta for control of S-curve acceleration profile.

Parameter Access Channel – Read Read Parameter Request (from PLC to drive) Byte Description Data Size Allowable Values Typical Value Request Reference Unsigned 8 bit 0x00 is reserved; 0x01 - 0xFF Defined by PLC 1 Request ID 0x01 Read Always 0x01 2 Axis # 0x00 only (AKD Parameter Manager) Always 0x00 3 No. of Parameters 0x01 - 0x27 0x01 4 Attribute 0x00 reserved; 0x10 Value; 0x20 Description Always 0x10 5 No. of Elements 0x01 - 0xEA 6 PNU Number - upper 8 bits 0x01 - 0xFF PNU 7 PNU Number - lower 8 bits 8 Subindex - upper 8 bits 0x00 only 9 Subindex - lower 8 bits Read Parameter Response (from drive to PLC) Response ID 0x01 Read successful or 0x81 Unsuccessfull PNU number 10 Format 0x41 for byte; 0x42 for Word; 0x43 for Dword; 0x00 for no data 0x41, 0x42, or 0x43 11 Number of Values 12 Data - Most significant Signed 8 bit Data 13 14 15 Data - Least significant

Parameter Access Channel – Write Write Parameter Request (from PLC to drive) Byte Description Data Size Allowable Values Typical Value Request Reference Unsigned 8 bit 0x00 is reserved; 0x01 - 0xFF Defined by PLC 1 Request ID 0x02 Write Always 0x01 2 Axis # 0x00 only (AKD Parameter Manager) Always 0x00 3 No. of Parameters 0x01 - 0x27 0x01 4 Attribute 0x00 reserved; 0x10 Value; 0x20 Description Always 0x10 5 No. of Elements 0x01 - 0xEA 6 PNU Number - upper 8 bits 0x01 - 0xFF PNU number 7 PNU Number - lower 8 bits 8 Subindex - upper 8 bits 0x00 only 9 Subindex - lower 8 bits 10 Format 0x41 for byte; 0x42 for Word; 0x43 for Dword; 0x00 for no data 0x41, 0x42, or 0x43 11 Number of Values 12 Data - Most significant Signed 8 bit Data 13 14 15 Data - Least significant Write Parameter Response (from drive to PLC) Response ID 0x02 Read successful or 0x82 Unsuccessfull 0x02 0x00

PNU Data Size Data Sizes in the S7 Sample Project for the Parameter Access Channel Value = value of parameter specified by PNU (Data type is always DWord) read / write Dword value specified by address MD xx read / write Word value specified by address MW xx read / write Byte value specified by address MB xx >> xx is always the same address Format = data type of parameter specified by PNU W#16#41 >> Byte access W#16#42 >> Word access W#16#43 >> Dword access

Profinet Commands in Workbench AKD Profinet commands can be used in the Workbench Terminal screen to read the Control Word (STW1) and the Status Word (ZSW1). -->drv.memaddr CProfinet.STW1 -->drv.memdata And -->drv.memaddr CProfinet.ZSW1

Wireshark Filter for Profinet Display Filter Show only the PN-IO based traffic: pn_io Show the PN-IO based traffic without the cyclic PN-IO telegrams (to avoid a lot of "noise"): pn_io && !pn_io.ioxs

Binary and Hexadecimal Numbers

Converter Software

Simatic Manager

Simatic Manager

Simatic Manager

Simatic Manager

Simatic Manager

Simatic Manager

Hardware Configurator

Hardware Configurator Double-click on the drive.

Hardware Configurator

Telegram 9 Symbol Table

Compile and Download

Read PNU 930

Read PNU 1002 (Position Resolution)

Write to PNU 1002

30