You are on page 1of 204

SIMATIC S7-1500T

Rotary Knife
LRotaryKnife for SIMATIC

Siemens
Application description Industry
Online
https://support.industry.siemens.com/cs/ww/en/view/109757260 Support
Legal information
Use of application examples
Application examples illustrate the solution of automation tasks through an interaction of several
components in the form of text, graphics and/or software modules. The application examples are
a free service by Siemens AG and/or a subsidiary of Siemens AG (“Siemens”). They are non-
binding and make no claim to completeness or functionality regarding configuration and
equipment. The application examples merely offer help with typical tasks; they do not constitute
customer-specific solutions. You yourself are responsible for the proper and safe operation of the
products in accordance with applicable regulations and must also check the function of the
respective application example and customize it for your system.
Siemens grants you the non-exclusive, non-sublicensable and non-transferable right to have the
application examples used by technically trained personnel. Any change to the application
examples is your responsibility. Sharing the application examples with third parties or copying the
application examples or excerpts thereof is permitted only in combination with your own products.
The application examples are not required to undergo the customary tests and quality inspections
of a chargeable product; they may have functional and performance defects as well as errors. It is
your responsibility to use them in such a manner that any malfunctions that may occur do not
result in property damage or injury to persons.

Disclaimer of liability
Siemens shall not assume any liability, for any legal reason whatsoever, including, without
limitation, liability for the usability, availability, completeness and freedom from defects of the
application examples as well as for related information, configuration and performance data and
any damage caused thereby. This shall not apply in cases of mandatory liability, for example
under the German Product Liability Act, or in cases of intent, gross negligence, or culpable loss of
life, bodily injury or damage to health, non-compliance with a guarantee, fraudulent
non-disclosure of a defect, or culpable breach of material contractual obligations. Claims for
damages arising from a breach of material contractual obligations shall however be limited to the
foreseeable damage typical of the type of agreement, unless liability arises from intent or gross
negligence or is based on loss of life, bodily injury or damage to health. The foregoing provisions
© Siemens AG 2021 All rights reserved

do not imply any change in the burden of proof to your detriment. You shall indemnify Siemens
against existing or future claims of third parties in this connection except where Siemens is
mandatorily liable.
By using the application examples you acknowledge that Siemens cannot be held liable for any
damage beyond the liability provisions described.

Other information
Siemens reserves the right to make changes to the application examples at any time without
notice. In case of discrepancies between the suggestions in the application examples and other
Siemens publications such as catalogs, the content of the other documentation shall have
precedence.
The Siemens terms of use (https://support.industry.siemens.com) shall also apply.

Security information
Siemens provides products and solutions with industrial security functions that support the secure
operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary
to implement – and continuously maintain – a holistic, state-of-the-art industrial security concept.
Siemens’ products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines
and networks. Such systems, machines and components should only be connected to an
enterprise network or the Internet if and to the extent such a connection is necessary and only
when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit
https://www.siemens.com/industrialsecurity.
Siemens’ products and solutions undergo continuous development to make them more secure.
Siemens strongly recommends that product updates are applied as soon as they are available
and that the latest product versions are used. Use of product versions that are no longer
supported, and failure to apply the latest updates may increase customer’s exposure to cyber
threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed
at: https://www.siemens.com/industrialsecurity.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 2
Table of contents

Table of contents
Legal information ..................................................................................................... 2
1 Basic information ........................................................................................... 6
1.1 The objective and purpose of this standard application ...................... 6
1.1.1 Task .................................................................................................. 6
1.1.2 Advantages ....................................................................................... 7
1.2 Components included in the standard application............................... 8
2 Possible applications ..................................................................................... 9
2.1 Applications ....................................................................................... 9
2.1.1 Approved controllers .......................................................................... 9
2.1.2 Tasks that can be addressed using the core functions ....................... 9
2.1.3 Features of the application ................................................................. 9
2.1.4 Restrictions ..................................................................................... 11
2.1.5 Details regarding Printmarkcorrection .............................................. 11
2.1.6 Details regarding Interrupt-/ Continue Production ............................. 15
2.2 Application environment................................................................... 16
3 Geometry and function ................................................................................ 17
3.1 Design of the Rotary Knife ............................................................... 17
3.2 Rotary knife cams ............................................................................ 19
3.2.1 Structure of a cam for cyclic operation ............................................. 19
3.2.2 Segment structure of a cam for rotary knife ...................................... 21
© Siemens AG 2021 All rights reserved

3.2.3 Start and stop cams ......................................................................... 22


3.2.4 Cutting curves ................................................................................. 23
3.3 Operating modes of the SIMATIC Rotary Knife application ............... 24
4 Description of the integration into the user project .................................... 25
4.1 Integrating the LRotaryKnife library into a TIA-Portal project............. 25
4.2 Structure of the LRotaryKnife library ................................................ 26
4.2.1 Structure of the master copies LRotaryKnife_Blocks ........................ 26
4.2.2 Blocks required for the "RotaryKnife" standard application ............... 27
4.2.3 Structure of the master copies LRotaryKnife_HMI ............................ 36
4.2.4 Structure of the master copies LRotaryKnife_Tags........................... 36
4.2.5 Structure of the master copies LRotaryKnife_Types ......................... 37
4.2.6 Types required for the Rotary Knife standard application.................. 38
5 Preparing the TO configuration ................................................................... 40
5.1 TO structure of the SIMATIC Rotary Knife standard application........ 41
5.2 Configuring the leading value TO ..................................................... 42
5.2.1 Configuring a positioning axis as leading value ................................ 42
5.2.2 Configuring an external encoder as leading value ............................ 45
5.3 Configuring the TO AuxiliaryAxis ...................................................... 47
5.4 Configuring the TO RotaryKnifeAxis................................................. 50
5.5 Configuring the cam TOs ................................................................. 53
5.5.1 Configuring Cam_1 to Cam_3 .......................................................... 53
6 Description of the blocks and their structure ............................................. 54
6.1 "OB1" structure for the Rotary Knife standard application ................. 54
6.2 Global data of the application LRK_Data .......................................... 55
6.3 Control block of the "Rotary Knife" functions LRK_RotaryKnife......... 57
6.4 Blocks of the Rotary Knife standard application ................................ 72
6.4.1 LRK_AuxiliaryAxis ........................................................................... 72
6.4.2 LRK_LeadingValue .......................................................................... 75
6.4.3 LRK_LeadingValueMeasuringInput .................................................. 77
6.4.4 LRK_RotaryKnifeAxis ...................................................................... 79

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 3
Table of contents

6.4.5 Cam calculation for rotary knives LRK_CamCalc ............................. 81


6.4.6 Managing the cams LRK_CamManagement .................................... 92
6.4.7 Displaying a specified cam LRK_CamShow ..................................... 94
6.4.8 Controlling the measured value sensing
LRK_CutPositionMeasuring ............................................................. 96
6.4.9 Deleting and resetting the measured value memory
LRK_CutPositionBufferReset ........................................................... 98
6.4.10 Entries in the measured value memory
LRK_CutPositionBufferIn ................................................................. 99
6.4.11 Reading from the measured value memory
LRK_CutPositionBufferRead.......................................................... 100
6.4.12 Deleting from the measured value memory
LRK_CutPositionBufferOut ............................................................ 102
6.4.13 Servo block of the Rotary Knife basis version LRK_Servo .............. 103
6.4.14 Calculating the accelerating torque
LRK_GetAccelerationTorqueValue ................................................ 107
6.4.15 Calculating the cutting torque LRK_CuttingTorquePreControl ........ 109
6.4.16 LRK_EncoderAsAAMaster............................................................. 111
6.4.17 LRK_PosAxisAsAAMaster ............................................................. 113
6.4.18 LRK_SyncAxisAsAAMaster ........................................................... 115
6.4.19 LRK_EncoderAsLVSAMaster ........................................................ 117
6.4.20 LRK_PosAxisAsLVSAMaster ......................................................... 119
6.4.21 LRK_SyncAxisAsLVSAMaster ....................................................... 121
6.4.22 LRK_SyncAxisAsRKMaster ........................................................... 123
6.4.23 Determining axis values LRK_GetPosAxisValues .......................... 125
© Siemens AG 2021 All rights reserved

6.4.24 Determining axis values LRK_GetSyncAxisValues ......................... 127


6.4.25 Determining axis values LRK_GetExternalEncoderValues ............. 129
6.4.26 Determining axis values LRK_GetLVPosAxisServoValue ............... 131
6.4.27 Determining axis values LRK_GetLVSyncAxisServoValue ............. 132
6.4.28 Determining axis values
LRK_GetLVExternalEncoderServoValue ....................................... 133
6.4.29 Reset of the MeasuringInput LRK_MCResetMI ............................. 134
6.4.30 Reset of the cam LRK_MCResetCam ........................................... 135
6.4.31 Determining cam values LRK_GetCamValues ............................... 136
6.4.32 LRK_AddCamPointsToCam .......................................................... 137
6.4.33 LRK_AddCamSegmentsToCam .................................................... 138
6.4.34 LRK_GetAuxRotAxisServoValues .................................................. 139
6.4.35 LRK_GetCamServoValues ............................................................ 140
6.4.36 LRK_MCTorqueAdditive ................................................................ 141
7 Description of the data and their structure ............................................... 142
7.1 Overview ....................................................................................... 142
7.2 Enumeration types......................................................................... 142
7.2.1 operationModesRotaryKnife........................................................... 143
7.2.2 leadingValueCouplingMode ........................................................... 143
7.2.3 startStopLengthMode .................................................................... 143
7.2.4 preControlMode ............................................................................. 144
7.2.5 typeOfCam .................................................................................... 144
7.2.6 camProfile ..................................................................................... 144
7.2.7 cutProfile ....................................................................................... 144
7.2.8 measuringEdge ............................................................................. 145
7.2.9 syncProfileReference..................................................................... 145
7.2.10 syncLengthType ............................................................................ 145
7.3 Data structures of the Rotary Knife standard application ................ 146
7.3.1 LRK_typeAuxiliaryAxisCommand ................................................... 148
7.3.2 LRK_typeAuxiliaryAxisOutput ........................................................ 148
7.3.3 LRK_typeAxisTOs ......................................................................... 150
7.3.4 LRK_typeCamCalculation .............................................................. 150

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 4
Table of contents

7.3.5 LRK_typeCamCommand ............................................................... 152


7.3.6 LRK_typeCamStatus ..................................................................... 152
7.3.7 LRK_typeCutPositionBuffer ........................................................... 153
7.3.8 LRK_typeCutPositionBufferManagement ....................................... 153
7.3.9 LRK_typeCuttingTorquePrecontrolAngle ........................................ 153
7.3.10 LRK_typeCuttingTorquePrecontrolPosition .................................... 154
7.3.11 LRK_typeGetAuxRotAxisServoValues ........................................... 154
7.3.12 LRK_typeGetCamServoValues ...................................................... 154
7.3.13 LRK_typeGetCamServoValues ...................................................... 154
7.3.14 LRK_typeLeadingValueCommand ................................................. 155
7.3.15 LRK_typeLeadingValueMeasuringInputCommand ......................... 155
7.3.16 LRK_typeLeadingValueMeasuringInputOutput ............................... 156
7.3.17 LRK_typeLeadingValueOutput ....................................................... 156
7.3.18 LRK_typeLeadingValueTOs........................................................... 158
7.3.19 LRK_typeMeasuringValue ............................................................. 158
7.3.20 LRK_typeRotaryKnife .................................................................... 160
7.3.21 LRK_typeRotaryKnifeAxisCommand.............................................. 162
7.3.22 LRK_typeRotaryKnifeAxisOutput ................................................... 162
7.3.23 LRK_typeRotaryKnifeInfo .............................................................. 164
7.3.24 LRK_typeSCTrendViewData.......................................................... 168
7.3.25 LRK_typeUsersInterface ................................................................ 168
8 Using the application ................................................................................. 173
8.1 TestFB_RotaryKnife ...................................................................... 174
8.1.1 Operating instructions for the application ....................................... 174
© Siemens AG 2021 All rights reserved

9 Explanation of the operating/parameterizing and diagnostic screen


forms ........................................................................................................... 177
9.1 TestFB_RotaryKnife ...................................................................... 177
9.1.1 Operating/overview screen form RK operating ............................... 177
9.1.2 Parameterizing screen form RK-Data1 (UI-1) ................................. 183
9.1.3 Parameterizing screen form RK-Data2 (UI-2) ................................. 185
9.1.4 Parameterizing screen form RK-Data4 (MV_CPB) ......................... 189
9.1.5 Parameterizing screen form RK-Data5 (RKI_CC) ........................... 193
9.1.6 Parameterizing screen form RK-CuttingTorquePreControl ............. 198
9.1.7 Display screen form RK-Read CAM P............................................ 200
9.1.8 Display screen form RK-Read CAM VAJ........................................ 201
10 Appendix..................................................................................................... 202
10.1 Service and support ....................................................................... 202
10.2 Industry Mall .................................................................................. 203
10.3 Application support ........................................................................ 203
10.4 Related literature ........................................................................... 203
10.5 Change documentation .................................................................. 203

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 5
1 Basic information

1 Basic information
1.1 The objective and purpose of this standard application
1.1.1 Task

A material web fed in using a material feeder unit is to be cut into equal parts.
A rotary knife is used as cutting tool in order to process high feed rates and short
format lengths of the cut parts.
The crosscutter comprises a rotating roll; one or several knives are attached to its
circumference. While the roll rotates, the knife cuts the material strip fed-in below
the roll into equal, defined sections.

Fig. 1-1 Principle of operation of a crosscutter (rotary knife)

Rotary Knife
Feeder
Material infeed cutted material cutted material

Material flow
© Siemens AG 2021 All rights reserved

When developing a crosscutter, the control of the rotating crosscutter axis must be
programmed so that during the cut the crosscutter motion is synchronized with the
material web. Between the cuts, the crosscutter axis is moved with a special
velocity profile. This means that in time for the next step, synchronized motion can
be resumed. The next cut can then be made.

Other application cases


The same functions are also required for similar processing types, predominantly in
the area of packaging machines.
The above-mentioned motion sequences must also be developed for perforating,
embossing, sealing etc. using rotating equipment.

Fig. 1-2 Application examples (perforating, sealing and cutting)

Perforating Sealing or Sealing or


RotaryKnife
drum embossing embossing
DoubleKnife
drum drum

The term "Rotary Knife" is representative in the subsequent text for all other
conceivable machine versions.
Definition
Further, the term "Knife" is representative for the part of the machine that is in
direct contact with the material when a cut is made.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 6
1 Basic information

1.1.2 Advantages

The standard SIMATIC Rotary Knife application described here helps to realize the
tasks indicated and allows a functioning crosscutter to be quickly developed.
As core function, the standard application already includes preconfigured motion
control of the rotary knife axis. It can be adapted to the required application using
the appropriate parameters. The core function handles the complete control of the
rotary knife axis.
Using the user program, only the material feed has to be controlled and the core
function parameterized.
Further, the standard application includes a block to connect a user interface (HMI)
to test and diagnose rotary knife functions.
The standard SIMATIC Rotary Knife application offers users the following
advantages:
• Fast program generation
Based on the standard SIMATIC Rotary Knife application, comprehensive
crosscutter functionality can be quickly implemented by generating the
appropriate program with SIMATIC.

The core functions included in the standard application can be quickly and
simply transferred into the application to be generated by copying. Configuring
steps that are additionally required are explained in this description of the
standard application.
© Siemens AG 2021 All rights reserved

• Automatic motion control


The core functions of the standard application SIMATIC Rotary Knife
completely handle the motion control based on the technology functions of the
S7-1500T controller. The user only programs an operating sequence that
corresponds to the behavior of his machine function sequence to be
implemented.
• Adaptability
All of the source codes for the standard application are available in a
commented form. Therefore, the core functions can be simply and quickly
expanded to include customized functions.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 7
1 Basic information

1.2 Components included in the standard application


The SIMATIC Rotary Knife standard application is supplied as library. A project
example is also provided for this standard application.

This project is used to quickly understand the functionality and to quickly


commission and diagnose the SIMATIC Rotary Knife standard application.
The project example has the following tasks:
• Represent the FB LRK_RotaryKnife from the perspective of the user program
• Allow all interfaces of the standard application to be used and operated
• Visualize all the relevant data of the standard application
• Graphically represent the synchronizing operations
• Incorporate the additional LAxisCtrl library.
See the following link:
https://support.industry.siemens.com/cs/ww/en/view/109749348

In this way, the core functions of the standard SIMATIC Rotary Knife application
can be quickly and simply integrated into a user project that you have generated
yourself.
© Siemens AG 2021 All rights reserved

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 8
2 Possible applications

2 Possible applications
2.1 Applications
2.1.1 Approved controllers

The SIMATIC Rotary Knife standard application can run on any SIMATIC 15xx T(F)
controller.

2.1.2 Tasks that can be addressed using the core functions

These core functions are used to control rotating equipment for


• Cutting
• Perforating
• Embossing
• Sealing
• etc.

The "Rotary Knife" core function completely handles the motion control of the
rotary knife axis. The functionality of the material feed is implemented outside the
© Siemens AG 2021 All rights reserved

core functions, in the user program.

2.1.3 Features of the application

The following features have been implemented and can be used in the user
program.

The following functions are available in the SIMATIC Rotary Knife standard
application:
• Constant cutting curve with optional over velocity
During the cut, the material and crosscutter axis move with the same
(circumferential) velocity - or optionally with an over velocity.
• Polynomial cutting curve
The cutting curve is defined using over velocities
– At the beginning of the cut
– At the "zero" position within the cut itself
– At the end of the cut
• Cosine cutting curve
The cutting curve is defined by start sync angle of cutting area
– Automatic calculation of overspeed at the beginning of the cut
– The cutting curve ends at the "zero" position
– At the end of the cut the linear cutting curve “kickout” is commended
• Cam profile
Cams are defined for the motion control of the crosscutter axis. The following
cam profiles can be parameterized:
– Linear (constant acceleration)
– Trapezoidal (jerk limiting)

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 9
2 Possible applications

– Polynomial 5
– Sinusoidal
– Polynomial 6
• Print mark correction with adjustable correction speed
During operation, users can correct deviations of print marks that have been
identified using superimposed motion. More in detail at Details regarding
Printmarkcorrection.
• Activating/deactivating the print mark correction while operational
Print mark correction can be activated/deactivated while the system is
operational. Starting from a specific start position is not required for
synchronization. More in detail at Details regarding Printmarkcorrection.
• Multi-knife systems
The SIMATIC Rotary Knife application supports multi-knife systems.
• Quiescent position of the crosscutter axis can be adjusted
The quiescent position of the knife between two cuts can be parameterized.
• Defined start and stop behavior
The start and stop behavior of the crosscutter axis is implemented using
special cams. Therefore, the motion control of the crosscutter axis before and
after cuts can be precisely determined.
• Constant velocity during cut
This function should be activated when strong interferences disturbing the run
of the knife during cut.
© Siemens AG 2021 All rights reserved

In this case, while the RotaryKnife is in the synchronous cut area, the
AuxiliaryAxis will decouple from the master (leading value) and will continue to
move at the last speed measured before entering the cut area. At the end of
the cutting area, the AuxiliaryAxis is again coupled to the master value A
possibly occurring length error is detected and corrected with the methods of
the print mark correction
(This correction is working with or without activated print mark correction)
• Precontrol of the accelerating torque
The motor torque required to accelerate and decelerate the rotary knife is
derived from the acceleration profile - and is pre controlled with precise timing.
• Interruption of automatic crosscutter operation
When the material web is at a standstill, automatic crosscutter operation can
be interrupted. The crosscutter and material web axis are disabled. The
crosscutter can then freely move; however, the material web only backward
(generally this happens automatically as a result of the tension in the material
web!). Once the fault has been resolved, operation is resumed at the position
left at the interruption and automatic crosscutter operation continues without
any waste.
• Cutting torque pre control
An additional torque set point can be entered within the cutting range using an
interpolation point table with up to 10 interpolation points.
• "Utilize inertia" using a pendulum cut
Above a cut length of 4 x knife circumference (see Fig. 3-1), the cam
calculation permits a pendulum cut to be made. The pendulum curve is then
automatically generated if the following applies:
Starting angle + 5° < 180° < stopping angle + 5°
The "Single cut" operating mode also allows a "Utilize inertia" type cutting
behavior when the start and stop positions are suitably selected.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 10
2 Possible applications

• Switching in between up to five leading values


The standard application can manage up to 5 different leading values and
switch between them in exact position.

Customizable coupling of auxiliary axis and leading value


The value for numerator and denominator for determining the gear ratio of the
synchronous operation between the master value and AuxiliaryAxis can be
specified in the UsersInterface.

"DCLPC" expansion
The following function is additionally provided in the "DCLPC" expansion of the
SIMATIC Rotary Knife standard application:
DC link voltage pre control
to control a capacitor bank for optimum energy usage
This function allows the infeed power to be reduced to just cover the power
loss - the power required for accelerating and braking
is provided/absorbed by the battery of capacitors.

"Vmax" expansion (not tested at depth in the field!)


The following function is additionally provided in the "Vmax" expansion of the
SIMATIC Rotary Knife standard application:
• Calculation of the maximum material/web velocity Vmax considering the
power ratings of the infeed unit, converter and motor
© Siemens AG 2021 All rights reserved

Using the currently required cam (format length, cam profile and over speed),
using an iteration technique, the function calculates the maximum possible
material velocity, taking into account the limit values defined by the power
ratings of the infeed, converter and motor.
• Calculation of the performance curves of the rotary knife considering the
power ratings of the infeed unit, converter and motor
Over one cut length range, using the Vmax calculation, this function
determines curves of Vmax as well as the power data of the motor, converter
and infeed unit being used.

2.1.4 Restrictions

The following functions were not taken into consideration when implementing this
application:
• Non-linear cutting characteristic
The application cannot be used unchanged if the cutting characteristic must be
influenced by a non-linear cutting curve, which cannot be emulated using a
polynomial cutting curve with velocity peaks or corresponds to a cosine cutting
curve.
• Seamless continuation of a cut after an error stop
If the crosscutter develops a fault during the cut, then the application does not
allow the cut to be continued. Crosscutter operation can only be resumed after
the cause of the error has been resolved and acknowledged, which is only
possible by traversing to the initial position.

2.1.5 Details regarding Printmarkcorrection

Print mark correction is used to detect deviations from the set product length with
the help of a sensor and print marks, or other detection criteria on the web, to

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 11
2 Possible applications

correct them correspondingly. Print mark correction is not intended to significantly


vary the format lengths due to randomly occurring print marks.
There are two scenarios in which the print mark correction can be started via
"cutPositionCorrectionOn".

Start scenario 1 Mode "Startpos":


When changing from Startpos to Automatic, the system waits until the first print
mark reaches the sensor. This can be a rising or falling edge at the variable
"measuringWithRisingEdge". Based on this position the "masterSyncPosition" is
calculated, from which web position the cross cutter axis has to start the
movement.

Figure 2-1
Startposition
startPosAtSensor masterSyncPosition
Sensor

DistanceToSensor
© Siemens AG 2021 All rights reserved

Position 1. Printmark
Startlength

For all print mark positions that are detected before the first cut, the deviations from
the set format length are calculated "cutPositionDeviationMeasured(i)" and entered
in the "cutPositionBuffer". In the cut, the Rotary Knife changes from the start cam
to the cyclic cam. At the same time cutPositionDeviationMeasured(1) is read from
the buffer and the correction value for the next cut is forwarded to the AuxiliaryAxis.
The further procedure is described in the subitem "cyclic correction".

Start scenario 2 "Automatic" mode:


If print mark correction is started in "Automatic" mode, there will be a deviation
between the current cut position and the print mark cut position. This deviation
"cutPositionCorrectionBasicCorrectionValue" must be compensated first. This
value can be the maximum of ± half of the format length. Depending on the value,
a positive superimposed movement results. This is limited by
"CPCorrectionMaximum" per cut. In addition to this deviation, there is also the
position deviation of the print marks to the set format length. This is stored in
addition to the previous deviation in the "cutPositionBuffer".
The correction is only started when "cutCorrWait” = 0. This variable specifies how
many cuts are waited until the first detected print mark with activated print mark
correction is in front of the cross cutter. Until then the set format length is cut
without correction.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 12
2 Possible applications

Figure 2-2
cutPosAtSensor cutPosAtCut

First printmark with active CPCorrection

Cutposition

startPosAtSensor
Sensor

cutPositionCorrectionOn := TRUE

cutPositionCorrectionBasicCorrectionValue

Cyclic correction
If the cross cutter is no longer in the synchronous area and is therefore no longer in
material contact, cutPositionDeviationMeasured(i) is read from the
"cutPositionBuffer". This deviation is compensated in the AuxiliaryAxis via a
MC_PosSuperimposed command. The following adjustments are already included
in the print mark correction:
© Siemens AG 2021 All rights reserved

• With the help of "ShiftCorrectionStartPos" the start range of the compensation


movement can be adjusted between 0 % 100 %, 0 % corresponds to the
beginning of the format range and 100 % to the end of the format range (see
Figure 3-7). For example, with sub-synchronous formats, it is usually a good
idea to move the compensation movement to the middle. Whereas for
oversynchronous formats, it usually makes more sense at the beginning of the
format range.
• The movement vector (s, v) of the compensation movement can be defined.
The maximum compensation speed corresponds to the web speed.
• A sharp range in which print marks are detected can be set with
"deltaToleranceRange". If no print mark is detected in the sharp range,
"cutPositionErrorCounter" is incremented. As soon as a print mark is detected,
it is resetted. As long as no print mark is detected, the set format lengths are
cut.
• Manual adjustment: With the help of the variables "...CutPositionPositiveValue"
"...CutPositionNegativeValue" a cut error can be adjusted manually if the cuts
are next to the desired/existing print mark despite print mark correction.

Limits of the print mark correction


• When changing formats, print mark correction should be switched off until the
desired format is cut.
• It must be noted that the print mark correction causes a superimposed
movement. System limits, such as maximum speed, must not be reached.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 13
2 Possible applications

Figure 2-3

• The superimposed movement must not be too large so that it can be


completed in the format area. The "CPCorrectionMaximum" parameter is used
for this purpose.
• The maximum correction speed corresponds to the web speed.

Program blocks involved


The print mark correction is processed in the following function blocks. In the
explanation of these function blocks further specific information about the print
© Siemens AG 2021 All rights reserved

mark correction can be read. These function blocks call further sub functions and
function blocks which are needed for the print mark correction
(LRK_CutPositionBufferRead/-Out/-In/-Reset).
All mentioned data types are located in the UsersInterface.
• LRK_CutPositionMeasuring: Measurement value detection
• LRK_Servo: Contains the clock-synchronous detection of the cut position.
• LRK_RotaryKnife: Initiates the measurement value measurement cyclically and
contains, among other things, the reading of the correction values, the
recognition of the correction conditions and the output of the correction
movement to the AuxiliaryAxis.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 14
2 Possible applications

2.1.6 Details regarding Interrupt-/ Continue Production

In case of a standstill of the web, the automatic cross cutter operation can be
interrupted, e.g. in case of malfunctions or short maintenance work. The cross
cutter and virtual web axis (Auxiliary Axis) are deactivated. The cross cutter may
then be moved freely. If possible, the web should not be moved. If it is moved,
which is often done automatically by the web tension, the following points should
be noted:
• The web position is not allowed to be moved so far that the cutter passes the
cutting area.
• The difference of the web position during "Interrupt Production" is not allowed
to exceed half a format length.
Once the defect has been eliminated or the maintenance is done, the drive is
switched on again with "continue production" and the cross cutter axis is brought
into position. Automatic cross cutter operation is thus continued without scrap.

Damage to the knife possible


If the material position is positioned beyond the cutting area, a compensation
movement of the cross cutter axis is performed with "continue production", which
CAUTION
passes the cutting area. This can damage both the cutting material and the knife
of the cross cutter axis.
© Siemens AG 2021 All rights reserved

Sequence
Interrupt Production:
1. cross cutter in automatic mode, production interruption "interrupt production" =
true requested. Production not yet interrupted "production interrupted" = false.
2. waiting for the web to come to a standstill.
3. Current positions are automatically stored temporarily.
4. axes are set in simulation and deactivated.

Continue Production:
1. cross cutter in automatic mode, production interruption "production interrupted"
= true and resumption of production requested "continue production" = true.
2. enabling of the axes
3. repositioning of the axes
4. start cam and gear synchronization

NOTE Interrupt -/ Continue Production does not take over any saftey functionalities
such as Safe Torque Off (= STO).

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 15
2 Possible applications

2.2 Application environment


The SIMATIC Rotary Knife standard application can be used in the following
hardware environment:

Fig. 2-1 Application environment of the SIMATIC Rotary Knife standard application
PG/PC S7-1511 T

SINAMICS S120

Encoder
RotaryKnife
Motor
© Siemens AG 2021 All rights reserved

Meas. RotaryKnife
encoder
Feeder
Material infeed cutted material cutted material

Material flow

Motor
Feeder
Encoder

A SIMATIC S7-1500 T controller can be used to control the material feed and the
drive control of the rotary knife. Alternatively, a coupling using a machine encoder
(measuring encoder) is also possible.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 16
3 Geometry and function

3 Geometry and function


3.1 Design of the Rotary Knife
The rotary knife used as basis for the application comprises a rotating axis whose
circumference is equipped with the appropriate tool(s)/knives
The following geometrical variables are used in the application:

Fig. 3-1 Geometrical variables used for the "Rotary Knife" standard application
InflectionPoint

FormatArea

KnifeCircumference

SynchronArea
Sensor
StopAngle
© Siemens AG 2021 All rights reserved

StartAngle
StartSyncAngle EndSyncAngle

DistanceToSensor Format length Format length


0° Position
of Knife

Table 3-1 Explanation of the parameterizable physical variables


Physical variable Description
0° position of knife Cutting point, the knife is positioned vertically in the cut (see
Fig. 3-1)
KnifeCircumference [mm] Effective circumference of the "Rotary Knife" (circle circumference)
StartAngle [°] [°] start angle of the knife (referred to 0°) (start angle of the start
cam). This value is different from the stopAngle if the machine is to
be a pendulum shear. Otherwise the two parameters are the same.
InflectionPoint [%] Reversal position (inflection point) of the cyclic cam referred to the
length of the format area/sector (FormatArea)
StopAngle [°] [°] stop angle of the knife (referred to 0°) (stop angle of the stop
cam). This value is different from the startAngle, if this is to be a
pendulum shear. Otherwise, the two parameters are the same.
StartSyncAngle [°] Start point of the synchronous area/range (SynchronArea) referred
to 0°.
From this position onwards, the cutting knife must move in
synchronism with the material to be cut.
EndSyncAngle [°] End of the synchronous sector referred to 0°.
From this point onwards, the knife no longer has to move in
synchronism with the material to be cut; and when required to adapt
the format can be accelerated or decelerated
NumberOfKnives Number of knives distributed around the circumference.
DistanceToSensor [mm] Distance between the cut position (0°) and the sensor used for
material and print mark detection

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 17
3 Geometry and function

Synchronous sector
Synchronous sector is calculated from the synchronous angle and the
circumference. The synchronous angle is defined by the StartSyncAngle and the
EndSyncAngle. Cutting takes place within this range, and the knife moves
corresponding to the defined cutting curve.

Format sector
The rotary knife axis moves in the format sector between two cutting operations.
The dynamic response values of the rotary knife axis must be selected so that
motion control is possible within this range; this means that the rotary knife axis
can move through the length of the format sector – with all acceleration and
deceleration phases between two cutting operations – so that it can again have the
same velocity as the material web. The resulting dynamic response values can be
influenced by the profile type, the length of the format sector and the material web
velocity.
The format sector is obtained according to the following formula:

Format sector = (KnifeCircumference / NumberOfKnives)


- Synchronous sector
© Siemens AG 2021 All rights reserved

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 18
3 Geometry and function

3.2 Rotary knife cams


3.2.1 Structure of a cam for cyclic operation

The following relationship applies when depicting the following cams


360° [peripheral angle] = 200 mm [circumference of the cutting knife point]
Note
This depiction means that it is no longer necessary to convert from degrees into
millimeters when considering the velocity!

Basic structure
Fig. 3-2 Range of a cam for Rotary Knife
Cutting point
Circumference Rotary Knife

200 mm

Format sector
180 mm

Synchronous
© Siemens AG 2021 All rights reserved

sector at the end of


the cut
? Synchronous sector at
the start of the cut
20 mm

Cutting point

0 mm
0 mm 20 mm FormatLength – 20 mm FormatLength
Warenbahn
The cam has two essential tasks:
1.) Defining the cutting curve in the synchronous sector
The shape of the cam in the synchronous sector is derived from the
specification of the cutting curve. The cutting curve is independent of the
format length.
2.) Adapting the format in the format sector
The shape of the cam in the format sector is derived from the difference
between the circumference and format length and is therefore dependent on
the format length.
This is the reason that the cutting point (defined as the 0 position) is selected as
the changeover point of the cam. This is because the synchronous sector is always
identical, and therefore a changeover can be made without any jerk.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 19
3 Geometry and function

Table 3-2 Typical cams as a function of the format length


Cam Description
Circumference Rotary Knife Sub synchronous format (format length >
200 mm
circumference)
If the format length is greater than the
circumference, then within the format sector,
180 mm then the rotary knife must be decelerated
starting from the synchronous velocity and
then accelerated back to the synchronous
100 mm velocity. If the format length is significantly
greater than the circumference, the rotary
knife comes to a standstill, and makes a
20 mm pause, which increases as the format length
increases.

0 mm
0 mm 20 mm FormatLength – 20 mm FormatLength
Circumference Rotary Knife Web

Circumference Rotary Knife Synchronous format (format length =


200 mm
circumference)

If the format length precisely corresponds to


180 mm the circumference of the rotary knife, then the
knife moves with the velocity of the material
web.
100 mm
© Siemens AG 2021 All rights reserved

20 mm

0 mm
0 mm 20 mm FormatLength – 20 mm FormatLength
Circumference Rotary Knife Web

Circumference Rotary Knife Over synchronous format (format length <


200 mm
circumference)
If the set format length is less than the
circumference of the rotary knife, then in the
180 mm format sector, starting from the synchronous
velocity, the crosscutter must be accelerated
and then decelerated back to the synchronous
100 mm velocity (circumferential velocity > material
web velocity)

20 mm

0 mm
0 mm 20 mm FormatLength – 20 mm FormatLength
Circumference Rotary Knife Web

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 20
3 Geometry and function

Cam Description
Circumference Rotary Knife Circumference << format length
200 mm If the format length is 4x greater than the
circumference, then the cam calculation
permits pendulum motion if the following
180 mm applies:
Starting angle + 5° < 180° < stopping angle
+ 5°
100 mm
Pendulum operation reduces the resulting
acceleration and deceleration levels
20 mm

0 mm
0 mm 20 mm FormatLength – 20 mm FormatLength
Circumference Rotary Knife Web

3.2.2 Segment structure of a cam for rotary knife

As the format length increases, there is a risk that the knife moves backwards into
the synchronous sector. This can cause damage and must be avoided. The format
length, above which there is a risk of backward motion, is known as the critical
length.
© Siemens AG 2021 All rights reserved

Therefore, the format sector of the cam is subdivided into three segments. For
format lengths greater than the critical length, this allows the knife to dwell at the
starting position.

Fig. 3-3 Diagram showing the segments, which comprise the cam of the rotary knife

Circumference Rotary Knife

200 mm

180 mm

100 mm

20 mm

0 mm
0 mm 20 mm FormatLength – 20 mm FormatLength
Web
• Segments I and V define the synchronous sector, and therefore the specified
cutting curve.
• Segments II, III and IV define the format sector.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 21
3 Geometry and function

3.2.3 Start and stop cams

Table 3-3 Typical start and stop cams


Cam type Description
Circumference Rotary Knife Synchronizing to the start cam
200 mm

Using the start cam, the rotary knife is brought


from the starting position into the cut position and
180 mm
accelerated up to the material web velocity.
Start Position
100 mm This cam is defined over the complete format
Start
length, so that it can be started when the incoming
material edge reaches the cut position. For short
20 mm
format lengths and rotary knife systems with a high
moment of inertia, the rotary knife can be
immediately accelerated.
0 mm
0 mm 20 mm FormatLength – 20 mm FormatLength
Web At the zero point, a switchover is made to the cam
for cyclic operation.

Circumference Rotary Knife Desynchronizing with the stop cam


200 mm

If the rotary knife is to be stopped, or if there is no


longer any material under the rotary knife, then the
180 mm
stop cam is selected for stopping. This means that
© Siemens AG 2021 All rights reserved

the rotary knife is stopped at the stop position.


100 mm
Stop Position
After this, the rotary knife is withdrawn from the
Stop
synchronous group with the material web.

20 mm

0 mm
0 mm 20 mm FormatLength – 20 mm FormatLength
Web

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 22
3 Geometry and function

3.2.4 Cutting curves

Using a linear cutting curve, thin materials can be essentially cut in the form of
points. At the cutting point, the circumferential velocity of the knife is precisely the
same as that of the material web. As the material thickness increases, the material
is compressed as the knife enters and exits the material. (vectoral breakdown of
the circumferential velocity in the material direction!)

Table 3-4 Cutting curve for thin materials


Cutting characteristic Cam

Knife Speed V

Maximum
Speed

Synchron
Speed
(Web Speed)

Knife Knife
In Out
Synchron Synchron
Area Format Area Area
endSyncAngle startSyncAngle t
Cycle Time
0
CuttingPoint

Example of a velocity profile with linear cutting curve


without velocity increase.
© Siemens AG 2021 All rights reserved

For thicker materials, generally special cutting curves must be developed that
equalize these velocity differences. The application allows cutting curves to be
defined using velocity increases (start of the cut, center of the cut, end of the cut).
A 5th degree polynomial is used to interpolate between these points.

Table 3-5 Cutting curve for thick materials


Cutting characteristic Cam

Knife Speed V

Maximum
Speed

Synchron
Speed
(Web Speed)

Knife Knife
In Out

Synchron Synchron
Area Format Area Area
endSyncAngle startSyncAngle t
0 Cycle Time
Cutting Point

Example of a velocity profile with a cutting curve using


velocity increases at the start and end of the cut.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 23
3 Geometry and function

3.3 Operating modes of the SIMATIC Rotary Knife


application
The FB LRK_RotaryKnife automatically controls the rotary knife to implement the
required functionality.
This functionality is subdivided into six operating modes, which implement the
sequences at the rotary knife using the operating modes or using the operating
mode transitions.
Therefore, the user only influences the rotary knife by entering the required
operating mode with the necessary parameters.
Fig. 3-4: Operating modes

4
Manual

1 0
Disable Error

2
Startposi-
tion
5
Single
© Siemens AG 2021 All rights reserved

3 Cut
Auto-
matic

Table 3-6 Operating modes of the SIMATIC Rotary Knife application


Operating mode Description
ERROR (0) The FB LRK_RotaryKnife has identified an error and brought the rotary knife axis into
a safe state. The error is still active and can be evaluated by the user.
The rotary knife is stopped and goes into the DISABLE mode.
DISABLE (1) The FB LRK_RotaryKnife is ready for use, the axis has still not been enabled. All
active errors have been successfully acknowledged.
The rotary knife is in the status after a reset, deactivated and stopped.
START POSITION (2) The rotary knife is moving or is located at the start position – and is ready to be
synchronized to the material web.
The axis waits in the STARTPOSITION mode.
AUTOMATIC (3) The rotary knife has been synchronized to the material web and cuts the material as
specified.
MANUAL (4) The rotary knife is in the manual mode, and the user can manually move the axis via
the user interface.
SINGLE_CUT (5) The rotary knife is ready for a single cut.

Users can employee these operating modes to implement their rotary knife
functionality in the user program and can be controlled at the FB LRK_RotaryKnife
using input parameters.
FB LRK_RotaryKnife shows the actual state that has been reached using output
parameter "status".

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 24
4 Description of the integration into the user project

4 Description of the integration into the user


project
4.1 Integrating the LRotaryKnife library into a TIA-Portal
project
The following table lists the steps required to integrate the LRotaryKnife library into
a TIA Portal project. The library blocks can then be used.

Note The precondition is that a TIA Portal project exists

Table 4-1 Integrating the library into STEP 7


Step Task
1. Unzip the LRotaryKnife library to a local folder.
2. In the TIA Portal, select "Options" -> "Global libraries" -> Open library…."
3. Select file LRotaryKnife.al15.
4. Open the global library in the read-only mode.
5. Select the master copy to be copied into the project
© Siemens AG 2021 All rights reserved

1
2

No. Task
1. All the rotary knife standard application blocks are saved in this group.
Drag all the blocks belonging to the version to be selected (basic, DCLPC or Vmax
((not tested at depth in the field!)) and drop into the user program.

2. The configured HMI user interfaces are saved in this group.


When used, drag the version matching the user program and drop it into the
project.
3. In addition, groups LRotaryKnife_Tags and LRotaryKnife_Types must be
integrated in the project.
6. Integrate the LAxisCtrl library according to the manual (see the following link)
https://support.industry.siemens.com/cs/ww/en/view/109749348

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 25
4 Description of the integration into the user project

4.2 Structure of the LRotaryKnife library


4.2.1 Structure of the master copies LRotaryKnife_Blocks

Overview
Fig. 4-1 Master copies LRotaryKnife_Blocks (overview)

1
2
3
4
5
6

Table 4-2 List of the blocks available


No. Block
1. LRK_aVersion
This block includes information about versions that have already been published.
2. LRK_RotaryKnife
Core block of the "Rotary Knife" standard application
© Siemens AG 2021 All rights reserved

3. LRK_RotaryKnife_DB
Instance data of the core block of the "Rotary Knife" standard application
4. BasicBlocks
This group contains all of the blocks required for the standard application.
5. DCLPCBlocks
This group contains all the blocks that are required to expand the standard application to include
the "DCLPC" AddOn.
6. VmaxBlocks (not tested at depth in the field!)
This group contains all the blocks that are required to expand the standard application using
AddOn "DCLPC" and AddOn "Vmax" (AddOn "Vmax" requires AddOn "DCLPC" as basis).

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 26
4 Description of the integration into the user project

4.2.2 Blocks required for the "RotaryKnife" standard application

Overview
Fig. 4-2 Master copies LRotaryKnife_Blocks

6
© Siemens AG 2021 All rights reserved

Table 4-3 Structure of the BasicBlocks


No Block Group
1. AxisBlocks
Blocks to control axes and external encoders
2. CamCalculationBlocks
Blocks to calculate and depict cams
3. DataBlocks
Blocks for application and instance data
4. InternalAxisFunctionBlocks
Blocks to directly control axes and external encoders without axis FB
5. OrganizationBlocks
Organization blocks used by the application
6. SubBlocks
FC and FB blocks required
7. TestBlocks
Blocks required to connect to the test system required for commissioning support and for service.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 27
4 Description of the integration into the user project

AxisBlocks

Fig. 4-3 AxisBlocks

1
2
3
4

Table 4-4 List of the AxisBlocks available


No. Block
1. LRK_AuxiliaryAxis
© Siemens AG 2021 All rights reserved

Coupling block between the axis control and core block of the "Rotary Knife" for the auxiliary axis
2. LRK_LeadingValue
Coupling block between the axis control and core block of the "Rotary Knife" for the leading value
- with automatic identification as to whether the leading value is an external encoder or an axis.
3. LRK_LeadingValueMeasuringInput
Control block of the measuring input "Rotary Knife" core block.
4. LRK_RotaryKnifeAxis
Coupling block between the axis control and core block of the "Rotary Knife" for the
RotaryKnifeAxis

CamCalculationBlocks

Fig. 4-4 CamCalculationBlocks

1
2
3

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 28
4 Description of the integration into the user project

Table 4-5 List of the cam calculation blocks available


No. Blocks
1. LRK_CamCalc
Block to calculate cams.
2. LRK_CamManagement
Block to manage all of the cams required in the Rotary Knife system.
3. LRK_CamShow
Block to display position, velocity, acceleration and jerk of a selected cam on the HMI.

DataBlocks

Fig. 4-5 Data blocks


© Siemens AG 2021 All rights reserved

1
2

3
4
5
6

Table 4-6 List of the available data blocks


No. Block
1. LRK_AuxiliaryAxis_DB
Instance DB of the FB LRK_AuxiliaryAxis
2. LRK_Data
Database of the "Rotary Knife" standard application
3. LRK_LeadingValue_DB
Instance DB of the FB LRK_LeadingValue
4. LRK_LeadingValueMeasuringInput_DB
Instance DB of the FB LRK_LeadingValueMeasuringInput
5. LRK_RotaryKnifeAxis_DB
Instance DB of the FB LRK_RotaryKnifeAxis
6. LRK_Servo_DB
Instance DB of the FB LRK_Servo

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 29
4 Description of the integration into the user project

InternalAxisFunctionBlocks

Fig. 4-6 Internal axis function blocks

1
2
3

Table 4-7 List of the available internal axis function blocks


No. Block
1. LRK_IAFB_ExtEnc
© Siemens AG 2021 All rights reserved

Internal "axis FB" to control an external encoder via the axis FB interface
2. LRK_IAFB_Pos
Internal "axis FB" to control a positioning axis via the axis FB interface
3. LRK_IAFB_Sync
Internal "axis FB" to control a synchronous axis via the axis FB interface

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 30
4 Description of the integration into the user project

Note The use of this function block is explained in the following in Chapter

6.4.1 LRK_AuxiliaryAxis Table 6-6 Switching over to reduced axis handling (Part 1)
0

LRK_LeadingValue Table 6-7 Switching over to reduced axis handling (Part 2),

LRK_EncoderAsAAMaster Table 6-12 Switching over to reduced axis handling (Part 3),

6.4.17 LRK_PosAxisAsAAMaster Table 6-13 Switching over to reduced axis handling


(Part 4),

LRK_SyncAxisAsAAMaster Table 6-14 Switching over to reduced axis handling (Part 5),

LRK_EncoderAsLVSAMaster Table 6-15 Switching over to reduced axis handling (Part 6),

LRK_PosAxisAsLVSAMaster Table 6-16 Switching over to reduced axis handling (Part 7),

LRK_SyncAxisAsLVSAMaster Table 6-17 Switching over to reduced axis handling (Part


8),
© Siemens AG 2021 All rights reserved

LRK_SyncAxisAsRKMaster Table 6-18 Switching over to reduced axis handling (Part 9)

explained and described.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 31
4 Description of the integration into the user project

Organization blocks

Fig. 4-7 Organization blocks

1
2
3

Table 4-8 List of the available organization blocks


© Siemens AG 2021 All rights reserved

No. Block
1. LRK_Main
"OB1" of the Rotary Knife standard application
2. LRK_Startup
Starting OB of the Rotary Knife standard application
3. MCPreServo
MCPreServo prepared with the call of the FB LRK_Servo

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 32
4 Description of the integration into the user project

SubBlock
Fig. 4-8 SubBlocks

1
2
3
4
5
6
7
8
© Siemens AG 2021 All rights reserved

9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 33
4 Description of the integration into the user project

Table 4-9 List of the available sub blocks


No. Block
1. LRK_AddCamPointsToCam
Block to copy the calculated curve points data to the TO_Cam specified as DB_ANY.
2. LRK_AddCamSegmentsToCam
Block to copy the calculated segment data in the TO_Cam specified as DB_ANY.
3. LRK_CutPositionBufferIn
Block to enter the actual measuring position and its deviation from the actual cut length in the
"CutPositionBuffer".
4. LRK_CutPositionBufferOut
Block to delete the actual measuring position and its deviation from the actual cut length in the
"CutPositionBuffer".
5. LRK_CutPositionBufferRead
Block to read out the next measuring position that has still not been read and its deviation from the
actual cut length in the "CutPositionBuffer".
6. LRK_CutPositionBufferReset
Block to reset "CutPositionBuffer".
7. LRK_CutPositionMeasuring
Block to sense measured values and calculate the deviation from the actual cut length using a
measuring input.
8. LRK_CuttingTorquePreControl
Block to determine the actual cutting torque for the torque pre control
© Siemens AG 2021 All rights reserved

9. LRK_EncoderAsAAMaster
Block to call the axis FB for the auxiliary axis with external encoder as master
10. LRK_EncoderAsLVSAMaster
Block to call the axis FB for the leading value axis as synchronous axis with external encoder as
master
11. LRK_GetAccelerationTorqueValue
Block to determine the actual accelerating torque for torque pre control
12. LRK_GetAuxRotAxisServoValues
Block to read out the reduced actual axis data of auxiliary axis and rotary knife axis in the servo
clock cycle
13. LRK_GetCamServoValues
Block to read out significant values from a TO_Cam in the servo clock cycle for the Rotary Knife
standard application
14. LRK_GetCamValues
Block to read out significant values from a TO_Cam for the Rotary Knife standard application
15. LRK_GetExternalEncoderValues
Block to read out significant values from a TO_ExternalEncoder for the Rotary Knife standard
application.
16. LRK_GetLVExtEncServoValues
Block to read out significant values from a TO_ExternalEncoder for the Rotary Knife standard
application in servo clock.
17. LRK_GetLVPosAxisServoValues
Block to read out significant values from a TO_PositioningAxis for the Rotary Knife standard
application in servo clock.
18. LRK_GetLVSyncAxisServoValues
Block to read out significant values from a TO_SynchronousAxis for the Rotary Knife standard
application in servo clock.
19. LRK_GetPosAxisValues
Block to read out significant values from a TO_PositioningAxis for the Rotary Knife standard
application.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 34
4 Description of the integration into the user project

No. Block
20. LRK_GetSyncAxisValues
Block to read out significant values from a TO_SynchronousAxis for the Rotary Knife standard
application.
21. LRK_MCResetCAM
Block to reset the TO_Cam
22. LRK_MCResetMI
Block to reset the TO_MeasuringInput
23. LRK_MCTorqueAdditive
Block to call the MC_TorqueAdditive with DB_ANY as TO reference.
24. LRK_PosAxisAsAAMaster
Block to call the axis FB for the auxiliary axis with positioning axis as master
25. LRK_PosAxisAsLVSAMaster
Block to call the axis FB for the leading value axis as synchronous axis with positioning axis as
master
26. LRK_Servo
Block to generate signals "Cut", "KnifeInSynchronousSector" and "KnifeInFormatSector" as well
as to call calculations for cutting torque and acceleration torque from the PreServo OB.
27. LRK_SyncAxisAsAAMaster
Block to call the axis FB for the auxiliary axis with synchronous axis as master
28. LRK_SyncAxisAsLVSAMaster
Block to call the axis FB for the leading value axis as synchronous axis with synchronous axis as
© Siemens AG 2021 All rights reserved

master
29. LRK_SyncAxisAsRKMaster
Block to call the axis FB for the rotary knife axis with synchronous axis as master

Test blocks
Fig. 4-9 Test blocks

1
2

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 35
4 Description of the integration into the user project

Table 4-10 List of available test blocks


No. Block
1. LRK_Test
Block to connect rotary knife functions of the user program to the HMI user interface.
2. LRK_Test_DB
Instance DB of the FB LRK_Test

4.2.3 Structure of the master copies LRotaryKnife_HMI

Fig. 4-10 Master copies LRotaryKnife_HMI

1
2
3

Table 4-11 List of available HMI projects


No. Block
© Siemens AG 2021 All rights reserved

1. HMI_1_Basic
HMI project for the Rotary Knife application
2. HMI_1_DCLPC
HMI project for the Rotary Knife application with AddOn DCLinkPreControl
3. HMI_1_Vmax (not tested at depth in the field!)
HMI project for the Rotary Knife application with AddOn DCLinkPreControl and AddOn Vmax
calculation.

Here, HMI project HMI_1_Basic 1 should be selected.

4.2.4 Structure of the master copies LRotaryKnife_Tags

Fig. 4-11 Master copies LRotaryKnife_Tags

Table 4-12 List of available tags


No. Block
1. LRK_Constant
All constants of the overall Rotary Knife package

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 36
4 Description of the integration into the user project

4.2.5 Structure of the master copies LRotaryKnife_Types

Overview
Fig. 4-12 Master copies LRotaryKnife_Types (overview)

1
2
3

Table 4-13 List of available data types


No. Block
1. BasicTypes
This group contains all of the data types required for the standard application.
2. DCLPCTypes
This group contains all the data types that are required to expand the standard application to
include the "DCLPC" AddOn.
© Siemens AG 2021 All rights reserved

3. VmaxTypes (not tested at depth in the field!)


This group contains all the data types that are required to expand the standard application to
include AddOn "DCLPC" and AddOn "Vmax" (AddOn "Vmax" requires AddOn "DCLPC" as
basis).

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 37
4 Description of the integration into the user project

4.2.6 Types required for the Rotary Knife standard application

Fig. 4-13 Master copies LRotaryKnife_Types

1
2
3
4
5
6
7
8
9
10
11
12
13
3
14
15
16
17
© Siemens AG 2021 All rights reserved

18
19
20
21
22
23
24
25

Table 4-14 List of available types


No. Block
1. LRK_typeAuxiliaryAxisCommand
Data structure to control the auxiliary axis
2. LRK_typeAuxiliaryAxisOutput
Data structure of the return information of the auxiliary axis
3. LRK_typeAxisTOs
This structure contains all of the required TOs as DB_ANY.
4. LRK_typeCamCalculation
Data structure of the cam calculation
5. LRK_typeCamCommand
Data structure to control the cam calculation
6. LRK_typeCamStatus
Data structure to describe the cam
7. LRK_typeCutPositionBuffer
Data structure of the CutPositionBuffer
8. LRK_typeCutPositionBufferManagement
Data structure of the CutPositionBufferManagement

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 38
4 Description of the integration into the user project

No. Block
9. LRK_typeCuttingTorquePreControlAngle
Data structure to enter the cutting torque via the knife angle
10. LRK_typeCuttingTorquePreControlPosition
Data structure to enter the cutting torque via the knife position
11. LRK_typeGetAuxRotAxisServoValues
Data structure to display TO data from AuxiliaryAxis and RotaryKnifeAxis read in the servo clock
cycle
12. LRK_typeGetCamServoValues
Data structure to display TO data of a cam read in the servo clock cycle
13. LRK_typeGetLVServoValues
Data structure to display TO data of leading value read in the servo clock cycle
14. LRK_typeLeadingValueCommand
Data structure to control the leading value
15. LRK_typeLeadingValueMeasuringInputCommand
Data structure to control the measuring input at the leading value
16. LRK_typeLeadingValueMeasuringInputOutput
Data structure of the return information of the measuring input at the leading value
17. LRK_typeLeadingValueOutput
Data structure of the return information of the leading value
18. LRK_typeLeadingValueTOs
© Siemens AG 2021 All rights reserved

Data structure to enter all necessary TOs of a leading value


19. LRK_typeMeasuringValue
Data structure of the measured value sensing
20. LRK_typeRotaryKnife
Data structure of the rotary knife
21. LRK_typeRotaryKnifeAxisCommand
Data structure to control the rotary knife axis
22. LRK_typeRotaryKnifeAxisOutput
Data structure of the return information of the rotary knife axis
23. LRK_typeRotaryKnifeInfo
Data structure of the return information of the Rotary Knife standard application
24. LRK_typeSCTrendViewData
Data structure to display a cam on the HMI
25. LRK_typeUsersInterface
Data structure of the user interface to parameterize the Rotary Knife standard application.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 39
5 Preparing the TO configuration

5 Preparing the TO configuration


The SIMATIC Rotary Knife standard application requires the following technology
objects:
• For the "RotaryKnifeAxis"
a TO_SynchronousAxis
• For the "AuxiliaryAxis"
a TO_SynchronousAxis
• As leading value
– either for the "LeadingValueAxis"
a TO_PositioningAxis
and for "LeadingValueAxisMeasuringInput"
a TO_MeasuringInput
– or for "LeadingValueExternalEncoder"
a TO_ExternalEncoder
and for "LeadingValueExternalEncoderMeasuringInput"
a TO_MeasuringInput

• Camming requires the following cams


– For "Cam_1"
a TO_Cam as start cam/cyclic cam
© Siemens AG 2021 All rights reserved

– For "Cam_2"
a TO_Cam as cyclic cam
– For "Cam_3"
a TO_Cam as stop cam

Note The startup organization blocks of the example supplied with the LRotaryKnife
library are set to the TO designations listed above. If, for system-specific
reasons, users employ different TO designations, then these must be adapted in
the startup organization blocks.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 40
5 Preparing the TO configuration

5.1 TO structure of the SIMATIC Rotary Knife standard


application
• Fig. 5-1 TO configuration SIMATIC Rotary Knife standard application

LeadingValueAxis
Leading MeasuringInput
Value
Axis Cam 1
1:1 RotaryKnife
Auxiliary Cam 2
Axis Axis
1:1
Cam 3
LeadingValue
External
Encoder LeadingValue TO_SynchronousAxis

ExternalEncoder TO_PositioningAxis

MeasuringInput TO_ExternalEncoder
TO_MeasuringInput
SynchronousOperation

Leading values that can be interconnected


LeadingValueAxis if an axis can be used as leading value.
© Siemens AG 2021 All rights reserved

The print mark is then sensed using the measuring input


LeadingValueAxisMeasuringInput.
Or
LeadingValueExternalEncoder if an external encoder is used as leading value. The
print mark can then be sensed via the measuring input
LeadingValueExternalEncoderMeasuringInput.
The connectable leading values can be, for example, measuring wheels, which
measure the line speed, or external and machine sensors. Furthermore, a virtual
axis can also be used as a leading value axis if no measuring system is available.
A flying change of the leading values is possible!

Auxiliary axis
The auxiliary axis is coupled to the leading value in a 1:1 gearing relationship and
is used to decouple the leading value motion from the cam motion of the rotary
knife axis.
For example, this decoupling is required for print mark correction, which is
executed as superimposed positioning of the auxiliary axis.

Cam axis
The rotary knife axis is coupled to the auxiliary axis through a camming
relationship.
3 cams are available:
• Cam 1, start cam or cyclic cam
• Cam 2, cyclic cam
• Cam 3, stop cam

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 41
5 Preparing the TO configuration

5.2 Configuring the leading value TO

As leading value TO for the rotary knife, you can either use

5. A TO axis (TO_PositioningAxis/TO_SynchronousAxis) or

6. A TO external encoder (TO_ExternalEncoder).

5.2.1 Configuring a positioning axis as leading value

Table 5-1 Configuring a positioning axis as leading value


Action
1. Insert TO_PositioningAxis
and assign a name
For example,
"LeadingValueAxis"
© Siemens AG 2021 All rights reserved

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 42
5 Preparing the TO configuration

Action
2. Configure
• axis type
• dimension units
• modulo

For the Rotary Knife


application, it is important
that axis type "linear" is
selected.

The dimension units are


used in the application as
were preselected.

It is permissible that leading


value axis is operated with or
without modulo.

If the axis is to be operated


without modulo, it must be
ensured that the axis is reset
from time to time, as
otherwise inaccuracy issues
can occur.
© Siemens AG 2021 All rights reserved

3. Here, the PROFIdrive drive


of the leading value axis is
assigned to
TO LeadingValueAxis

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 43
5 Preparing the TO configuration

Action
4. The settings for
• encoder
• data exchange, drive
• data exchange, encoder
• mechanical system
• dynamic response
default setting
• Emergency Stop
• position limits
• dynamic limits
• torque limiting
• fixed stop detection
• homing active/passive
• position monitoring
• standstill signal
• following error
must all be carried out
5. The control parameters are
set here.

Recommended setting in
conjunction with SINAMICS
© Siemens AG 2021 All rights reserved

S120

Precontrol = 100.0 %
Speed control loop substitute
time = 0.0 s

Gain (Kv factor)


must be set corresponding to
the actual requirements.

6. A setting must be made only


if the following axis is
coupled through an actual
value coupling.

Entries are not required for


a set point coupling!

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 44
5 Preparing the TO configuration

5.2.2 Configuring an external encoder as leading value

Table 5-2 Configuring the TO LeadingValueExternalEncoder


Action
1. Insert a new
TO_ExternalEncoder

And enter the


"LeadingValue
ExternalEncoder"
name

2. Configure
© Siemens AG 2021 All rights reserved

• encoder type
• dimension units
• modulo

For the Rotary Knife


application, it is important
that encoder type "linear" is
selected.

The dimension units are


used in the application as
were preselected.

The "LeadingValue
ExternalEncoder" can be
operated with or without
modulo.

If the encoder is to be
operated without modulo, it
must be ensured that the
axis is reset from time to
time, as otherwise
inaccuracy problems can
occur.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 45
5 Preparing the TO configuration

Action
3. Here, the
PROFIdrive encoder is
assigned to
TO LeadingValue
ExternalEncoder

4. The settings for


• encoder
• data exchange
• mechanical system
• homing

must all be carried out


© Siemens AG 2021 All rights reserved

5. This screen form is


automatically populated.

Users must set the actual


value filtering. The system
determines the extrapolation
time the next time that the
state transitions from stop to
run.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 46
5 Preparing the TO configuration

5.3 Configuring the TO AuxiliaryAxis


Table 5-3 Configuring the TO AuxiliaryAxis
Action
1. Insert TO_SynchronousAxis
and assign a name,
for example "AuxiliaryAxis"
© Siemens AG 2021 All rights reserved

2. Configure
• axis type
• dimension units
• modulo

Auxiliary axis is a virtual axis.

For the Rotary Knife


application, it is important
that axis type "linear" is
selected.

The dimension units are


used in the application as
were preselected.

"Modulo" must be activated


for the auxiliary axis!
The modulo length must be
at least
2 x (DistanceToSensor +
max. formatLength).
However, as a result of the
LREAL accuracy, not higher
than 1015 .
The modulo start value
should be kept at 0.0.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 47
5 Preparing the TO configuration

Action
3. TO AuxiliaryAxis is not
assigned to any drive as this
involves a virtual axis!

4. The settings for


• encoder
• data exchange, drive
• data exchange, encoder
• dynamic response
default setting
• Emergency Stop
• position limits
• dynamic limits
• torque limiting
• fixed stop detection
© Siemens AG 2021 All rights reserved

• homing active/passive
• position monitoring
• standstill signal
• following error
must be made depending on
the application
5. Under Mechanics, parameter
Leadscrew pitch must be set
to value KnifeCircumference

6. Here, the leading value


interconnections must be
entered with their associated
coupling type.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 48
5 Preparing the TO configuration

Action
7. The control parameters are
set here.

Recommended setting as a
virtual axis

Precontrol = 100.0 %
Speed control loop substitute
time = 0.0 s

Gain (Kv factor)


should be set corresponding
to the actual requirements.

8. Here, settings are not


required, as the auxiliary axis
is not used as leading value
for an additional following
axis with actual value
coupling.
© Siemens AG 2021 All rights reserved

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 49
5 Preparing the TO configuration

5.4 Configuring the TO RotaryKnifeAxis


Table 5-4 Configuring the TO RotaryKnifeAxis
Action
1. Insert TO_SynchronousAxis
and assign a name,
for example,
"RotaryKnifeAxis"
© Siemens AG 2021 All rights reserved

2. Configure
• axis type
• dimension units
• modulo
• simulation

Although the rotary knife


axis
is a rotary axis, axis type
"linear" must be selected
for the Rotary Knife
application.

The dimension units are


used in the application as
were preselected.

"Modulo" must be activated


for the rotary knife axis!
The modulo length must be
equal to the
"KnifeCircumference".
The modulo start value
should be kept at 0.0.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 50
5 Preparing the TO configuration

Action
3. The drive type is selected
here.
(for example, PROFIdrive)
and the drive assignment.

4. The settings for


• encoder
• data exchange, drive
(Additional torque data is
only necessary if
torqueprecontrol is used.
Therefore use e.g. Tel
750)
• data exchange, encoder
• dynamic response
default setting
© Siemens AG 2021 All rights reserved

• Emergency Stop
• position limits
• dynamic limits
• torque limiting
• fixed stop detection
• homing active/passive
• position monitoring
• standstill signal
• following error
must be made depending on
the application
5. Under Mechanics, parameter
Leadscrew pitch must be set
to value KnifeCircumference

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 51
5 Preparing the TO configuration

Action
6. Here, the leading value
interconnections must be
entered with their associated
coupling type as set point
coupling.
7. The control parameters are
set here.

Recommended setting in
conjunction with SINAMICS
S120

Precontrol = 100.0 %
Speed control loop substitute
time = 0.0 s

Gain (Kv factor)


should be set corresponding
to the actual requirements.

8. Here, settings are not


required, as the Rotary Knife
© Siemens AG 2021 All rights reserved

axis is not used as leading


value for an additional
following axis with actual
value coupling.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 52
5 Preparing the TO configuration

5.5 Configuring the cam TOs


5.5.1 Configuring Cam_1 to Cam_3

Table 5-5 Configuring the TO Cam


Action
1. Insert a new TO_Cam

And enter the


"Cam_1" name
© Siemens AG 2021 All rights reserved

2. It is not necessary to
configure the cam,
the application does this
automatically when
generating the cam.

3. For cams
"Cam_2" and "Cam_3"
repeat step 1.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 53
6 Description of the blocks and their structure

6 Description of the blocks and their


structure
6.1 "OB1" structure for the Rotary Knife standard
application
Fig. 6-1 Block structure LRK_Main

LRK_Main

LRK_LeadingValue LRK_LeadingValue LRK_AuxiliaryAxis LRK_RotaryKnifeAxis


MeasuringInput
EN ENO EN ENO EN ENO
EN ENO
userCommand output mode output mode output
internalCommand output
userCommand userCommand

config internalCommand internalCommand

userConfig

internalConfig userConfig

internalConfig

LRK_RotaryKnife
© Siemens AG 2021 All rights reserved

EN ENO

formatLength done

execute busy

mode error

startSingleCut errorId

numberOfInstanz state
LRK_Data
automatic
Active
axisTOs
singleCut usersInterface
Active
cutPositionBufferManagement
cutPosition camCalculation
CorrectionActive
flyingSawInfo
rotaryKnifeAxis measuringValue
Active

activeCam userCommandRotaryKnifeAxis

rotaryKnifeAxis userConfigRotaryKnifeAxis
rotaryKnifeAxis Command InternalCommandRotaryKnifeAxis
Output
auxiliaryAxis InternalConfigRotaryKnifeAxis
auxiliaryAxis Command
Output outputRotaryKnifeAxis
userCommandAuxiliaryAxis
leadingValue
userConfigAuxiliaryAxis
Output
InternalCommandAuxiliaryAxis
rotaryKnifeAxisConfig
InternalConfigAuxiliaryAxis
auxiliaryAxisConfig outputAuxiliaryAxis
usersInterface internalCommandLeadingValueMeasuringInput

camCalculation outputLeadingValueMeasuringInput
commandLeadingValue
rotaryKnifeInfo
configLeadingValue
measuringValue
outputLeadingValue
cutPositionBufferManagement

leadingValueMeasuringInputOutput

leadingValueMeasuringInputCommand

LRK_Test

EN ENO

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 54
6 Description of the blocks and their structure

6.2 Global data of the application LRK_Data

Global data block of the SIMATIC Rotary Knife application

Block name
LRK_Data

Task of the block


This block contains all of the data relevant for the application.

Graphic representation of the block

LRK_Data

rotaryKnife
Array[0..“MAX_NUMBER_OF Array[0..“MAX_NUMBER_OF_
_ROTARY_KNIFE-1“] of ROTARY_KNIFE-1“] of
„LRK_typeRotaryKnife“ „LRK_typeRotaryKnife“

OB1_RunTimeMem
LREAL LREAL
© Siemens AG 2021 All rights reserved

OB1_RunTimeMax_µs
LREAL LREAL
OB1_RunTimeMean_µs
LREAL LREAL
IPO_RunTimeMax_µs
LREAL LREAL
IPO_RunTimeMean_µs
LREAL LREAL
Servo_RunTimeMax_µs
LREAL LREAL
Servo_RunTimeMean_µs
LREAL LREAL
PreServo_RunTimeMax_µs
LREAL LREAL
PreServo_RunTimeMean_µs
LREAL LREAL
PostServo_RunTimeMax_µs
LREAL LREAL
PostServo_RunTimeMean_µs
LREAL LREAL
HMI_Init
BOOL BOOL
HMI_DCLPC_Existent
BOOL BOOL
HMI_DCLPC_Init
BOOL BOOL
HMI_Vmax_Existent
BOOL BOOL
HMI_Vmax_Init
BOOL BOOL

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 55
6 Description of the blocks and their structure

Data structure

Name Data type Description


rotaryKnife Array[0.."MAX_NUMBER_OF Complete data structure of all
_ROTARY_KNIFE-1"] of possible rotary knife instances
"LRK_typeRotaryKnife "
OB1_RunTimeMem LREAL Memory runtime measurement for
function "RUNTIME"
OB1_RunTimeMax_µs LREAL [µs] Maximum runtime OB1
OB1_RunTimeMean_µs LREAL [µs] Actual runtime OB1
IPO_RunTimeMax_µs LREAL [µs] Maximum runtime IPO
IPO_RunTimeMean_µs LREAL [µs] Actual runtime IPO
Servo_RunTimeMax_µs LREAL [µs] Maximum runtime Servo
Servo_RunTimeMean_µs LREAL [µs] Actual runtime Servo
PreServo_RunTimeMax_µs LREAL [µs] Maximum runtime PreServo
PreServo_RunTimeMean_µs LREAL [µs] Actual runtime PreServo
PostServo_RunTimeMax_µs LREAL [µs] Maximum runtime PostServo
PostServo_RunTimeMean_µs LREAL [µs] Actual runtime PostServo
HMI_Init BOOL Initialization flag for HMI
HMI_DCLPC_Existent BOOL Flag as to whether AddOn DCLPC
loaded
HMI_DCLPC_Init BOOL Initialization flag for HMI-DCLPC
© Siemens AG 2021 All rights reserved

HMI_Vmax_Existent BOOL Flag as to whether AddOn Vmax


loaded
HMI_Vmax_Init BOOL Initialization flag for HMI Vmax

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 56
6 Description of the blocks and their structure

6.3 Control block of the "Rotary Knife" functions


LRK_RotaryKnife
Control block of the SIMATIC Rotary Knife application

Block name
LRK_RotaryKnife

Task
The block includes the following functions:
• Operating mode manager of the application, including operating modes
ERROR, DISABLE, MANUAL, STARTPOSITION, AUTOMATIC and
SINGLE_CUT
• Automatic format change
• Individual processing program
• Control to calculate the travel profiles, including the linear (constant
acceleration), trapezoidal (defined jerk limiting), polynomial and sinusoidal
profile types
• Print mark correction
• Synchronizing to the material web
© Siemens AG 2021 All rights reserved

• Interruption of automatic operation at standstill (interrupt production)


– disconnection of the drives
– axis positions can be changed (however, leading value only backward!)
– reconnection of the drives
– traverse to switch-off position
– continue automatic operation without cut loss (continue production).
Homing the axes and setting-up operation (jog) are not included in the application.

Integration into the execution system


The function block can be called in every cyclic OB. Users must integrate the block.
If the prepared OBs are used within the library, then the call is automatic.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 57
6 Description of the blocks and their structure

Graphic representation of the block

LRK_RotaryKnife

LReal formatLength done Bool


Bool execute busy Bool

operationMode error Bool


mode
RotaryKnifeType (DInt) errorId DWord
Bool startSingleCut
operationMode
state
Int numberOfInstanz RotaryKnifeType(Dint)

LRK_type automaticActive Bool


rotaryKnifeAxisOutput
RotaryKnifeAxisOutput
singleCutActive Bool
LRK_type
auxiliaryAxisOutput cutPositionCorrectionActive Bool
AuxiliaryAxisOutput
LRK_type rotaryKnifeAxisActive Bool
leadingValueOutput
LeadingValueOutput
activeCam Int

LRK_type
rotaryKnifeAxisCommand RotaryKnifeAxis
Command

LRK_type auxiliaryAxisCommand LRK_type


AuxiliaryAxis AuxiliaryAxis
© Siemens AG 2021 All rights reserved

Command Command
LAxisCtrl_type rotaryKnifeAxisConfig LAxisCtrl_type
AxisConfig AxisConfig

LAxisCtrl_type auxiliaryAxisConfig LAxisCtrl_type


AxisConfig AxisConfig

LRK_type usersInterface LRK_type


UsersInterface UsersInterface

LRK_type camCalculation LRK_type


CamCalculation CamCalculation

LRK_type rotaryKnifeInfo LRK_type


RotaryKnifeInfo RotaryKnifeInfo

LRK_type measuringValue LRK_type


MeasuringValue MeasuringValue

LRK_typeCutPosition cutPositionBufferManagement LRK_typeCutPosition


BufferManagement BufferManagement

LRK_typeLeadingValue leadingValueMeasuringInputOutput LRK_typeLeadingValue


MeasuringInputOutput MeasuringInputOutput

LRK_typeLeadingValue leadingValueMeasuringInputCommand LRK_typeLeadingValue


MeasuringInputCommand MeasuringInputCommand

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 58
6 Description of the blocks and their structure

Block parameters

Input parameters
Name Data type Initial Description
value
formatLength REAL 200.0 Length of the cut material in mm.
An active operating mode switchover is activated via
Execute BOOL FALSE
this input.
Using mode, the mode is preselected, which is
activated with the next positive edge at the execute
input.
LRK_OM_ERROR (0): Preselection ERROR mode
Operation LRK_OM_DISABLE (1): Preselection DISABLE mode
ModesRotary LRK_OM_ LRK_OM_START_POSITION (2): Preselection
Mode
KnifeType ERROR STARTPOSITION mode
(DINT) LRK_OM_AUTOMATIC (3): Preselection AUTOMATIC
mode
LRK_OM_MANUAL (4): Preselection, MANUAL
LRK_OM_SINGLE_CUT (5) mode: Preselection
SINGLE_CUT mode
startSingleCut BOOL FALSE Start of a single cut in the SINGLE_CUT mode.
numberOfInstance INT 0 Instance number of the actual call.
LRK_type
Interface with all the rotary knife axis data relevant for
rotaryKnifeAxisOutput RotaryKnifeAxis
the rotary knife block
© Siemens AG 2021 All rights reserved

Output
LRK_type
Interface with all the auxiliary axis data relevant for the
auxiliaryAxisOutput AuxiliaryAxis
rotary knife block
Output
LRK_type
Interface with all of the leading value data relevant for
leadingValueOutput LeadingValue
the Rotary Knife block
Output

Output parameters
Name Data type Initial Description
value

done BOOL FALSE Selected mode is activated.

Busy BOOL FALSE Operating mode switchover is active.


FALSE: No error
TRUE: An error is active, see the error ID
Error BOOL FALSE
In the case of an error, processing and calculating the
process values is not interrupted.
Error ID, see error messages
errorID WORD 0 errorID < 16#000_8000: Warning
errorID >= 16#0000_8000: Error
Actual mode
LRK_OM_ERROR (0): ERROR mode
LRK_OM_DISABLE (1): DISABLE mode
Operation LRK_OM_START_POSITION (2): STARTPOSITION
ModesRotary OMRK_ mode
state
KnifeType ERROR LRK_OM_AUTOMATIC (3): AUTOMATIC mode
(DINT) LRK_OM_MANUAL (4): MANUAL mode
LRK_OM_SINGLE_CUT (5): SINGLE_CUT mode
LRK_OM_NOTHING_SELECTED (8): No mode change
LRK_OM_CHANGING (9): Mode change active

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 59
6 Description of the blocks and their structure

Name Data type Initial Description


value

automaticActive BOOL FALSE AUTOMATIC mode is active

singleCutActive BOOL FALSE SINGLE_CUT mode is active

cutPositionCorrection
BOOL FALSE Correction motion for the actual cut position is active
Active

rotaryKnifeAxisActive BOOL FALSE The rotary knife axis is active


1 = cam1
activeCam INT 0 2 = cam2
3 = cam3
LRK_type
rotaryKnifeAxis Internal interface to operate the rotary knife axis from the
RotaryKnifeAxis
Command rotary knife block.
Command

Input/output parameters
Name Data type Initial Description
value
LRK_type
auxiliaryAxis Internal interface to operate the auxiliary axis from the
AuxiliaryAxis
Command rotary knife block.
Command
LAxisCtrl_type Definition of all of the axes, external encoders, cams and
rotaryKnifeAxisConfig
© Siemens AG 2021 All rights reserved

AxisConfig measuring inputs used.


LAxisCtrl_type Definition of all of the axes, external encoders, cams and
auxiliaryAxisConfig
AxisConfig measuring inputs used.
Interface for the user to enter physical secondary
LRK_type conditions, cam profiles, manual cut position corrections.
usersInterface
UsersInterface It is also used for entering sequence options such as
new start, fast start and flying format change in operation
LRK_type
camCalculation Internal data area to call the cam calculation
CamCalculation
Data area to display actual geometrical values,
LRK_type
rotaryKnifeInfo converted to circumferential lengths in [mm], actual cut
RotaryKnifeInfo
position as well as binary signals for the knife position.
LRK_type
measuringValue Internal data area for print mark correction.
MeasuringValue

cutPositionBuffer LRK_type
Internal data area for entering precise cut position and
CutPositionBuffer
Management cut position deviation for the print mark correction.
Management
LRK_type
leadingValue LeadingValue Interface with all of the measuring input data at the
MeasuringInputOutput Measuring leading value data relevant for the rotary knife block
InputOutput
LRK_type
leadingValue
LeadingValue Internal interface to operate the measuring input of the
MeasuringInput
Measuring leading value by the rotary knife block.
Command
Command

Functionality
Function block LRK_RotaryKnife is the most important element of the application.
The connected rotary knife is parameterized and controlled using this block.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 60
6 Description of the blocks and their structure

Initial state of the LRK_RotaryKnife


After initialization, LRK_RotaryKnife is in the DISABLE mode.
Each time the control system powers up, initialization must be executed by setting
the restart bit ("LRK_Data".rotaryKnife(0).usersInterface.restart) in the startup OB
(this is realized automatically when using the LRK_Startup organizational block)
Therefore, the block is transitioned into its initial state, important parameters are
subject to plausibility check, if possible, adapted – and if it not possible,
parameterizing errors are displayed at the error output to inform users.

Checking the input parameters and parameterization of the mandatory technology


settings
This program function is only executed after a "new start" – or if it is activated by
the user using the restart bit of UsersInterface.
The following are monitored:
• The existence and drive interconnection of the specified TOs.
• Deviations with respect to what has been specified are displayed as error
messages.
Parameterization of technology objects – that are mandatory – is carried out in an
additional program section.

Sequence when switching over operating modes


The following diagram describes the mode manager of the function block. It
© Siemens AG 2021 All rights reserved

includes possible operating states, which can be activated and shows possible
operating mode changes that can be initiated by the user:

Fig. 6-2: Possible operating mode change at the LRK_RotaryKnife

RESTART
4
Manual

1 0
Disable Error

2
Startposi-
tion
5
Single
Cut
3
Automa- Standard Zustandsübergang
tic Fehlerzustandsübergang
Automatische Zustandswechselkette

The actual block operating mode is indicated at output state.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 61
6 Description of the blocks and their structure

Fig. 6-3 Inputs and outputs of the operating mode switchover function

CutLength Done
Execute Busy
Mode Error
„FBRotaryKnife()“ ErrorID
State

To transition the block into an operating mode, the number of the required
operating mode must be specified at input mode. The switchover is activated using
a rising edge at the execute input.
The active switchover to the new block operating mode is signaled using a high
signal at output busy. If all switchover actions are successfully performed, and the
new operating mode is reached, this is indicated by a high signal at output done of
the block. The number of the new operating mode can be read at output state.

The signal sequences for operating mode changes most frequently used are
shown in the following diagrams:
© Siemens AG 2021 All rights reserved

Fig. 6-4 Signal sequence when changing the operating mode from
ERROR → DISABLE

execute 1

(IN) 0

mode
DISABLE
(IN)

done 1

(OUT) 0

busy 1

(OUT) 0

error 1

(OUT) 0

errorId
???? H 0000 H
(OUT)

state
ERROR CHANGING DISABLE
(OUT)

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 62
6 Description of the blocks and their structure

Fig. 6-5 Signal sequence when changing the operating mode from
DISABLE → STARTPOSITION

execute 1

(IN) 0

mode
STARTPOSITION
(IN)

done 1

(OUT) 0

busy 1

(OUT) 0

state
DISABLE CHANGING STARTPOSITION
(OUT)

rotaryKnifeAxisActive 1
(OUT) 0

Fig. 6-6 Signal sequence when changing the operating mode from
STARTPOSITION → AUTOMATIC

execute 1

(IN)
© Siemens AG 2021 All rights reserved

mode
AUTOMATIC
(IN)

done 1

(OUT) 0

busy 1

(OUT) 0

state
STARTPOSITION CHANGING AUTOMATIC
(OUT)

automaticActive 1

(OUT) 0

rotaryKnifeAxisActive 1
(OUT) 0

Automatic operating mode switchover sequences


The following automatic operating mode switchover sequences are realized:
• From the ERROR mode into the STARTPOSITION mode.
ERROR → DISABLE → STARTPOSITION
• From the ERROR mode into the AUTOMATIC mode.
ERROR → DISABLE → STARTPOSITION → AUTOMATIC
• From the ERROR mode into the MANUAL mode.
ERROR → DISABLE → MANUAL
• From the AUTOMATIC mode into the MANUAL mode.
AUTOMATIC → ERROR → MANUAL

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 63
6 Description of the blocks and their structure

Axis monitoring functions


If there are active errors at the rotary knife axis or at the auxiliary axis, then the
function block is forced into the error state (ERROR mode).
However, the monitoring is only active if the parameterization of the technology
objects has been successfully checked.

Using the restart bit


("LRK_Data".rotaryKnife(0).usersInterface.restart)
Each time that SIMATIC starts or when changing the parameterization, then the
restart bit must be set. As a consequence, an initialization routine as well as a
parameter check is performed in LRK_RotaryKnife and the block is brought into a
defined state.

Each time the control system powers up, initialization must be executed by
setting the restart bit ("LRK_Data".rotaryKnife(0).usersInterface.restart) in the
Note startup OB (this is realized automatically when using the LRK_Startup
organizational block)

After restart, the block checks the essential parameters of the technology as well
Note as the existence of technology objects that have been saved
© Siemens AG 2021 All rights reserved

Fig. 6-7 Signal sequence when setting the restart bit

execute 1

(IN) 0

mode
beliebig
(IN)

done 1

(OUT) 0

busy 1

(OUT) 0

error 1

(OUT) 0

errorId
0000 H
(OUT)

state
beliebig CHANGING ERROR CHANGING DISABLE
(OUT)

automaticActive 1

(OUT) 0

rotaryKnifeAxisActive 1
(OUT) 0

usersInterface.restart 1
b)
(UI) 0

a)

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 64
6 Description of the blocks and their structure

a) In the ERROR mode, after restart, the function block goes through a complete
initialization cycle.
b) After the block has been successfully initialized, the restart bit is automatically
reset again.

Using the quick start bit


("LRK_Data".rotaryKnife(0).usersInterface.quickStart)

Task
The default start situation of the LRK_RotaryKnife is synchronization at the start of
the material. However, if the crosscutter is to start and be synchronized with the
material already in the crosscutter, then the program must run through another
synchronization mechanism.
The quick start bit is used to make a differentiation as to which synchronization
mechanism the user requires.

Principle of operation
Table 6-1 Principle of operation of the quick start bit
quickStart Description
=1 The rotary knife immediately synchronizes with mode = 3 and execute
= true, independent of the actual material position.
=0 The rotary knife synchronizes with mode = 3 and execute = true only
© Siemens AG 2021 All rights reserved

if the material has reached the position entered under


usersInterface.distanceToSensor.

Synchronizing mechanism

Task
The task of the example is to synchronize the rotary knife at the start of the
material. This should be done so that the first cut is realized precisely after the
specified cutting length after the start of the material.
Table 6-2 Synchronizing the rotary knife
Phase Representation What happens
Initial situation:
• No material in the cutting range
• The knife is at the zero position
• The quick start bit is not set!
• The user switched the LRK_RotaryKnife
1 into the DISABLE mode
Sensor

Task of the user:


Change the operating mode to
STARTPOSITION
0

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 65
6 Description of the blocks and their structure

Initial situation:
• No material in the cutting range
• The knife is located at its start position
• The STARTPOSITION operating mode is
Startposition active
Task of the user:

Sensor
2
Change the operating mode to
AUTOMATIC

Initial situation:
• The material has reached the sensor, and
the measuring input function has
received the first measured value relating
to the material position
Startposition
• The knife is located at its start position
Sensor

3 • The CHANGING operating mode is active


The internal material tracking has
determined the synchronous position to
start moving the knife.
Distance to Sensor
Task of the user:
0 Referenzpunkt Warenbahn
None
© Siemens AG 2021 All rights reserved

Initial situation:
• The material has reached the rotary knife
The start cam has been started once this
synchronous position was reached
Startposition

4
Sensor

Task of the user:


None

Distance to Sensor
Synchronposition
0 Referenzpunkt Warenbahn

Initial situation:
• The first cutting length has passed below
the rotary knife
• The rotary knife is at the zero position
• A switchover is made to the cyclic cam
when this position is reached.
Sensor

5 AUTOMATIC mode is active

Result:
The rotary knife has started in synchronism
CutLength with the start of the material and cuts the
material with the required cutting length

Error handling
If, during operation of the LRK_RotaryKnife errors occur in the block itself or at
the technology objects and technology functions involved, then these are signaled
at the error and errorID block outputs.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 66
6 Description of the blocks and their structure

Fig. 6-8: Block outputs for error messages

cutLength done
execute busy
mode error
FBRotaryKnife() errorID
state

The error bit signals an active error, while an error code is output at errorID; this
can be used to analyze the cause of the error.

Output error is only set, if input execute is set. ErrorID and state = 0 (ERROR)
Note are still output even after execute has been reset!

Error messages
Table 6-3 List of message priorities
ErrorID Priority Description
16#xxxx_0xxxx Lowest priority Warning/notification
16#xxxx_4xxx Low priority Warning. Can still be executed
16#xxxx_8xxx High priority Error, cannot be executed any further
© Siemens AG 2021 All rights reserved

16#xxxx_Cxxx Highest priority Critical error

Warnings
Warning messages are indicated by the state of the error and errorID outputs: error
= FALSE and errorID <> 16#0000_0000.

Table 6-4 Warning messages


ErrorID Description
16#0000_0000 No warning
16#050B_4000 Parameter knifeCircumference not accepted (invalid value)
(AUTOMATIC or SINGLE_CUT operating mode)
16#050B_4001 Parameter numberOfKnives not accepted (invalid value)
(AUTOMATIC or SINGLE_CUT operating mode)
16#050B_4002 Parameter r64StartSyncAngle not accepted (invalid value)
(AUTOMATIC or SINGLE_CUT operating mode)
16#050B_4003 Parameter r64EndSyncAngle not accepted (invalid value)
(AUTOMATIC or SINGLE_CUT operating mode)
16#050B_4004 Total synchronous length not OK
16#050B_4005 Input formatLength not accepted (invalid value)
(AUTOMATIC or SINGLE_CUT operating mode)
16#050B_4006 PARAMETER inflectionPoint replaced by a substitute value (invalid value)
(Substitute value = 50 %)
16#050B_4007 Parameter startAngle replaced by a substitute value (invalid value)
(Substitute value = 90°)
16#050B_4008 Parameter stopAngle replaced by a substitute value (invalid value)
(Substitute value = 270°)
16#050B_4009 Parameter overspeedStartCut not accepted (invalid value)
(AUTOMATIC or SINGLE_CUT operating mode)
16#050B_400A Parameter overspeedZero not accepted (invalid value)
(AUTOMATIC or SINGLE_CUT operating mode)

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 67
6 Description of the blocks and their structure

ErrorID Description
16#050B_400B Parameter overspeedEndCut not accepted (invalid value)
(AUTOMATIC or SINGLE_CUT operating mode)
16#050B_400C Parameter jerkPhase1 replaced by a substitute value (invalid value)
(Substitute value = 0 %)
16#050B_400D Parameter jerkPhase2 replaced by a substitute value (invalid value)
(Substitute value = 0 %)
16#0503_400E Interrupt Production is waiting for standstill at leading- or auxiliaryaxis

Error messages
Error messages are indicated by the state of the error and errorID outputs: error =
TRUE and errorID <> 16#0000_0000.

Table 6-5 Error messages


ErrorID Description
16#050A_8001 Rotary knife axis error
16#050A_8002 Auxiliary axis error
16#050A_8003 Rotary knife and auxiliary axis error
16#050B_8000 Invalid parameter:
knifeCircumference <= 0.0
16#050B_8001 Invalid parameter:
numberOfKnives < 1 or numberOfKnives > 6
© Siemens AG 2021 All rights reserved

16#050B_8002 Invalid parameter:


startSyncAngle < LRK_START_SYNC_ANGLE_MIN / numberOfKnives
or
startSyncAngle > 360.0° / numberOfKnives
16#050B_8003 Invalid parameter:
endSyncAngle < 0.0°
or
endSyncAngle > (LRK_START_SYNC_ANGLE_MIN –
LRK_FORMAT_ANGLE_MIN) / numberOfKnives
16#050B_8004 Invalid parameter:
numberOfKnives * synchronous angle >= 360°
or
synchronous angle < 0°
16#050B_8005 Invalid parameter:
formatLength <= synchronous length *
LRK_FACTOR_SYNCLENGTH_FOR_MIN_CUTLENGTH
16#050B_8006 Invalid parameter:
inflectionPoint < LRK_MIN_VAL_INFLECTION_POINT
(lowest permissible inflection point %)
or
r64inflectionPoint > 100.0 – LRK_MIN_VAL_INFLECTION_POINT
(highest permissible inflection point %)
16#050B_8007 Invalid parameter:
startAngle <= endSyncAngle
(start angle of the knife lies within the synchronous sector)
or
startAngle >= startSyncAngle – (LRK_FORMAT_ANGLE_MIN *
LRK_MIN_VAL_INFLECTION_POINT / 100.0)
(start angle of the knife lies after the largest possible inflection point position of
the cyclic cam)

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 68
6 Description of the blocks and their structure

ErrorID Description
16#050B_8008 Invalid parameter:
stopAngle <= endSyncAngle + (LRK_FORMAT_ANGLE_MIN *
LRK_MIN_VAL_INFLECTION_POINT / 100.0)
(stop angle of the knife lies before the smallest possible inflection point position of
the cyclic cam)
or
stopAngle >= startSyncAngle
(stop angle of the knife lies in the synchronous sector)
16#050B_8009 Invalid parameter:
knifeOverspeedStartCut < - LRK_MAXIMUM_OVERSPEED_KNIFE
or
knifeOverspeedStartCut > LRK_MAXIMUM_OVERSPEED_KNIFE
16#050B_800A Invalid parameter:
knifeOverspeedZero < - LRK_MAXIMUM_OVERSPEED_KNIFE
or
knifeOverspeedZero > LRK_MAXIMUM_OVERSPEED_KNIFE
16#050B_800B Invalid parameter:
knifeOverspeedEndCut < - LRK_MAXIMUM_OVERSPEED_KNIFE
or
knifeOverspeedEndCut > LRK_MAXIMUM_OVERSPEED_KNIFE
16#050B_800C Invalid parameter:
jerkPhase1 < 0.0 [%]
or
jerkPhase1 > 100.0 [%]
16#050B_800D Invalid parameter:
© Siemens AG 2021 All rights reserved

jerkPhase2 < 0.0 [%]


or
jerkPhase2 > 100.0 [%]
16#050C_8001 TO Rotary Knife Axis not created
16#050C_8002 TO Rotary Knife Axis leadscrew <> knifeCircumference
16#050C_8003 TO Rotary Knife Axis not active
16#050C_8004 TO Rotary Knife Axis ModuloLength <> fsymech
16#050C_8005 TO Auxiliary Axis not created as virtual axis
16#050C_8006 TO Auxiliary Axis Modulo not active
16#050C_8008 No TO create for leading value
16#050C_8009 No cam TO create for Cam1
16#050C_800A No cam TO create for Cam2
16#050C_800B No cam TO create for Cam3
16#050C_800C No cam TO create for Cam4 (only if Vmax exists!)
16#050C_800D TO measuring input not connected to leading value
16#050F_8001 Invalid operating mode selection from ERROR operating mode
16#050F_8002 Invalid operating mode selection from DISABLE operating mode
16#050F_8003 Invalid operating mode selection from STARTPOSITION operating mode
16#050F_8004 Invalid operating mode selection from AUTOMATIC operating mode
16#050F_8005 Invalid operating mode selection from MANUAL operating mode
16#050F_8006 Invalid operating mode selection from SINGLECUT operating mode
16#050F_8008 Invalid operating mode
16#0511_8001 DISABLE to DISABLE
Error when stopping the auxiliary axis
16#0511_8002 DISABLE to DISABLE
Error when stopping the rotary knife axis
16#0512_8001 DISABLE to STARTPOSITION
Error when positioning the rotary knife axis

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 69
6 Description of the blocks and their structure

ErrorID Description
16#0521_8001 STARTPOSITION to DISABLE
Error when stopping the auxiliary axis
16#0521_8002 STARTPOSITION to DISABLE
Error when stopping the rotary knife axis
16#0522_8001 STARTPOSITION to STARTPOSITION
Error when positioning the rotary knife axis
16#0523_8000 STARTPOSITION to AUTOMATIC
Error for start length
startLength > distanceToSensor – LRK_START_SYNC_WAITING_DISTANCE
or
startLength < knifeCircumferenceActivated – startSyncPos
16#0523_8001 STARTPOSITION to AUTOMATIC
Error when homing the auxiliary axis
16#0523_8002 STARTPOSITION to AUTOMATIC
Error when activating camming of the rotary knife axis
[Start cam]
16#0523_8003 STARTPOSITION to AUTOMATIC
Error when activating the relative gearing of the auxiliary axis
16#0523_8004 STARTPOSITION to AUTOMATIC
Error when activating the absolute gearing of the auxiliary axis
16#0523_8005 STARTPOSITION to AUTOMATIC
Error when activating camming of the rotary knife axis
[cyclic cam]
© Siemens AG 2021 All rights reserved

16#0525_8001 STARTPOSITION to SINGLE_CUT


Error when homing the auxiliary axis
16#0503_8001 Change FormatLength
Error when activating camming of the rotary knife axis [cyclic cam]
16#0503_8003 Interrupt production
State change to Startpos with active production interrupted. Before the change to
startpos, a change to production continued is necessary.
16#0503_8004 Interrupt production
Free
16#0503_8005 Continue production
Error when positioning the auxiliary axis
16#0503_8006 Continue production
Error when positioning the rotary knife axis
16#0503_8007 Continue production
Error when activating camming of the rotary knife axis
16#0503_8008 Continue production
Error when activating gearing of the auxiliary axis
16#0531_8001 AUTOMATIC to DISABLE
Error when stopping the auxiliary axis
16#0531_8002 AUTOMATIC to DISABLE
Error when stopping the rotary knife axis
16#0532_8001 AUTOMATIC to STARTPOSITION
Error when activating camming of the rotary knife axis
[stop cam]
16#0532_8002 AUTOMATIC to STARTPOSITION
Error when deactivating camming of the rotary knife axis
16#0532_8003 AUTOMATIC to STARTPOSITION
Error when deactivating gearing of the auxiliary axis
16#0532_8004 AUTOMATIC to STARTPOSITION
Error when positioning the rotary knife
16#0541_8001 MANUAL to DISABLE

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 70
6 Description of the blocks and their structure

ErrorID Description
Error when stopping the auxiliary axis
16#0541_8002 MANUAL to DISABLE
Error when stopping the rotary knife axis
16#0542_8001 MANUAL to STARTPOSITION
Error when stopping the auxiliary axis
16#0542_8002 MANUAL to STARTPOSITION
Error when stopping the rotary knife axis
16#0542_8003 MANUAL to STARTPOSITION
Error when positioning the rotary knife axis
16#0505_8001 SINGLE_CUT
Error when activating camming of the rotary knife axis
[Start cam]
16#0505_8002 SINGLE_CUT
Error when activating the relative gearing of the auxiliary axis
16#0505_8003 SINGLE_CUT
Error when activating the absolute gearing of the auxiliary axis
16#0505_8004 SINGLE_CUT
Error when activating camming of the rotary knife axis
[stop cam]
16#0505_8005 SINGLE_CUT
Error when deactivating camming of the rotary knife axis
16#0505_8006 SINGLE_CUT
© Siemens AG 2021 All rights reserved

Error when deactivating gearing of the auxiliary axis


16#0505_8007 SINGLE_CUT
Error when homing the auxiliary axis
16#0505_8008 SINGLE_CUT
Error when positioning the rotary knife axis
16#0552_8001 SINGLE_CUT to STARTPOSITION
Error when stopping the rotary knife axis
16#0552_8002 SINGLE_CUT to STARTPOSITION
Error when stopping the auxiliary axis
16#0552_8003 SINGLE_CUT to STARTPOSITION
Error when stopping the rotary knife axis
16#0552_8004 SINGLE_CUT to STARTPOSITION
Error when positioning the rotary knife axis
16#05DD_8001 Print mark correction
Error for higher-level positioning of the auxiliary axis

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 71
6 Description of the blocks and their structure

6.4 Blocks of the Rotary Knife standard application


6.4.1 LRK_AuxiliaryAxis

Control block of the auxiliary axis

Block name
LRK_AuxiliaryAxis

Task of the block


Controlling the auxiliary axis by calling axis FB functions.

Integration into the execution system


The function block must be called in a cyclic OB.
(Standard: OB1) when OB LRK_Main is used, this connection is automatically
established!

Graphic representation of the block

LRK_AuxiliaryAxis
operationMode LRK_type
© Siemens AG 2021 All rights reserved

mode Output AuxiliaryAxis


RotaryKnifeType
(Dint) Output

LAxisCtrl_type userConfig LAxisCtrl_type


AxisConfig AxisConfig

LRK_type userCommand LRK_type


AuxiliaryAxis AuxiliaryAxis
Command Command

LAxisCtrl_type internalConfig LAxisCtrl_type


AxisConfig AxisConfig
LRK_type internalCommand LRK_type
AuxiliaryAxis AuxiliaryAxis
Command Command

Block parameters

Input parameters
Name Data type Initial value Description
mode OperationMode Rotary knife block mode
RotaryKnifeType
(DINT)

Input/output parameters
Name Data type Initial value Description
userConfig LAxisCtrl_type Configuration data of the user interface
AxisConfig

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 72
6 Description of the blocks and their structure

Name Data type Initial value Description


userCommand LRK_type User interface to operate the auxiliary axis if the rotary
AuxiliaryAxis knife block is in the "MANUAL" mode
Command
internalConfig LAxisCtrl_type Configuration data of the internal interface to the
AxisConfig rotary knife block
internalCommand LRK_type Internal interface to operate the auxiliary axis by the
AuxiliaryAxis rotary knife block in all modes except "MANUAL"
Command

Output parameters
Name Data type Initial value Description
Output LRK_type Interface with all of the auxiliary axis data relevant for
AuxiliaryAxis the rotary knife block
Output

Functionality
This block controls the active call interface for the axis FB of the auxiliary axis, as a
function of the operating mode of the rotary knife block.

In the "Manual" mode (state = LRK_OM_MANUAL(4)), axis FB of the auxiliary axis


is called with the user command interface (userCommand) and the user
© Siemens AG 2021 All rights reserved

configuration data (userConfig)! Therefore, in this mode of the "Rotary Axis"


standard application, users have unrestricted access to the auxiliary axis.

In all other operating modes (State = LRK_OM_ERROR(0),


LRK_OM_DISABLE(1), LRK_OM_START_POSITION(2),
LRK_OM_AUTOMATIC(3) and LRK_OM_SINGLE_CUT(5)), the axis FB of the
auxiliary axis is called with the internal command interface (internalCommand) and
the internal configuration data (internalConfig). In these modes, the auxiliary axis is
exclusively accessed using the standard "Rotary Knife " application.

Further, when calling the axis FB, the block makes a distinction regarding the type
of leading axis by using help blocks:
• LRK_EncoderAsAAMaster
• LRK_PosAxisAsAAMaster
• LRK_SyncAxisAsAAMaster

As a result, the block provides the rotary knife block with all the relevant data of the
auxiliary axis.

Switching over between standard axis handling and reduced axis handling
As default setting, the block is designed for operating with FBs LAxisCtrl_PosAxis,
LAxisCtrl-SyncAxisCamming and LAxisCtrl_ExtEncoder of the global axis handling
of the LAxisCtrl library. The scope of these blocks goes far beyond addressing the
requirements of basic rotary axes. Therefore, it is possible to replace these blocks
by simpler blocks that require less memory. These are the LRK_IAFB_Pos,
LRK_IAFB_Sync and LRK_IAFB_ExtEnc blocks belonging to the LRotaryKnife
library.
All FBs access the same data types – which means that users only must replace
the data type of the internal instances, as described in the following:

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 73
6 Description of the blocks and their structure

Table 6-6 Switching over to reduced axis handling (Part 1)

1. In the declaration part of the


FB LRK_AuxiliaryAxis, replace
instance
LAxisCtrl_SyncAxisCamming

2. by instance
LRK_IAFB_Sync

Messages
The block does not generate any messages.
© Siemens AG 2021 All rights reserved

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 74
6 Description of the blocks and their structure

6.4.2 LRK_LeadingValue

Control block of the leading value (axis or external encoder)

Block name
LRK_LeadingValue

Task
Identifies whether the axis or external encoder is interconnected as leading value.
Controls the leading value - whether axis or external encoder - by calling the
appropriate axis FB functions using the user interface.
Reads out all the leading value data relevant for the rotary knife block.
Changeover between several leading values. (The number is fixed by the user
constant LRK_MAX_NUMBER_OF_LEADING_VALUES)

Integration into the execution system


The function block must be called in a cyclic OB.
(Standard: OB1) when OB LRK_Main is used, this connection is automatically
established!

Graphic representation of the block


© Siemens AG 2021 All rights reserved

LRK_LeadingValue

LRK_type userCommand LRK_type


LeadingValue LeadingValue
Command Command

LRK_type Output LRK_type


LeadingValue LeadingValue
Output Output

LAxisCtrl_type config LAxisCtrl_type


AxisConfig AxisConfig

Block parameters

Input/output parameters
Name Data type Initial value Description
userCommand LRK_type Interface for user commands
LeadingValue
Command
Output LRK_type Interface with all of the data of the leading value
LeadingValue relevant for the rotary knife block.
Output
Config LAxisCtrl_type Configuration data of the user interface to the axis as
AxisConfig leading value

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 75
6 Description of the blocks and their structure

Functionality
Identifies whether the axis or external encoder is interconnected as leading value.
If an axis, then provides the axis FB interface to operate the axis as leading value
for the user.
If an encoder, then provides the axis FB interface to operate the external encoder
as leading value for the user.
Provides all the relevant axis data as leading value for the rotary knife block.
Switching between leading values at defined position. (e.g. measuring wheel 1 to
measuring wheel 2)

Switching over between standard axis handling and reduced axis handling
As default setting, the block is designed for operating with FBs LAxisCtrl_PosAxis,
LAxisCtrl_SyncAxisCamming and LAxisCtrl_ExtEncoder of the global axis handling
of the LAxisCtrl library. The scope of these blocks goes far beyond addressing the
requirements of basic rotary axes. Therefore, it is possible to replace these blocks
by simpler blocks that require less memory. These are the LRK_IAFB_Pos,
LRK_IAFB_Sync and LRK_IAFB_ExtEnc blocks belonging to the LRotaryKnife
library.
All FBs access the same data types – which means that users only must replace
the data type of the internal instances, as described in the following:
© Siemens AG 2021 All rights reserved

Table 6-7 Switching over to reduced axis handling (Part 2)

1. In the declaration part of the


FB LRK_LeadingValue,
replace
instances
LAxisCtrl_SyncAxisCamming,
LAxisCtrl_PosAxis and
LAxisCtrl_ExtEncoder

2. by instances
LRK_IAFB_Sync,
LRK_IAFB_Pos and
LRK_IAFB_ExtEnc

Messages
The block does not generate any messages.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 76
6 Description of the blocks and their structure

6.4.3 LRK_LeadingValueMeasuringInput

Control block of the LeadingValueMeasuringInput

Block name
LRK_LeadingValueMeasuringInput

Task
Controls the LeadingValueMeasuringInput by calling PLC open blocks MC_RESET
and MC_MEASURINGINPUT.

Integration into the execution system


The function block must be called in a cyclic OB.
(Standard: OB1) when OB LRK_Main is used, this connection is automatically
established!

Graphic representation of the block

LRK_LeadingValueMeasuringInput
LRK_type LRK_type
© Siemens AG 2021 All rights reserved

LeadingValue LeadingValue
internalCommand Output
MeasuringInput MeasuringInput
Command Output

Block parameters

Input parameters
Name Data type Initial value Description
internalCommand LRK_type Internal interface to operate the measuring
LeadingValue input of the leading value by the rotary knife
MeasuringInput block.
Command

Output parameters
Name Data type Initial value Description
Output LRK_type Interface with all the measuring input data at
LeadingValue the leading value data relevant for the rotary
MeasuringInput knife block
Output

Functionality
Identifies as to whether a valid measuring input is interconnected.
Calls the measuring input functions via the rotary knife block via internal command
interface.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 77
6 Description of the blocks and their structure

Provides all the relevant measuring input data at the leading value for the rotary
knife block.

Messages
The block does not generate any messages.
© Siemens AG 2021 All rights reserved

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 78
6 Description of the blocks and their structure

6.4.4 LRK_RotaryKnifeAxis

Control block of the rotary knife axis

Block name
LRK_RotaryKnifeAxis

Task of the block


Controls the rotary knife axis by calling axis FB functions.

Integration into the execution system


The function block must be called in a cyclic OB.
(Standard: OB1) when OB LRK_Main is used, this connection is automatically
established!

Graphic representation of the block

LRK_RotaryKnifeAxis
operationMode LRK_type
mode Output RotaryKnifeAxis
RotaryKnifeType
(DINT) Output
© Siemens AG 2021 All rights reserved

LRK_type
RotaryKnifeAxis userCommand
Command
LRK_type
RotaryKnifeAxis internalCommand
Command

LAxisCtrl_type userConfig LAxisCtrl_type


AxisConfig AxisConfig

LAxisCtrl_type internalConfig LAxisCtrl_type


AxisConfig AxisConfig

Block parameters

Input parameters
Name Data type Initial value Description
Mode OperationMode Rotary knife block mode
RotaryKnifeType
(DINT)
userCommand LRK_type User interface to operate the rotary knife axis if the
RotaryKnifeAxis rotary knife block is in the "MANUAL" mode
Command
internalCommand LRK_type Internal interface to operate the rotary knife axis by
RotaryKnifeAxis the rotary knife block in all modes except "MANUAL"
Command

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 79
6 Description of the blocks and their structure

Input/output parameters
Name Data type Initial value Description
userConfig LAxisCtrl_type Configuration data of the user interface
AxisConfig
internalConfig LAxisCtrl_type Configuration data of the internal interface to the
AxisConfig rotary knife block

Output parameters
Name Data type Initial value Description
Output LRK_type Interface with all of the rotary knife axis data relevant
RotaryKnifeAxis for the rotary knife block
Output

Functionality
This block controls the active call interface for the axis FB of the rotary knife axis,
as a function of the operating mode of the rotary knife block.

In the "Manual" mode (state = LRK_OM_MANUAL(4)), axis FB of the rotary knife


axis is called with the user command interface (userCommand) and the user
configuration data (userConfig)! Therefore, in this mode of the "Rotary Axis"
© Siemens AG 2021 All rights reserved

standard application, users have unrestricted access to the rotary knife axis.

In all other operating modes (state = LRK_OM_ERROR(0), LRK_OM_DISABLE(1),


LRK_OM_START_POSITION(2), LRK_OM_AUTOMATIC(3) and
LRK_OM_SINGLE_CUT(5)), the axis FB of the rotary knife axis is called with the
internal command interface (internalCommand) and the internal configuration data
(internalConfig). In these modes, the rotary knife axis is exclusively accessed using
the standard "Rotary Knife " application.

Further, when calling the axis FB, the block makes a distinction regarding the type
of leading axis by using the help block:
• LRK_SyncAxisAsRKMaster

As a result, the block provides the rotary knife block with all the relevant data of the
rotary knife axis.

Messages
The block does not generate any messages.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 80
6 Description of the blocks and their structure

6.4.5 Cam calculation for rotary knives


LRK_CamCalc

Block name
LRK_CamCalc

Task
This function block generates cams for rotary knives based on specified
geometrical parameters and velocity profiles.

Integration into the execution system


The block is called from the LRK_RotaryKnife block.

Graphic representation of the block

LRK_CamCalc
BOOL execute done BOOL
LREAL formatLength
busy BOOL
INT nextCam

typeOfCamType error BOOL


typeOfCam
(DINT)
© Siemens AG 2021 All rights reserved

errorId DWORD
LREAL knifeCircumference
LREAL startSyncAngle materialPosSegment1End LREAL
LREAL endSyncAngle
materialPosSegment2End LREAL
LREAL startAngle
LREAL stopAngle materialPosSegment3End LREAL
LREAL inflectionPoint
materialPosSegment4End LREAL
INT numberOfKnives
LREAL knifeOverspeedStartCut materialPosSegment5End LREAL
LREAL knifeOverspeedZero
camSegmentsCalculated INT
LREAL knifeOverspeedEndCut
Array[1..50] of
cutProfileType
cutProfileCutOut camSegmentsRK TO_Cam_Struct_
(DINT)
SegmentData
camProfileType
camProfilePhase1 Array[1..50] of
(DINT) camSegmentsRKValid
BOOL
LREAL jerkPhase1
camProfileType copyDone BOOL
camProfilePhase2
(DINT)
Array[1..4] of
LREAL jerkPhase2 camCommand LRK_type
CamCommand
cutProfileType
cutProfileCutIn
(DINT)

LREAL startBacklashOffset
BOOL copySegmentCalculated

Array[1..4] of
LRK_type camStatus
CamStatus
nextCamDBANY
DB_ANY DB_ANY

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 81
6 Description of the blocks and their structure

Block parameters

Input parameters
Name Data type Initial value Description
execute BOOL FALSE Start of the calculation
formatLength LREAL 200 [mm] Cut length
Reference to the technology object of the cam.
nextCam INT 0 If a cam is not specified, then only a parameter
check
START_CAM(0)
Cam to move the crosscutter from the start
position into cyclic operation.
typeOfCam
START_ CYCLIC_CAM(1)
typeOfCam Type
CAM(0) Cam for cyclic operation of a crosscutter.
(DINT)
STOP_CAM(2)
Cam to stop the crosscutter from cyclic
operation.
knifeCircumference LREAL 200.0 [mm] Knife circumference
[°] Start angle of the synchronous sector (cutting
range), i.e. the angle where the knife enters the
material, the
knife center point is defined as 0°
startSyncAngle LREAL 345.0
(The permissible value range lies between
START_SYNC_ANGLE_MIN and 360.0°).
StartSyncAngle and endSyncAngle together
© Siemens AG 2021 All rights reserved

represent the synchronous sector.


[°] End angle of the synchronous range, i.e. the
angle where the knife leaves the cutting
range
(The permissible value range lies between
endSyncAngle LREAL 15.0
0.0° and LRK_START_SYNC_ANGLE_MIN –
LRK_FORMAT_ANGLE_MIN).
StartSyncAngle and endSyncAngle together
represent the synchronous sector.
[°] start angle of the knife (referred to 0°) (start
angle of the start cam). This value is different
from the stopAngle if the machine is to be a
pendulum shear. Otherwise the two parameters
are the same.
startAngle LREAL 90.0
(The permissible value range lies between
endSyncAngle and startSyncAngle -
(LRK_FORMAT_ANGLE_MIN *
LRK_MIN_VAL_INFLECTION_POINT / 100.0))
(Start position of the start cam)
[°] stop angle of the knife (referred to 0°) (stop
angle of the stop cam). This value is different
from the startAngle, if this is to be a pendulum
shear. Otherwise, the two parameters are the
same.
stopAngle LREAL 270.0
(The permissible value range lies between
endSyncAngle + (LRK_FORMAT_ANGLE_MIN *
LRK_MIN_VAL_INFLECTION_POINT / 100.0)
and startSyncAngle)
(End position of the stop cam)

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 82
6 Description of the blocks and their structure

Name Data type Initial value Description


[%] Center point of the cyclic cam.
inflectionPoint < 50.0 %
[min. LRK_MIN_VAL_INFLECTION_POINT
(10%)]:
Shifts the center point towards endSyncAngle,
i.e. the absolute value of the acceleration in the
inflectionPoint LREAL 50.0 first motion segment after the cut increases.
inflectionPoint > 50.0 %
[max. 100% -
LRK_MIN_VAL_INFLECTION_POINT]:
Shifts the center point towards startSyncAngle,
i.e. the absolute value of the acceleration in the
second motion segment after the cut increases.
numberOfKnives INT 1 Number of knives (max. 6)
[%] Knife overspeed at the transition point to the
synchronous sector (startSyncAngle)
knifeOverspeedStartCut LREAL 0.0 [-MAXIMUM_OVERSPEED_KNIFE (%) to
MAXIMUM_OVERSPEED_KNIFE (%)]
referred to the synchronous speed of the knife.
[%] Knife overspeed at the center position of the
synchronous sector (0°)
knifeOverspeedZero LREAL 0.0 [-MAXIMUM_OVERSPEED_KNIFE (%) to
MAXIMUM_OVERSPEED_KNIFE (%)]
referred to the synchronous speed of the knife.
[%] Knife overspeed at the end point of the
synchronous sector (endSyncAngle)
knifeOverspeedEnd
LREAL 0.0 [-MAXIMUM_OVERSPEED_KNIFE (%) to
© Siemens AG 2021 All rights reserved

Cut
MAXIMUM_OVERSPEED_KNIFE (%)]
referred to the synchronous speed of the knife.
Motion profile from the cut:
LRK_CUTPT_CONST(0):
Constant cutting profile for overspeed = 0.0
polynomial cutting profile for overspeed > 0.0
cutProfileType LRK_CUTPT_ LRK_CUTPT_LINEAR(1):
cutProfileCutOut Constant cutting profile for overspeed = 0.0
(DINT) CONST(0)
Cutting profile with constant acceleration (linear)
for overspeed > 0.0
LRK_CUTPT_SINUS(2):
Constant cutting profile for overspeed = 0.0
Sinusoidal cutting profile for overspeed > 0.0
Motion profile phase 1 (endSyncAngle –
inflectionPoint)
LRK_CAMPT_LINEAR(0):
Curve profile with constant acceleration
LRK_CAMPT_JERK(1):
camProfileType LRK_CAMPT_
camProfilePhase1 Curve profile with constant acceleration and jerk
(DINT) POLY_5(2)
limiting
LRK_CAMPT_POLY_5(2):
Motion profile as fifth order polynomial
LRK_CAMPT_SINUS(3):
Sinusoidal motion profile
[%] Jerk limiting component in phase 1 (only for
camProfilePhase1 = LRK_CAMPT_JERK(1)).
jerkPhase1 LREAL 0.0 The valid value range lies between 1.0 and
100.0. The phase where the acceleration is not
constant is obtained for 100%. The absolute jerk
depends on the machine velocity.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 83
6 Description of the blocks and their structure

Name Data type Initial value Description


Motion profile phase 2 (inflectionPoint -
startSyncAngle)
LRK_CAMPT_LINEAR(0):
Curve profile with constant acceleration
LRK_CAMPT_JERK(1):
camProfileType LRK_CAMPT_
camProfilePhase2 Curve profile with constant acceleration and jerk
(DINT) POLY_5(2)
limiting
LRK_CAMPT_POLY_5(2):
Motion profile as fifth order polynomial
LRK_CAMPT_SINUS(3):
Sinusoidal motion profile
[%] Jerk limiting component in phase 2 (only for
camProfilePhase2 = LRK_CAMPT_JERK(1)).
jerkPhase2 LREAL 0.0 The valid value range lies between 1.0 and
100.0. The phase where the acceleration is not
constant is obtained for 100%. The absolute jerk
depends on the machine velocity.
Motion profile into the cut:
LRK_CUTPT_CONST(0):
Constant cutting profile for over speed = 0.0
polynomial cutting profile for over speed > 0.0
cutProfileType LRK_CUTPT_ LRK_CUTPT_LINEAR(1):
cutProfileCutIn Constant cutting profile for over speed = 0.0
(DINT) CONST(0)
Cutting profile with constant acceleration (linear)
for over speed > 0.0
LRK_CUTPT_SINUS(2):
Constant cutting profile for over speed = 0.0
© Siemens AG 2021 All rights reserved

Sinusoidal cutting profile for over speed > 0.0


[mm] If the web moves backwards when starting
up (e.g. to build up tension), the knife is not
allowed to move backwards in order to avoid
startBacklashOffset LREAL 0.0 damage to the mechanics. startBacklashOffset is
the safety length that the material is allowed to
move backwards until the shear is a at zero
position (in the centre of the cut).
Array[1..4] of
camStatus LRK_type Status of cams 1 - 4
CamStatus

Output parameters
Name Data type Initial value Description
done BOOL FALSE TRUE: Cam generation has been completed
FALSE: No cam calculation
busy BOOL FALSE
TRUE: Cam generation is active
FALSE: No error
error BOOL FALSE
TRUE: CamCalculation error
errorID DWORD 16#0000_0000 Error identification
materialPosSegment1End LREAL 0.0 Material position, end of segment 1
materialPosSegment2End LREAL 0.0 Material position, end of segment 2
materialPosSegment3End LREAL 0.0 Material position, end of segment 3
materialPosSegment4End LREAL 0.0 Material position, end of segment 4
materialPosSegment5End LREAL 0.0 Material position, end of segment 5
camSegmentsCalculated INT 0 Number of calculated cam segments
Array[1..50] of
camSegmentsRK TO_Cam_Struct_ Array of the segment structures of the TO cam
SegmentData
Array[1..50] of Segment structure of the TO Cam assigned is
camSegmentsRKValid
BOOL valid

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 84
6 Description of the blocks and their structure

Name Data type Initial value Description


copyDone BOOL FALSE Transfer to interpolate cam successful
Array[1..4] of
Command interface for
camCommand LRK_type
Cams 1 - 4
CamCommand

Functionality
The function block generates the cam for the specified crosscutter geometry for the
parameterized cut length. Input nextCam defines the reference to the cam object.
The block is started with a rising edge at the input execute, the input parameters
are then checked for plausibility. If the input parameters are invalid, block
processing is interrupted and an appropriate error message (error and errorID) is
output. A rising edge at the done output signals that the cam has been generated.
When initiating the cam calculation, the following actions are executed in the
individual sections:

Fig. 6-9 Cam calculation sequence

CC_IDLE(0)

CC_ERROR(1)
© Siemens AG 2021 All rights reserved

CC_INIT(2)

CC_CHECK_PARAMETER(3)

CC_CALC_GENERAL(4)

CC_CALC_START_SEGMENTS(5)

CC_CALC_NEXT_SEGMENTS(6)

CC_CALC_STOP_SEGMENTS(7)

CC_DONE(8)

CC_CLEAR(9)

CC_ADD_SEGMENTS(10)

CC_INTERPOLATE(11)

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 85
6 Description of the blocks and their structure

General properties and parameters of a rotary knife


System with one knife System with 2 knives

inflectionPoint
(Middle Position) Synchronous Angle
(Synchronous Area)

knifeCircumference
knifeCircumference
startAngle 0°

Angle
endS
stopAngle

Phase2 Phase1

yn cA

Sync
Format Area Format Area
Format Area Phase1 Phase2

ngle

start
stopAngle startAngle inflectionPoint inflectionPoint
(Middle Position) (Middle Position)

endS
Angle
ngle
endS

Phase2 Phase1

yn cA
yn cA

Sync
yn cA

ngle
start
startS

stopAngle startAngle
ngle


0° web
web Synchronous Angle
(Synchronous Area)
Synchronous Angle
(Synchronous Area)

Table 6-8: Overview of properties and parameters for the cam calculation
Parameter Description
Synchronous sector The synchronous sector is defined by the synchronous angle referred to the knife
circumference or the knife geometry. The synchronous angle is obtained from parameters
© Siemens AG 2021 All rights reserved

startSyncAngle and stopSyncAngle.


The synchronous angle designates the range in which the knife moves in synchronism with the
velocity of the material web. Using parameters knifeOverspeedStartCut, knifeOverspeedZero,
knifeOverspeedEndCut the speed in the synchronous sector can be adapted for special
applications or for special cutting geometries.
The point at which the knife is perpendicular to the material is known as the center point of the
synchronous sector and is at 0°.
Format sector The format sector is the range of the rotary knife where the knife is not in the synchronous
sector, i.e. is not in the cutting range. The speed in the synchronous sector is defined by the
material and the overspeed. Therefore, equalization motion (format adaptation, print mark
correction etc.) can only be executed in the format sector.
The format sector for multi-knife systems is obtained according to the following formula:
Format sector = knifeCircumference / numberOfKnives – synchronous sector
Phase1 / phase2 Phase 1 defines the range of the rotary knife between endSyncAngle and inflectionPoint.
Depending on the parameters and format length, in this phase, the rotating shears must either
be accelerated or decelerated:
cutLength < synchronous sector + format sector: Acceleration
cutLength > synchronous sector + format sector: Delay
Phase 2 defines the range of the rotating shears between inflectionPoint and startSyncAngle.
The acceleration and deceleration behavior is opposite to that of phase 1:
cutLength < synchronous sector + format sector: Delay
cutLength > synchronous sector + format sector: Acceleration
startSyncAngle / Parameter startSyncAngle defines the start angle of the synchronous angle, i.e. the start point
endSyncAngle of the cutting range referred to the geometry. The point at which the knife is perpendicular to
the material is defined as the zero point (0°).
Parameter endSyncAngle defines the end point of the synchronous angle and therefore the
synchronous sector. The angle enclosed by startSyncAngle and endSyncAngle is the
synchronous angle.
If the two parameters are not the same, then the center position of the knife is automatically
shifted into the format sector, so that at the inflectionPoint = 50% the knife is always located at
the geometrical center.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 86
6 Description of the blocks and their structure

Parameter Description
knifeOverspeedStart In the standard configuration, the rotary knife operates with a linear cutting curve. This means
Cut, knifeOverspeed a velocity characteristic, where the circumferential velocity of the knife corresponds to the
Zero, material velocity. However, the knife and the material are only perpendicular with one another
knifeOverspeedEnd at the cut center point. This means that at the remaining points of the synchronous sector,
Cut speed differences occur between the knife and material. These differences depend on the
material thickness and/or the knife diameter or knife geometry.
The knife speed can be specifically adapted in the synchronous sector using the specified
parameters.

Parameter Description
knifeOverspeedStartCut Defines the speed offset of the knife when entering the
synchronous sector, corresponding to parameter
startSyncAngle.
knifeOverspeedZero Defines the speed offset at the zero position.
knifeOverspeedEndCut Defines the speed offset at the end point of the synchronous
sector, corresponding to parameter endSyncAngle.
Interpolation based on a fifth order polynomial is applied between the individual points. The
parameter values are correspondingly interpreted as offset to the synchronous speed.

Cutting profile Diagram

Linear cutting curve: V


Knife Speed
knifeOverspeedStartCut = 0.0% Maximum
Speed
knifeOverspeedZero = 0.0%
knifeOverspeedEndCut = 0.0%
Synchronous
© Siemens AG 2021 All rights reserved

Speed
(Web Speed)

Synchronous Synchronous
Area Format Area Area
endSyncAngle startSyncAngle t
Cycle Time

Linear cutting curve with 5% Knife Speed V


over speed:
Maximum
Speed
knifeOverspeedStartCut = 5.0%
knifeOverspeedZero = 5.0%
Synchronous
knifeOverspeedEndCut = 5.0% Speed
Web Speed

Synchronous Synchronous
Area Format Area Area
endSyncAngle startSyncAngle t
Cycle Time

Polynomial cutting curve: Knife Speed V

knifeOverspeedStartCut = 5.0% Maximum


Speed
knifeOverspeedZero = 0.0%
knifeOverspeedEndCut = 5.0% Synchronous
Speed
(Web Speed)

Synchronous Synchronous
Area Format Area Area
endSyncAngle startSyncAngle t
Cycle Time

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 87
6 Description of the blocks and their structure

Parameter Description
inflectionPoint The switchover instant between phase 1 and phase 2 is defined using parameter
inflectionPoint. The value is entered as a percentage, and refers to the format sector, i.e. a
value of 50% represents the center point of the format sector.

inflectionPoint = 30 % inflectionPoint = 50 % inflectionPoint = 70 %

startAngle / For rotary knives, the start position, center position and stop position are generally identical.
stopAngle However, it may be necessary to separate these positions in order to achieve a certain
machine behavior (e.g. for a single cut program in order to reduce the load on the motor). As
already described, the center position is defined using the parameter inflectionPoint, the start
position using startAngle and the stop position using stopAngle.
If the start position is shifted away from the center position using parameter startAngle, then
the accelerating distance of the rotary knife increases. This in turn reduces the motor load and
can result in higher operating speeds. The maximum value for startAngle is theoretically the
endSyncAngle, otherwise the knife would move in the cutting range.
The same considerations also apply to parameter stopAngle, which is limited by the value of
parameter startSyncAngle.
jerkPhase1 / These parameters define the percentage component of the phase, which is used for jerk
jerkPhase2 limiting. The absolute jerk is obtained from the machine speed based on the specified motion
profile. Values between 1.0 % and 100 % are permitted for these parameters; value 0.0
© Siemens AG 2021 All rights reserved

signifies a profile with constant acceleration.

jerkPhase1 / jerkPhase2 = jerkPhase1 / jerkPhase2 = jerkPhase1 / jerkPhase2 =


10% 50% 100%

camProfilePhase1 / These parameters define the motion profile in phase 1 and/or in phase 2. The parameters do
camProfilePhase2 not have to be assigned the same value.
LINEAR
This selection defines a motion profile with constant acceleration.

Phase 1 Phase 2 knifeCircumference


startSyncAngle
(Synchronous Area)

Format Area

endSyncAngle
(Synchronous Area)
inflectionPoint

Format Length

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 88
6 Description of the blocks and their structure

Parameter Description
JERK
This selection defines a profile with constant acceleration and jerk limiting. The jerk limiting
is specified using parameters jerkPhase1 / jerkPhase. The parameters are only evaluated
in this profile.

Phase 1 Phase 2 knifeCircumference


startSyncAngle
(Synchronous Area)

Format Area

jerkPhase1 jerkPhase2

endSyncAngle
(Synchronous Area)
inflectionPoint

Format Length

POLY_5
This selection defines a 5th order polynomial as basis for the motion profile.

Phase 1 Phase 2 knifeCircumference


startSyncAngle
© Siemens AG 2021 All rights reserved

(Synchronous Area)

Format Area

endSyncAngle
(Synchronous Area)
inflectionPoint

Format Length

SINUSOIDAL
This selection defines a sinusoidal waveform as basis for the motion profile.

Phase 1 Phase 2 knifeCircumference


startSyncAngle
(Synchronous Area)

Format Area

endSyncAngle
(Synchronous Area)
inflectionPoint

Format Length

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 89
6 Description of the blocks and their structure

typeOfCam This parameter specifies the cam type that should be calculated.

Type Description
START_CAM The start cam defines the behavior when starting of the rotary knife
from the start point (startAngle) up to the cutting point (0°). The profile
selection is also considered when calculating the start cam.
CYCLIC_CAM Motion profile of the rotary knife in cyclic operation.
STOP_CAM The stop cam defines the transition from cyclic operation to standstill of
the rotary knife; this means the distance from the cutting point to the
stop position (corresponding to stopAngle).

Messages
ErrorID Priorität Beschreibung
16#xxxx_0xxxx Lowest priority warning
16#xxxx_4xxx Low priority Warning, run can be continued
16#xxxx_8xxx High priority Error, continue of run not possible
16#xxxx_Cxxx Highest priority Critical error

Warnings
Warning messages are indicated by the state of the error and errorID outputs: error
= FALSE and errorID <> 16#0000_0000.
Table 6-9: Warning messages
© Siemens AG 2021 All rights reserved

ErrorID Description
16#0000_0000 No warning

Error messages
Error messages are indicated by the state of the error and errorID outputs: error =
TRUE and errorID <> 16#0000_0000.
Table 6-10 Error messages
ErrorID Description
Invalid parameter:
16#05CC_8000
knifeCircumference <= 0.0
Invalid parameter:
16#05CC_8001
numberOfKnives < 1 or numberOfKnives > 6
Invalid parameter:
16#05CC_8002 startSyncAngle < LRK_START_SYNC_ANGLE_MIN / numberOfKnives
or
startSyncAngle > 360.0° / numberOfKnives
Invalid parameter:
endSyncAngle < 0.0°
16#05CC_8003 or
endSyncAngle > (LRK_START_SYNC_ANGLE_MIN – FORMAT_ANGLE_MIN) /
numberOfKnives
Invalid parameter:
16#05CC_8004 numberOfKnives * synchronous angle >= 360°
or
synchronous angle < 0°
Invalid parameter:
16#05CC_8005 formatLength <= synchronous length *
LRK_FACTOR_SYNCLENGTH_FOR_MIN_CUTLENGTH

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 90
6 Description of the blocks and their structure

ErrorID Description
Invalid parameter:
inflectionPoint < LRK_MIN_VAL_INFLECTION_POINT
16#05CC_8006 (lowest permissible inflection point %)
or
r64inflectionPoint > 100.0 – LRK_MIN_VAL_INFLECTION_POINT
(highest permissible inflection point %)
Invalid parameter:
startAngle <= endSyncAngle
(start angle of the knife lies within the synchronous sector)
16#05CC_8007 or
startAngle >= startSyncAngle – (LRK_FORMAT_ANGLE_MIN *
LRK_MIN_VAL_INFLECTION_POINT / 100.0)
(start angle of the knife lies after the largest possible inflection point position of
the cyclic cam)
Invalid parameter:
stopAngle <= endSyncAngle + (LRK_FORMAT_ANGLE_MIN *
LRK_MIN_VAL_INFLECTION_POINT / 100.0)
(stop angle of the knife lies before the smallest possible inflection point position of
16#05CC_8008
the cyclic cam)
or
stopAngle >= startSyncAngle
(stop angle of the knife lies in the synchronous sector)
Invalid parameter:
16#05CC_8009 knifeOverspeedStartCut < - LRK_MAXIMUM_OVERSPEED_KNIFE
or
knifeOverspeedStartCut > LRK_MAXIMUM_OVERSPEED_KNIFE
© Siemens AG 2021 All rights reserved

Invalid parameter:
16#05CC_800A knifeOverspeedZero < - LRK_MAXIMUM_OVERSPEED_KNIFE
or
knifeOverspeedZero > LRK_MAXIMUM_OVERSPEED_KNIFE
Invalid parameter:
16#05CC_800B knifeOverspeedEndCut < - LRK_MAXIMUM_OVERSPEED_KNIFE
or
knifeOverspeedEndCut > LRK_MAXIMUM_OVERSPEED_KNIFE
Invalid parameter:
16#05CC_800C jerkPhase1 < 0.0 [%]
or
jerkPhase1 > 100.0 [%]
Invalid parameter:
16#05CC_800D jerkPhase2 < 0.0 [%]
or
jerkPhase2 > 100.0 [%]
Invalid parameter:
16#05CC_800E nextCam = 0
This error is only signaled if the parameter check is OK!!!!

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 91
6 Description of the blocks and their structure

6.4.6 Managing the cams


LRK_CamManagement

Cam management

Block name
LRK_CamManagement

Task of the block


This block manages the cams that are required to run the Rotary Knife application.

Integration into the execution system


The block is called from the LRK_RotaryKnife block.

Graphic representation of the block

LRK_CamManagement
Array[1..4] of
INT nextCam camState LRK_type
CamStatus
Array[1..4] of
LRK_type camCommand nextCamDBANY DB_ANY
© Siemens AG 2021 All rights reserved

CamCommand

nextCamDBNumber UINT

nextCamName WString

Block parameters

Input parameters
Name Data type Initial value Description
References to the next cam
nextCam INT 0
using numbers 1 ... 4
Array[1..4] of
camCommand LRK_type Command interface for cams 1 – 4
CamCommand

Output parameters
Name Data type Initial value Description
Array[1..4] of
camState LRK_type Status of cams 1 - 4
CamStatus
nextCamDBANY DB_ANY Next cam as DB
nextCamDBNumber UINT DB number of the next cam
nextCamName WString TO name of the next cam as character string

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 92
6 Description of the blocks and their structure

Functionality
This block reads the status information of the selected cam, the DB number and
the TO name.
In addition, it allows the selected cam to be reset via the command interface.

Messages
The block does not generate any messages.
© Siemens AG 2021 All rights reserved

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 93
6 Description of the blocks and their structure

6.4.7 Displaying a specified cam


LRK_CamShow

Displays a specified cam on the user interface (HMI)

Block name
LRK_CamShow

Task
This block prepares the values for position, velocity, acceleration and jerk of a
specified cam as table of values for display on the HMI user interface.

Integration into the execution system


The function block is called from the LRK_Test block.

Graphic representation of the block

LRK_CamShow
TO_Cam cam done BOOL
BOOL execute busy BOOL
error BOOL
© Siemens AG 2021 All rights reserved

status WORD
trendViewData LRK_type
LRK_type
SCTrendViewData SCTrendViewData

Block parameters

Input parameters
Name Data type Initial Description
value
cam TO_Cam Cam to be displayed
execute BOOL FALSE Rising edge starts the display.

Output parameters
Name Data type Initial Description
value
done BOOL FALSE TRUE: Writing to all parameters completed
TRUE: FB still not ended; new output data are being
busy BOOL FALSE
prepared
A rising edge indicates that an error occurred when
error BOOL FALSE
the FB was being executed.
Status LREAL 16#7000 Status display

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 94
6 Description of the blocks and their structure

Input/output parameters
Name Data type Initial Description
value
LRK_type
Data to display the cam.
trendViewData SCTrendView
(Position, velocity, acceleration and jerk)
Data

Functionality
This block prepares the values for position, velocity, acceleration and jerk of a
specified cam as table of values for display on the HMI user interface.

Messages
The block generates the following messages at its status output:

Table 6-11 FB_CamShow messages


Status constant Status value Meaning
STATUS_EXECUTION_FINISHED 16#0000 Execution completed without error
STATUS_NO_CALL 16#7000 No call
STATUS_FIRST_CALL 16#7001 First call
STATUS_SUBSEQUENT_CALL 16#7002 Subsequent call
ERR_INVALID_STATE 16#8600 Invalid status
© Siemens AG 2021 All rights reserved

ERR_GET_FOLLOWING_VALUE 16#8601 Error in the system function


MC_GETCAMFOLLOWINGVALUE
START_HMI_TRANSFER 16#80FF Start transfer to the HMI

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 95
6 Description of the blocks and their structure

6.4.8 Controlling the measured value sensing


LRK_CutPositionMeasuring

Control block of the measured value sensing

Block name
LRK_CutPositionMeasuring

Task
Controlling the measured value sensing to determine the deviation between the
setpoint and actual cut position at the print mark, if available.

Integration into the execution system


The block is called from the LRK_RotaryKnife block.

Graphic representation of the block

LRK_CutPositionMeasuring

LRK_type cutPositionBufferManagement LRK_type


CutPositionBuffer CutPositionBuffer
© Siemens AG 2021 All rights reserved

Management Management

LRK_type leadingValueMeasuringInputCommand LRK_type


LeadingValueMeasuring LeadingValueMeasuring
InputCommand InputCommand

LRK_type leadingValueMeasuringInputOutput LRK_type


LeadingValueMeasuring LeadingValueMeasuring
InputOutput InputOutput

LRK_type measuringValue LRK_type


MeasuringValue MeasuringValue

Block parameters

Input/output parameters
Name Data type Initial Description
value
cutPositionBufferManagement LRK_type Interface to the
CutPositionBuffer CutPositionBufferManagement
Management
leadingValueMeasuringInputCommand LRK_type Command interface of the
LeadingValueMeasuring measuring input
InputCommand
leadingValueMeasuringInputOutput LRK_type Output interface of the measuring
LeadingValueMeasuring input
InputOutput
measuringValue LRK_type Measured value sensing data
MeasuringValue

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 96
6 Description of the blocks and their structure

Functionality
Determines the 1st cut position after activating the cut position sensing (print mark
detection!).
The cut position is then sensed and the deviation to the currently entered format
length determined.
Missing print marks are detected and are indicated by incrementing the error
counter. The error counter is automatically reset when the next print mark is
detected.

Messages
The block does not generate any messages.
© Siemens AG 2021 All rights reserved

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 97
6 Description of the blocks and their structure

6.4.9 Deleting and resetting the measured value memory


LRK_CutPositionBufferReset

Deleting and resetting the measured value memory.

Block name
LRK_CutPositionBufferReset

Task
Deleting and resetting the measured value memory.

Integration into the execution system


The block is used by the rotary knife system and does not have to be integrated by
users.

Graphic representation of the block

LRK_CutPositionBufferReset

LRK_type cutPositionBufferManagement LRK_type


CutPositionBuffer CutPositionBuffer
© Siemens AG 2021 All rights reserved

Management Management

Block parameters

Input/output parameters
Name Data type Initial Description
value

cutPositionBuffer LRK_type
Structure of the measured value memory with all the
CutPositionBuffer
Management required control signals and pointers
Management

Functionality
• Deletes all memory content by overwriting memory elements with 0.0 or FALSE
• Resets all pointers to 0
• Resets all status signals to FALSE

Messages
The block does not generate any messages.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 98
6 Description of the blocks and their structure

6.4.10 Entries in the measured value memory


LRK_CutPositionBufferIn

Enters a measured value (position measured value and/or position deviation) in the
measured value memory.

Block name
LRK_CutPositionBufferIn

Task
With each call, the values available at the block (position measured value and
position deviation) are entered a free location of the measured value memory.

Integration into the execution system


The block is used by the rotary knife system and does not have to be integrated by
users.

Graphic representation of the block

LRK_CutPositionBufferIn
LREAL positionDeviation
LREAL actPosition
© Siemens AG 2021 All rights reserved

LRK_type cutPositionBufferManagement LRK_type


CutPositionBuffer CutPositionBuffer
Management Management

Block parameters

Input parameters
Name Data type Initial Description
value
[mm] Position deviation (deviation between the set
positionDeviation LREAL 0.0
point position and actual position)
actPosition LREAL 0.0 [mm] Position measured value

Input/output parameters
Name Data type Initial Description
value

cutPositionBuffer LRK_type Structure of the measured value memory with all the
CutPositionBuffer required control signals and pointers (see Chapter,
Management Management Data types).

Functionality
• Enters the position measured value into the measured value memory.
• Enters the position deviation into the measured value memory.

Messages
The block does not generate any messages.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 99
6 Description of the blocks and their structure

6.4.11 Reading from the measured value memory


LRK_CutPositionBufferRead

Reading measured values from the measured value memory.

Block name
LRK_CutPositionBufferRead

Task
This block reads the deviation of the currently measured position from the setpoint
position defined by the specified cutting length - and the actual position from the
measured value memory.

Integration into the execution system


The block is used by the rotary knife system and does not have to be integrated by
users.

Graphic representation of the block

LRK_CutPositionBufferRead
cutPositionDeviationValid BOOL
© Siemens AG 2021 All rights reserved

cutPositionDeviationMeasured LREAL
cutPositionMeasured LREAL

LRK_type cutPositionBufferManagement LRK_type


CutPositionBuffer CutPositionBuffer
Management Management

Block parameters

Output parameters
Name Data type Initial Description
value
cutPositionDeviationValid BOOL FALSE A position deviation has been identified
cut PositionDeviation
LREAL 0.0 [mm] Position correction value
Measured
cutPositionMeasured LREAL 0.0 [mm] Next synchronizing position

Input/output parameters
Name Data type Initial Description
value

cutPositionBuffer LRK_type Structure of the measured value memory with all the
CutPositionBuffer required control signals and pointers (see Chapter,
Management Management Data types).

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 100
6 Description of the blocks and their structure

Functionality
This block monitors the measured value memory. This block provides these values
in its output interface as soon as the measured value sensing has entered a new
position and deviation.

Messages
The block does not generate any messages.
© Siemens AG 2021 All rights reserved

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 101
6 Description of the blocks and their structure

6.4.12 Deleting from the measured value memory


LRK_CutPositionBufferOut

Deletes a measured value (position measured value and position deviation) from
the measured value memory.

Block name
LRK_CutPositionBufferOut

Task
After processing, the function block deletes the last measured value (position
measured value and position deviation) from the measured value memory and
releases the memory for the memory management.

Integration into the execution system


The block is used by the rotary knife system and does not have to be integrated by
users.

Graphic representation of the block

LRK_CutPositionBufferOut

LRK_type cutPositionBufferManagement LRK_type


© Siemens AG 2021 All rights reserved

CutPositionBuffer CutPositionBuffer
Management Management

Block parameters

Input/output parameters
Name Data type Initial Description
value

cutPositionBuffer LRK_type Structure of the CutPositionBuffer with all the required


CutPositionBuffer control signals and pointers (see Chapter, Data
Management Management types).

Functionality
When the block is called, the actual measured value (position measured value and
position deviation) are deleted from the measured value memory.

Messages
The block does not generate any messages.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 102
6 Description of the blocks and their structure

6.4.13 Servo block of the Rotary Knife basis version


LRK_Servo

Block name
LRK_ServoTask
Servo block of the SIMATIC Rotary Knife application. The block fulfills the following
tasks:
• Generates control and display signals.
• Servo clock accurate calculation of the “actual” cut length by using the signal
“knife in cut “cut” “.
• Synchronization of the print mark detection when starting in "run".
• Calling the precontrol of the accelerating torque.
• Calling the precontrol of the cutting torque.
• Controlling the technology interface to the drive for the additional torque.
• Control of the function “constantVelocityAtCut” and detection of the caused
length error of the leading value.
When the print mark correction is enabled, using a probe, the function block
determines the cutting position specified by the print marks, calculates the position
deviation from the difference between two consecutive cutting positions and the
specified cut length – and saves the position measured value and position
deviation in the measured value memory. The block determines the first cutting
© Siemens AG 2021 All rights reserved

position using the first measuring cycle.


Using position comparison, the function block always determines in which range
the knife currently is – and it also determines whether it is currently in the cutting
range and indicates the result using status flags.

Integration into the execution system


The function block must be called in OB MCPreServo [OB67]
If the prepared OBs are used within the library, then the call is automatic.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 103
6 Description of the blocks and their structure

Graphic representation of the block

LRK_Servo

LRK_type
leadingValueOutput
LeadingValueOutput
operationMode
modeEnabled
RotaryKnifeType (DInt)
operationMode
modeSelected
RotaryKnifeType (DInt)

LRK_type usersInterface LRK_type


UsersInterface UsersInterface
LRK_type rotaryKnifeInfo LRK_type
RotaryKnifeInfo RotaryKnifeInfo
LRK_type measuringValue LRK_type
MeasuringValue MeasuringValue
LRK_typeCutPosition cutPositionBufferManagement LRK_typeCutPosition
BufferManagement BufferManagement
© Siemens AG 2021 All rights reserved

Block parameters

Input parameters
Name Data type Initial Description
value
LRK_type
leadingValueOutput LeadingValue Interface with all the relevant leading value data.
Output
LRK_OM_ERROR(0): ERROR mode
LRK_OM_DISABLE(1): DISABLE mode
LRK_OM_START_POSITION(2): STARTPOSITION
Operation mode
ModesRotary LRK_OM_ LRK_OM_AUTOMATIC(3): AUTOMATIC mode
modeEnabled
Knife ERROR LRK_OM_MANUAL(4): MANUAL mode
(DINT) LRK_OM_SINGLE_CUT(5): SINGLE_CUT mode
LRK_OM_NOTHING_SELECTED(8):
NOTHING_SELECTED mode
LRK_OM_CHANGING(9): CHANGING mode
LRK_OM_ERROR(0): ERROR mode
LRK_OM_DISABLE(1): DISABLE mode
LRK_OM_START_POSITION(2): STARTPOSITION
Operation mode
ModesRotary LRK_OM_ LRK_OM_AUTOMATIC(3): AUTOMATIC mode
modeSelected
Knife ERROR LRK_OM_MANUAL(4): MANUAL mode
(DINT) LRK_OM_SINGLE_CUT(5): SINGLE_CUT mode
LRK_OM_NOTHING_SELECTED(8):
NOTHING_SELECTED mode
LRK_OM_CHANGING(9): CHANGING mode

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 104
6 Description of the blocks and their structure

Input/output parameters
Name Data type Initial value Description
Interface for the user to enter physical secondary
conditions, cam profiles, manual cut position
LRK_type
usersInterface corrections. It is also used for entering sequence
UsersInterface
options such as new start, fast start and flying
format change in operation
Internal data area to display actual geometrical
LRK_type values, converted to circumferential lengths in
rotaryKnifeInfo
RotaryKnifeInfo [mm], actual cut position as well as binary signals
for the knife position.
LRK_type
measuringValue Internal data area for print mark correction.
MeasuringValue
LRK_type Structure of the CutPositionBuffer with all of the
cutPositionBuffer
CutPositionBuffer required control signals and pointers (see Chapter,
Management
Management Data types).

Functionality
The block includes the following functions:
• Generates signals:
– Knife in synchronous sector
– Knife in format sector

© Siemens AG 2021 All rights reserved

Knife in the cut


• Servo clock accurate calculation of the “actual” cut length by using the signal
“knife in cut “cut””.
• Synchronization of the print mark detection when starting in "run".
• Calling the pre control of the accelerating torque
• Calling the pre control of the cutting torque
• Controlling the technology interface to the drive for the additional torque.
• Control of the operating mode “constantVelocityAtCut” and detection of the
caused length error of the leading value
Depending on the operating phase of the system and with the print mark detection
activated, the block provides the following functions:

Table 6-1: Print mark detection sequence


Phase Description
Phase 1 The probe to measure the "FirstCutPosition" is activated
Phase 2 The 1st measured position is saved as startPosAtSensor and the setpoint
position calculated for the next cutting operation from the measured position
plus the format length.
Phase 3 The probe to measure the next cutting position is activated. Here, a
plausibility check is made of the measurement using a "Active range
monitoring function" in the program itself. Incorrect measurements are
rejected and the probe is reactivated.
Phase 4 The next measured position is saved in the measured value memory –
along with its deviation from the setpoint position. The error counter is reset
if the position measurement is plausible.
Phase 5 If the measured value is not found in the actual activation range, then the
setpoint position with its activation range is shifted further by one format
length and the error counter is incremented by one.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 105
6 Description of the blocks and their structure

The block compares the actual knife position with startSyncPos and
endSyncPosthat are defined in the user interface, and depending on the position,
sets the following bits in the RotaryKnifeInfo structure:
In the synchronous range
knifeInSynchronousSector = TRUE
knifeInFormatSector = FALSE
In the format range
knifeInSynchronousSector = FALSE
knifeInFormatSector = TRUE

The block compares the actual knife position with 0.0 and endSyncPos and sets
in the cutting range
rotaryKnifeInfo.cut = TRUE
outside the cutting range
rotaryKnifeInfo.cut = FALSE

Messages
The block does not generate any messages.
© Siemens AG 2021 All rights reserved

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 106
6 Description of the blocks and their structure

6.4.14 Calculating the accelerating torque


LRK_GetAccelerationTorqueValue

Calculates the pre control value of the accelerating torque

Block name
LRK_GetAccelerationTorqueValue

Task
From the cam and the actual material velocity, the block calculates the accelerating
torque required for the rotary knife drive.

Integration into the execution system


The function block is called from the LRK_Servo block.

Graphic representation of the block

LRK_GetAccelerationTorqueValue

BOOL enable done BOOL


preControlMode busy BOOL
torquePreControlMode
(DINT) error BOOL
© Siemens AG 2021 All rights reserved

LREAL accelerationDirect accelerationTorque REAL

DB_ANY actualCam

LREAL totalInertia
LREAL lookAHead
LREAL actPosMat
LREAL actVelMat
LREAL actAccMat
LREAL factorMmToDegree
LREAL leadingRangeEnd

Block parameters

Input parameters
Name Data type Initial value Description
TRUE: Block calculates an accelerating torque
enable BOOL FALSE
to precontrol the drive
LRK_PCM_GET
preControlMode _VALUE_FROM
torquePreControlMode Precontrol mode
(DINT) _CAM_DIRECT
(0)
accelerationDirect LREAL 0.0 Acceleration value from the setpoint generation.
actualCam DB_ANY 0 Actual cam of the synchronous operation
[kgm²] Motor moment of inertia of the rotary
totalInertia LREAL 0.0
knife system
lookAHead LREAL 0.0 [µs] Preview
actPosMat LREAL 0.0 [mm] Actual material position

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 107
6 Description of the blocks and their structure

Name Data type Initial value Description


actVelMat LREAL 0.0 [mm/s] Actual material velocity
actAccMat LREAL 0.0 [mm/s²] Actual material acceleration
factorMmToDegree LREAL 0.0 Factor to convert from mm to °
leadingRangeEnd LREAL 0.0 [mm] Leading value at the end of the cam

Output parameters
Name Data type Initial value Description
busy BOOL FALSE TRUE: FB generates actual torque values
TRUE: FB is in the error state, no torque values
error BOOL FALSE
are generated
errorID DWORD 16#0000_0000 Error status
accelerationTorque REAL 0.0 Actual accelerating torque

Functionality
The block calculates the pre control values for the drive as soon as the "enable"
parameter at the block is set to TRUE, and initialization was successfully carried
out.

Messages
© Siemens AG 2021 All rights reserved

The block does not generate any messages.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 108
6 Description of the blocks and their structure

6.4.15 Calculating the cutting torque


LRK_CuttingTorquePreControl

Calculates the pre control value of the cutting torque

Block name
LRK_CuttingTorquePreControl

Task
This block calculates the cutting torque from a table saved in the rotary knife info
as a function of the rotary knife position.

Integration into the execution system


The function block is called from the LRK_Servo block.

Graphic representation of the block

LRK_CuttingTorquePreControl
BOOL enable busy BOOL
preControlMode error BOOL
cuttingTorquePreControlMode
(DINT) erroId DWORD
© Siemens AG 2021 All rights reserved

LREAL lookAHead cuttingTorque LREAL


LREAL actPosKnife
LREAL actVelKnife
LREAL actAccKnife

usersInterface LRK_type
LRK_type
UsersInterface UsersInterface

rotaryKnifeInfo LRK_type
LRK_type
RotaryKnifeInfo RotaryKnifeInfo

Block parameters

Input parameters
Name Data type Initial value Description
TRUE: Block calculates a cutting torque to pre
enable BOOL FALSE
control the drive
LRK_PCM_GET
cuttingTorquePreControl preControlMode _VALUE_FROM
Precontrol mode
Mode (DINT) _CAM_DIRECT
(0)
lookAHead LREAL 0.0 [µs] Preview
actPosKnife LREAL 0.0 [mm] Actual knife position
actVelKnife LREAL 0.0 [mm/s] Actual knife velocity
actAccKnife LREAL 0.0 [mm/s²] Actual knife acceleration

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 109
6 Description of the blocks and their structure

Output parameters
Name Data type Initial value Description
busy BOOL FALSE TRUE: FB generates actual cutting torque values
TRUE: FB is in the error state; no cutting torque
error BOOL FALSE
values are generated
errorId DWORD 16#7000 Error status
cuttingTorque LREAL 0.0 Actual cutting torque

Input/output parameters
Name Data type Initial value Description
LRK_type
usersInterface User interface
UsersInterface
LRK_type
rotaryKnifeInfo Information interface
RotaryKnifeInfo

Functionality
The block calculates the pre control values for the drive as soon as the "enable"
parameter at the block is set to TRUE, and initialization was successfully carried
out.
© Siemens AG 2021 All rights reserved

Messages
The block does not generate any messages.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 110
6 Description of the blocks and their structure

6.4.16 LRK_EncoderAsAAMaster

Control block of the axis FB for the auxiliary axis if an external encoder is
interconnected as leading value.

Block name
LRK_EncoderAsAAMaster

Task of the block


Calls the axis FB.

Integration into the execution system


The function block is automatically called from the LRK_AuxiliaryAxis function
block.

Graphic representation of the block

LRK_EncoderAsAAMaster
LRK_type
TO_ExternalEncoder master Output
AuxiliaryAxisOutput
© Siemens AG 2021 All rights reserved

TO_SynchronousAxis slave

LRK_type
command
AuxiliaryAxisCommand

LAxisCtrl_type config LAxisCtrl_type


AxisConfig AxisConfig

LAxisCtrl_SyncAxis instAxisCtrlAuxiliaryAxis LAxisCtrl_SyncAxis


Camming Camming

Block parameters

Input parameters
Name Data type Initial Description
value
master TO_ExternalEncoder Conversion DB_ANY to TO_ExternalEncoder
slave TO_SynchronousAxis Conversion DB_ANY to TO_SynchronousAxis
LRK_type Interface to operate the auxiliary axis using the
command
AuxiliaryAxisCommand auxiliary axis block

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 111
6 Description of the blocks and their structure

Input/output parameters
Name Data type Initial Description
value
LAxisCtrl_type
Config Configuration data
AxisConfig
instAxisCtrl LAxisCtrl_SyncAxis
Instance of axis FB of auxiliary axis
AuxiliaryAxis Camming

Output parameters
Name Data type Initial Description
value
LRK_type
Interface with all the auxiliary axis data relevant for
Output AuxiliaryAxis
the rotary knife block
Output

Functionality
This block is used to implicitly convert the leading value for the axis FB from
DB_ANY to TO_ExternalEncoder.

Switching over between standard axis handling and reduced axis handling
© Siemens AG 2021 All rights reserved

As default setting, the block is designed for operating with FB


LAxisCtrl_SyncAxisCamming of the global axis handling of the LAxisCtrl library.
This block provides users with a standard control and diagnostics interface for all
the usual motion functions of the TO axis. The scope of this block goes far beyond
addressing the requirements of basic rotary axes. Therefore, it is possible to
replace this block by a simpler block with restricted functionality that requires less
memory. This is the LRK_IAFB_Sync block in the LRotaryKnife library.
Both FBs access the same data type – which means that users only must replace
the data type of the internal instance, as described in the following:

Table 6-12 Switching over to reduced axis handling (Part 3)

1. In the declaration part of FB


LRK_EncoderAsAAMaster
replace instance
LAxisCtrl_SyncAxisCamming
2. by instance
LRK_IAFB_Sync

Messages
The block does not generate any messages.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 112
6 Description of the blocks and their structure

6.4.17 LRK_PosAxisAsAAMaster

Control block of the axis FB for the auxiliary axis if a positioning axis is
interconnected as leading value.

Block name
LRK_PosAxisAsAAMaster

Task of the block


Calls the axis FB.Integration into the execution system
The function block is automatically called from the LRK_AuxiliaryAxis function
block.

Graphic representation of the block

LRK_PosAxisAsAAMaster
LRK_type
TO_PositioningAxis master Output
AuxiliaryAxisOutput

TO_SynchronousAxis slave
© Siemens AG 2021 All rights reserved

LRK_type
command
AuxiliaryAxisCommand

LAxisCtrl_type config LAxisCtrl_type


AxisConfig AxisConfig

LAxisCtrl_SyncAxis instAxisCtrlAuxiliaryAxis LAxisCtrl_SyncAxis


Camming Camming

Block parameters

Input parameters
Name Data type Initial Description
value
master TO_PositioningAxis Conversion DB_ANY to TO_PositioningAxis
slave TO_SynchronousAxis Conversion DB_ANY to TO_SynchronousAxis
LRK_type Interface to operate the auxiliary axis using the
command
AuxiliaryAxisCommand auxiliary axis block

Input/output parameters
Name Data type Initial Description
value
Config LAxisCtrl_type Configuration data
AxisConfig

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 113
6 Description of the blocks and their structure

Name Data type Initial Description


value
instAxisCtrl LAxisCtrl_SyncAxis
Instance of axis FB of auxiliary axis
AuxiliaryAxis Camming

Output parameters
Name Data type Initial Description
value
LRK_type
Interface with all the auxiliary axis data relevant for
Output AuxiliaryAxis
the rotary knife block
Output

Functionality
This block is used to implicitly convert the leading value for the axis FB from
DB_ANY to TO_ExternalEncoder.

Switching over between standard axis handling and reduced axis handling
As default setting, the block is designed for operating with FB
LAxisCtrl_SyncAxisCamming of the global axis handling of the LAxisCtrl library.
This block provides users with a standard control and diagnostics interface for all
the usual motion functions of the TO axis. The scope of this block goes far beyond
addressing the requirements of basic rotary axes. Therefore, it is possible to
© Siemens AG 2021 All rights reserved

replace this block by a simpler block with restricted functionality that requires less
memory. This is the LRK_IAFB_Sync block in the LRotaryKnife library.
Both FBs access the same data type – which means that users only must replace
the data type of the internal instance, as described in the following:

Table 6-13 Switching over to reduced axis handling (Part 4)

1. In the declaration part of FB


LRK_PosAxisAsAAMaster
replace instance
LAxisCtrl_SyncAxisCamming
2. by instance
LRK_IAFB_Sync

Messages
The block does not generate any messages.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 114
6 Description of the blocks and their structure

6.4.18 LRK_SyncAxisAsAAMaster

Control block of the axis FB for the auxiliary axis if a synchronous axis is
interconnected as leading value.
Block name
LRK_SyncAxisAsAAMaster

Task of the block


Calls the axis FB.

Integration into the execution system


The function block is automatically called from the LRK_AuxiliaryAxis function
block.

Graphic representation of the block

LRK_SyncAxisAsAAMaster
LRK_type
TO_SynchronousAxis master Output
AuxiliaryAxisOutput

TO_SynchronousAxis slave
© Siemens AG 2021 All rights reserved

LRK_type
command
AuxiliaryAxisCommand

LAxisCtrl_type config LAxisCtrl_type


AxisConfig AxisConfig

LAxisCtrl_SyncAxis instAxisCtrlAuxiliaryAxis LAxisCtrl_SyncAxis


Camming Camming

Block parameters

Input parameters
Name Data type Initial Description
value
master TO_SynchronousAxis Conversion DB_ANY to TO_SynchronousAxis
slave TO_SynchronousAxis Conversion DB_ANY to TO_SynchronousAxis
LRK_type Interface to operate the auxiliary axis using the
command
AuxiliaryAxisCommand auxiliary axis block

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 115
6 Description of the blocks and their structure

Input/output parameters
Name Data type Initial Description
value
LAxisCtrl_type
Config Configuration data
AxisConfig
instAxisCtrl LAxisCtrl_SyncAxis
Instance of axis FB of auxiliary axis
AuxiliaryAxis Camming

Output parameters
Name Data type Initial Description
value
LRK_type
Interface with all the auxiliary axis data relevant for
Output AuxiliaryAxis
the rotary knife block
Output

Functionality
This block is used to implicitly convert the leading value for the axis FB from
DB_ANY to TO_SynchronousAxis.

Switching over between standard axis handling and reduced axis handling
As default setting, the block is designed for operating with FB
© Siemens AG 2021 All rights reserved

LAxisCtrl_SyncAxisCamming of the global axis handling of the LAxisCtrl library.


This block provides users with a standard control and diagnostics interface for all
the usual motion functions of the TO axis. The scope of this block goes far beyond
addressing the requirements of basic rotary axes. Therefore, it is possible to
replace this block by a simpler block with restricted functionality that requires less
memory. This is the LRK_IAFB_Sync block in the LRotaryKnife library.
Both FBs access the same data type – which means that users only must replace
the data type of the internal instance, as described in the following:

Table 6-14 Switching over to reduced axis handling (Part 5)

1. In the declaration part of FB


LRK_SyncAxisAsAAMaster,
replace instance
LAxisCtrl_SyncAxisCamming
2. by instance
LRK_IAFB_Sync

Messages
The block does not generate any messages.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 116
6 Description of the blocks and their structure

6.4.19 LRK_EncoderAsLVSAMaster

Control block of the axis FB for the synchronous axis as leading value if an external
encoder is interconnected as leading value.

Block name
LRK_EncoderAsLVSAMaster

Task of the block


Calls the axis FB.

Integration into the execution system


The function block is automatically called from the LRK_LeadingValue function
block.

Graphic representation of the block

LRK_EncoderAsLVSAMaster

TO_ExternalEncoder master
© Siemens AG 2021 All rights reserved

TO_SynchronousAxis slave

LAxisCtrl_type config LAxisCtrl_type


AxisConfig AxisConfig

LAxisCtrl_SyncAxis instAxisCtrlLeadingValue LAxisCtrl_SyncAxis


Camming Camming

Block parameters

Input parameters
Name Data type Initial Description
value
master TO_ExternalEncoder Conversion DB_ANY to TO_ExternalEncoder
slave TO_SynchronousAxis Conversion DB_ANY to TO_SynchronousAxis

Input/output parameters
Name Data type Initial Description
value
LAxisCtrl_type
Config Configuration data
AxisConfig
instAxisCtrl LAxisCtrl_SyncAxis
Instance of axis FB of leading value axis
LeadingValue Camming

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 117
6 Description of the blocks and their structure

Functionality
This block is used to implicitly convert the leading value for the axis FB from
DB_ANY to TO_ExternalEncoder.

Switching over between standard axis handling and reduced axis handling
As default setting, the block is designed for operating with FB
LAxisCtrl_SyncAxisCamming of the global axis handling of the LAxisCtrl library.
This block provides users with a standard control and diagnostics interface for all
the usual motion functions of the TO axis. The scope of this block goes far beyond
addressing the requirements of basic rotary axes. Therefore, it is possible to
replace this block by a simpler block with restricted functionality that requires less
memory. This is the LRK_IAFB_Sync block in the LRotaryKnife library.
Both FBs access the same data type – which means that users only must replace
the data type of the internal instance, as described in the following:

Table 6-15 Switching over to reduced axis handling (Part 6)

1. In the declaration part of FB


LRK_EncoderAsLVSAMaster
replace instance
LAxisCtrl_SyncAxisCamming
2. by instance
© Siemens AG 2021 All rights reserved

LRK_IAFB_Sync

Messages
The block does not generate any messages.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 118
6 Description of the blocks and their structure

6.4.20 LRK_PosAxisAsLVSAMaster

Control block of the axis FB for the synchronous axis as leading value if a
positioning axis is interconnected as leading value.
Block name
LRK_PosAxisAsLVSAMaster

Task of the block


Calls the axis FB.

Integration into the execution system


The function block is automatically called from the LRK_LeadingValue function
block.

Graphic representation of the block

LRK_PosAxisAsLVSAMaster

TO_PositioningAxis master

TO_SynchronousAxis slave
© Siemens AG 2021 All rights reserved

LAxisCtrl_type config LAxisCtrl_type


AxisConfig AxisConfig

LAxisCtrl_SyncAxis instAxisCtrlLeadingValue LAxisCtrl_SyncAxis


Camming Camming

Block parameters

Input parameters
Name Data type Initial Description
value
master TO_PositioningAxis Conversion DB_ANY to TO_PositioningAxis
slave TO_SynchronousAxis Conversion DB_ANY to TO_SynchronousAxis

Input/output parameters
Name Data type Initial Description
value
LAxisCtrl_type
Config Configuration data
AxisConfig
instAxisCtrl LAxisCtrl_SyncAxis
Instance of axis FB of leading value axis
LeadingValue Camming

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 119
6 Description of the blocks and their structure

Functionality
This block is used to implicitly convert the leading value for the axis FB from
DB_ANY to TO_PositioningAxis.

Switching over between standard axis handling and reduced axis handling
As default setting, the block is designed for operating with FB
LAxisCtrl_SyncAxisCamming of the global axis handling of the LAxisCtrl library.
This block provides users with a standard control and diagnostics interface for all
the usual motion functions of the TO axis. The scope of this block goes far beyond
addressing the requirements of basic rotary axes. Therefore, it is possible to
replace this block by a simpler block with restricted functionality that requires less
memory. This is the LRK_IAFB_Sync block in the LRotaryKnife library.
Both FBs access the same data type – which means that users only must replace
the data type of the internal instance, as described in the following:

Table 6-16 Switching over to reduced axis handling (Part 7)

1. In the declaration part of FB


LRK_PosAxisAsLVSAMaster
replace instance
LAxisCtrl_SyncAxisCamming
2. by instance
© Siemens AG 2021 All rights reserved

LRK_IAFB_Sync

Messages
The block does not generate any messages.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 120
6 Description of the blocks and their structure

6.4.21 LRK_SyncAxisAsLVSAMaster

Control block of the axis FB for the synchronous axis as leading value if a
synchronous axis is interconnected as leading value.

Block name
LRK_PosAxisAsLVSAMaster

Task of the block


Calls the axis FB.

Integration into the execution system


The function block is automatically called from the LRK_LeadingValue function
block.

Graphic representation of the block

LRK_SyncAxisAsLVSAMaster

TO_SynchronousAxis master
© Siemens AG 2021 All rights reserved

TO_SynchronousAxis slave

LAxisCtrl_type config LAxisCtrl_type


AxisConfig AxisConfig

LAxisCtrl_SyncAxis instAxisCtrlLeadingValue LAxisCtrl_SyncAxis


Camming Camming

Block parameters

Input parameters
Name Data type Initial Description
value
master TO_SynchronousAxis Conversion DB_ANY to TO_SynchronousAxis
slave TO_SynchronousAxis Conversion DB_ANY to TO_SynchronousAxis

Input/output parameters
Name Data type Initial Description
value
LAxisCtrl_type
Config Configuration data
AxisConfig
instAxisCtrl LAxisCtrl_SyncAxis
Instance of axis FB of leading value axis
LeadingValue Camming

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 121
6 Description of the blocks and their structure

Functionality
This block is used to implicitly convert the leading value for the axis FB from
DB_ANY to TO_SynchronousAxis.

Switching over between standard axis handling and reduced axis handling
As default setting, the block is designed for operating with FB
LAxisCtrl_SyncAxisCamming of the global axis handling of the LAxisCtrl library.
This block provides users with a standard control and diagnostics interface for all
the usual motion functions of the TO axis. The scope of this block goes far beyond
addressing the requirements of basic rotary axes. Therefore, it is possible to
replace this block by a simpler block with restricted functionality that requires less
memory. This is the LRK_IAFB_Sync block in the LRotaryKnife library.
Both FBs access the same data type – which means that users only must replace
the data type of the internal instance, as described in the following:

Table 6-17 Switching over to reduced axis handling (Part 8)

1. In the declaration part of FB


LRK_SyncAxisAsLVSAMaster
replace instance
LAxisCtrl_SyncAxisCamming
2. by instance
© Siemens AG 2021 All rights reserved

LRK_IAFB_Sync

Messages
The block does not generate any messages.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 122
6 Description of the blocks and their structure

6.4.22 LRK_SyncAxisAsRKMaster

Control block of the axis FB for the Rotary Knife axis if a synchronous axis is
interconnected as leading value.

Block name
LRK_SyncAxisAsRKMaster

Task of the block


Calls the axis FB.

Integration into the execution system


The function block is automatically called from the LRK_RotaryKnifeAxis function
block.

Graphic representation of the block

LRK_SyncAxisAsRKMaster
LRK_type
TO_SynchronousAxis master Output
RotaryKnifeAxisOutput

TO_SynchronousAxis slave
© Siemens AG 2021 All rights reserved

LRK_type
command
RotaryKnifeAxisCommand

LAxisCtrl_type config LAxisCtrl_type


AxisConfig AxisConfig

Block parameters

Input parameters
Name Data type Initial Description
value
master TO_SynchronousAxis Conversion DB_ANY to TO_SynchronousAxis
slave TO_SynchronousAxis Conversion DB_ANY to TO_SynchronousAxis
command LRK_type Internal interface to operate the RotaryKnifeAxis by
RotaryKnifeAxisCommand the RotaryKnifeAxis block.

Input/output parameters
Name Data type Initial Description
value
Config LAxisCtrl_type Configuration data
AxisConfig

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 123
6 Description of the blocks and their structure

Output parameters
Name Data type Initial Description
value
Output LRK_type Interface with all the rotary knife axis data relevant
RotaryKnifeAxis for the rotary knife block
Output

Functionality
This block is used to implicitly convert the leading value for the axis FB from
DB_ANY to TO_SynchronousAxis.

Switching over between standard axis handling and reduced axis handling
As default setting, the block is designed for operating with FB
LAxisCtrl_SyncAxisCamming of the global axis handling of the LAxisCtrl library.
This block provides users with a standard control and diagnostics interface for all
the usual motion functions of the TO axis. The scope of this block goes far beyond
addressing the requirements of basic rotary axes. Therefore, it is possible to
replace this block by a simpler block with restricted functionality that requires less
memory. This is the LRK_IAFB_Sync block in the LRotaryKnife library.
Both FBs access the same data type – which means that users only must replace
the data type of the internal instance, as described in the following:

Table 6-18 Switching over to reduced axis handling (Part 9)


© Siemens AG 2021 All rights reserved

1. In the declaration part of FB


LRK_SyncAxisAsRKMaster,
replace instance
LAxisCtrl_SyncAxisCamming
2. by instance
LRK_IAFB_Sync

Messages
The block does not generate any messages.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 124
6 Description of the blocks and their structure

6.4.23 Determining axis values


LRK_GetPosAxisValues

Reads out the values from the TO_PositioningAxis

Block name
LRK_GetPosAxisValues

Task
This block reads the system-relevant data from the TO_PositioningAxis of the
leading value
Integration into the execution system
The function block is called from the LRK_LeadingValue block.

Graphic representation of the block

LRK_GetPosAxisValues VOID

TO_PositioningAxis TO_LeadingValue toEnable BOOL


toError BOOL
toHomed BOOL
toStandstill BOOL
© Siemens AG 2021 All rights reserved

toHomingActive BOOL
toNotPositionControled BOOL
toModuloEnabled BOOL
toModuloLength LREAL
toActualPosition LREAL
toActualVelocity LREAL
toActualAcceleration LREAL
toMaxVelocity LREAL
toMaxAcceleration LREAL
toMaxDeceleration LREAL

Block parameters

Input parameters
Name Data type Initial Description
value
TO_LeadingValue TO_PositioningAxis Axis as leading value

Output parameters
Name Data type Initial Description
value
toEnabled BOOL Axis switched on
toError BOOL Axis in error state
toHomed BOOL Axis homed
toStandstill BOOL Axis standstill
toHomingActive BOOL Axis moving in the homing mode

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 125
6 Description of the blocks and their structure

Name Data type Initial Description


value
toNotPositionControlled BOOL Axis motion not with position control
toModuloEnabled BOOL Modulo active
toModuloLength LREAL Active modulo length
toActualPosition LREAL Actual axis position
toActualVelocity LREAL Actual axis velocity
toActualAcceleration LREAL Actual axis acceleration
toMaxVelocity LREAL Maximum axis velocity
toMaxAcceleration LREAL Maximum axis acceleration
toMaxDeceleration LREAL Maximum axis deceleration

Functionality
Reads out the system-relevant data from the TO_PositioningAxis

Messages
The block does not generate any messages.
© Siemens AG 2021 All rights reserved

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 126
6 Description of the blocks and their structure

6.4.24 Determining axis values


LRK_GetSyncAxisValues

Reads out the values from the TO_SynchronousAxis

Block name
LRK_GetSyncAxisValues

Task
This block reads the system-relevant data from the TO_SynchronousAxis

Integration into the execution system


The function block is called from LRK_AuxiliaryAxis and LRK_RotaryKnifeAxis
blocks.
Graphic representation of the block

LRK_GetSyncAxisValues VOID

TO_SyncAxis TO_SynchronousAxis toDriveCommunicationOK BOOL


toDriveInOperation BOOL
toEnable BOOL
toError BOOL
© Siemens AG 2021 All rights reserved

toErrorReaction BOOL
toRestartActive BOOL
toHomed BOOL
toStandstill BOOL
toJogActive BOOL
toHomingActive BOOL
toSynchronizing BOOL
toSynchronous BOOL
toNotPositionControled BOOL
toModuloEnabled BOOL
toModuloLength LREAL
toActualPosition LREAL
toActualVelocity LREAL
toActualAcceleration LREAL
toMaxVelocity LREAL
toMaxAcceleration LREAL
toMaxDeceleration LREAL
toLeadScrew LREAL
toMasterOffset LREAL
toGearFactor LREAL
toVirtualAxisMode LREAL

Block parameters

Input parameters
Name Data type Initial Description
value
TO_Synchronous
TO_SyncAxis SynchronousAxis
Axis

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 127
6 Description of the blocks and their structure

Output parameters
Name Data type Initial Description
value
toDriveCommunicationOK BOOL Drive in conjunction with SIMATIC
toDriveInOperation BOOL Drive in operation
toEnabled BOOL Axis switched on
toError BOOL Axis in error state
toErrorReaction Dint Error response of the axis
toRestartActive BOOL Restart at the TO active
toHomed BOOL Axis homed
toStandstill BOOL Axis standstill
toJogActive BOOL Axis in the jog mode
toHomingActive BOOL Axis moving in the homing mode
toSynchronizing BOOL Axis synchronizing
toSynchronous BOOL Axis synchronized
toNotPositionControlled BOOL Axis motion not with position control
toModuloEnabled BOOL Modulo active
toModuloLength LREAL [mm] Active modulo length
toActualPosition LREAL [mm] Actual axis position
toActualVelocity LREAL [mm/s] Actual axis velocity
toActualAcceleration LREAL [mm/s²] Actual axis acceleration
© Siemens AG 2021 All rights reserved

toMaxVelocity LREAL [mm/s] Maximum axis velocity


toMaxAcceleration LREAL [mm/s²] Maximum axis acceleration
toMaxDeceleration LREAL [mm/s²] Maximum axis deceleration
toLeadScrew LREAL [mm] Spindle pitch (leadscrew)
[mm] Actual offset of the
toMasterOffset LREAL
leading value range of the cam
toGearFactor LREAL [-] Gear ratio
toVirtuaAxisMode UDINT Axis running in virtual modus

Functionality
Reads out the system-relevant data from the TO_SynchronousAxis

Messages
The block does not generate any messages.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 128
6 Description of the blocks and their structure

6.4.25 Determining axis values


LRK_GetExternalEncoderValues

Reads out the values from the TO ExternalEncoder

Block name
LRK_GetExternalEncoderValues

Task
This block reads the system-relevant data from the TO ExternalEncoder of the
leading value

Integration into the execution system


The function block is called from the LRK_LeadingValue block.

Graphic representation of the block


Figure 6-1: LRK_GetExternalEncoderValues
LRK_GetExternalEncoderValues

TO_ExternalEncoder TO_ExtEnc toEnabled Bool

toError Bool
© Siemens AG 2021 All rights reserved

toHomed Bool

toHomingActive Bool

toStandstill Bool

toNotPositionControlled Bool

toModuloEnabled Bool

toModuloLength LReal

toActualPosition LReal

toActualVelocity LReal

toActualAcceleration LReal

toMaxVelocity LReal

toMaxAcceleration LReal

toMaxDeceleration LReal

toStatusSensorState DInt

Table 6-2: Parameter of LRK_GetExternalEncoderValues


Name P- Data Type Comment
Type
TO_ExtEnc IN TO_ExternalEncoder External encoder as leading value
toEnabled OUT Bool External encoder switched on
toError OUT Bool External encoder in error state
toHomed OUT Bool External encoder homed
toHomingActive OUT Bool External encoder moving in the homing mode

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 129
6 Description of the blocks and their structure

Name P- Data Type Comment


Type
toStandstill OUT Bool Velocity is smaller then 5 mm/s (needed at interrupt
production)
toNotPositionControlled OUT Bool Motion not with position control
toModuloEnabled OUT Bool Modulo active
toModuloLength OUT LReal Active modulo length
toActualPosition OUT LReal Actual position of the external encoder
toActualVelocity OUT LReal Actual velocity of the external encoder
toActualAcceleration OUT LReal Actual acceleration of the external encoder
toMaxVelocity OUT LReal Maximum velocity (= 0.0)
toMaxAcceleration OUT LReal Maximum acceleration (= 0.0)
toMaxDeceleration OUT LReal Maximum deceleration (= 0.0)
toStatusSensorState OUT DInt External encoder switched on

Functionality
Reads out the system-relevant data from the external encoder TO of the leading
value

Messages
The block does not generate any messages.
© Siemens AG 2021 All rights reserved

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 130
6 Description of the blocks and their structure

6.4.26 Determining axis values


LRK_GetLVPosAxisServoValue

Reads out the values of leading value used in servo clock from the
TO_PositioningAxis

Block name
LRK_GetLVPosAxisServoValue

Task
This block reads the system-relevant data from the TO_PositioningAxis of the
leading value

Integration into the execution system


The function block is called from the LRK_Servo block.

Graphic representation of the block

LRK_type
LRK_GetLVPosAxisServoValue GetLVServoValues

TO_PositioningAxis TO_PosAxis
© Siemens AG 2021 All rights reserved

Block parameters

Input parameters
Name Data type Initial Description
value
TO_PosAxis TO_PositioningAxis PositioningAxis as leading value

Functionality
Reads out the system-relevant data from the TO_PositioningAxis

Messages
The block does not generate any messages.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 131
6 Description of the blocks and their structure

6.4.27 Determining axis values


LRK_GetLVSyncAxisServoValue

Reads out the values of leading value used in servo clock from the
TO_SynchronousAxis

Block name
LRK_GetLVSyncAxisServoValue

Task
This block reads the system-relevant data from the TO_SynchronousAxis of the
leading value

Integration into the execution system


The function block is called from the LRK_Servo block.

Graphic representation of the block

LRK_type
LRK_GetLVSyncAxisServoValue GetLVServoValues

TO_SynchronousAxis TO_SyncAxis
© Siemens AG 2021 All rights reserved

Block parameters

Input parameters
Name Data type Initial Description
value
TO_SyncAxis TO_SynchronousAxis SynchronousAxis as leading value

Functionality
Reads out the system-relevant data from the TO_SynchronousAxis

Messages
The block does not generate any messages.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 132
6 Description of the blocks and their structure

6.4.28 Determining axis values


LRK_GetLVExternalEncoderServoValue

Reads out the values of leading value used in servo clock from the
TO_ExternalEncoder

Block name
LRK_GetLVExternalEncoderServoValue

Task
This block reads the system-relevant data from the TO_ExternalEncoder of the
leading value

Integration into the execution system


The function block is called from the LRK_Servo block.

Graphic representation of the block

LRK_type
LRK_GetLVExternalEncoderServoValues GetLVExtEncServoValue

TO_ExternalEncoder TO_ExtEnc
© Siemens AG 2021 All rights reserved

Block parameters

Input parameters
Name Data type Initial Description
value
TO_ExtEnc TO_ExternalEncoder External encoder as leading value

Functionality
Reads out the system-relevant data from the TO_ExternalEncoder

Messages
The block does not generate any messages.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 133
6 Description of the blocks and their structure

6.4.29 Reset of the MeasuringInput


LRK_MCResetMI

Resets the measuring input

Block name
LRK_MCResetMI

Task
Calls MC_RESET with DB_ANY as TO reference

Integration into the execution system


The block is called from the LRK_LeadingValueMeasuringInput block and does not
have to be integrated by users.

Graphic representation of the block

LRK_MCResetMI VOID

TO_MeasuringInput TOMeasuringInput

MC_RESET_Instance
MC_RESET MC_RESET
© Siemens AG 2021 All rights reserved

Block parameters

Input parameters
Name Data type Initial value Description
TOMeasuringInput TO_MeasuringInput TO-Measuring input

Input/output parameters
Name Data type Initial value Description
MC_RESET_Instance MC_RESET Instance of MC_RESET

Functionality
Calls MC_RESET

Messages
The block does not generate any messages.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 134
6 Description of the blocks and their structure

6.4.30 Reset of the cam


LRK_MCResetCam

Reset of the cam

Block name
LRK_MCResetCam

Task
Calls MC_RESET with DB_ANY as TO reference

Integration into the execution system


The block is called from the LRK_CamCalculation block and does not have to be
integrated by users.

Graphic representation of the block

LRK_MCResetCam VOID

TO_Cam Cam

MC_RESET_Instance
MC_RESET MC_RESET
© Siemens AG 2021 All rights reserved

Block parameters

Input parameters
Name Data type Initial value Description
Cam TO_Cam TO cam

Input/output parameters
Name Data type Initial value Description
MC_RESET_Instance MC_RESET Instance of MC_RESET

Functionality
Calls MC_RESET

Messages
The block does not generate any messages.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 135
6 Description of the blocks and their structure

6.4.31 Determining cam values


LRK_GetCamValues

Reads out the values from the TO Cam

Block name
LRK_GetCamValues

Task
This block reads the system-relevant data from the TO Cam

Integration into the execution system


The function block is called from the LRK_CamManagement block.

Graphic representation of the block

LRK_GetCamValues VOID

TO_Cam cam camStatus LRKBasic_typeCamStatus


© Siemens AG 2021 All rights reserved

Block parameters

Input parameters
Name Data type Initial value Description
Cam TO_Cam Cam

Output parameters
Name Data type Initial value Description
LRK_
camStatus Cam status
typeCamStatus

Functionality
Reads out the system-relevant data from the TO_Cam of the selected cam

Messages
The block does not generate any messages.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 136
6 Description of the blocks and their structure

6.4.32 LRK_AddCamPointsToCam

Supplies the cam with the previously calculated cam points.

Block name
LRK_AddCamPointsToCam

Task of the block


Enters the cam points into the TO Cam

Integration into the execution system


The function block is automatically called from the LRK_CamCalculation function
block.

Graphic representation of the block

LRK_AddCamPointsToCam VOID

INT numberOfPoints

Array[1..
LRK_MAX_NUMBER_OF_CAM_POINTS camPoints
of TO_Cam_Struct_PointData
© Siemens AG 2021 All rights reserved

Array[1.. camPointsValid Array[1..


LRK_MAX_NUMBER_OF_CAM_POINTS LRK_MAX_NUMBER_OF_CAM_POINTS
of BOOL of BOOL

cam
TO_Cam TO_Cam

Block parameters

Input parameters
Name Data type Initial value Description
numberOfPoints INT Number of cam points
Array[1..”LRK_MAX_NUMBER_
camPoints OF_CAM_POINTS”] of Cam point parameters
TO_Cam_Struct_PointData

Input/output parameters
Name Data type Initial value Description
Array[1..”LRK_MAX_NUMBER_
camSegmentsValid Display of the segment validity
OF_CAM_POINTS”] of BOOL
cam TO_Cam Cam

Functionality
This block enters the calculated segment parameters into the TO-Cam.

Messages
The block does not generate any messages.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 137
6 Description of the blocks and their structure

6.4.33 LRK_AddCamSegmentsToCam

Supplies the cam with the previously calculated segment parameters.

Block name
LRK_AddCamSegmentsToCam

Task of the block


Enters the segment parameters into the TO Cam

Integration into the execution system


The function block is automatically called from the LRK_CamCalculation function
block

Graphic representation of the block

LRK_AddCamSegmentsToCam VOID

INT numberOfSegments

Array[1..50] of
camSegments
TO_Cam_Struct_SegmentData
© Siemens AG 2021 All rights reserved

Array[1..50] of BOOL camSegmentsValid

cam
TO_Cam TO_Cam

Block parameters

Input parameters
Name Data type Initial value Description
numberOfSegments INT Number of cam segments
Array[1..”LRK_MAX_NUMBER_
camSegments OF_CAM_POINTS”] of Cam segment parameters
TO_Cam_Struct_SegmentData
Array[1..”LRK_MAX_NUMBER_
camSegmentsValid Display of the segment validity
OF_CAM_POINTS”] of BOOL

Input/output parameters
Name Data type Initial value Description
cam TO_Cam Cam

Functionality
This block enters the calculated segment parameters into the TO-Cam.

Messages
The block does not generate any messages.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 138
6 Description of the blocks and their structure

6.4.34 LRK_GetAuxRotAxisServoValues

Reads out the reduced actual axis data of auxiliary axis and Rotary Knife axis in
the servo clock cycle

Block name
LRK_GetAuxRotAxisServoValues

Task of the block


Reads out the reduced actual axis data of auxiliary axis and Rotary Knife axis in
the servo clock cycle

Integration into the execution system


The function block is automatically called from the LRK_Servo function block.

Graphic representation of the block

LRK_GetAuxRotAxisServoValues LRK_type
GetAuxRotAxisServoValues

TO_SynchronousAxis auxiliaryAxis
© Siemens AG 2021 All rights reserved

TO_SynchronousAxis rotaryKnifeAxis

Block parameters

Input parameters
Name Data type Initial value Description
auxiliaryAxis TO_SynchronousAxis Auxiliary axis (decoupled material web!)
rotaryKnifeAxis TO_SynchronousAxis RotaryKnife axis

Functionality
This block reads data from the TO structure of the auxiliary and rotary knife axes
and transfers this data into the FC structure.

Messages
The block does not generate any messages.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 139
6 Description of the blocks and their structure

6.4.35 LRK_GetCamServoValues

Reads out the reduced actual data of a specified cam in the servo clock cycle.

Block name
LRK_GetCamServoValues

Task of the block


Reads out the reduced actual data of a specified cam in the servo clock cycle.

Integration into the execution system


The function block is automatically called from the LRK_Servo function block.

Graphic representation of the block

LRK_GetCamServoValues LRK_type
GetCamServoValues

TO_Cam cam_TO
© Siemens AG 2021 All rights reserved

Block parameters

Input parameters
Name Data type Initial value Description
cam_TO TO_Cam Cam

Functionality
This block reads data from the TO structure of a cam and transfers it into the FC
structure.

Messages
The block does not generate any messages.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 140
6 Description of the blocks and their structure

6.4.36 LRK_MCTorqueAdditive

Specifies an additional torque

Block name
LRK_MCTorqueAdditive

Task
Calls the MC_TorqueAdditive with DB_ANY as TO reference.

Integration into the execution system


The block is called from the LRK_Servo block and does not have to be integrated
users.

Graphic representation of the block

LRK_MCTorqueAdditive VOID

TO_SynchronousAxis axis
BOOL enable
LREAL value
© Siemens AG 2021 All rights reserved

MC_TORQUEADDITIVE_Instance
MC_TORQUEADDITIVE MC_TORQUEADDITIVE

Block parameters

Input parameters
Name Data type Initial value Description
axis TO_SynchronousAxis TO synchronous axis
enable BOOL Activation of the additional torque pre control
value LREAL [ Nm ] Value of the additional torque

Input/output parameters
Name Data type Initial value Description
MC_TORQUE MC_TORQUE
Instance of MC_TORQUEADDITIVE
ADDITIVE_Instance ADDITIVE

Functionality
Calls the MC_TORQUEADDITIVE

Messages
The block does not generate any messages.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 141
7 Description of the data and their structure

7 Description of the data and their structure


7.1 Overview
Enumeration types
Enumeration types as groups of DINT constants are provided for some of the input
and output parameters of the function blocks. Various modes and properties can
be preset using these parameters.

Data structures
In some instances, the function blocks of the application are parameterized using
data structures, which should be created for the particular block. Structures with
the appropriate parameters are available for each block.

7.2 Enumeration types

Name of the enumeration type Content


operationModesRotaryKnife This enumeration type contains DINT constants to select
© Siemens AG 2021 All rights reserved

and display the operating state of function block


LRK_RotaryKnife.
Declared in: LrotaryKnife_Tags/LRK_Constant/User
constants
leadingValueCouplingMode This enumeration type contains DINT constants to describe
the leading value coupling mode selected in the axis
configuration.
Declared in: LrotaryKnife_Tags/LRK_Constant/User
constants
preControlMode This enumeration type contains DINT constants to select
and display the pre control mode used for the torque pre
control and DC link pre control.
Declared in: LrotaryKnife_Tags/LRK_Constant/User
constants
startStopLengthMode This enumeration type contains DINT constants to describe
the input mode for the start/stop length.
Declared in: LrotaryKnife_Tags/LRK_Constant/User
constants
typeOfCam This enumeration type defines the cam type for the cam
calculation:
Declared in: LrotaryKnife_Tags/LRK_Constant/User
constants
camProfile This enumeration type defines the travel profile for the cam
calculation.
Declared in: LrotaryKnife_Tags/LRK_Constant/User
constants
cutProfile This enumeration type defines the cutting profile for the cam
calculation
Declared in: LrotaryKnife_Tags/LRK_Constant/User
constants
measuringEdge This enumeration type defines the type of the edge at the
measuring input
Declared in: LrotaryKnife_Tags/LRK_Constant/User
constants

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 142
7 Description of the data and their structure

Name of the enumeration type Content


syncProfileReference This enumeration type defines the synchronization profile
type:
Declared in: LrotaryKnife_Tags/LRK_Constant/User
constants
syncLengthType This enumeration type defines the type entered for the
synchronization length
Declared in: LrotaryKnife_Tags/LRK_Constant/User
constants

7.2.1 operationModesRotaryKnife

This enumeration type contains DINT constants to select and display the operating
state of function block LRK_RotaryKnife.
Element Value Description
LRK_OM_ERROR 0 LRK_RotaryKnife is in the ERROR mode
LRK_OM_DISABLE 1 LRK_RotaryKnife is in the DISABLE mode
LRK_OM_START_POSITION 2 LRK_RotaryKnife is in the STARTPOSITION mode
LRK_OM_AUTOMATIC 3 LRK_RotaryKnife is in the AUTOMATIC mode
LRK_OM_MANUAL 4 LRK_RotaryKnife is in the MANUAL mode
LRK_OM_SINGLE_CUT 5 LRK_RotaryKnife is in the SINGLE_CUT mode
© Siemens AG 2021 All rights reserved

LRK_OM_NOTHING_SELECTED 8 LRK_RotaryKnife has not detected a mode change


LRK_OM_CHANGING 9 LRK_RotaryKnife is presently undergoing a mode change

7.2.2 leadingValueCouplingMode

This enumeration type contains DINT constants to describe the leading value
coupling mode selected in the axis configuration.
Element Value Description
LRK_LVCM_SET_POINT 0 This value should be set if the auxiliary axis with setpoint
coupling is interconnected with the leading value (material axis).
LRK_LVCM_ACTUAL_VALUE_WITH 1 This value should be set if the auxiliary axis with actual value
_EXTRAPOLATION coupling is interconnected with the leading value (external
encoder).
LRK_LVCM_ACTUAL_VALUE_WITHOUT 2 Never set this value, it is only used for the sake of
_EXTRAPOLATION completeness!

7.2.3 startStopLengthMode

This enumeration type contains DINT constants to describe the input mode for the
start/stop length.
Element Value Description
LRK_SSLM_AUTOMATIC 0 The system automatically calculates the optimum start/stop
length according to minimum torque requirement.
LRK_SSLM_BY_VALUE 1 Users specify the start/stop length
(StartLength/StopLength)

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 143
7 Description of the data and their structure

7.2.4 preControlMode

This enumeration type contains DINT constants to select and display the pre
control mode used for the torque pre control and DC link pre control.
Element Value Description
LRK_PCM_GET_VALUE_FROM_CAM 0 Using this setting, the acceleration of the rotary knife axis,
_DIRECT required for pre control, is taken directly from the value
"currentSlaveData.secondDerivedValue" of the synchronous
object of the rotary knife axis.
LRK_PCM_GET_VALUE_FROM_CAM 1 Using this setting, the acceleration of the rotary knife axis
_WITH_LOOK_AHEAD required for pre control is calculated from the "raw value" taken
from the actual cam according to the leading value position and
the actual leading value velocity. When so doing, an offset
(LookAHead!) - that can be parameterized - is considered.
Further, for this method, the leading value setpoint can be used if
the leading actual values are very noisy

7.2.5 typeOfCam

This enumeration type defines the cam type for the cam calculation:
Element Value Description
LRK_TOCAM_START_CAM 0 Cam to move the crosscutter from the start position into cyclic
operation.
© Siemens AG 2021 All rights reserved

LRK_TOCAM_CYCLIC_CAM 1 Cam for cyclic operation


LRK_TOCAM_STOP_CAM 2 Cam to stop the crosscutter from cyclic operation

7.2.6 camProfile

This enumeration type defines the travel profile for the cam calculation:
Element Value Description
LRK_CAMPT_LINEAR 0 Acceleration/deceleration profile with constant acceleration
LRK_CAMPT_JERK 1 Acceleration/deceleration profile with jerk limiting
LRK_CAMPT_POLY_5 2 Acceleration/deceleration profile as fifth order polynomial
LRK_CAMPT_SINUS 3 Acceleration/deceleration profile as sinusoidal waveform
LRK_CAMPT_POLY_6 4 Acceleration/deceleration profile as sixth order polynomial

7.2.7 cutProfile

This enumeration type defines the travel profile for the cam calculation:
Element Value Description
LRK_CUTPT_CONST 0 Linear cutting profile for over speed = 0.0
polynomial cutting profile for over speed > 0.0
LRK_CUTPT_LINEAR 1 Linear cutting profile for over speed = 0.0
Cutting profile with constant acceleration for over speed > 0.0
LRK_CUTPT_COSINE 2 Cosine cutting profile, the overspeed is calculated automatically
depending on the start sync angle.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 144
7 Description of the data and their structure

7.2.8 measuringEdge

This enumeration type defines the type of the edge at the measuring input:
Element Value Description
LRK_RISING_EDGE 1 Measurement for a rising edge
LRK_FALLING_EDGE 2 Measurement for a falling edge

7.2.9 syncProfileReference

This enumeration type defines the synchronization profile type:


Element Value Description
LRK_SPR_RELATE_SYNC_PROFILE_TO_TIME 1 Synchronization is realized time-based and
based on the set dynamic response values.
LRK_SPR_RELATE_SYNC_PROFILE_TO_LEADING_VALUE 2 Synchronization is realized via the leading
value with the set synchronization length.

7.2.10 syncLengthType
© Siemens AG 2021 All rights reserved

This enumeration type defines the synchronization length type:


Element Value Description
LRK_SLT_EFFECTIVE 1 The synchronization length is automatically obtained. Only
permitted if synchronization based on time is selected.
LRK_SLT_DIRECT 2 The synchronization length is taken from variables "syncLength"
in structure "RotaryKnifeInfo".

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 145
7 Description of the data and their structure

7.3 Data structures of the Rotary Knife standard


application
Name of the structure Content
LRK_typeAuxiliaryAxis This structure contains the command interface to the axis FB, reduced
Command to the requirements of the AuxiliaryAxis.
Declared in: LRotaryKnife_Types/BasicTypes/
LRK_typeAuxiliaryAxisCommand
LRK_typeAuxiliaryAxis This structure contains all the required feedback signals of the
Output AuxiliaryAxis.
Declared in: LRotaryKnife_Types/BasicTypes/
LRK_typeAuxiliaryAxisOutput
LRK_typeAxisTOs This structure contains all the required TOs as DB_ANY.
Declared in: LRotaryKnife_Types/BasicTypes/
LRK_typeAxisTOs
LRK_typeCamCalculation This structure contains the internal data area for calling the cam
calculation.
Declared in: LRotaryKnife_Types/BasicTypes/
LRK_typeCamCalculation
LRK_typeCamCommand Substructure of LRK_typeCamCalculation to specifically reset
the cams being used.
Declared in: LRotaryKnife_Types/BasicTypes/
LRK_typeCamCommand
LRK_typeCamStatus Substructure of LRK_typeCamCalculation to display the cam
© Siemens AG 2021 All rights reserved

status.
Declared in: LRotaryKnife_Types/BasicTypes/
LRK_typeCamStatus
LRK_typeCutPosition This structure contains the buffer in which the cut positions with
Buffer the associated position deviations are saved.
Declared in: LRotaryKnifeTypes/BasicTypes/
LRK_typeCutPositionBuffer
LRK_typeCutPosition This structure contains the internal data area for entering
BufferManagement precise cut position and cut position deviation for the print mark
correction.
Declared in: LRotaryKnife_Types/BasicTypes/
LRK_typeCutPositionBufferManagement
LRK_typeCuttingTorque This structure contains a table to enter the cutting torque via the
PrecontrolAngle knife angle.
Declared in: LRotaryKnife_Types/BasicTypes/
LRK_typeCuttingTorquePrecontrolAngle
LRK_typeCuttingTorque This structure contains a table to display the cutting torque with
PrecontrolPosition respect to the knife position.
Declared in: LRotaryKnife_Types/BasicTypes/
LRK_typeCuttingTorquePrecontrolPosition
LRK_typeGetAuxRotAxis This structure contains values to display the TO data from the
ServoValues auxiliary axis and the rotary knife axis read in the servo clock
cycle
Declared in: LRotaryKnife_Types/BasicTypes/
LRK_typeGetAuxRotAxisServoValues
LRK_typeGetCam This structure contains values to display the TO data of a cam
ServoValues read in the servo clock cycle
Declared in: LRotaryKnife_Types/BasicTypes/
LRK_typeGetCamServoValues
LRK_typeGetLV This structure contains values to display the TO data of leading
ServoValues value read in the servo clock cycle
Declared in: LRotaryKnife_Types/BasicTypes/
LRK_typeGetLVServoValues

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 146
7 Description of the data and their structure

Name of the structure Content


LRK_typeLeadingValue This structure contains the command interface to the axis FB,
Command reduced to the requirements of the leading value.
Declared in: LRotaryKnife_Types/BasicTypes/
LRK_typeLeadingValueCommand
LRK_typeLeadingValue This structure contains the command interface to the axis FB,
MeasuringInputCommand reduced to the requirements of the measuring input.
Declared in: LRotaryKnife_Types/BasicTypes/
LRK_typeLeadingValueMeasuringInputCommand
LRK_typeLeadingValue This structure contains all the required feedback signals of the
MeasuringInputOutput measuring input at the leading value
Declared in: LRotaryKnife_Types/BasicTypes/
LRK_typeLeadingValueMeasuringInputOutput
LRK_typeLeadingValue This structure contains all the required feedback signals of the
Output leading value.
Declared in: LRotaryKnife_Types/BasicTypes/
LRK_typeLeadingValueOutput
LRK_typeLeadingValueTOs This structure contains all necessary TOs of a leading value.
Declared in: LRotaryKnife_Types/BasicTypes/
LRK_typeLeadingValueTOs
LRK_typeMeasuringValue This structure contains the internal data area for the print mark
correction.
Declared in: LRotaryKnife_Types/BasicTypes/
LRK_typeMeasuringValue
LRK_typeRotaryKnife This structure contains the complete global data of the
SIMATIC Rotary Knife application.
© Siemens AG 2021 All rights reserved

Declared in: LRotaryKnife_Types/BasicTypes/


LRK_typeRotaryKnife
LRK_typeRotaryKnifeAxis This structure contains the command interface to the axis FB,
Command reduced to the requirements of the rotary knife axis.
Declared in: LRotaryKnife_Types/BasicTypes/
LRK_typeRotaryKnifeAxisCommand
LRK_typeRotaryKnifeAxis This structure contains all the required feedback signals of the
Output rotary knife axis,
Declared in: LRotaryKnife_Types/BasicTypes/
LRK_typeRotaryKnifeAxisOutput
LRK_typeRotaryKnifeInfo This structure contains the internal data area to display actual
geometrical values, converted to circumferential lengths in
[mm], actual cut position as well as binary signals for the knife
position.
Declared in: LRotaryKnife_Types/BasicTypes/
LRK_typeRotaryKnifeInfo
LRK_typeSCTrendView This structure contains all the data required to display a cam
Data (position/velocity/acceleration/
jerk) on the HMI system required.
Declared in: LRotaryKnife_Types/BasicTypes/
LRK_typeSCTrendViewData
LRK_typeUsersInterface This structure contains the interface for the user to enter
physical secondary conditions, cam profiles, manual cut
position corrections. It is also used for entering sequence
options such as new start, fast start and flying format change in
operation.
Declared in: LRotaryKnife_Types/BasicTypes/
LRK_typeUsersInterface

The following always applies when marking the structure elements:


[IN]: Values, to be provided by the user include
[OUT]: Results or feedback signals

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 147
7 Description of the data and their structure

[IO]: Values, which depending on how the block is connected, must be supplied by
the user or written by the function

7.3.1 LRK_typeAuxiliaryAxisCommand

This structure contains the command interface to the axis FB, reduced to the
requirements of the auxiliary axis.
I/O Element Data type Description
IN enable BOOL TRUE: Axis-FB activated
IN resetAxis BOOL TRUE: Reset command active
IN enableAxis BOOL TRUE: Axis active
IN jogForward BOOL TRUE: Jog operation forward active
IN jogBackward BOOL TRUE: Jog operation backward active
IN moveVelocity BOOL TRUE: Axis traverses with closed-loop velocity control
IN posAbsolute BOOL TRUE: Axis traverses to the absolute position
IN posRelative BOOL TRUE: Axis traverses to the relative position
TRUE: Axis traverses superimposed through the
IN posSuperimposed BOOL
relative position difference
IN Homing BOOL TRUE: Axis is being homed
IN stop BOOL TRUE: Axis is stopped
IN fastStop BOOL TRUE: Axis is stopped (fast)
© Siemens AG 2021 All rights reserved

IN torqueLimiting BOOL TRUE: Torque limiting activated


IN gearInRelative BOOL TRUE: Relative synchronous operation activated
IN gearInAbsolute BOOL TRUE: Absolute synchronous operation activated
IN phasing BOOL TRUE: Synchronous offset initiated
IN simulation BOOL TRUE: Switch axis into SIMULATION

7.3.2 LRK_typeAuxiliaryAxisOutput

This structure contains all of the required feedback signals of the auxiliary axis:
I/O Element Data type Description
OUT valid BOOL TRUE: Axis-FB displays valid
OUT busy BOOL TRUE: Axis-FB active
OUT error BOOL TRUE: Axis-FB in error state
OUT status WORD Status word of the axis FB
OUT commandBusy BOOL TRUE: Selected command active
OUT commandDone BOOL TRUE: Selected command completed
OUT commandAborted BOOL TRUE: Selected command canceled
OUT superimposedBusy BOOL TRUE: Superimposed command active
OUT superimposedDone BOOL TRUE: Superimposed command completed
OUT superimposedAborted BOOL TRUE: Superimposed command canceled
OUT homingBusy BOOL TRUE: Homing active
OUT homingDone BOOL TRUE: Homing completed
OUT homingAborted BOOL TRUE: Homing canceled
OUT jogSelected BOOL TRUE: Jog operation selected
OUT moveVelocitySelected BOOL TRUE: Velocity-controlled operation selected
OUT posAbsoluteSelected BOOL TRUE: Absolute positioning selected

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 148
7 Description of the data and their structure

I/O Element Data type Description


OUT posRelativeSelected BOOL TRUE: Relative positioning selected
posSuperimposed
OUT BOOL TRUE: Superimposed positioning selected
Selected
OUT homingSelected BOOL TRUE: Homing selected
OUT stopSelected BOOL TRUE: Stop selected
OUT fastStopSelected BOOL TRUE: Stop (fast) selected
OUT torqueLimitingSelected BOOL TRUE: Torque limiting selected
gearInRelative
OUT BOOL TRUE: 149Relative synchronous operation selected
Selected
gearInAbsolute
OUT BOOL TRUE: Absolute synchronous operation selected
Selected
OUT phasingSelected BOOL TRUE: Synchronous offset selected
LaxisCtrl_type
OUT diagnostics Diagnostics structure
Diagnostics
OUT toFollowingAxis BOOL TRUE: Auxiliary axis is a synchronous axis
OUT toDriveCommunicationOk BOOL TRUE: Auxiliary axis drive exists, and is switched on
OUT toEnabled BOOL TRUE: Auxiliary axis, axis-TO is switched on
OUT toError BOOL TRUE: Auxiliary axis, axis-TO is the error status
OUT toErrorReaction DINT Error response
TRUE: Auxiliary axis drive is ready and generates
OUT toDriveInOperation BOOL
torque
OUT toRestartActive BOOL TRUE: Restart at the auxiliary axis, axis-TO active
© Siemens AG 2021 All rights reserved

OUT toStandstill BOOL TRUE: Auxiliary axis drive is at a standstill


OUT toHomed BOOL TRUE: Auxiliary axis, axis-TO is homed
OUT toHomingActive BOOL TRUE: Homing is active at the auxiliary axis axis-TO
TRUE: Jog operation is active at the auxiliary axis
OUT toJogActive BOOL
axis-TO
TRUE: Synchronizing is active at the auxiliary axis
OUT toSynchronizing BOOL
axis-TO
OUT toSynchronous BOOL TRUE: The auxiliary axis, axis-TO is synchronized
OUT toActualPosition LREAL [mm] Actual position of the auxiliary axis, axis-TO
OUT toActualVelocity LREAL [mm/s] Actual velocity of the auxiliary axis, axis-TO
[mm/s²] Actual acceleration
OUT toActualAcceleration LREAL
of the auxiliary axis, axis-TO
TRUE: The modulo length is activated at the auxiliary
OUT toModuloEnabled BOOL
axis, axis-TO
OUT toModuloLength LREAL [mm] Modulo length
TRUE: The auxiliary axis axis-TO is not in the
OUT toNotPositionControlled BOOL
position-controlled mode
[mm/s] Maximum velocity
OUT toMaxVelocity LREAL
of the auxiliary axis, axis-TO
[mm/s²] Maximum acceleration
OUT toMaxAcceleration LREAL
of the auxiliary axis, axis-TO
[mm/s²] Maximum deceleration
OUT toMaxDeceleration LREAL
of the auxiliary axis, axis-TO
OUT toLeadScrew LREAL [mm] Pitch (leadscrew) per spindle revolution
OUT toMasterOffset LREAL [mm] Master offset
OUT toGearFactor LREAL [-] Gear ratio
0 Auxiliary axis is not a virtual axis
OUT toVirtualAxisMode UDINT
1 Auxiliary axis is a virtual axis
TRUE: Auxiliary axis is a virtual axis.
OUT toVirtualAxis BOOL
FALSE: Auxiliary axis is not a virtual axis.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 149
7 Description of the data and their structure

I/O Element Data type Description


TRUE: Auxiliary axis can be operated by the user.
OUT usersInterfaceActive BOOL FALSE: Auxiliary axis is operated via the standard
application.
TRUE: Auxiliary axis is in SIMULATION.
OUT toInSimulation BOOL
FALSE: Auxiliary axis is NOT in SIMULATION

7.3.3 LRK_typeAxisTOs

This structure contains all the technology objects as DB_ANY required to run the
application:
I/O Element Data type Description
Array[1..”LRK_MAX_NUMBER_OF
Array of possible leading values (axis or
IN leadingValue _LEADING_VALUES”] of
external encoder!)
LRK_typeLeadingValueTOs
IN toAuxiliaryAxis DB_ANY Interconnection of the auxiliary axis TO
IN toRotaryKnifeAxis DB_ANY Interconnection of rotary knife axis TO
toLeadingValue Interconnection of leading value
IN DB_ANY
MeasuringInput measuring input TO
IN toCam1 DB_ANY Interconnection of Cam_1 TO
IN toCam2 DB_ANY Interconnection of Cam_2 TO
© Siemens AG 2021 All rights reserved

IN toCam3 DB_ANY Interconnection of Cam_3 TO


IN toCam4 DB_ANY Interconnection of Cam_4 TO

7.3.4 LRK_typeCamCalculation

This structure contains the internal data area for controlling the cam calculation
(this is not relevant for users):
I/O Element Data type Description
IN execute BOOL Start with rising edge (0→1)
IN nextCam INT TO Cam of the cam to be currently calculated
IN actualCam INT TO Cam of the currently active cam
IN nextCamActive BOOL For a cam change, the next cam is loaded
IN actualCamActive BOOL Not used
formatLength
IN LREAL [mm] Activated format length
Activated
Type of cam to be calculated
START_CAM(0): Start cam
typeOfCam
IN typeOfCam CYCLIC_CAM(1): Cyclic cam
(DINT)
STOP_CAM(2): Stop cam

knifeCircumference
IN LREAL [mm] Activated knife circumference
Activated
startSyncAngle
IN LREAL [°] Activated start angle of the synchronous sector
Activated
endSyncAngle
IN LREAL [°] Activated end angle of the synchronous sector
Activated
IN startAngleActivated LREAL [°] Activated start angle
IN startLengthActivated LREAL [mm] Activated start length
IN stopAngleActivated LREAL [°] Activated stop angle

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 150
7 Description of the data and their structure

I/O Element Data type Description


IN stopLengthActivated LREAL [mm] Activated stop length
inflectionPoint [%] Activated center point of the format sector
IN LREAL
Activated of the cyclic cam
numberOfKnives
IN INT [-] Activated number of knives
Activated
knifeOverspeed [%] Activated over speed at the
IN LREAL
StartCutActivated start of the cutting range
knifeOverspeed [%] Activated over speed at the center of the
IN LREAL
ZeroActivated cutting range
knifeOverspeed [%] Activated over speed at the
IN LREAL
EndCutActivated end of the cutting range
cutProfileCutOut cutProfile
IN Activated motion profile from the cut
Activated (DINT)
camProfilePhase1 camProfile
IN Activated motion profile for phase 1 of the cam
Activated (DINT)
IN jerkPhase1Activated LREAL [%] Activated jerk for phase 1 of the cam
camProfilePhase2 camProfile
IN Activated motion profile for phase 2 of the cam
Activated (DINT)
IN jerkPhase2Activated LREAL [%] Activated jerk for phase 2 of the cam
cutProfileCutIn cutProfile
IN Activated motion profile into the cut
Activated (DINT)
[mm] If the web moves backwards when starting up (e.g.
to build up tension), the knife is not allowed to move
© Siemens AG 2021 All rights reserved

backwards in order to avoid damage to the mechanics.


IN startBacklashOffset LREAL
startBacklashOffset is the safety length that the material is
allowed to move backwards until the shear is a at zero
position (in the centre of the cut).
OUT done BOOL Cam calculation completed
OUT busy BOOL Cam calculation active
OUT error BOOL Cam calculation error
OUT errorId DWORD Error ID
materialPos [mm] Material position at the end of the
OUT LREAL
Segment1End 1st cam segment
materialPos [mm] Material position at the end of the
OUT LREAL
Segment2End 2nd cam segment
materialPos [mm] Material position at the end of the
OUT LREAL
Segment3End 3rd cam segment
materialPos [mm] Material position at the end of the
OUT LREAL
Segment4End 4th cam segment
materialPos [mm] Material position at the end of the
OUT LREAL
Segment5End 5th cam segment
Transfers the error message of the cam calculation to the
OUT eidCamCalculation DWORD
error message system of the FBRotaryKnife.
camCalculation
OUT BOOL Flag "Cam calculation active"
Active
camCalculation
OUT BOOL Flag "Cam calculation canceled with error"
Error
OUT boCamCalculationOK BOOL Flag "Cam calculation successfully completed"
camSegments
OUT INT Number of calculated cam segments
Calculated
Array[1.. LRK_MAX
_NUMBER_OF_
CAM_SEGMENTS]
OUT camSegmentsRK Structure of the cam segments for input in TO_Cam
of
TO_Cam_Struct_
SegmentData

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 151
7 Description of the data and their structure

I/O Element Data type Description


Array[1.. LRK_MAX
_NUMBER_OF_ Structure to display the valid cam segments in the
OUT camSegmentsRKValid
CAM_SEGMENTS] TO_Cam
of BOOL
OUT copyDone BOOL Copying the cam segments to TO_Cam completed
Array[1..4] of
OUT camState LRK_type Status of cams 1 - 4
CamStatus
Array[1..4] of
OUT camCommand LRK_type Command interface of cams 1 – 4
CamCommand
OUT nextCamDBANY DB_ANY DB-ANY of the next cam
OUT nextCamDBNumber UINT DB number of the next cam
OUT nextCamName WSTRING Name of the next cam, max. 24 characters

7.3.5 LRK_typeCamCommand

Substructure of LRK_typeCamCalculation to specifically reset the cams being used


(not relevant for users):
I/O Element Data type Description
IN resetExecute BOOL Start reset with rising edge (0 → 1)
© Siemens AG 2021 All rights reserved

IN resetRestart BOOL TRUE: Reset with restart


interpolateCam
IN BOOL Start interpolate cam with rising edge (0 → 1)
Execute

7.3.6 LRK_typeCamStatus

Substructure of LRK_typeCamCalculation to display the cam status (not relevant


for users):
I/O Element Data type Description
OUT cam DB_ANY DB number of the cam
OUT control BOOL TRUE: Cam active
OUT error BOOL TRUE: Cam error
OUT restartActive BOOL TRUE: Restart active
onlineStartValues
OUT BOOL TRUE: Online start values changed
Changed
OUT camDataChanged BOOL TRUE: Cam values changed
OUT interpolated BOOL TRUE: Cam interpolated
OUT inInterpolation BOOL TRUE: Cam is being interpolated
OUT restartDone BOOL TRUE: Cam restart completed
OUT restartBusy BOOL TRUE: Cam restart active
restartCommand
OUT BOOL TRUE: Cam restart canceled
Aborted
OUT restartError BOOL TRUE: Cam restart completed with error
OUT restartErrorId WORD Cams restart error ID
OUT interpolateCamDone BOOL TRUE: Cam interpolation has been completed
OUT interpolateCamBusy BOOL TRUE: Cam interpolation active
TRUE: Cam interpolation completed with
OUT interpolateCamError BOOL
error

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 152
7 Description of the data and their structure

I/O Element Data type Description


OUT interpolateCamErrorId WORD Cams interpolation error ID
OUT startLeadingValue LREAL [mm] Leading value at the start of the cam
OUT endLeadingValue LREAL [mm] Leading value at the end of the cam

7.3.7 LRK_typeCutPositionBuffer

This structure contains the cut position memory (this is not relevant for users):
I/O Element Data type Description
ARRAY
[0..LRK_CPB_ [mm] Buffers the deviation between the setpoint and the
cutPositionDeviation
I/O MAX-1] actual position for the cut at the time of the
Measured
measurement
OF LREAL
ARRAY
[0..LRK_CPB_
I/O CutPositionMeasured MAX-1] [mm] Buffer for the measured cut positions
OF LREAL
ARRAY
[0..LRK_CPB_
I/O cutPositionRead MAX-1] Buffer of flag "cut position read"
OF BOOL
ARRAY
[0..LRK_CPB_
I/O cutPositionEntered MAX-1] Buffer of flag "cut position entered"
© Siemens AG 2021 All rights reserved

OF BOOL

7.3.8 LRK_typeCutPositionBufferManagement

This structure contains the internal data area to enter the cut position and to
precisely control the cut position correction (this is not relevant for users):
I/O Element Data type Description
LRK_type
I/O cutPositionBuffer Data area of the cut position memory
CutPositionBuffer
I/O bufferIn INT Pointer to the next input position of buffer
I/O bufferOut INT Pointer to next output position of buffer
I/O cutCorrectionWait INT Number of cuts without cut correction
I/O bufferReadTrigger BOOL Start trigger to read the next buffer entry

7.3.9 LRK_typeCuttingTorquePrecontrolAngle

This structure contains values to enter the cutting torque via the knife angle:
I/O Element Data type Description
ARRAY
IN angle [0..LRK_MAX_CT_PRECONTROL_POINTS-1] [°] Knife angle
OF LREAL
ARRAY
IN torque [0..LRK_MAX_CT_PRECONTROL_POINTS-1] [Nm] Cutting torque
OF LREAL

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 153
7 Description of the data and their structure

7.3.10 LRK_typeCuttingTorquePrecontrolPosition

This structure contains values to display the cutting torque via the knife position:
I/O Element Data type Description
ARRAY
OUT position [0..LRK_MAX_CT_PRECONTROL_POINTS-1] [mm] Knife position
OF LREAL
ARRAY
OUT torque [0..LRK_MAX_CT_PRECONTROL_POINTS-1] [Nm] Cutting torque
OF LREAL

7.3.11 LRK_typeGetAuxRotAxisServoValues

This structure contains values to display the TO data from the auxiliary axis and
rotary knife axis read in the servo clock cycle:
I/O Element Data type Description
OUT rotaryKnifeAxisActualPosition LREAL [mm] Knife position
OUT rotaryKnifeAxisActualVelocity LREAL [mm/s] Actual velocity
OUT rotaryKnifeAxisActualAcceleration LREAL [mm/s²] Actual acceleration
OUT rotaryKnifeAxisActualCam DB_ANY [-] Actual cam in use
OUT rotaryKnifeAxisCommunicationOK BOOL Rotary knife drive available
© Siemens AG 2021 All rights reserved

OUT rotaryKnifeAxisMasterOffset LREAL [mm] Actual offset of the master axis


OUT rotaryKnifeAxisPosition LREAL [mm] knife set position
OUT rotaryKnifeAxisVelocity LREAL [mm/s] knife set velocity
OUT rotaryKnifeAxisAcceleration LREAL [mm/s²] knife set acceleration
OUT auxiliaryAxisActualPosition LREAL [mm] Actual position of the master axis
OUT auxiliaryAxisVelocity LREAL [mm/s] Velocity of the master axis
OUT auxiliaryAxisAcceleration LREAL [mm/s²] Acceleration of the master axis
OUT auxiliaryAxisPosition LREAL [mm] set position of the master axis
OUT auxiliaryAxisVelocity LREAL [mm/s] set velocity of the master axis
OUT auxiliaryAxisAcceleration LREAL [mm/s²] set acceleration of the master axis
OUT auxiliaryAxisModuloLength LREAL [mm] modulo length of the master axis
OUT auxiliaryAxisToSynchronous BOOL master axis synchronous

7.3.12 LRK_typeGetCamServoValues

This structure contains values to display the TO data of a cam read in the servo
clock cycle:
I/O Element Data type Description
[mm] Start position of the leading value
OUT leadingRangeStartPosition LREAL
range
[mm] End position of the leading value
OUT leadingRangeEndPosition LREAL
range

7.3.13 LRK_typeGetCamServoValues

This structure contains values to display the TO data of the leading value read in
the servo clock cycle:

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 154
7 Description of the data and their structure

I/O Element Data type Description


[mm] actual position of the leading
OUT actualPosition LREAL
value
[mm/s] actual velocity of the leading
OUT actualVelocity LREAL
value
OUT position LREAL [mm] set position of the leading value
OUT velocity LREAL [mm/s] set velocity of the leading value

7.3.14 LRK_typeLeadingValueCommand

This structure contains the command interface to the axis FB, reduced to the
requirements of the leading value. The effect of the signals depends on whether an
axis (A)/(SA) or an external encoder (EE) is used as leading value:
I/O Element Data type Description
A TRUE: Axis-FB activated
IN enable BOOL
EE TRUE Axis-FB activated
A TRUE: Reset command active
IN resetAxis BOOL
EE TRUE: Reset command active
A TRUE: Axis active
IN enableAxis BOOL
EE TRUE: External encoder active
A TRUE: Jog operation forward active
IN jogForward BOOL
EE no function
© Siemens AG 2021 All rights reserved

A TRUE: Jog operation backward active


IN jogBackward BOOL
EE no function
A TRUE: Axis traverses with closed-loop velocity
IN moveVelocity BOOL control
EE no function
A TRUE: Axis traverses to the absolute position
IN posAbsolute BOOL
EE no function
A TRUE: Axis traverses to the relative position
IN posRelative BOOL
EE no function
A TRUE: Axis traverses superimposed through the
IN posSuperimposed BOOL relative position difference
EE no function
A TRUE: Axis is being homed
IN homing BOOL
EE TRUE: External encoder is being homed
A TRUE: Axis is stopped
IN stop BOOL
EE no function
A TRUE: Axis is stopped (fast)
IN fastStop BOOL
EE no function
A TRUE: Torque limiting activated
IN torqueLimiting BOOL
EE no function
SA TRUE: relative gearIn active
IN gearInRelative BOOL
EE no function
SA TRUE: absolute gearIn active
IN gearInAbsolute BOOL
EE no function
SA TRUE: phasing active
IN phasing BOOL
EE no function

7.3.15 LRK_typeLeadingValueMeasuringInputCommand

This structure contains the command interface to the axis FB, reduced to the
requirements of the measuring input (MI) at the leading value.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 155
7 Description of the data and their structure

I/O Element Data type Description


IN miResetExecute BOOL TRUE: Reset (MI) activated
IN miResetRestart BOOL TRUE: Reset realized with restart
IN miExecute BOOL TRUE: Measuring input active
Measurement type
0 Measurement of the next rising edge
1 Measurement of the next falling edge
2 Measurement of the next two edges
IN miMode DINT
3 Measurement at the two edges, starting with
the rising edge
4 Measurement at the two edges, starting with
the falling edge
TRUE: Only sense the measured values within the
IN miMeasuringRange BOOL
measuring range
IN miStartPosition LREAL Initial position of the measuring range
IN miEndPosition LREAL End position of the measuring range

7.3.16 LRK_typeLeadingValueMeasuringInputOutput

This structure contains all the required feedback signals of the measuring input at
the leading value
I/O Element Data type Description
OUT miResetDone BOOL TRUE: Reset (MI) completed
© Siemens AG 2021 All rights reserved

OUT miResetBusy BOOL TRUE: Reset (MI) active


miResetCommand
OUT BOOL TRUE: Reset (MI) command canceled
Aborted
OUT miResetError BOOL TRUE: Reset (MI) error active
OUT miResetErrorId WORD Reset (MI) error number
TRUE: Measurement successfully completed
OUT miDone BOOL
Measured values are valid
OUT miBusy BOOL TRUE: Measurement is being executed
OUT miCommandAborted BOOL TRUE: Measurement task was canceled
TRUE: An error occurred during processing. Information
OUT miError BOOL relating to the error cause can be taken from
parameter "ErrorID"
OUT miErrorId WORD Error identification of the FB MC_MeasuringInput
OUT miMeasuredValue1 LREAL First measured value
OUT miMeasuredValue2 LREAL Second measured value
leadingValue
OUT BOOL TRUE: Measuring input available at the leading value
MeasuringInput

7.3.17 LRK_typeLeadingValueOutput

This structure contains all the required feedback signals of the leading value. The
significance of the signals depends on whether an axis (A) or an external encoder
(EE) is used as leading value:
I/O Element Data type Description
A TRUE: Axis-FB displays valid
OUT valid BOOL
EE TRUE: Axis-FB displays valid
A TRUE: Axis-FB active
OUT busy BOOL
EE TRUE: Axis-FB active
OUT error BOOL A TRUE: Axis-FB in error state

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 156
7 Description of the data and their structure

I/O Element Data type Description


EE TRUE: Axis-FB in error state
OUT status WORD Status word of the Axis-FB
A TRUE: Selected command active
OUT commandBusy BOOL
EE FALSE: No function
A TRUE: Selected command completed
OUT commandDone BOOL
EE FALSE: No function
A TRUE: Selected command canceled
OUT commandAborted BOOL
EE FALSE: No function
A TRUE: Superimposed command active
OUT superimposedBusy BOOL
EE FALSE: No function
A TRUE: Superimposed command completed
OUT superimposedDone BOOL
EE FALSE: No function
A TRUE: Superimposed command canceled
OUT superimposedAborted BOOL
EE FALSE: No function
A TRUE: Homing active
OUT homingBusy BOOL
EE TRUE: Homing active
A TRUE: Homing completed
OUT homingDone BOOL
EE TRUE: Homing completed
A TRUE: Homing canceled
OUT homingAborted BOOL
EE TRUE: Homing canceled
A TRUE: Jog operation selected
OUT jogSelected BOOL
EE FALSE: No function
A TRUE: Velocity-controlled operation selected
OUT moveVelocitySelected BOOL
EE FALSE: No function
© Siemens AG 2021 All rights reserved

A TRUE: Absolute positioning selected


OUT posAbsoluteSelected BOOL
EE FALSE: No function
A TRUE: Relative positioning selected
OUT posRelativeSelected BOOL
EE FALSE: No function
posSuperimposed A TRUE: Superimposed positioning selected
OUT BOOL
Selected EE FALSE: No function
A TRUE: Homing selected
OUT homingSelected BOOL
EE TRUE: Homing selected
A TRUE: Stop selected
OUT stopSelected BOOL
EE FALSE: No function
A TRUE: Stop (fast) selected
OUT fastStopSelected BOOL
EE FALSE: No function
A TRUE: Torque limiting selected
OUT torqueLimitingSelected BOOL
EE FALSE: No function
SA TRUE: relative gearIn selected
IN gearInRelativeSelected BOOL
EE no function
SA TRUE: absolute gearIn selected
IN gearInAbsoluteSelected BOOL
EE no function
SA TRUE: phasing selected
IN phasingSelected BOOL
EE no function
A TRUE: Leading value axis-TO is in the error state
OUT toError BOOL EE TRUE: Leading value external encoder-TO is in the
error state
A TRUE: Leading value is at a standstill
OUT toStandstill BOOL
EE TRUE: Leading value is at a standstill
A TRUE: Leading value axis-TO is homed
OUT toHomed BOOL
EE TRUE: Leading value external encoder-TO is homed
A TRUE: Homing is active at the leading value axis-TO
OUT toHomingActive BOOL EE TRUE: Homing is active at the leading value
external encoder-TO
A TRUE: jog is active at the leading value axis-TO
OUT toJogActive BOOL
EE no function

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 157
7 Description of the data and their structure

I/O Element Data type Description


SA TRUE: synchronizing is active at the leading value
OUT toSynchronizing BOOL axis-TO
EE no function
SA TRUE: the leading value axis-TO is synchronous
OUT toSynchronous BOOL
EE no function
OUT toActualPosition LREAL [mm] Actual position of the leading value
toActualPosition [-] Actual number of modulo cycles of actual
OUT INT
NumberModulo position of the leading value
OUT toActualVelocity LREAL [mm/s] Actual velocity of the leading value
OUT toActualAcceleration LREAL [mm/s²] Actual acceleration of the leading value
OUT toModuloEnabled BOOL TRUE: Modulo length is active at the leading value
OUT toModuloLength LREAL [mm] Modulo length
TRUE: The leading value is not in the position-
OUT toNotPositionControlled BOOL
controlled mode
OUT toDirectionPositive BOOL TRUE: the leading value moves in positive direction
OUT toDirectionNegative BOOL TRUE: the leading value moves in negative direction
A [mm/s] Maximum velocity
OUT toMaxVelocity LREAL of the leading value axis-TO
EE [mm/s] 0.0
A [mm/s²] Maximum acceleration
OUT toMaxAcceleration LREAL of the leading value axis-TO
EE [mm/s²] 0.0
A [mm/s²] Maximum deceleration
© Siemens AG 2021 All rights reserved

OUT toMaxDeceleration LREAL of the leading value axis-TO


EE [mm/s²] 0.0
OUT toLeadScrew LREAL SA [mm] leadscrew pitch value
OUT toMasterOffset LREAL SA [mm] master offset for CAM
OUT toGearFactor LREAL SA [-] gear factor
0 LeadingValueAxis is no virtual axis
OUT toVirtualMode UDINT
1 LeadingValueAxis is a virtual axis
TRUE: LeadingValueAxis is a virtual axis
OUT toVirtualAxis BOOL
FALSE: LeadingValueAxis is no virtual axis
Axis A TRUE: Leading value is an axis
OUT BOOL
AsLeadingValue EE FALSE: LeadingValue is not axis
externalEncoder A FALSE: Leading value is not an external encoder
OUT BOOL
AsLeadingValue EE TRUE: Leading value is an external encoder

7.3.18 LRK_typeLeadingValueTOs

This structure contains the possible stricture of TOs of leading value:


I/O Element Data type Description
IN toLeadingValue DB_ANY TO leading Value
IN toMeasuringInput DB_ANY TO measuring input according to leading value
TO leading value for leading value, if leading value is a
IN toSyncAxisLeadingValue DB_ANY
synchronous axis

7.3.19 LRK_typeMeasuringValue

This structure contains the internal data area for the print mark correction (not
relevant for users).

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 158
7 Description of the data and their structure

I/O Element Data type Description


IN startMeasuring BOOL Flag "Start of measured value sensing"
OUT measuredValueNew LREAL [mm] Actual measured value
OUT measuredValueOld LREAL [mm] Measured value, old
Selects the signal edge at the sensor that initiates the
Measuring measurement:
IN measuringEdge edge
LRK_RISING_EDGE(1): Rising edge at the sensor
(DINT)
LRK_FALLING_EDGE(2): Falling edge at the sensor
measuringDevice
I/O BOOL Flag "Reset at measuring input active"
ResetActive
waitForFirstCut
I/O BOOL Flag "Wait for first measured value"
Position
waitForCyclicCut
I/O BOOL Flag "Wait for cyclic measured value"
Position
cutPosition
I/O BOOL Flag "Wait for measured value"
MeasuringActive
startPosAtSensor
OUT BOOL Flag "Start position measured"
Detected
OUT applicationInAutomatic BOOL Flag "Application in the AUTOMATIC mode"
OUT cutPositionSwitchedOn BOOL Flag "Cut position measurement is active"
newCutPositionDeviation
OUT BOOL Flag "New cut position deviation entered"
Entered
OUT startPosAtSensor LREAL [mm] Start position at the sensor
© Siemens AG 2021 All rights reserved

[mm] Measured material position if the knife is at the next


OUT cutPosAtSensor LREAL
cut position
[mm] Calculated material position if the actual
OUT cutPosAtCut LREAL
measured cut is under the knife
leadingValue
OUT LREAL [mm] Modulo length of the leading value
ModuloLength
formatLength
OUT LREAL [mm] Format length valid at the time of the measurement
ActiveAtSensor
setPosNextCut
OUT LREAL [mm] Interpolated next cut position
Position
setPosTolerance
OUT LREAL [mm] Tolerance bandwidth, start of the next cut position
RangeStart
setPosTolerance
OUT LREAL [mm] Tolerance bandwidth next cut position end
RangeEnd
deltaTolerance
IN LREAL [mm] Half the tolerance bandwidth in the positive direction
RangePositive
deltaTolerance [mm] Half the tolerance bandwidth in the negative
IN LREAL
RangeNegative direction
cutPositionError
OUT INT Cut position error counter
Counter
OUT cutPositionDeviationTotal LREAL [mm] Actual total value of the current deviation
cutPositionCorrection
OUT LREAL [mm] Actual cut position correction value
Value
OUT actualMaterialPosition LREAL [mm] Actual material position
OUT lastMaterialPosition LREAL [mm] Material positioning one sampling interval beforehand
[mm] Distance moved by the material during the last
OUT deltaMaterialPosition LREAL
sampling interval
materialPosition [mm] Distance moved by the material since the last
OUT LREAL
MeasuringRelated measurement
cutPositionCorrection Flag "Print mark correction was activated in the
OUT BOOL
StartedInAutomatic AUTOMATIC mode"
cutPositionCorrection [mm] Distance between the start position at the sensor
OUT LREAL
BasicCorrectionValue and position for a cut below the knife.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 159
7 Description of the data and their structure

I/O Element Data type Description


cutPositionCorrection [mm] Calculated from
OUT LREAL
AdditiveCorrectionValue Active format length – distance to the sensor
cutPositionCorrection [mm] Calculated from
OUT LREAL
StartedInAutomaticValue basic + additive correction value
readyForStart Flag "The print mark correction has all the data for the
I/O BOOL
Deviation calculation start deviation calculation"
OUT startDeviationCalculated BOOL Flag "The start deviation was calculated"
Number of cuts that the system waits for until the start of
OUT cutCorrWaitAct INT
corrections.
OUT hilf1 LREAL [mm] Help value 1 to check the calculations
OUT hilf2 LREAL [mm] Help value 2 to check the calculations
OUT hilf3 LREAL [mm] Help value 3 to check the calculations
OUT hilf4 LREAL [mm] Help value 4 to check the calculations
OUT hilf5 LREAL [mm] Help value 5 to check the calculations
OUT hilf6 LREAL [mm] Help value 6 to check the calculations

7.3.20 LRK_typeRotaryKnife

This structure contains the complete global data of the rotary knife system:
I/O Element Data type Description
© Siemens AG 2021 All rights reserved

LRK_type Interface for the user to enter secondary physical


UsersInterface conditions, cam profiles, manual cut position corrections. It
I/O usersInterface
is also used for entering sequence options such as new
start, fast start and flying format change in operation

cutPositionBuffer LRK_type
Management CutPositionBuffer Internal data area for entering precise cut position and cut
I/O
Management position deviation for the print mark correction.
Type

camCalculation LRK_type
I/O CamCalculation Internal data area to call the cam calculation
Type

rotaryKnifeInfo LRK_type Internal data area to display actual geometrical values,


I/O RotaryKnifeInfo converted to circumferential lengths in [mm], actual cut
Type position as well as binary signals for the knife position.

measuringValue LRK_type
I/O MeasuringValue Internal data area for print mark correction.
Type
I/O formatLength LREAL [mm] Length of the cut material.
Activates the mode of operation switchover with the
I/O execute BOOL
operating mode specified in eMode.
Using mode, the mode is preselected, which is activated
with the next positive edge at the execute input.
LRK_OM_ERROR (0): Preselection ERROR
mode
LRK_OM_ DISABLE (1): Preselection DISABLE
mode
operationModes
LRK_OM_ START_POSITION (2): Preselection
I/O Mode RotaryKnife
STARTPOSITION mode
(DINT)
LRK_OM_AUTOMATIC (3): Preselection
AUTOMATIC mode
LRK_OM_MANUAL (4): Preselection MANUAL
mode
LRK_OM_SINGLE_CUT (5): Preselection
SINGLE_CUT mode
I/O startSingleCut BOOL Start of a single cut, if FB is in the SINGLE_CUT mode.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 160
7 Description of the data and their structure

I/O Element Data type Description


numberLeadingValue
I/O INT leading value selected
Selected
I/O done BOOL TRUE: Selected mode is activated.
I/O busy BOOL TRUE: Operating mode switchover is active.
I/O error BOOL Displays errors within the FBs and at the crosscutter axes.
I/O errorID DWORD Error code
Actual mode
LRK_OM_ERROR (0): ERROR mode
LRK_OM_DISABLE (1): DISABLE mode
LRK_OM_START_POSITION (2): STARTPOSITION
mode
LRK_OM_AUTOMATIC (3): AUTOMATIC
operationModes
mode
I/O state RotaryKnife
(DINT) LRK_OM_MANUAL (4): MANUAL mode
LRK_OM_SINGLE_CUT (5): SINGLE_CUT
mode
LRK_OM_NOTHING_SELECTED (8): No mode
change
LRK_OM_CHANGING (9): Mode change
active
numberLeadingValue
I/O INT Leading value active
Active
I/O automaticActive BOOL TRUE: AUTOMATIC mode is active
I/O singleCutActive BOOL TRUE: SINGLE_CUT mode is active
© Siemens AG 2021 All rights reserved

cutPosition TRUE: Correction motion for the actual cut position


I/O BOOL
CorrectionActive is active
I/O rotaryKnifeAxisActive BOOL TRUE: The rotary knife axis is activated
I/O activeCam INT Cam in synchronous operation
LRK_type
userCommand
I/O RotaryKnifeAxis User command interface rotary knife axis
RotaryKnifeAxis
Command
userConfig LAxisCtrl_type
I/O User configuration interface rotary knife axis
RotaryKnifeAxis AxisConfig
LRK_type
internalCommand
I/O RotaryKnifeAxis Internal command interface rotary knife axis
RotaryKnifeAxis
Command
internalConfig LAxisCtrl_type
I/O User configuration interface rotary knife axis
RotaryKnifeAxis AxisConfig
LRK_type
I/O outputRotaryKnifeAxis RotaryKnifeAxis Relevant data of the rotary knife axis
Output
LRK_type
userCommand
I/O AuxiliaryAxis User command interface auxiliary axis
AuxiliaryAxis
Command
userConfig LAxisCtrl_type
I/O User configuration interface auxiliary axis
AuxiliaryAxis AxisConfig
LRK_type
internalCommand
I/O AuxiliaryAxis Internal command interface auxiliary axis
AuxiliaryAxis
Command
internalConfig LAxisCtrl_type
I/O User configuration interface auxiliary axis
AuxiliaryAxis AxisConfig
LRK_type
I/O outputAuxiliaryAxis AuxiliaryAxis Relevant data of the auxiliary axis
Output
LRK_type
internalCommand
LeadingValue Internal command interface of the measuring input at the
I/O LeadingValue
MeasuringInput leading value
MeasuringInput
Command

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 161
7 Description of the data and their structure

I/O Element Data type Description


LRK_type
outputLeadingValue LeadingValue
I/O Relevant data of the measuring input at the leading value
MeasuringInput MeasuringInput
Output
LRK_type
command
I/O LeadingValue Command interface of the leading value
LeadingValue
Command
LAxisCtrl_type
I/O configLeadingValue Configuration interface of the leading value
AxisConfig
LRK_type
outputLeadingValue
I/O LeadingValue Relevant data of the leading value
Output

7.3.21 LRK_typeRotaryKnifeAxisCommand

This structure contains the command interface to the axis FB, reduced to the
requirements of the rotary knife axis:
I/O Element Data type Description
IN enable BOOL TRUE: Axis-FB activated
IN resetAxis BOOL TRUE: Reset command active
IN enableAxis BOOL TRUE: Axis active
© Siemens AG 2021 All rights reserved

IN jogForward BOOL TRUE: Jog operation forward active


IN jogBackward BOOL TRUE: Jog operation backward active
IN moveVelocity BOOL TRUE: Axis traverses with closed-loop velocity control
IN posAbsolute BOOL TRUE: Axis traverses to the absolute position
IN posRelative BOOL TRUE: Axis traverses to the relative position
TRUE: Axis traverses superimposed through the
IN posSuperimposed BOOL
relative position difference
IN Homing BOOL TRUE: Axis is being homed
IN stop BOOL TRUE: Axis is stopped
IN fastStop BOOL TRUE: Axis is stopped (fast)
IN torqueLimiting BOOL TRUE: Torque limiting activated
IN gearInRelative BOOL TRUE: Relative synchronous operation activated
IN gearInAbsolute BOOL TRUE: Absolute synchronous operation activated
IN camIn BOOL TRUE: Camming activated
IN phasing BOOL TRUE: Synchronous offset initiated
IN cam DB_ANY Cam of the actual camming
IN simulation BOOL TRUE: Switch axis in SIMULATION mode

7.3.22 LRK_typeRotaryKnifeAxisOutput

This structure contains all the required feedback signals of the rotary knife axis:
I/O Element Data type Description
OUT valid BOOL TRUE: Axis-FB displays valid
OUT busy BOOL TRUE: Axis-FB active
OUT error BOOL TRUE: Axis-FB in error state
OUT status WORD Status word of the axis FB
OUT commandBusy BOOL TRUE: Selected command active

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 162
7 Description of the data and their structure

I/O Element Data type Description


OUT commandDone BOOL TRUE: Selected command completed
OUT commandAborted BOOL TRUE: Selected command canceled
OUT superimposedBusy BOOL TRUE: Superimposed command active
OUT superimposedDone BOOL TRUE: Superimposed command completed
OUT superimposedAborted BOOL TRUE: Superimposed command canceled
OUT homingBusy BOOL TRUE: Homing active
OUT homingDone BOOL TRUE: Homing completed
OUT homingAborted BOOL TRUE: Homing canceled
OUT jogSelected BOOL TRUE: Jog operation selected
OUT moveVelocitySelected BOOL TRUE: Velocity-controlled operation selected
OUT posAbsoluteSelected BOOL TRUE: Absolute positioning selected
OUT posRelativeSelected BOOL TRUE: Relative positioning selected
posSuperimposed
OUT BOOL TRUE: Superimposed positioning selected
Selected
OUT homingSelected BOOL TRUE: Homing selected
OUT stopSelected BOOL TRUE: Stop selected
OUT fastStopSelected BOOL TRUE: Stop (fast) selected
OUT torqueLimitingSelected BOOL TRUE: Torque limiting selected
gearInRelative
OUT BOOL TRUE: Relative synchronous operation selected
Selected
gearInAbsolute
© Siemens AG 2021 All rights reserved

OUT BOOL TRUE: Absolute synchronous operation selected


Selected
OUT camInSelected BOOL TRUE: Camming selected
OUT phasingSelected BOOL TRUE: Synchronous offset selected
OUT endOfProfile BOOL TRUE: End of cam reached
LAxisCtrl_type
OUT diagnostics Diagnostics structure
Diagnostics
OUT toFollowingAxis BOOL TRUE: Rotary knife axis is a following axis.
TRUE: Rotary knife axis drive exists and is switched
OUT toDriveCommunicationOk BOOL
on
OUT toEnabled BOOL TRUE: Rotary knife axis axis-TO is switched on
OUT toError BOOL TRUE: Rotary knife axis axis-TO is in the error state
OUT toErrorReaction DINT Error response
TRUE: Rotary knife axis drive is ready and is
OUT toDriveInOperation BOOL
generating a torque
OUT toRestartActive BOOL TRUE: Restart at the rotary knife axis axis-TO active
OUT toStandstill BOOL TRUE: Rotary knife axis drive is at a standstill
OUT toHomed BOOL TRUE: Rotary knife axis axis-TO is homed
TRUE: Homing is active at the rotary knife axis
OUT toHomingActive BOOL
axis TO
TRUE: Jog operation is active at the rotary knife axis
OUT toJogActive BOOL
axis-TO
TRUE: Synchronizing is active at the rotary knife axis
OUT toSynchronizing BOOL
axis-TO
OUT toSynchronous BOOL TRUE: The rotary knife axis, axis-TO is synchronized
[mm] Actual position
OUT toActualPosition LREAL
of the rotary knife axis, axis-TO
[mm/s] Actual velocity
OUT toActualVelocity LREAL
of the rotary knife axis, axis-TO
[mm/s²] Actual acceleration
OUT toActualAcceleration LREAL
of the rotary knife axis, axis-TO

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 163
7 Description of the data and their structure

I/O Element Data type Description


TRUE: Modulo length is activated at the rotary knife
OUT toModuloEnabled BOOL
axis, axis-TO
OUT toModuloLength LREAL [mm] Modulo length
TRUE: The rotary knife axis axis-TO is not in the
OUT toNotPositionControlled BOOL
position-controlled mode
[mm/s] Maximum velocity
OUT toMaxVelocity LREAL
of the rotary knife axis, axis-TO
[mm/s²] Maximum acceleration
OUT toMaxAcceleration LREAL
of the rotary knife axis, axis-TO
[mm/s²] Maximum deceleration
OUT toMaxDeceleration LREAL
of the rotary knife axis, axis-TO
OUT toLeadScrew LREAL [mm] Spindle pitch (leadscrew)
OUT toMasterOffset LREAL [mm] Offset of the master at the start of the cam
OUT GearFactor LREAL [-] Gear ratio
0 Rotary knife axis is not a virtual axis
OUT toVirtualAxisMode UDINT
1 Rotary knife axis is a virtual axis
TRUE: Rotary knife axis is a virtual axis.
OUT toVirtualAxis BOOL
FALSE: Rotary knife axis is not a virtual axis.
TRUE: Rotary knife axis can be operated by the
user.
OUT usersInterfaceActive BOOL
FALSE: Rotary knife axis is operated via the standard
application.
TRUE: Auxiliary Axis in SIMULATION
© Siemens AG 2021 All rights reserved

OUT toInSimulation BOOL


FALSE: Auxiliary Axis not in SIMULATION

7.3.23 LRK_typeRotaryKnifeInfo

This structure contains calculation results and display information, relevant for the
user, about the state of the rotary knife.
I/O Element Data type Description
[mm] Format length, obtained when the knife runs in
OUT fsymech LREAL
synchronism with the material web
[mm] Length of the range in which the knife moves in
OUT synchronousSector LREAL
synchronism with the material web
[mm] Length of the range in which the knife may make
OUT formatSector LREAL
correction motion to achieve the format length
OUT cutPosActual LREAL [mm]Position of the material web at the last cut
[mm] Activated format length to load a cam after the next
OUT formatLengthActivated LREAL
cut
OUT formatLengthActive LREAL [mm] Format length of the cam that is presently active
[mm] Activated start position of the knife referred to the
OUT startPosActivated LREAL
knife axis
[mm] From this distance between material to the cutting
OUT startLength LREAL point, the rotary knife starts to synchronize to
materialspeed
[mm] Activated stop position of the knife referred to the
OUT stopPosActivated LREAL
knife axis
[mm] After the cut, the rotary knife has time to move to
OUT stopLength LREAL
stop position until the material has moved this distance.
[mm] Position of the knife referred to the knife axis within
OUT middlePosActivated LREAL
the format sector with minimum/maximum knife velocity
[mm] Start position of the synchronous sector referred to
OUT startSyncPos LREAL
the knife axis

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 164
7 Description of the data and their structure

I/O Element Data type Description


[mm] End position of the synchronous sector referred to
OUT endSyncPos LREAL
the knife axis
OUT toLeadingValueActive DB_ANY Leading value active
toLeadingValueMeasuring
OUT DB_ANY Measuring input active
InputActive
toLeadingValueSyncAxisL
OUT DB_ANY Leading value of leading value active
eadingValueActive
numberOfLeadingValues
OUT INT Number of possible leading values
Entered
changeLeadingValueActiv
OUT BOOL Change of leading value active
e
TRUE: Leading value is a real or virtual posAxis
OUT axisAsLeadingValue BOOL
FALSE: No posAxis specified as leading value
externalEncoderAsLeadin TRUE: Leading value is an external encoder
OUT BOOL
gValue FALSE: No external encoder specified as leading value
OUT leadingValuePosition LREAL [mm] Actual value of the leading value position
measuredValueStartposAt
OUT LREAL [mm] Actual value of the start position at the sensor
Sensor
OUT knifeInFormatSector BOOL Flag "Knife in the format sector"
OUT knifeInSynchronousSector BOOL Flag "Knife in the synchronous sector"
knifeInSynchronousSector
OUT BOOL Flag "Knife in the synchronous sector (old value)"
Old
SyncSectorNotReadOutB
© Siemens AG 2021 All rights reserved

OUT BOOL Flag to read out in MAIN task if knife is in sync sector
yMain
OUT cut BOOL Flag "Cut"
OUT factorMmToDegree LREAL [°/mm] Conversion factor mm → °
OUT lengthPerAngularDegree LRAEL [mm/°] Conversion factor° → mm
OUT accelerationTorque LREAL [Nm] Actual acceleration torque of the precontrol
OUT rotaryKnifeGearFactor LREAL [-] Gear ratio rotary knife axis (real gear)
OUT activeCam DB_ANY Active cam
Flag "Automatic mode interrupted"
OUT productionInterrupted BOOL When TRUE, then the rotary knife axis is disabled and
can be moved for troubleshooting purposes.
Flag "Automatic mode continued"
OUT productionContinued BOOL When TRUE, then the rotary knife axis is at the position
that it had before the interruption; automatic operation is
resumed when the leading axis starts.
LRK_SPR_RELATE_SYNC_PROFILE_TO_TIME(1)
syncProfileRefer
OUT syncProfileReference LRK_SPR_RELATE_SYNC_PROFILE_TO_LEADING_V
enceType(DINT)
ALUE(2)
Only relevant if sRotaryKnifeInfo.eSyncProfileReference =
RELATE_SYNC_PROFILE_TO_LEADING_VALUE
DIRECT(2)
syncLengthType The value from rotaryKnifeInfo.syncLength is accepted as
OUT syncLengthType
(DINT) synchronous length
When sRotaryKnifeInfo.eSyncProfileReference =
RELATE_SYNC_PROFILE_TO_TIME
EFFECTIVE(1) No significance
OUT syncLength LREAL [mm] Synchronous length
OUT extrapolationTime LREAL [ms] Time constant for extrapolating the set points
interruptPositionMaterialA [mm] Saved position of the leading axis (material!) at the
OUT LREAL
xis time of interruption
interruptPositionAuxiliaryA [mm] Saved position of the help axis at the time of
OUT LREAL
xis interruption
OUT interruptPositionRotaryKni LREAL [mm] Saved position of the rotary knife axis at the time of

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 165
7 Description of the data and their structure

I/O Element Data type Description


feAxis interruption
interruptPositionMasterOff
OUT LREAL [mm] Offset to the master position at the start of the cam
set
interruptPositionCamming [mm] position of rotary knife axis related to actual position
OUT LREAL
FollowingValue of leading value
InterruptPositionCamming [mm] Saved position of the leading axis at the instant in
OUT LREAL
MasterValue time of the interruption referred to the start of the cam
[mm] Position within the cut length with maximum knife
OUT MaxSpeedPosition LREAL
velocity
interruptProductionActivat
OUT BOOL Flag "Interruption process active"
ed
continueProductionActivat
OUT BOOL Flag "Continuation process active"
ed
LRK_typeCuttin
Output structure of the specified angular value as position
OUT cuttingTorquePrecontrol gTorquePreCont
values [optional]
rolPosition
[Nm] Torque pre control value of the cutting torque
OUT cuttingTorque LREAL
calculation [optional]
[Nm] Torque pre control as sum of the cutting torque
OUT totalTorque LREAL
calculation and accelerating torque [optional]
OUT cuttingTorqueActive BOOL Flag "Cutting torque pre control active" [optional]
OUT cuttingTorqueError BOOL Flag "Cutting torque precontrol error" [optional]
OUT cuttingTorqueErrorID DWORD Error ID of the cutting torque pre control [optional]
© Siemens AG 2021 All rights reserved

TRUE: In the synchronous sector, a virtual axis


constantVelocityAtCutActi is switched as leading value
OUT BOOL
ve FALSE: In the synchronous sector, the measuring wheel
is switched as leading value
[mm] Position of the virtual axis if a switchover to a
OUT positionVASwitchOn LREAL
constant velocity (MOVE) is made
[mm] Position of the virtual axis when switching back into
OUT positionVASwitchOff LREAL
the actual velocity (GEARING)
[mm] Position of the leading value if a switch is made to a
OUT positionLVSwitchOn LREAL
constant velocity (MOVE)
[mm] Position of the leading value when switching back to
OUT positionLVSwitchOff LREAL
the actual velocity (GEARING)
[mm] Length difference of the virtual axis between
OUT lengthDiffVA LREAL
switching over from MOVE to GEARING - and back.
[mm] Length difference of the measuring wheel between
OUT lengthDiffLV LREAL
switching over from MOVE to GEARING - and back.
constantVelocityLengthCo
OUT LREAL [mm] Length error caused by switching over to MOVE
rrectValue
constantVelocityLengthNo
OUT LREAL [mm] Length error value that cannot be corrected (error!)
tCorrectValue
constantVelocityLengthCo
OUT LREAL [mm] Available length (time) to correct the length error
rrectLength
errorConstantVelocityLen
OUT BOOL Flag "Invalid value for length error detected"
gthCorrectValue
startConstantVelocityLeng
OUT BOOL Start flag "Length correction with correction cam"
thCorrect
[mm/s] Velocity value for pre controls (calculated in
OUT preControlVelocity LREAL
SERVO)
[mm/s²] Acceleration value for pre controls (calculated in
OUT preControlAcceleration LREAL
SERVO)
[mF] Sum of all of the capacitances connected to the DC
OUT dcLinkCapacityTotal LREAL
link
auxiliaryAxisSuperimpose
OUT LREAL [mm] Total offset of the superimposed motion
dPosition

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 166
7 Description of the data and their structure

I/O Element Data type Description


OUT cam1DB DB_ANY DB number Cam1
OUT cam1Name WSTRING Name of Cam1
OUT cam2DB DB_ANY DB number Cam2
OUT cam2Name WSTRING Name of Cam2
OUT cam3DB DB_ANY DB number Cam3
OUT cam3Name WSTRING Name of Cam3
OUT cam4DB DB_ANY DB number Cam4
OUT cam4Name WSTRING Name of Cam4
OUT firstCutDone BOOL TRUE: first cut in AUTOMATIC mode done
OUT cutPosAtCut LREAL [mm] servo clock exactly leading value position at cut
OUT cutPosAtCutOld LREAL [mm] leading value position at cut old
OUT deltaCutPos LREAL [mm] calculated cut length (servo clock exactly !)
OUT knifeHorizontalVelocity LREAL [mm/s] horizontal component of set velocity of rotary knife
knifeActualHorizontalVelo [mm/s] horizontal component of actual velocity of rotary
OUT LREAL
city knife
[-] Gear ratio auxiliary axis (virtual gear between leading
OUT auxiliaryAxisGearFactor LREAL
value and auxiliary axis)
© Siemens AG 2021 All rights reserved

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 167
7 Description of the data and their structure

7.3.24 LRK_typeSCTrendViewData

This structure contains all the data necessary to display a cam


(position/velocity/acceleration/jerk) on the HMI system.
I/O Element Data type Description
Array[0..LRK_NUMBER_
OUT masterPos OF_POINTS_READ_CAM_ [mm] Master position values
UPPER_LIM] of LREAL
Array[0..LRK_NUMBER_
OUT slavePos OF_POINTS_READ_CAM_ [mm] Slave position values
UPPER_LIM] of LREAL
Array[0..LRK_NUMBER_
OUT slaveVel OF_POINTS_READ_CAM_ [mm/s] Slave velocity values
UPPER_LIM] of LREAL
Array[0..LRK_NUMBER_
OUT slaveAcc OF_POINTS_READ_CAM_ [mm/s²] Slave acceleration values
UPPER_LIM] of LREAL
Array[0..LRK_NUMBER_
OUT slaveJerk OF_POINTS_READ_CAM_ [mm/s³] Slave jerk values
UPPER_LIM] of LREAL
OUT slavePosMin LREAL [mm] Minimum slave position
OUT slavePosMax LREAL [mm] Maximum slave position
OUT slaveVelMin LREAL [mm/s] Minimum slave velocity
OUT slaveVelMax LREAL [mm/s] Maximum slave velocity
© Siemens AG 2021 All rights reserved

OUT slaveAccMin LREAL [mm/s²] Minimum slave deceleration


OUT slaveAccMax LREAL [mm/s²] Maximum slave acceleration
OUT slaveJerkMin LREAL [mm/s³] Minimum slave jerk
OUT slaveJerkMax LREAL [mm/s³] Maximum slave jerk

7.3.25 LRK_typeUsersInterface

This structure contains the interface for the user to enter physical secondary
conditions, cam profiles, manual cut position corrections. It is also used for entering
sequence options such as new start, fast start and flying format change in
operation (this must be parameterized by the user):
I/O Element Data type Description
[mm] Effective geometrical circumference of the
IN knifeCircumference LREAL
measuring roll (circumference)
[°] Starting angle of the synchronous sector (cutting
range), i.e. the angle where the knife enters the
IN startSyncAngle LREAL
material, the center point is defined to be 0°
(170.0° - 360.0°).
[°] End angle of the synchronous sector, i.e. the
IN endSyncAngle LREAL angle where the knife exits the cutting range
(0.0° - 170.0 °).
[°] start angle of the knife (referred to 0°) (start angle of the
start cam). This value is different from the stopAngle if the
IN startAngle LREAL
machine is to be a pendulum shear. Otherwise the two
parameters are the same.
[°] stop angle of the knife (referred to 0°) (stop angle of the
stop cam). This value is different from the startAngle, if this
IN stopAngle LREAL
is to be a pendulum shear. Otherwise, the two parameters
are the same.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 168
7 Description of the data and their structure

I/O Element Data type Description


[%] Center point of the format sector of the cyclic cam.
inflectionPoint < 50.0 % (min, 10%):
Shifts the center point towards endSyncAngle, i.e. the
absolute value of the acceleration increases in the first
IN inflectionPoint LREAL motion segment after the cut.
inflectionPoint > 50.0 % (max. 90%): Shifts the center point
towards startSyncAngle, i.e. the absolute value of the
acceleration increases in the second motion segment after
the cut.
IN numberOfKnives INT Number of knives (max. 6)
Motion profile from the cut:
LRK_CUTPT_CONST (0): Linear cut profile
for over speed = 0.0
Polynomial cut profile
for over speed > 0.0
cutProfile LRK_CUTPT_LINEAR (1): Linear cut profile
IN cutProfileCutOut
(DINT) for over speed = 0.0
Cut profile with constant
acceleration
for over speed > 0.0
LRK_CUTPT_COSINE (2): act as
LRK_CUTPT_CONST (0)
Motion profile, phase 1:
LRK_CAMPT_LINEAR (0): Curve profile with constant
acceleration
LRK_CAMPT_JERK (1): Curve profile with constant
© Siemens AG 2021 All rights reserved

acceleration and
camProfile jerk limiting
IN camProfilePhase1
(DINT) LRK_CAMPT_POLY_5 (2): Motion profile as fifth order
polynomial
LRK_CAMPT_SINE (3): Motion profile as sinusoidal
curve
LRK_CAMPT_POLY_6 (4): Motion profile as sixth order
polynomial
[%] Jerk limiting component in phase 1 (only for
camProfilePhase1 = JERK).
IN jerkPhase1 LREAL The valid value range lies between 1.0 and 100.0. The
phase where the acceleration is not constant is obtained for
100%. The absolute jerk depends on the machine velocity.
Motion profile, phase 2:
LRK_CAMPT_LINEAR (0): Curve profile with constant
acceleration
LRK_CAMPT_JERK (1): Curve profile with constant
acceleration and
camProfile jerk limiting
IN camProfilePhase2
(DINT) LRK_CAMPT_POLY_5 (2): Motion profile as fifth order
polynomial
LRK_CAMPT_SINE (3): Motion profile as sinusoidal
curve
LRK_CAMPT_POLY_6 (4): Motion profile as sixth order
polynomial
[%] Jerk limiting component in phase 2 (only for
camProfilePhase2 = JERK).
IN jerkPhase2 LREAL The valid value range lies between 1.0 and 100.0. The
phase where the acceleration is not constant is obtained for
100%. The absolute jerk depends on the machine velocity.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 169
7 Description of the data and their structure

I/O Element Data type Description


Motion profile into the cut:
LRK_CUTPT_CONST (0): Linear cut profile
for over speed = 0.0
Polynomial cut profile
cutProfile for over speed > 0.0
IN cutProfileCutIn
(DINT) LRK_CUTPT_LINEAR (1): behavior like
LRK_CUTPT_CONST (0)
LRK_CUTPT_COSINE (2): Cosine cut profile
over speed is calculated from
start angle
[mm] Distance between the cut position and the sensor to
IN distanceToSensor LREAL
identify material and print mark.
IN firstCutCorrection LREAL [mm] Cut offset for start cut
[mm] If the web moves backwards when starting up (e.g. to
build up tension), the knife is not allowed to move
backwards in order to avoid damage to the mechanics.
IN startBacklashOffset LREAL
startBacklashOffset is the safety length that the material is
allowed to move backwards until the shear is a at zero
position (in the centre of the cut).
IN toStartPosVel LREAL [mm/s] Velocity when positioning to the start position.
[%] Overspeed at the transition point to the
knifeOverspeed
IN LREAL synchronous sector (startSyncAngle) (-20.0% to
StartCut
20.0%) referred to the synchronous speed.
[%] Overspeed at the center position of the
IN knifeOverspeedZero LREAL synchronous sector (0°) (-20.0% - 20.0%) referred
to the synchronous speed.
© Siemens AG 2021 All rights reserved

[%] Overspeed at the end point of the synchronous


knifeOverspeedEndCu
IN LREAL sector (endSyncAngle) (-20.0% to 20.0%)
t
referred to the synchronous speed.
[mm] Maximum correction value for cutting position
IN cpCorrectionMaximum LREAL correction. This ensures that, for example, print marks that
are not necessary for the cutting process are not cut off.
[mm] Half the tolerance bandwidth for sharpness of the
cpDeltaTolerance cutting position detection in positive direction. This ensures
IN LREAL
RangePositive that the cross cutter reacts to the correct print marks and
omits any existing print marks for other processes.
[mm] Half tolerance bandwidth for sharp range of the cutting
cpDeltaTolerance position detection in negative direction. This ensures that
IN LREAL
RangeNegative the sheeter reacts to the correct print marks and omits any
existing print marks for other processes.

adjustCutPosition [mm] Coarse correction value of the manual cutting position


IN LREAL correction in positive direction (larger default value that is
PositiveValue added to the correction)
[mm] Fine correction value of manual cutting position
trimmCutPosition
IN LREAL correction in positive direction (smaller default value that is
PositiveValue
added to the correction)
[mm] Coarse correction value of manual cutting position
adjustCutPosition
IN LREAL correction in negative direction (larger default value
NegativeValue
subtracted from the correction)

trimmCutPosition [mm] Fine correction value of manual cutting position


IN LREAL correction in negative direction (smaller default value
NegativeValue subtracted from the correction)
r64CutPosition [mm/s] Velocity value of the superimposed cut position
IN LREAL
CorrectionVelocity correction
IN cutCorrWait INT Number of cuts without cut position correction
[%] Shift of the start for correction motion
shiftCorrection
IN LREAL to the cut position correction within the
StartPos
format sector as a percentage of the format sector
Flag restart, must be set by the user - is reset by the
I/O restart BOOL
application

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 170
7 Description of the data and their structure

I/O Element Data type Description


Flag "Quick start"
TRUE: At the start, the application immediately begins
IN quickStart BOOL with cutting
FALSE: Application first starts to cut at the specified
start position
Flag "Enable format length change when the machine is
formatLength running"
IN BOOL
ChangePossible TRUE: Format length change possible
FALSE: Format length change locked
A positive edge starts a format length change (if the format
I/O switchCAM BOOL
length change is enabled!)
Selects the signal edge at the sensor that initiates the
measuring measurement:
IN measuringEdge
Edge (DINT) LRK_RISING_EDGE(1): Rising edge at the sensor
LRK_FALLING_EDGE(2): Falling edge at the sensor
cutPosition
IN BOOL Flag "Cut position correction on"
CorrectionOn
adjustCutPosition
IN BOOL Flag “Start coarse correction positive of the cut position”
Positive
trimmCutPosition
IN BOOL Flag “Start fine correction positive of the cut position”
Positive
adjustCutPosition
IN BOOL Flag “Start coarse correction negative of the cut position”
Negative
trimmtCutPosition
IN BOOL Flag "Start fine correction negative of the cut position"
© Siemens AG 2021 All rights reserved

Negative
Start cut to separate "scrap" and "product" in the
IN cleanCut BOOL
SAMPLE_CUT mode
IN torquePreControlOn BOOL Flag "Precontrol of the accelerating torque on"
totalInertiaOf [kgm2] Moment of inertia of the total system
IN LREAL
Rotary knife system (rolls, knife, gear and motors!)
Changes over the calculation method to control the
accelerating torque

LRK_PCM_GET_VAL_FROM_CAM_DIRECT (0):
The actual acceleration value to calculate the accelerating
torque is read from the slave data (SecondDerivedValue) of
the synchronous object.

LRK_PCM_GET_VAL_FROM_CAM_WITH_LOOK_AHEAD
torquePreControl PreControlMode (1):
IN
Mode (DINT) The actual acceleration value to calculate the accelerating
torque is determined from the actual cam. The actual
machine velocity is compensated.
This method also allows an acceleration value to be
determined in the future (under the assumption that material
motion remains constant!) in order to compensate for any
delays occurring in the set point channel.
The lookahead time is set in variable
usersInterface.r64LookAHead.

IN lookAHead LREAL [µs] Lookahead time


Flag to interrupt the automatic mode when the leading value
IN interruptProduction BOOL
is stationary
IN continueProduction BOOL Flag to continue the automatic mode after an interruption

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 171
7 Description of the data and their structure

I/O Element Data type Description


Sets the coupling mode selected in the synchronous
configuration

LRK_LVCM_SET_POINT (0):
Set point value coupling
leadingValue
leadingValue
IN CouplingMode LRK_LVCM_ACTUAL_VALUE_WITH_
CouplingMode
(DINT) EXTRAPOLATION (1):
Actual value coupling with extrapolation

LRK_LVCM_ACTUAL_VALUE_WITHOUT_
EXTRAPOLATION (2):
Actual value coupling without extrapolation
IN syncLength LREAL [mm] Synchronizing length
[ms] Extrapolation time constant
IN extrapolationTime LREAL (only valid for usersInterface.eLeadingValueCouplingMode =
LRK_LVCM_ACTUAL_VALUE_WITH_EXTRAPOLATION)
TRUE = virtual axis as leading value in the synchronous
boConstantVelocity sector
IN BOOL
AtCut FALSE = actual value as leading value in the synchronous
sector
Settings for defining the start length

LRK_SSLM_AUTOMATIC (0):
The system automatically calculates the optimum start
startStopLength length according to minimum torque requirement.
© Siemens AG 2021 All rights reserved

IN startLengthMode
Mode (DINT)
LRK_SSLM_BY_VALUE (1):
Users specify the start length
(startLength)

[mm] From this distance between material to the cutting


IN startLength LREAL
point, the rotary knife starts to synchronize to materialspeed
Settings for defining the stop length

LRK_SSLM_AUTOMATIC (0):
The system automatically calculates the optimum stop
startStopLength length according to minimum torque requirement.
IN stopLengthMode
Mode (DINT)
LRK_SSLM_BY_VALUE (1):
Users specify the stop length
(stopLength)

[mm] After the cut, the rotary knife has time to move to
IN stopLength LREAL
stop position until the material has moved this distance.
LRK_type Table "Torque with respect to the knife angle"
cuttingTorque
IN cuttingTorque
Precontrol [optional]
PrecontrolAngle
cuttingTorque Flag "Precontrol of the cutting torque on"
IN BOOL
PreControlOn [optional]
cuttingTorque Number of currently used interpolation points of the
IN PreControlActive INT "Torque with respect to the knife angle" table
Points [optional]
gearInRatio Numerator of gearing ratio between leading value and
IN DINT
Numerator auxiliary axis.
gearInRatio Denominator of gearing ratio between leading value and
IN DINT
Denominator auxiliary axis.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 172
8 Using the application

8 Using the application


This application serves to simply get to know the functionality of the FB RotaryKnife
as it is used in any user application and should be called. This application is
prepared for the demonstration case; however, it can be directly adapted to suit the
user hardware.
As not each user requires the full functional scope of the application, it is split up
into various packages with different versions:
• TestFB_RotaryKnife
can run from CPU S7-1511T
• TestFB_RotaryKnife_DCLPC
can run from CPU S7-1515T
• TestFB_RotaryKnife_Vmax (not tested at depth in the field!)
can run from CPU S7-1516T

Preconditions
The following preconditions must be fulfilled to operate the application example:
• The required SIMATIC TIA project is available online in the appropriate
SIMATIC S7-15xxT CPU.
© Siemens AG 2021 All rights reserved

• All devices are connected with PROFINET and switched on.


• The Startdrive project was loaded to the SINAMIC S120 drive (demonstration
case!)
• The SIMATIC S7-15xxT is switched into the "Run" state.
• WinCC Advanced is installed on the PC/PG.

WinCC Advanced requires the appropriate authorization. Authorization is


Note required for a minimum of 256 power tags.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 173
8 Using the application

8.1 TestFB_RotaryKnife
8.1.1 Operating instructions for the application

Execute the steps listed in the following table in sequence to demonstrate the
application example:

Table 8-1 Operating instructions to demonstrate the TestFB application SIMATIC RotaryKnife
No. Action Comment
1. Start screen after calling the WinCC
RT user interface
© Siemens AG 2021 All rights reserved

2. Switch the rotary knife to manual


Select the "MAN" mode
Press the "Execute" button
(edge 0 → 1!)
Home the rotary knife axis using the
"Home" button
(The axis is homed if "Home" is lit!)
Then reset the "Home" button!

3. Move the rotary knife to the start


position
Select the "STARTPOS" mode
Press the "Execute" button
(edge 0 → 1!)

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 174
8 Using the application

No. Action Comment


4. Set the rotary knife to Quickstart
Press the "Quickstart" button

Enable cut length changes in


operation
Press the "CLCP" button
(CutLengthChangePossible)
In the automatic mode, a new cut
length entered for "CutLength" is
accepted by activating the
"switch_CAM" button.
(edge 0 → 1!)

5. Activating material motion


Switch on the material axis
Select velocity value
Select acceleration
Start motion
© Siemens AG 2021 All rights reserved

(Stop motion)
6. Switching the rotary knife into the
automatic mode
Select the "AUTO" mode
Press the "Execute" button
(edge 0 → 1!)

7. Changing the cut length in operation

The change is made by entering a


new cut length

As well as the command to switch


over to the cam corresponding to the
new cut length

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 175
8 Using the application

No. Action Comment


8. Further, accelerating torque pre
control can be activated
(Can be monitored in RK_Data5
Acceleration Torque)

The cutting torque pre control can


also be activated.
(The values are specified and
monitored in
RK_CuttingTorquePreControl

9. We hope you are successful in


checking out the application
© Siemens AG 2021 All rights reserved

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 176
9 Explanation of the operating/parameterizing and diagnostic screen forms

9 Explanation of the
operating/parameterizing and diagnostic
screen forms
9.1 TestFB_RotaryKnife
9.1.1 Operating/overview screen form RK operating

14 13
Fig. 9-1 RK-Operating 12 11 10

2 9
© Siemens AG 2021 All rights reserved

3 8
4

5 7

6 15

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 177
9 Explanation of the operating/parameterizing and diagnostic screen forms

Table 9-1 Explanation of the sub screen forms for RK-Operating


No. Sub screen form
1. Standard operation of LRK_RotaryKnife

The following are entered and displayed here


• Cut length
• Selected mode
• And for SingleCut, the start of the cut

2. Extended operation of LRK_RotaryKnife


© Siemens AG 2021 All rights reserved

The following are entered and displayed here


• Restart
• Quickstart
• CLCP (CutLengthChangePossible)
• The load signal for the new cam
• The possibility of traversing controlled into the cut for a poor encoder
signal.
• Activation of the accelerating torque pre control
• Interruption of the automatic mode in order to switch the drives into a
no-current condition.
• Seamless continuation of the automatic mode after interruption.
• Activation of the cutting torque pre control
• Activation of the DC-Link voltage pre control (see Documentation of
AddOn DCLPC)

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 178
9 Explanation of the operating/parameterizing and diagnostic screen forms

No. Sub screen form


3. Extended display area of the LRK_RotaryKnife

The following are displayed here


• Whether the knife is in the format sector
• Whether the knife is in the synchronous sector
• Whether the knife is in the cutting sector
• Whether interruption of production was activated
• Whether continuation of production was activated
• Whether production is interrupted
• Whether production has been continued
© Siemens AG 2021 All rights reserved

4. Button to activate/deactivate the print mark correction

When print mark correction is activated, the cut position can be changed by a coarse and a fine
correction value +/-

5. Operating/display area of the leading value

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 179
9 Explanation of the operating/parameterizing and diagnostic screen forms

No. Sub screen form


6. "State" display area

7. Operating/display area of the Rotary Knife axis

Operation is only possible in the "MANUAL" mode. In all other operating modes, this area is used
© Siemens AG 2021 All rights reserved

to display actual values.

8. Operating/display area of the virtual help axis

Operation is only possible in the "MANUAL" mode. In all other operating modes, this area is used
to display actual values.

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 180
9 Explanation of the operating/parameterizing and diagnostic screen forms

No. Sub screen form


9. "Graphic" display area
© Siemens AG 2021 All rights reserved

Legend: _______ Rotary knife velocity [mm/s] Y axis right


_______ Rotary knife position [mm] Y axis left
_______ Material velocity [mm/s] Y axis, right
_______ Auxiliary axis velocity [mm/s] Y axis right

10. Display of the operating state of the cams

11. Display of activated and active cutting length

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 181
9 Explanation of the operating/parameterizing and diagnostic screen forms

No. Sub screen form


12. "ErrorID" and "State"

The following are displayed here


• Error messages of the LRK_RotaryKnife in ErrorID
• The actual operating state of LRK_RotaryKnife in State

13. Standard display of the LRK_RotaryKnife

The following are displayed here


• Whether the initiated change to the operating mode has been
completed
• Whether the initiated change to the operating mode is processed
© Siemens AG 2021 All rights reserved

• Whether an error occurred when changing the operating state.

14. Extended display LRK_RotaryKnife

The following are displayed here


• Whether the automatic mode is active
• Whether the single cut mode was activated
• Whether the print mark correction is activated
• Whether the rotary knife axis is active

15.

Selects the rotary knife block that should be monitored now!


(At the present time, operation with several rotary knife blocks in one CPU is not possible!)

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 182
9 Explanation of the operating/parameterizing and diagnostic screen forms

9.1.2 Parameterizing screen form RK-Data1 (UI-1)

Fig. 9-2 RK-Data1 (UI-1)

1 2
_

3
© Siemens AG 2021 All rights reserved

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 183
9 Explanation of the operating/parameterizing and diagnostic screen forms

Table 9-2 Explanation of the sub screen forms for RK-Data1 (UI-1)
No. Sub screen form
1. Enter the numerical user parameter
© Siemens AG 2021 All rights reserved

The rotary knife system must be restarted in order to change parameter "KnifeCircumference"!

2. Display of the actual operating state of the Rotary Knife

3.

Selects the rotary knife block that should be monitored now!


(At the present time, operation with several rotary knife blocks in one CPU is not possible!)

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 184
9 Explanation of the operating/parameterizing and diagnostic screen forms

9.1.3 Parameterizing screen form RK-Data2 (UI-2)

Fig. 9-3 RK-Data2 (UI-2)

1
4

3
5
© Siemens AG 2021 All rights reserved

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 185
9 Explanation of the operating/parameterizing and diagnostic screen forms

Table 9-3 Explanation of the sub screen forms for RK-Data2 (UI-2)
No. Sub screen form
1. Acceleration pre control parameters

2. Specifying the start/stop behavior


Either

In this case, the system calculates the start/stop length so that synchronization strictly runs
© Siemens AG 2021 All rights reserved

monotonically
or

The user specifies the values!

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 186
9 Explanation of the operating/parameterizing and diagnostic screen forms

No. Sub screen form


3. Print mark correction parameters

In addition to entering the parameters required for print mark correction, print mark correction can
also be operated here
• Switch on/switch off
© Siemens AG 2021 All rights reserved

If switched on, then


• The print mark correction is adapted in the positive direction
• The print mark correction is finely adapted in the positive direction
• The print mark correction is adapted in the negative direction
• The print mark correction is finely adapted in the negative direction

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 187
9 Explanation of the operating/parameterizing and diagnostic screen forms

No. Sub screen form


4. Parameters to define synchronization behavior

5. Parameters to define the gearing ratio between leading value and auxiliary axis
© Siemens AG 2021 All rights reserved

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 188
9 Explanation of the operating/parameterizing and diagnostic screen forms

9.1.4 Parameterizing screen form RK-Data4 (MV_CPB)

2
Fig. 9-4 RK-Data4 (MV-CPB)

4
© Siemens AG 2021 All rights reserved

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 189
9 Explanation of the operating/parameterizing and diagnostic screen forms

Table 9-4 Explanation of the sub screen forms for RK-Data4 (MV-CPB)
No. Sub screen form
1. Numerical displays of the measured value sensing
© Siemens AG 2021 All rights reserved

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 190
9 Explanation of the operating/parameterizing and diagnostic screen forms

No. Sub screen form


2. Binary displays of the measured value sensing
© Siemens AG 2021 All rights reserved

3. Operating interface of the print mark correction

Here is another option of operating the print mark correction


• Switch on/switch off
If switched on, then
• The print mark correction is adapted in the positive direction
• The print mark correction is finely adapted in the positive direction
• The print mark correction is adapted in the negative direction
• The print mark correction is finely adapted in the negative direction

The parameters required to adapt and finely adapt are provided in operating screen
form RK-Data2 (UI-2), in area "Cut Position Correction Data".

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 191
9 Explanation of the operating/parameterizing and diagnostic screen forms

No. Sub screen form


4. Display of the measured value buffer
© Siemens AG 2021 All rights reserved

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 192
9 Explanation of the operating/parameterizing and diagnostic screen forms

9.1.5 Parameterizing screen form RK-Data5 (RKI_CC)

2
Fig. 9-5 RK-Data5 (RKI-CC)

3
© Siemens AG 2021 All rights reserved

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 193
9 Explanation of the operating/parameterizing and diagnostic screen forms

Table 9-5 Explanation of the sub screen forms for RK-Data5 (RKI-CC)
No. Sub screen form
1. Displays for the rotary knife information
© Siemens AG 2021 All rights reserved

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 194
9 Explanation of the operating/parameterizing and diagnostic screen forms

No. Sub screen form


2. Displays of the cam calculation
© Siemens AG 2021 All rights reserved

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 195
9 Explanation of the operating/parameterizing and diagnostic screen forms

No. Sub screen form


3. Display of the actual steps of all state change chains of the FB LRK_RotaryKnife

10

11

12

13
© Siemens AG 2021 All rights reserved

14

15

16

17

18

19

20

21

No. Steps of the state change chain


1. Check Parameter (in error state!)
2. Error To Disable
3. Disable To Error
4. Disable To Disable
5. Disable To Startposition
6. Disable To Manual
7. Startposition To Error
8. Startposition To Disable
9. Startposition To Startposition

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 196
9 Explanation of the operating/parameterizing and diagnostic screen forms

No. Sub screen form


10. Startposition To Automatic
11. Startposition To SIngleCut
12. Automatic To Disable
13. Automatic To Startposition
14. Manual To Error
15. Manual To Disable
16. Manual To Startposition
17. SIngleCut To Startposition
18. Cut Length Change
19. INterrupt Production
20. COntinue Production
21. SIngleCut
© Siemens AG 2021 All rights reserved

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 197
9 Explanation of the operating/parameterizing and diagnostic screen forms

9.1.6 Parameterizing screen form RK-CuttingTorquePreControl

Fig. 9-6 RK-CuttingTorquePreControl

3 4
© Siemens AG 2021 All rights reserved

Table 9-6 Explanation of the sub screen forms for RK-CuttingTorquePreControl


No. Sub screen form
1. Activating/deactivating the cutting torque pre control

2. Specifying torque values for the cutting torque pre control

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 198
9 Explanation of the operating/parameterizing and diagnostic screen forms

No. Sub screen form


3. Parameters for the precontrol behavior

4. Displays of the cutting torque precontrol


© Siemens AG 2021 All rights reserved

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 199
9 Explanation of the operating/parameterizing and diagnostic screen forms

9.1.7 Display screen form RK-Read CAM P

Fig. 9-7 RK-Read CAM P

2
© Siemens AG 2021 All rights reserved

Table 9-7 Explanation of the sub screen forms for RK-Read CAM P
No. Sub screen form
1. Select the cam to be displayed and start visualization

2. Position characteristic of the selected cam

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 200
9 Explanation of the operating/parameterizing and diagnostic screen forms

9.1.8 Display screen form RK-Read CAM VAJ

Fig. 9-8 RK-Read CAM VAJ

3
© Siemens AG 2021 All rights reserved

Table 9-8 Explanation of the sub screen forms for RK-Read CAM VAJ
No. Sub screen form
1. Velocity characteristic of the selected cam

2. Acceleration characteristic of the selected cam

3. Jerk characteristic of the selected cam

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 201
10 Appendix

10 Appendix
10.1 Service and support
Industry Online Support
Do you have any questions or need assistance?
Siemens Industry Online Support offers round the clock access to our entire
service and support know-how and portfolio.
The Industry Online Support is the central address for information about our
products, solutions and services.
Product information, manuals, downloads, FAQs, application examples and videos
– all information is accessible with just a few mouse clicks:
support.industry.siemens.com

Technical Support
The Technical Support of Siemens Industry provides you fast and competent
support regarding all technical queries with numerous tailor-made offers
– ranging from basic support to individual support contracts.
Please send queries to Technical Support via Web form:
support.industry.siemens.com/cs/my/src
© Siemens AG 2021 All rights reserved

SITRAIN – Digital Industry Academy


We support you with our globally available training courses for industry with
practical experience, innovative learning methods and a concept that’s tailored to
the customer’s specific needs.
For more information on our offered trainings and courses, as well as their
locations and dates, refer to our web page:
siemens.com/sitrain

Service offer
Our range of services includes the following:
• Plant data services
• Spare parts services
• Repair services
• On-site and maintenance services
• Retrofitting and modernization services
• Service programs and contracts
You can find detailed information on our range of services in the service catalog
web page:
support.industry.siemens.com/cs/sc

Industry Online Support app


You will receive optimum support wherever you are with the "Siemens Industry
Online Support" app. The app is available for iOS and Android:
support.industry.siemens.com/cs/ww/en/sc/2067

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 202
10 Appendix

10.2 Industry Mall

The Siemens Industry Mall is the platform on which the entire siemens Industry
product portfolio is accessible. From the selection of products to the order and the
delivery tracking, the Industry Mall enables the complete purchasing processing –
directly and independently of time and location:
mall.industry.siemens.com

10.3 Application support


Siemens AG
Digital Industries
Factory Automation
Production Machines
DI FA PMA APC
Frauenauracher Str. 80
© Siemens AG 2021 All rights reserved

91056 Erlangen, Germany


mailto: tech.team.motioncontrol@siemens.com

10.4 Related literature


Table 10-1 Related literature
Topic
\1\ Siemens Industry Online Support
https://support.industry.siemens.com
\2\ Download page of this entry
https://support.industry.siemens.com/cs/ww/en/view/109757260

\3\

10.5 Change documentation


Table 10-2 Change documentation
Version Date Modifications
V1.0.0 09/2018 First edition
V1.1.0 10/2019 Function enhancements:
• Cosine cutting curve
• Switching between up to five leading values
• also, synchronous axis as leading value possible
V1.2 01/2021 Documentation partially revised
04/2021 Revise relevant chapters for print mark correction and
interrupt production

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 203
10 Appendix
© Siemens AG 2021 All rights reserved

SIMATIC S7-1500T Rotary Knife


Entry-ID: 109757260, V1.2, 04/2021 204

You might also like