Back to top

Sample Projects for Siemens S7-1200 / S7-1500 PLC's and the AKD Profinet Drive (North America)

This page provides information and downloads related to the Siemens S7 TIA sample projects for AKD Profinet communication.

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 ( also tested with V14 and V15) (projects from older versions of TIA Portal can be converted to newer versions of TIA Portal)

AKD firmware: 1-16-xx-xxx (also tested with 1-17-xx-xxx)

TG400 Project (Official Sample Project)

Sample Project Manual: AKD_Profinet_S7_Sample_Project_Manual_Rev1.pdf  Please read the manual. It contains setup instructions and reference material on the function blocks.

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.

Siemens TIA Portal Project Archive Files:

AKD_S7_PN_TG400_TIA15_Rev2.02.zip Official Kollmorgen (North America) AKD Profinet Sample Project - For 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.

 

Project Component Files: (The following downloads already exist inside the sample projects, but are provided separately for your convenience.)

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)

Function Blocks and related UDT’s

These files can be imported into an existing project or new project.

TG400_FB_v05.zip

TG400_FB_v04.zip (Previous Revision)

TG400_FB_v03.zip (Previous Revision)

PNU_FB_v02.zip

Edit_Motion_Task_Position_FB_v01.zip

Release Notes:

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)

AKD_S7_PN_TG7_TIA13_Rev1.00.zip

TG7_FB_v01.zip

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)

AKD_S7_PN_TG1_TIA13_Rev1.00.zip

TG1_Rev1.00_Project_Documents.zip

TG1_FB_v01.zip