Sample Projects for Siemens S7-1200 / S7-1500 PLC's and the AKD Profinet Drive
This page provides information and downloads related to the Siemens S7 TIA sample projects for AKD Profinet communication.
Table of Contents
General Description
The sample projects use a function block to handle the telegram data and state machine (Control Word and Status Word). Another function block is used for the Parameter Access channel (PNU channel) to read and write values to drive parameters via the PNU numbers. Another function block is used to simplify the process of editing the position value of motion tasks. This is handled via PNU read/write. It could be done using the PNU function block, but that would require multiple steps and complicated ladder logic programming.
Each project can support only one telegram per AKD drive. Changing telegrams within a program is possible, but doesn't always work as expected. There shouldn't be any need to switch between telegrams, as Telegram 400, 9, etc. have both position and velocity control.
Each project uses a “Data type” (UDT) to link the telegram addressing to the data in the function block/data block. The UDT is specific to a matched pair of telegram and function block.
Telegram 400 is a free mappable telegram based on Telegram 9. Motion control includes calling pre-configured motion tasks, cyclic update of the Direct Motion Task, homing, and jogging, including cyclic update of jog speed.
Telegram 7 is limited to calling pre-configured motion tasks, homing, and jogging.
Telegram 1 is used for cyclic update of velocity command in velocity mode.
The projects were developed using:
- Siemens PLC: S7-1200 (also works with S7-1500)
- Siemens software: TIA Portal V13, V14, V15, and V17 (projects from older versions of TIA Portal can be converted to newer versions of TIA Portal)
- AKD firmware: Rev2.0x developed with 1-16-xx-xxx (also tested with 1-17-xx-xxx); Rev3.00 tested with 1-23-01-000.
TG400 Project (Official Sample Project)
Siemens TIA Portal Project Archive Files
AKD_S7_PN_TG400_TIA17_Rev3.00.zip Official Kollmorgen AKD Profinet Sample Project - For TIA V17
AKD_S7_PN_TG400_TIA15_Rev2.02.zip (TIA V15)
AKD_S7_PN_TG400_TIA14_Rev2.02.zip (TIA V14)
AKD_S7_PN_TG400_TIA13_Rev2.02.zip (TIA V13)
AKD_S7_PN_TG400_TIA13_Rev2.01.zip (Previous Revision)
AKD_S7_PN_TG400_TIA13_Rev2.00.zip (Previous Revision)
See below for projects using Telegram 7 and Telegram 1.
Sample Project Manual
AKD_Profinet_S7_Sample_Project_Manual_Rev1.pdf This manual applies to the function blocks of all project versions and the ladder code of Rev 2.02. A manual for Rev 3.00 is TBD.
The project for Telegram 400 (TG400) is the officially supported sample project. We also provide sample projects for Telegrams 1 and 7 for your convenience, although these are not documented in the sample project manual.
Project Documents
Zip files contain PDF printouts of the ladder program, project properties, and tag tables, as well as tag tables in Excel format.
TG400_Rev2.02_Project_Documents.zip
TG400_Rev2.01_Project_Documents.zip (Previous Revision)
TG400_Rev2.00_Project_Documents.zip (Previous Revision)
Project Component Files
(The following downloads already exist inside the sample projects, but are provided separately for your convenience.)
Function Blocks and related UDT’s
The following files can be imported into a new or existing TIA project. Instructions for TIA Portal version 17: In the project tree, expand "External source files" and click "Add new external file." Select the function block file (.scl) or data type file (.udt) and add it. Right click on the added file and select "Generate blocks from source." This will create the function block or data type. You can then drag it to a program or library.
TG400_FB_v04.zip (Previous Revision)
TG400_FB_v03.zip (Previous Revision)
Edit_Motion_Task_Position_FB_v01.zip
Release Notes
Rev3.00:
Reference Information:
Manual revision: TBD
Function Blocks:
FB1: AKD_PN_TG400_v05
FB2: AKD_PNU_v02
FB3: AKD_Edit_Motion_Task_Position_v01
PLC Data Type: UDT_AKD_TG400
Updates:
No changes to the function blocks. The ladder program was updated for improved usability.
Rev2.02:
Reference Information:
Manual revision: 1
Function Blocks:
FB1: AKD_PN_TG400_v05
FB2: AKD_PNU_v02
FB3: AKD_Edit_Motion_Task_Position_v01
PLC Data Type: UDT_AKD_TG400
Updates:
Updated the TG400 function block to change Telegram 400 mapping PNU writes to be individual writes, rather than a block write. This fixed the actual values of position, velocity, and current not working.
Converted project to TIA V14 and V15.
Rev2.01:
Reference Information:
Manual revision: 1
Function Blocks:
FB1: AKD_PN_TG400_v04
FB2: AKD_PNU_v02
FB3: AKD_Edit_Motion_Task_Position_v01
PLC Data Type: UDT_AKD_TG400
Updates:
Updated the TG400 function block to indicate internal block errors.
Rev2.00:
Reference Information:
Manual revision: 1
Function Blocks:
FB1: AKD_PN_TG400_v03
FB2: AKD_PNU_v02
FB3: AKD_Edit_Motion_Task_Position_v01
PLC Data Type: UDT_AKD_TG400
Updates:
New release with 1.01 and 1.02 additions after testing
Based the sample project manual on this rev.
Rev1.02:
Function Blocks:
FB1: AKD_PN_TG400_v03
FB2: AKD_PNU_v02
FB3: AKD_Edit_Motion_Task_Position_v01
PLC Data Type: UDT_AKD_TG400
Updates:
Added networks with "AKD_Edit_Motion_Task_Position_v01" FB to write new position values to saved motion tasks.
Rev1.01:
Function Blocks:
FB1: AKD_PN_TG400_v03
FB2: AKD_PNU_v02
PLC Data Type: UDT_AKD_TG400
Updates:
Changed enable to be level triggered.
Changed E-Stop to be normally closed (stops motion and disables drive when input goes low).
Other Sample Projects
TG7: for Telegram 7 (Position Mode - Predefined Motion Tasks)
Sample project for use with Telegram 7:
AKD_S7_PN_TG7_TIA13_Rev1.00.zip
Telegram 7 Function Block:
The following files can be imported into a new or existing TIA project. Instructions for TIA Portal version 17: In the project tree, expand "External source files" and click "Add new external file." Select the function block file (.scl) or data type file (.udt) and add it. Right click on the added file and select "Generate blocks from source." This will create the function block or data type. You can then drag it to a program or library.
TG7 Project Release Notes:
Rev1.00:
Manual revision: some aspects of the Sample Project Manual Rev. 1 apply.
Function Blocks:
FB1: AKD_PN_TG7_v01
FB2: AKD_PNU_v02
FB3: AKD_Edit_Motion_Task_Position_v01
PLC Data Type: UDT_AKD_TG7
Updates:
The TG7 function block was created by stripping down the TG400 FB to not use MDI data.
TG1: for Telegram 1 (Velocity Mode)
Sample project for use with Telegram 1:
AKD_S7_PN_TG1_TIA13_Rev1.00.zip
TG1_Rev1.00_Project_Documents.zip
Telegram 1 Function Block:
The following files can be imported into a new or existing TIA project. Instructions for TIA Portal version 17: In the project tree, expand "External source files" and click "Add new external file." Select the function block file (.scl) or data type file (.udt) and add it. Right click on the added file and select "Generate blocks from source." This will create the function block or data type. You can then drag it to a program or library.
Back to top
Home >
Knowledge Base >
FAQs >
Downloads >