Manual Simotion Flying Saw v2 1
Manual Simotion Flying Saw v2 1
Copyright
Reproduction, transmission or use of this document or its contents is not permitted
without express written authority. Offenders will be liable for damages. All rights,
including rights created by patent grant or registration or a utility model or design,
are reserved.
General Notes
Note The standard applications are not binding and do not claim to be complete
regarding the circuits shown, equipping and any eventuality. The standard
applications do not represent customer-specific solutions. They are only intended
to provide support for typical applications. You are responsible in ensuring that
the described products are correctly used. These standard applications do not
relieve you of the responsibility in safely and professionally using, installing,
operating and servicing equipment. When using these standard applications, you
recognize that we cannot be made liable for any damage/claims beyond the
liability clause described. We reserve the right to make changes to these
standard applications at any time without prior notice. If there are any deviations
between the recommendations provided in these standard applications and other
Siemens publications - e.g. catalogs - then the contents of the other documents
have priority.
Any and all further rights and remedies against Siemens AG for whatsoever legal reason, shall
be excluded; this shall refer in particular to claims for loss of production, loss of use, loss of
orders or profit and other direct, indirect or consequential damage.
The aforesaid shall not apply if liability is mandatory, e.g. in accordance with the Product
Liability Act, in cases of intent, gross negligence by directors and officers of Siemens AG or in
the case of willful hiding of a defect.
These limitations of liability shall also apply for the benefit of the Siemens AG's subcontractors,
suppliers, agents, directors, officers and employees.
This Contract shall be subject to German law if customer’s place of business is in Germany. If
customer’s place of business is outside of Germany the Contract shall be subject to Swiss law.
The application of the UN Convention on Contracts for the International Sale of Goods (CISG)
shall be excluded.
If the application is provided in return for payment the alternative shall apply which fits the
respective business case:
If not explicitly stated otherwise below, the "General License Conditions for Software Products
for Automation and Drives for Customers with a Seat or Registered Office outside of Germany",
valid at the time of sale, are applicable.
For questions regarding this application please contact us at the following e-mail address:
mailto:tech.team.motioncontrol@siemens.com
Qualified personnel
In the sense of this documentation qualified personnel are those who are
knowledgeable and qualified to mount/install, commission, operate and
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
service/maintain the products which are to be used. He or she must have the
Copyright Siemens AG 2014 All rights reserved
Foreword
Standard SIMOTION application
A standard SIMOTION application comprises the following components:
One or several software objects or code blocks with defined interfaces that can
be simply integrated into other software projects – without requiring any
significant programming – in order to fulfill a precisely defined technology task
there. (Core functions)
A software project based on a demonstration case to show the functionality
and possible uses of the standard application - including the associated
WinCCflex screen for demonstration. (Demonstration project)
A document to describe the functionality, background information and handling
of the standard application. Further, its use as demonstration model is
explained. (Description)
Document structure
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
The documentation of this application is sub-divided into the following main section:
Copyright Siemens AG 2014 All rights reserved
Index of contents
Prerequisites and objectives .................................................................................... 10
1 Basic information ................................................................................ 11
1.1 Prerequisites ...................................................................................... 11
1.1.1 Target group ....................................................................................... 11
1.1.2 Knowledge base ................................................................................. 11
1.1.3 Technical environment ....................................................................... 11
1.2 Objective and purpose of this standard application ........................... 11
1.2.1 Task description ................................................................................. 11
1.2.2 Solution using the standard application SIMOTION Flying Saw ........ 12
1.2.3 Advantages of the standard application SIMOTION Flying Saw ....... 13
1.3 Components included in the standard application ............................. 14
2 Areas of use ....................................................................................... 15
2.1 Applications ........................................................................................ 15
2.1.1 Available controls ............................................................................... 15
2.1.2 Tasks that can be implemented using the core functions .................. 15
2.1.3 Properties and features of the core “flying saw” functions ................. 16
2.2 Principle of operation.......................................................................... 17
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
CP_CALCULATED............................................................................. 17
CP_MEASURED ................................................................................ 18
2.2.2 Synchronizing ..................................................................................... 19
2.3 Application environment ..................................................................... 21
2.3.1 Real Machine (sUsersInterface.boRealMachine = TRUE!) ............... 21
2.3.2 Demo application (sUsersInterface.boRealMachine = FALSE!) ........ 22
3 Structure and function ........................................................................ 23
3.1 Design of the "flying saw" ................................................................... 23
3.1.1 General design ................................................................................... 23
3.2 Operating modes of the application SIMOTION Flying Saw ............. 24
The application example as demonstration system .............................................. 26
4 Installing the hardware and software ................................................. 27
4.1 Regarding your safety ........................................................................ 27
4.1.1 Safety information and instructions .................................................... 27
4.1.2 Responsibilities of the operator .......................................................... 28
4.2 Hardware structure and mounting/installation .................................... 29
4.3 Installing the standard SIEMENS software ........................................ 31
4.4 Downloading the user program and parameterizing the drive in
the SIMOTION D demonstration case ............................................... 31
4.4.1 De-archiving the SIMOTION project .................................................. 31
4.4.2 Resetting SIMOTION D435 to the factory settings ............................ 31
4.4.3 Setting the PG/PC interface ............................................................... 31
4.4.4 Setting the Ethernet address of the PG/PC ....................................... 32
4.4.5 Loading the hardware configuration after the factory setting ............. 32
4.4.6 Loading the SIMOTION project of the standard application .............. 33
5 Operator control of the application example ...................................... 34
5.1 Structure overview .............................................................................. 35
5.2 Brief instructions ................................................................................. 36
6 Operatoration of the TestFB application ............................................ 42
6.1 Structure overview .............................................................................. 43
6.2 Brief instructions ................................................................................. 44
8.2.1 Overview............................................................................................. 60
8.2.2 Enumeration types ............................................................................. 61
8.2.3 Data Structures .................................................................................. 62
sFlyingSawInfoType ........................................................................... 66
8.3 FBFlyingSaw ...................................................................................... 69
8.3.1 Block name ......................................................................................... 69
8.3.2 Task .................................................................................................... 69
8.3.3 Integration in the run-time system ...................................................... 69
8.3.4 Graphic representation of the block ................................................... 70
8.3.5 Block parameters ............................................................................... 71
Input / output parameters ................................................................... 71
Output parameters ............................................................................. 71
8.3.6 Functionality ....................................................................................... 73
Checking the input parameters and parameterization of the
technology settings that are absolutely required (mandatory)75
Axis monitoring ................................................................................... 75
8.3.7 Error messages .................................................................................. 76
8.4 FBCutPositionDetection ..................................................................... 79
8.4.1 Block name ......................................................................................... 79
8.4.2 Task .................................................................................................... 79
8.4.3 Integration in the run-time system ...................................................... 79
8.4.4 Graphic representation of the block ................................................... 80
8.4.5 Block parameters ............................................................................... 80
8.4.6 Functionality ....................................................................................... 81
CP-MEASURED ................................................................................. 81
CP-CALCULATED ............................................................................. 82
8.4.7 Error messages .................................................................................. 82
8.5 Measured value memory system blocks used in the flying saw
application .......................................................................................... 83
8.5.1 Deleting and resetting the measured value memory
FBCutPositionBufferReset ................................................................. 83
8.5.2 Entries in the measured value memory FBCutPositionBufferIn ......... 84
8.5.3 Reading out the measured value memory
FBCutPositionBufferRead .................................................................. 85
Objective
The part of this document should provide the user with the following information:
The objective and purpose of this standard application
List several applications
Indicate the performance limits of this standard application.
Subjects discussed
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
1 Basic information The necessary prerequisites to use the standard “flying saw”
application.
The use of this application.
Software components and code blocks of the standard “flying saw”
application.
2 Uses Tasks and properties of the core functions of the standard “flying
saw” application
Exclusions and restrictions
Hardware components required
3 Structure and function Type of design and physical quantities for which the “flying saw”
core function can be used.
Type of cams that the “flying saw” core functions calculate and
used.
Operating states at the FlyingSaw FB.
1 Basic information
1.1 Prerequisites
1.1.1 Target group
To use this standard application, please make yourself familiar with SCOUT,
technology objects and technology function calls in SIMOTION.
This document does not discuss these a.m. topics and limits itself to provide
information and data how to use this standard application.
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Copyright Siemens AG 2014 All rights reserved
This Flying Saw application can be used unmodified, only at a SIMOTION D- and
SINAMICS-demonstration case.
A continuous web - fed with an infeed unit - shall be cut into identical parts and
sections. Preventing any impacts on the cut the cutting equipment must be
synchronized on the line speed of the web. This allows the web to be cut “on the
fly”.
cutting has been completed, the cutting equipment moves back into start position
where it is waiting for the next cutting position.
Web drive
or
measuring system
The SIMOTION Flying Saw application introduced in this document helps the user
to meet the assigned requirements for developing a flying saw solution as quickly
as possible.
The standard application includes a function block which controls the flying saw
and implements the motion control part via parameters corresponding to the
particular application.
The user program only has to control the material feed and to supply the core
function with the correct parameters.
Quick programming
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Copyright Siemens AG 2014 All rights reserved
The standard application SIMOTION Flying Saw enables simple and quick
implementation of flying saw functionalities.
The core functions provided in the standard application can be copied into the
user’s application. Addional and necessary engineering steps will be explained in
this maual.
Possibility of adaptation
The standard application contains all source codes and comments. Thus existing
core functions can quickly and simply be extended with customized functions.
The second project (TestFB) enables the user to get quick access to the standard
application Flying Saw (FB-FlyingSaw) as well as obtaining know how for
commissioning and diagnosting the SIMOTION Flying Saw application.
The TestFB program is limited to the following tasks:
Presentation of FB FlyingSaw from a user’s point of view.
Controlling of all interfaces of the standard application.
Visualization of all relevant data of standard application.
Graphical display of synchronous operations.
In this way the core functions of the standard SIMOTION Flying Saw application
can quickly and simply be integrated into user projects.
2 Areas of use
2.1 Applications
2.1.1 Available controls
The standard SIMOTION Flying Saw application can be applied on any SIMOTION
control system.
The core functions provide interfaces for “on the fly” processes at:
Cutters
Perforators
Embossers
Sealers
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Copyright Siemens AG 2014 All rights reserved
Saws
Drilling machines
Painting machines
Stamping units
Definition In the following text, the flying saw term is used to represent all of the other
conceivable machine versions.
The term saw is used for all parts of the machine where direct contact is made to
the material when “cutting”.
The following properties and features were implemented and can be used in a user
program:
Precisely synchronizing at a specific position
The flying saw is synchronized with the material, so it reaches its velocity at a
parameterized position.
Flying axis
During cutting, the flying saw and the material move with the same velocity.
Adjustable rest position of the flying saw
The rest position of the flying saw can be adjusted between two cuts using a
parameter.
“Cutting” at a print mark
The cutting position is detected using a probe and print mark.
“Cutting” to length
The cut position is determined by comparing the length of material that has
been transported since the last cut with the selected cut length.
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Immediate cut
Copyright Siemens AG 2014 All rights reserved
E.g. this feature is required when cutting wound paper cores (formers). The
wound material is skewed and therefore the measured material web velocity
(with a measuring wheel) does not match to the resulting core (former) velocity.
To determine the cutting postion the block has two different techniques:
CAUTION The selection can be changed only when the application is switched off
and the material axis or leading value is switched off.
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Copyright Siemens AG 2014 All rights reserved
CP_CALCULATED
As a matter of principle the material is allways cut at position „cutlength“.
Precondition:
– The material axis is generated as a linear axis without modulo length.
”OnTheSpotCut“ is possible at any time when the Flying Saw (cutting equipment) is
at standstill.
CP_MEASURED
The positions, onwhich the material shall be cut, are detected with a measuring
sensor in front of the Flying Saw then extrapolated to the synchronizing position
and memorized in a ring buffer. The Flying Saw application will read these position
values from the buffer, starts the synchronizing procedure and deletes the postion
values when the cut has been completed at that position.
Precondition:
– The material axis is generated as a linear axis with modulo length.
– A measuring sensor is mandatory when CPM_DETECTED is activated.
– A ring buffer system is activated.
CPM_DETECTED:
– A measuring sensor is mandatory!
– With the activation of the automatic mode the position of the master value
is set to position = 0.
– The application is waiting for the first measuring value, extrapolates this
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Copyright Siemens AG 2014 All rights reserved
value to the synchronizing position and writes it into the ring buffer.
– Next the measuring system will be prepared for the next measuring value
by extrapolation with the cutlength and activated with a sensivity range.
– Once a measuring value is detected this value will be extrapolated to the
synchronizing position and written into the ring buffer.
– In case a measured value was not detected, an error counter will be
incremented. The last measured value will be increased by the cutlength
and extrapolated to the synchronizing position. This value will be written as
the new measured value into the ring buffer.
– After the next measured value has successfully been detected the error
counter will be set to zero. The counter overflow is monitored.
CPM_SIMULATED:
– No measuring sensor is necessary.
– With the activation of the automatic mode the position of the master value
will be set to position = 0.and automatically the first „measured value“ will
be extrapolated to the synchronizing position and written into the ring
buffer.
– All further „measured values“ will be determined by adding „cutlength“ and
extrapolation to the synchronizing position. The resulting value will be
written into the ring buffer.
“OnTheSpotCuts” to this effect are not possible. As all cuts have to be written into
the ring buffer, these values can only be executed after a certain material run time
which is determined by the synchronizing length and the distance between the
sensor and the Flying Saw.
2.2.2 Synchronizing
Position-related
– BY_LEADING_AXIS_VALUE
– SYMMETRIC
Time-related synchronization
Synchronization motion is obtained from the dynamic values parameterized at the
axis (velocity, acceleration and jerk).
With dynamic values big enough, the saw will wait for the start of the
synchronization motion and then accelerates to a velocity higher than the material
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
With dynamic values too small, the saw won’t be able to start and the error
message „Sync not possible“ appears.
Position-related synchronization
The characteristic of the synchronizing movement is dependent on “SyncLength”
entered.
If SYMMETRIC is selected, the distance is dimensioned in that way that
symmetrical synchronization will be achieved without any overspeed. The cutting
equipment starts with the synchronization motion so that the synchronous point
only “catches-up” when the material velocity is reached. In this case the
“SyncLength” is set set to 2 x ( SyncPos – StartPos ).
If the „SyncLength“ is selected too short, the saw will not be able to start and the
error message „Sync not possible“ appears.
If the „SyncLength“ is selected too long or the saw doesn’t reach startposition in
time, the saw will not be able to start and the error message „for Sync to late“
appears. In this case the saw will cut automatical the next reachable integer
multiple of cutlength. (e.g. cutlength = 400mm, the next possible cutlength will be
800mm, 1200mm …!) If the operator doesn’t agree with these lengths, he can use
the “on the spot cut” function.
CAUTION The User has to select the real application environment by using the bit
sUsersInterface.boRealMachine.
Fig. 2-3: Application environment of the standard application SIMOTION Flying Saw
Real Machine
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Copyright Siemens AG 2014 All rights reserved
PG / PC
SIMOTION D
Encoder
Motor
Sensor
Material web
Motor
Encoder
A SIMOTION system can be used to control the material feed and the drive of the
flying saw. As an alternative, it is also possible to couple the flying saw via a
machine encoder.
In this environment modulo parameters of the flying saw axis will be deactivated.
Fig. 2-4 Application environment of the standard application SIMOTION Flying Saw
Demo application
PG / PC
SIMOTION D
Encoder
Sensor
Motor
Encoder
In this environment the FlyingSaw axis will be configured as a modulo axis with:
modulo length = EndPos + 500.0
startposition = – (distance to sensor +50.0).
The bases of the flying saw application for example consists of a spindle axis, on
which the cutting unit is mounted.
The following physical variables of the flying saw are in use (see white boxes):
Sensor
Synchronous range
r64EndPos
Copyright Siemens AG 2014 All rights reserved
[mm]
Synchronous range
The synchronous range and therefore the cutting range are located between the
synchronous position (sUsersInterface.r64SyncPos) and synchronous range end
(sUsersInterface.r64EndSyncPos).
44
Manual
Manual
11 00
Disable
Disable Error
Error
22
Startposi-
Startposi-
tion
tion
33
Auto-
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Auto-
Copyright Siemens AG 2014 All rights reserved
matic
matic
These operating modes are available in the user program to implement machine
functions and can be transferred to the FBFlyingSaw function block via input
parameters.
The function block displays the currently reached state using output parameters.
Objective
Section B of this document provides the reader with the following
The prerequisites to use this standard SIMOTION application as a
demonstration system
Preparations and parameterizing operations are explained
Describes the steps necessary when presenting this standard application.
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Copyright Siemens AG 2014 All rights reserved
Subjects discussed
Chap. Title Contents
4 Installing the hardware Safety information and instructions
and software Components and their interconnections required for the
presentation
Installation of standard SIEMENS software
Downloading the user program in SIMOTION D435
Downloading drive parameters in SINAMICS
5 Operator control of the Brief instructions on how to use the demonstration system
application example Detailed operating instructions
Classification
There are three different stages regarding safety information/instructions. These
are designated by the same pictogram. They differ by the signal word.
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Correct use
The correct use of the application components exclusively relates to the open-loop
and closed-loop control of test set-ups that were adapted to the power/performance
of the application components. In order that the application functions perfectly, the
required standard SIMATIC components as well as also the necessary hardware
and software components must be installed.
The company/person operating the system may only make changes to the
application components after having received written authorization from the
suppliers.
Misuse
The following are considered to be misuse:
Inadmissible loads applied to the application components.
Any application deviating from the use specified above, or applications that go
beyond the specified use.
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Copyright Siemens AG 2014 All rights reserved
Qualification of personnel
The operating company/person may only deploy trained, authorized and reliable
personnel. In so doing, all safety regulations must be carefully observed.
Personnel must receive special instructions regarding the hazards/dangers that
can occur.
Ethernet
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Copyright Siemens AG 2014 All rights reserved
Communications
Ethernet Cross Link Cable The cable is used to establish a connection
between the HMI system (PG/PC) and the
SIMOTION D435 training case.
HMI system
PG/PC with MPI interface -
The PG/ PC is used as the HMI display screen.
Procedure
Please proceed as follows to configure and install the hardware components for the
application example:
Table 4-2 Hardware configuration and mounting
No. Action Comment
1 Connect the Ethernet interface of your PG/PC with the
lower Ethernet interface IE2 (contact X130) of
SIMOTION D435 with an Ethernet Cross-Link cable.
2 Connect the SIMOTION D training case to the power
supply.
3 Power-up all of the equipment/devices.
In order to obtain a fixed starting point for the description on how to download the
user program into the demonstration case, restore the factory setting at the
demonstration case as described below:
Power-down the demonstration case
Set the mode switch SIMOTION D435 to setting 3 (MRES)
Power-up the demonstration case
When RDY lights green and STOP lights orange, set the SIMOTION D435
mode switch to the 0 position (RUN)
RDY and RUN are green
If the factory setting has been established, (restored), the SIMOTION D435 has the
standard IP address 169.254.11.22 at the Ethernet interface IE2 (X130).
Prerequisites
The following prerequisites must be fulfilled to use the application example:
The SIMOTION project is provided online in SIMOTION D435.
The parameterization for the applications has been downloaded into
SINAMICS (also included in the SIMOTION project!).
All of the devices are powered-up.
The SIMOTION D435 has been switched into the “Run” state using the online
function of SIMOTION SCOUT.
At least WinCC Flexible 2008 SP3 Upd2 is installed on the PC/PG.
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Copyright Siemens AG 2014 All rights reserved
Note WinCCflex requires the appropriate authorization. Authorization for at least 256
power tags is required.
HOME SETTINGS
Manual-Mode
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Copyright Siemens AG 2014 All rights reserved
MANUAL STATUS
Automatic-Mode
AUTO TECHNOLOGY
Table 5-1: Brief instructions to demonstrate/present the “flying saw” application example
No. Action Comment
1 Call the following file
"C:\Siemens\Step7\S7Proj\
FlyingSaw_V20\HmiEs\Project_1\
Project_1.WinCCStation.fwx".
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Copyright Siemens AG 2014 All rights reserved
2 If the connection to the CPU was able to Check that your PG/PC is set to correct IP-Address.
be established, the screen form appears
at the top left - mode: Idle.
( 169.254.11.23 with "subnet mask“ 255.255.0.0 ).
HOME button.
Copyright Siemens AG 2014 All rights reserved
18
Prerequisites
The following prerequisites must be fulfilled to use the application example:
The SIMOTION project is provided online in SIMOTION D435.
The parameterization for the applications has been downloaded into
SINAMICS (also included in the SIMOTION project!).
All of the devices are powered-up.
The SIMOTION D435 has been switched into the “Run” state using the online
function of SIMOTION SCOUT.
At least WinCC Flexible 2008 SP3 Upd2 is installed on the PC/PG.
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Copyright Siemens AG 2014 All rights reserved
Note WinCCflex requires the appropriate authorization. Authorization for at least 256
power tags is required.
FS-Operating
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Copyright Siemens AG 2014 All rights reserved
Table 6-1: Brief instructions to demonstrate/present the TestFB-Application SIMOTION Flying Saw
Nr. Aktion Anmerkung
1 Start screen after activation of WinCC RT
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Copyright Siemens AG 2014 All rights reserved
(Edge 0 1!)
Copyright Siemens AG 2014 All rights reserved
(Stop movement)
Two instances of SIMOTION SCOUT are opened in order to copy the LFSLib
library. The application example is opened or dearchived in the first window and a
new user project is created in the second window, which already includes the
global library folder.
Using XML import, the LFSLib library and the FS_Progs program unit will be linked
to the existing user project.
Table 7-2: Importing the XML file
No.
1. For the XML import, the LIBRARIES
folder must be selected in the user
project and then executed by right-
clicking. Using the Import object
menu item, a window opens in
which the path of the XML file must
be specified.
The LFSLib library comprises several program units, whereby the unit
FS_Template contains the functionality of the application in the form of function
blocks as well as data type definitions. The reference to the library is established in
the unit FS_Progs as well as the instances of the function blocks and the data
structures will be created. In addition, the unit includes the calls of the instances in
those programs which must be integrated in the task system of the user project.
The programs are not able to run in the library and may have to be adapted to the
particular application (startupFlyingSaw).
After the library has been copied / imported in the library folder, the program unit
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
FS_Progs must be copied from the library folder into the program folder of the
Copyright Siemens AG 2014 All rights reserved
No.
4.
5.
When using the program unit FS_Progs, the user must not link the library by
himself. The library is linked using the FS_Progs unit.
User program units requiring access to library-functions, library-types, library-
function blocks and to data of the standard application, must be linked with the
program unit FS_Progs in the interface section.
INTERFACE
USES FS_Progs // Linking the standard application
END_INTERFACE
Variable access
To access variables of the SIMOTION Flying Saw application, the following
instances are set-up in the global data area in the FS_Progs program unit:
VAR_GLOBAL CONST
NUMBER_OR_FLYING_SAWS : INT := 1; // number of flying saws
END_VAR
VAR_GLOBAL
gasFlyingSaw : ARRAY[0.. NUMBER_OR_FLYING_SAWS -1] OF sFlyingSawType;
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Copyright Siemens AG 2014 All rights reserved
To use the SIMOTION Flying Saw application, the following technology objects
must be set-up and interconnected as described..
Please take into account the way the cutposition (CP) has to be detected and the
way the actual application is used (to control a real machine or for test pruposes at
a demo case):
Object Description
All of the other parameters should be set
corresponding to the drive and encoder data.
Mechanical For the parameter “distance per spindle revolution”
system enter that distance the “Flying Saw”(cutting
equipment) is travelling along the web within one
motor revolution.
Complete other parameters corresponding to the
geometry and the machine design.
Pre-assignment Please set this parameter corresponding to the drive
dynamics
Limits Please set this parameter corresponding to the
system specifications
Referencing Please set this parameter corresponding to the
encoder.
(The template assumes a referenced axis. If an
incremental encoder is to be used, then the axis
must be referenced in the MANUAL mode before
additional operating modes are selected.)
Monitoring Please set this parameter corresponding to the
functions, closed- system specifications
loop control
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Copyright Siemens AG 2014 All rights reserved
Flying
Material
1:n Saw
Axis
Axis
External Encoder
or Positioning Gearing Gearing axis
axis
The material axis (MaterialAxis) is the reference value for the flying saw. This
reference value can be detected in two different ways:
1. The material path is controlled by the SIMOTION drive system which also
controls the flying saw. In this case, a TO axis is provided. The synchronous
connection with the axis of the flying saw (FlyingSawAxis) should have access
to the setpoints of the material path which are existing in the system (setpoint
coupling)
2. The speed of the material is measured with a machine encoder. In this case,
there are no additional setpoints available. The synchronous connection with
the flying saw (FlyingSawAxis) can only access the actual values of the
machine encoder (actual value coupling).
The FlyingSawAxis as “synchronous axis” is connected to the MaterialAxis in a 1:n
(gearing) synchronous interconnections.
The technology objects and synchronous interconnections (shown in the diagram
above) must be set-up and configured by the user in SIMOTION SCOUT.
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Copyright Siemens AG 2014 All rights reserved
Figure 7-2: Configuration of the synchronous interconnections between the master axis
(material web) and flying saw as setpoint coupling
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Copyright Siemens AG 2014 All rights reserved
or
Select the TO ExternalEncoder „MaterialEncoder“ as master (leading) axis
Select actual value with extrapolation as coupling type.
The time constant required for extrapolation is determined by using the
calculation tool on the Utility&Applications CD.
(Scout\CD14\SRC\4_TOOLS\ExtrapolationTimeCalculation).
Figure 7-3: Configuration of the synchronous interconnection between the master value
(machining encoder) and the flying saw as actual value coupling
Table 7-7
Function / Variable Value
Dynamic parameters During synchonizing and desynchronizing the dynamic
parameters of the time-related synchronization should be
selected subject to the condition that the axis must not
reach its dynamic limits.
The user only has to adapt the parameters to the real machine.
If several instances of the flying saw are used in the user program then the
parameter assignments must be correspondingly supplemented.
The function block of the flying saw core functions can be called after the
integration in the user program.
The call is already prepared in the program unit FS_Progs in the mainFlyingSaw
program. The user only has to integrate this program into one of the cycle tasks
(preferably into the background task).
Program Description
Content
The section “Program Description” is only then of interest if you wish to
expand/adapt your application by using the technology templates..
Objective
This part of the documentation should
Explain to readers the special features/issues when generating a program
Describe in detail the program structure of the flying saw FB
Illustrate and describe important program elements
Provide information and instructions on how this template can be adapted.
Prerequisite
Before possibly expanding this template it is helpful to read the chapters in Section
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Copyright Siemens AG 2014 All rights reserved
1 to 3 and 7 in order to learn the basic functions and applications of the template.
Before you make changes to the template, please observe the information and
Note warnings listed in the following Chapter as well as the associated restrictions
regarding support!
8 Program Description
8.1 Information and warnings
Before making changes
Before you start modifying components included in the core functions, please
inform yourself about the component features in the ST/MMC documentation.
Uncontrolled, incorrect changes and modifications to core functions may result in
death and severe bodily injury!
Enumeration types
Enumeration type declarations are provided for a part of the input and output
parameters of the function blocks. Various modes and properties can be pre-set
using these parameters.
Data structures
The function blocks of the SIMOTION Flying Saw application are in some cases
parameterized via data structures that should be set-up for the particular block.
Structures with the corresponding parameters are provided for each block.
eOperationModesFlyingSawType
This enumeration type contains enumerators to select and display the operating
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Copyright Siemens AG 2014 All rights reserved
eCutPositionGenerationModesType
This enumerator type defines how the cutting position is determined:
Element Description
CP_MEASURED The cutting position is determined using sensor and print mark or is calculated
and stored into the CutPositionBuffer.
CP_CALCULATED The cutting position keeps constant, the material position is reduced by cutlength
after each cut. This method doesn’t need any stored position data.
eCutPositionMeasureModesType
This enumerator type defines how the measured value is detected:
Element Description
CPM_DETECTED The cutting position is detected using a sensor and a print mark.
CPM_SIMULATED The cutting position is calculated from the given cut length.
eTypeOfSynchronizationType
This enumerator type defines the synchronizing characteristics of the cutting
equipment to the material web motion:
Element Description
BY_TIME Synchronization by dynamic values
BY_LEADING_AXIS_VALUE Synchronization through distance.
The distance used will be stored in the variable “usersInterface.r64SyncLength”.
SYMMETRIC The distance is dimensioned so that symmetrical synchronization is achieved
without any overshoot.
sFlyingSawType
This structure contains the complete global data of the application SIMOTION
Flying Saw:
I/O Element Type of Data Description
Object references of all technology objects (axes,
IN sAxisTOs sTOsType
external encoders and measuring probes).
Interface for the user to enter geometry and motion
sUsersInterface data of the shears mechanical system – as well as to
IN sUsersInterface
Type enter sequence options such as a restart in ongoing
operation.
sCutPositionBuffer sCutPosition Internal data area to enter the cut position as a precise
I/O Management BufferManageme position and cut position deviation for the print mark
ntType correction.
IN r64FormatLength LREAL
Copyright Siemens AG 2014 All rights reserved
element.
Activates the mode changeover with the operating
IN boExecute BOOL
mode specified in eMode.
Using eMode the operating mode is preselected that is
then activated with the next positive edge at input
boExecute.
OMFS_ERROR: Preselects the ERROR mode
eOperationModes OMFS_DISABLE: Preselects the DISABLE mode
IN eMode
FlyingSawType OMFS_START_POSITION: Preselects the
STARTPOSITION mode
OMFS_AUTOMATIC: Preselects the AUTOMATIC
mode
OMFS_MANUAL: Preselects the MANUAL mode
Feedback signal from the cutting device:
IN boStopCutting BOOL
TRUE: Cutting has been completed
Feedback signal from the cutting device:
IN boKnifeOut BOOL
TRUE: Cutting device withdrawn from the material web
IN boGap BOOL TRUE: Create gap has been selected
IN boOnTheSpotCut BOOL TRUE: Start “Immediate cut“
OUT boDone BOOL TRUE: Selected mode is activated..
OUT boBusy BOOL TRUE: Mode changeover is active.
Indicates errors in the FBFlyingSaw and at the
OUT boError BOOL
FlyingSawAxis.
Signal to the cutting device
OUT boCut BOOL TRUE: Flying saw is in synchronism to the material
web, the cutting device can cut
OUT boFlyingSawInStartPos BOOL TRUE: Flying saw is in initial position (Startposition)
TRUE: The end of the synchronous range has been
OUT boEndSyncPosReached BOOL
reached or exceeded
OUT boOnTheSpotCutPossible BOOL TRUE: An “Immediate cut” is possible
OUT boOnTheSpotCutDone BOOL TRUE: An “Immediate cut” was executed
TRUE: The last synchronization operation was not
OUT boSyncNotPossible BOOL
successful
sTOsType
This structure contains the definition of all of the axes, external encoders and
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
sUsersInterfaceType
This structure includes the interface for the user to enter physical boundary
conditions, operating mode versions as well as to enter a restart during operation
(this function must be parameterized by the user):
I/O Element Type of Data Description
[mm] Distance between the sensor for the material and print
mark detection and the axis zero point of the distance-
IN r64DistanceToSensor LREAL
reference system of the flying saw
(distance to the sensor).
[mm] Start position within the distance reference system of
IN r64StartPos LREAL
the flying saw.
[mm] Position within the distance-reference system of the
IN r64SyncPos LREAL flying saw where synchronization is completed
(synchronous position).
[mm] Maximum position within the distance-reference
IN r64EndSyncPos LREAL system of the flying saw where synchronous motion must
have been completed (end of the synchronous range)
[mm] Reversal point in the distance-reference position of the
IN r64EndPos LREAL
flying saw.
IN r64ToStartPosVel LREAL [mm/s] Velocity when positioning to the start position.
sCutPositionBufferType
This structure contains the cut position memory (this is not relevant for the user):
I/O Element Type of Data Description
ARRAY
ar64CutPosition [0..CPB_MAX-1]
I/O [mm] Buffer of the measured cut position
Measured
OF LREAL
ar64CutPosition
ARRAY [-] Buffer of the measured cut position number of
I/O MeasuredNumber
[0..CPB_MAX-1] modulo cycles
Modulo
sCutPositionBufferManagementType
This structure contains the internal data area to enter the cutting position and to
control the cutting position correction as precise position (this is not relevant for the
user):
I/O Element Type of Data Description
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Copyright Siemens AG 2014 All rights reserved
sCutPosition
I/O sCutPositionBuffer data area of cut position buffer
BufferType
I/O i16BufferIn INT Pointer to next input position of buffer
I/O i16BufferOut INT Pointer to next output position of buffer
I/O i16CutCorrectionWait INT Number of cuts without cut position correction
I/O boBufferOutTrigger BOOL Start trigger to delete the read buffer entry
I/O boBufferReadTrigger BOOL Start trigger to read the next buffer entry
I/O boBufferResetActive BOOL Reset of buffer active
I/O boBufferInActive BOOL Input of value in buffer active
I/O boBufferOutActive BOOL Deletion of buffer value active
I/O boBufferReadActive BOOL Reading of buffer value active
sFlyingSawInfoType
This structure contains calculation results and display information – relevant for the
user – that provides information about the state of the flying saw.
I/O Element Type of Data Description
TRUE Leading value is a real or virtual posAxis
OUT boAxisAsLeadingValue BOOL
FALSE No posAxis can be entered as leading value
If the leading value is a real or virtual posAxis, then the
OUT toLeadingValueAxis posAxis
name of the TO is the axis - otherwise TO#NIL
boExternalEncoderAs TRUE Leading value is an external encoder
OUT BOOL
LeadingValue FALSE No external encoder entered as leading value
toLeadingValue externalEncoder If the leading value is an external encoder, then the name of
OUT
ExternalEncoder Type the TO is the external encoder, otherwise TO#NIL
boTOLeadingValue
OUT BOOL TRUE TO master value active
Active
boLeadingValue
OUT BOOL TRUE ,Master value in standstill
Standstill
OUT toActiveFollowing followingObject Active following object of the FlyingSaw axis
Activated
r64MaterialPosition [mm] maximum material position before „Redefine
OUT LREAL
Maximum Position“
[mm] Knife positions error (caused by following error) at
OUT r64Delta LREAL start cut
(accuracy +/- Vmat akt * Backgroundcycle)
boInterruptProduction
OUT BOOL TRUE: interrupt active
Activated
boContinueProduction
OUT BOOL TRUE: continue active
Activated
boProduction TRUE: FlyingSaw is deactivated in automatic mode and
OUT BOOL
Interrupted ready for STO.
boProduction TRUE: FlyingSaw is reactivated and ready for start
OUT BOOL
Continued operation again.
OUT r64UpperLimitToLate LREAL [mm] Maximum material position to start FlyingSaw
i32UpperLimitToLate [-] Number of modulo cycles at maximum material
OUT DINT
NumberModulo position to start FlyingSaw
r64UpperLimitNot
OUT LREAL [mm] Material position for abort synchronization
Possible
i32UpperLimitNot
[-] A Number of modulo cycles at material position to
OUT PossibleNumber DINT
abort synchronization
Modulo
Method to determine the cut position:
eCutPosition CP_CALCULATED: Cut position is calculated by cutting
eCutPosition
IN GenerationMode to length of material position
GenerationMode
Type CP_MEASUERED: Cut position is detected using the
measuring probe
Method to measure cut position, only valid when
CP_MEASURED activ:
eCutPosition CPM_DETECTED: Cut position is detected using the
eCutPosition sensor and the print mark and
IN MeasureMode
MeasureMode entered in CutPositionBuffer.
Type
CPM_SIMULATED: Cut position is culculated by
cutlength and entered in
CutPositionBuffer
sMeasuringValueType
This structure contains the internal data area of the measured value detection (this
is not relevant for the user):
I/O Element Type of Data Description
I/O boStartMeasuring BOOL Flag “Start measured value generation”
OUT r64CutlengthActivated LREAL [mm] Actual cut length
OUT r64MeasuredValueNew LREAL [mm] Measured value, actual
i32MeasuredValueNew
OUT DINT [-] Number of modulo cycles at actual measured value
NumberModulo
OUT r64MeasuredValueOld LREAL [mm] Measured value, old
i32MeasuredValueOld
OUT DINT [-] Number of modulo cycles at old measured value
NumberModulo
[mm] Difference between the new and old measured
OUT r64MVDelta LREAL
value
Enum Selects the measurement-initiating edge at the sensor:
IN eMeasuringEdge Measured RISING_EDGE: Rising edge at the sensor
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
boWaitForFirstCut
I/O BOOL Flag “Wait for the first measured value”
Position
boWaitForCyclCut
I/O BOOL Flag “Wait for the next measured value”
Position
boCutPosition
I/O BOOL Flag “Wait for measured value”
MeasuringActive
boStartPosAtSensor
I/O BOOL Flag “Start position measured”
Detected
boApplicationIn
IN BOOL Flag “Application in the AUTOMATIC mode”
Automatic
boNewCutPosition
OUT BOOL Flag “New value entered in the CutPositionBuffer”
Entered
r64LeadingValueModulo
OUT LREAL [mm] Modulo length of the leading value
Length
r64SetPosNextCut
OUT LREAL [mm] Interpolated next cutting position at the sensor
PosAtSensor
i32SetPosNextCutPosAt [-] Number modulo cycles at interpolated next cutting
OUT DINT
SensorNumberModulo position at the sensor
r64SetPosTolerance [mm] Tolerance bandwidth of the next cutting position,
OUT LREAL
RangeStart start
r64SetPosTolerance [mm] Tolerance bandwidth of the next cutting position,
OUT LREAL
RangeEnd end
r64DeltaTolerance
IN LREAL [mm] Half the tolerance bandwidth
Range
i16CutPositionError
OUT INT Cut position fault counter
Counter
OUT r64CutLengthMeasured LREAL [mm] Actually measured cut length
[mm] Actual measured material position if the cutting
OUT r64CutPosAtSensor LREAL
position is at the measuring point
[-] Number modulo cycles at actual measured material
r64CutPosAtSensor
OUT DINT position if the cutting position is at the measuring
NumberModulo
point
8.3 FBFlyingSaw
Control block of the SIMOTION Flying Saw application.
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
FBFlyingSaw
8.3.2 Task
Control block of the SIMOTION Flying Saw application. The block includes the
following functions:
Mode manager of the application, including the following modes ERROR,
DISABLE, MANUAL, STARTPOSITION, AUTOMATIC
Determining the cutting position either using a print mark and measuring
sensor or a parameterizable cut length
Synchronizing to the material web
Controlling the cutting device during synchronous motion
Possibility of “creating a gap”
Referencing the axes and setting-up operation (jog) are not included in the
application.
The function block can be called in each cyclic task. The user must link the block.
FBFlyingSaw
LREAL cutLength done BOOL
flyingSawInStartPos BOOL
BOOL knifeOut
endSyncPosReached BOOL
LREAL gapLength
onTheSpotCutPossible BOOL
BOOL gap
onTheSpotCutDone BOOL
BOOL onTheSpotCut
syncNotPossible BOOL
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Copyright Siemens AG 2014 All rights reserved
forSyncToLate BOOL
errorId DWORD
status eOperationModes
FlyingSawType
rotaryKnifeAxisActive BOOL
Input parameters
Name Data type Initial value Description
cutLength LREAL 800.0 Cut material element length in mm
execute BOOL FALSE A pending mode changeover is activated via this input.
With mode, the mode is pre-selected, which is
activated with the next positive signal edge at the
execute input.
OMFS_ERROR: Pre-selection, ERROR mode
eOperation
OMFS_ OMFS_DISABLE: Pre-selection, DISABLE mode
mode ModesFlying
ERROR OMFS_AUTOMATIC: Pre-selection, STARTPOSITION
SawType
mode
OMFS_AUTOMATIC: Pre-selection, AUTOMATIC
mode
OMFS_MANUAL: Pre-selection, MANUAL mode
By setting this signal, the block is signaled that the
cutting operation has been completed and a gap can
stopCutting BOOL FALSE
be created - or the cutting equipment (knife) can be
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Output parameters
Name Data type Initial value Description
8.3.6 Functionality
The FBFlyingSaw function block is the most important element of the application.
The connected flying saw is parameterized and controlled using this block.
The block and the operating mode changeover must be parameterized in the user
program in order that the FBFlyingSaw executes the required functions.
The FBFlyingSaw is parameterized as explained in Chapter 8 Program
Description. When parameterizing, basic values of the application are defined,
which generally do not change, such as e.g. specifying the name of the axis or all
geometrical data, such as r64DistanceToSensor, r64StartPos, r64StartSyncPos,
etc. It is only permissible to change these values at standstill (zero speed) - and
they require a re-initialization (restart) of the FBFlyingSaw.
The individual operating modes of the FBFlyingSaw are described in Chapter 3.2
Operating modes of the application
SIMOTION Flying Saw. The procedure to change over the operating mode is
described in more detail here in the following sections.
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
RESTART
44
Manual
Manual
11 00
Disable
Disable Error
Error
22
Startposi-
Startposi-
tion
tion
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Copyright Siemens AG 2014 All rights reserved
33
Automa-
Automa-
tic
Standard Zustandsübergang
tic Fehlerzustandsübergang
Automatische Zustandswechselkette
IN OUT
cutLength Done
execute Busy
Error
mode
Cut
stopCutting endSyncPosReached
FBFlyingSaw() OnTheSpotCutPossible
knifeOut
OnTheSpotCutDone
gapLength syncNotPossible
gap ErrorID
onTheSpotCut State
In order to transition the block into a new state, the number of the required target
state must be specified at the mode input. The changeover is activated by a rising
edge on the execute input.
The active changeover is signaled in the new block state with a high signal at the
busy output. If all of the actions associated with the changeover have been
successfully carried-out and the new state has been reached, this is flagged by a
high signal at the done block output. The number of the new state can be read-off
Checking the input parameters and parameterization of the technology settings that are
absolutely required (mandatory)
This program function is only executed after a “Restart” or if it was activated by the
user using the restart bit of the UsersInterface.
The following are monitored:
The existance and the type of specified TOs.
Deviations with respect to what has been specified are displayed as error
messages.
Parameter assignments of the technology objects that are absolutely required
are executed in an additional program section.
Axis monitoring
The function block is switched into the error state (ERROR operating mode) if there
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
However, the monitoring function is only active if the parameterization check of the
technology objects was successfully completed.
After the block has been successfully initialized, the restart bit is automatically
reset.
Error handling
If faults occur in the block itself or in technology objects and technology functions
involved while FB FlyingSaw is operational, then these are signaled using the block
IN OUT
cutLength Done
execute Busy
Error
mode
Cut
stopCutting endSyncPosReached
FBFlyingSaw() OnTheSpotCutPossible
knifeOut
OnTheSpotCutDone
gapLength syncNotPossible
gap ErrorID
onTheSpotCut State
The error bit signals an error while an error code is output at output errorID; this
can be analyzed using the error analysis function.
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
The error output is only set if the execute input is set. The errorID and state = 0
Copyright Siemens AG 2014 All rights reserved
Note (ERROR) are still output even after execute has been reset!
Warnings
Warnings are indicated by the status of the outputs error and errorID: error =
FALSE and errorID <> 16#0000_0000.
Table 8-2: Warnings
ErrorID Description
16#0000_0000 No warning
16#060C_4002 FlyingSawAxis changed over to modulo axis
16#060C_4003 Modulo length of the FlyingSawAxis is adapted to ( r64EndPos + 500.0 )
Only valid when using test environment (e.g. demo case!)
16#060C_4004 StartValue of the FlyingSawAxis is adapted to
- ( r64DistanceToSensor + 50.0 )
Only valid when using test environment (e.g. demo case!)
16#060C_4005 The axis as master value was switched to linear without modulo
16#060C_4006 The axis as master value was switched to linear with modulo
16#060C_4007 The external encoder as master value was switched to linear without modulo
16#060C_4008 The external encoder as master value was switched to linear with modulo
16#060C_4009 Modulo length of axis as master value was set to 0.0
16#060C_400A Modulo length of axis as master value was set to MAXIMUM_CUTLENGTH * 3000
16#060C_400B Modulo length of external encoder as master value was set to 0.0
16#060C_400C Modulo length of external encoder as master value was set to
MAXIMUM_CUTLENGTH * 3000
Errors
Error messages are indicated by the status of the outputs error and errorID: error =
TRUE and errorID <> 16#0000_0000.
If the error was caused by a TO-specific command called from the FB, then its
return parameter (RetDINT or FR) is kept in the internal data area of the FB for
further evaluation by the user.
16#0000_0000 No error
Copyright Siemens AG 2014 All rights reserved
Error ID Description
16#0621_8001 STARTPOSITION to DISABLE
Error when stopping the FlyingSawAxis ( _move v=0 )
Details in i32RetDINTStopFSA
16#0621_8002 STARTPOSITION to DISABLE
Error when stopping the FlyingSawAxis ( _move v=0 )
Details in i32FRStopFSA
16#0622_8001 STARTPOSITION to STARTPOSITION
Error when positioning the FlyingSawAxis ( _pos )
Details in i32RetDINTPosFSA
16#0622_8002 STARTPOSITION to STARTPOSITION
Error when positioning the FlyingSawAxis ( _pos )
Details in i32FRPosFSA
16#0603_8001 AUTOMATIC RUN
Error when activating gearing of the FlyingSawAxis ( _enablegearing )
Details in i32RetDINTEnableGearingFSA
16#0603_8002 AUTOMATIC RUN
Error when deactivating gearing of the FlyingSawAxis ( _disablegearing )
Details in i32RetDINTDisableGearingFSA
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Copyright Siemens AG 2014 All rights reserved
Error ID Description
16#0642_8001 MANUAL to STARTPOSITION
Error when positioning the FlyingSawAxis ( _pos )
Details in i32RetDINTPosFSA
16#0642_8002 MANUAL to STARTPOSITION
Error when positioning the FlyingSawAxis ( _pos )
Details in i32FRPosFSA
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Copyright Siemens AG 2014 All rights reserved
8.4 FBCutPositionDetection
Block to determine the cutting position of the flying saw.
FBCutPositionDetection
8.4.2 Task
Input Parameters
Name Data type Initial value Description
cutLength LREAL 800.0 [mm] Element length of the cut material.
By setting this signal, a synchronous position is
onTheSpotCut BOOL FALSE immediately generated for the next cut on the material
web at the “sensor position”.
There are two techniques to generate cutting positions:
CP_CALCULATED: Cut position is calculated by
eCutPositionG breaking material web down by
CutPositionGeneration CP_
enerationMode cutlength
Mode CALCULATED
Type CP_MEASUERED: Cut position is detected using
the measuring probe and
stored in the CutPositionBuffer
Method to measure cut position, only valid when
CP_MEASURED activ:
CPM_DETECTED: Cut position is detected using
eCutPosition
CutPositionMeasure CPM_ sensor and prink mark and
MeasureMode
Mode SIMULATED entered in CutPositionBuffer.
Type
CPM_SIMULATED: Cut position is culculated by
cutlength and entered in
CutPositionBuffer
8.4.6 Functionality
To determine the cutting position, the block has two different techniques:
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
CutPositionBuffer
CP-MEASURED
To determine the cutting position put in the CutPositionBuffer, the block has two
different techniques:
CPM_DETECTED: The cutting position is detected using the measuring
function with an activated sensitivity range at the distance of the cut length
from the last measured position.
After being activated, the cutting position determination function initially waits
for the first sensor signal. Its position (measuringValue.r64CutPosAtSensor) is
interpolated using the geometrical data usersInterface.r64DistanceToSensor
and usersInterface.r64StartSyncPos to the cutting position
(measuringValue.r64CutPosAtSyncPos) and is entered in the cutting position
buffer as the first cutting position. For all additional cutting positions, a
sensitivity range is now placed around the possible cutting position. To do this,
the next cutting position expected is interpolated using the actual cut length to
measuringValue.r64NextCutPosAtSensor and a tolerance bandwidth of
usersInterface. r64CPDeltaToleranceRange is applied. If a measured value is
determined, then this is interpolated as new cutting position and entered in the
cutting position buffer. If a cutting position was not able to be measured within
the range that had been selected, then the interpolated cutting position
measuringValue.r64NextCutPosAtSensor is interpolated as new cutting
position and entered in the cutting position buffer. At the same time,
measuringValue i16CutPositionError is incremented by 1. Users can utilize this
CP-CALCULATED
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Block name
FBCutPositionBufferReset
Task
Deleting and resetting the measured value memory.
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Copyright Siemens AG 2014 All rights reserved
Block parameters
Functionality
Deletes all of the memory contents by overwriting memory elements with 0.0 or
FALSE
Resets all pointers to 0
Resets all status signals to FALSE
Error Messages
No errors are generated.
Enters a measured value (position measured value and/or position deviation) into
the measured value memory.
Block name
FBCutPositionBufferIn
Task
With each call, the values present at the block (position measured value and
position deviation) are entered into a free location of the measured value memory.
Block parameters
Input parameters
Name Data type Initial value Description
cutPosition LREAL 0.0 [mm] Position measured value
cutPositionNumber [-] Number modulo cycles of position
DINT 0
Modulo measured value
onTheSpotCut BOOL FALSE “Immediate cut” active (on the spot cut)
Functionality
The position measured value is entered into the measured value memory.
The number of modulo cycles of the actual postion is entered into the measured
value memory.
Error messages
No errors are generated.
Block name
FBCutPositionBufferRead
Task
If the block is being used in the SIMOTION Rotary Knife application, then it detects
whether a new position deviation was entered and initiates a corresponding
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
position correction.
Copyright Siemens AG 2014 All rights reserved
If the block is being used in the SIMOTION Flying Saw application, then it detects
as to whether a new position measured value was entered and initiates an
additional processing cycle.
Block parameters
Output parameters
Name Data type Initial value Description
flyingSawStart BOOL FALSE Start condition of the flying saw
positionMeasured LREAL 0.0 [mm] next sync position
positionMeasuredNumber
DINT 0 [-] Number modulo cycle of next sync position
Modulo
onTheSpotCut BOOL FALSE TRUE: On the spot cut active
Type
Copyright Siemens AG 2014 All rights reserved
Functionality
Depending on the calling application, the block executes the following activity:
The block checks as to whether a new position measured value (cutPosition) was
entered. If yes, the flag “flyingSawStart” is set and the measured position is
transferred as synchronous position for the next processing cycle.
Error messages
No errors are generated.
Block name
FBCutPositionBufferOut
Task
After the processing operation, the function block deletes the last measured value
(position measured value and position deviation) from the measured value memory
and releases the memory for memory management.
Block parameters
Functionality
When the block is called, the actual measured value (position measured value and
position deviation) are deleted from the measured value memory.
Error messages
No messages are generated.
Attachment
ERROR DISABLE 0 1
Error Disable
If the axis and the synchronous object have no error condition, then the
DISABLE mode is activated.
Mode DISABLE (1)
1
Disable
DISABLE DISABLE 1 1
Disable Disable
0 Preparation
1 _disableAxis() is called for the flying saw axis
DISABLE MANUAL 1 4
Disable Manual
STARTPOSITION ERROR 2
0
Startpo-
Error
sition
0 Preparation
1 _disableAxis() is called for the flying saw axis
STARTPOSITION DISABLE 2
1
Startpo-
Disable
sition
1 _move() with velocity = 0.0 is called for the flying saw axis
Copyright Siemens AG 2014 All rights reserved
Automatic cycle
0 Wait until a valid synchronous position is available
1 _move() with velocity = 0.0 is called for the flying saw axis
If the knifeOut signal is present, then prepare the position command and
advance to step 1
1 _pos() is called to return the flying saw axis back to its starting position.
Mode, MANUAL (4) 4
Manual
MANUAL ERROR 4 0
Manual Error
_disableAxis() is called for the auxiliary axis and the flying saw axis
1 _move() with velocity = 0.0 is called for the flying saw axis
0 _pos() is called for the flying saw axis with the direction of rotation for the
shortest path
10.2 Revisions/Author
Table 10-1: Revisions/Author
Version Date/Revision Author
V 1.0 Generation H.-E. Böhm
V 1.1 Change-over Ethernet H.-E. Böhm
V 1.2 Protool templates trilingual Ch. Pabst
H.-E. Böhm
V 1.2 Changes General Notes A. Hagelauer
V 1.3 13.04.06 Scout V4.0 H.-E. Böhm
V 1.3 04.04.07 Functional Changes: H.-E. Böhm
(V 2.0!) - synchronization according to
leading axis values.
(asymptotic synchronization)
- Ratio between measured and
effective velocity of material web
V 1.4 06.06.08 Replacing ProTool by P. Tabori
WinCflex / SCOUT V4.1.1.6 H.-E. Böhm
V 2.0 March 2010 changeover to the H.-E. Böhm
StyleGuide
Adapt to ongoing projects
Essential simplifications
V2.1 2011 up to September 2014 H.-E. Böhm
Extension by break down process
Error correction
Improvements error detection
Adaption to CutToLength-Line
requirements
11 Contact partner
Application Center
SIEMENS
Siemens AG
Industry Sector
Drives Technologies Division
Motion Control Systems
DF FA PMA APC
Frauenauracher Str. 80
91056 Erlangen
Fax: +49 (0) 9131-98–1297
mailto: tech.team.motioncontrol@siemens.com
2014-11-05-Manual_SIMOTION_Flying_Saw_V2.1.doc
Copyright Siemens AG 2014 All rights reserved
How high are the benefits of this application for you in the following working phases?
Very high Very low
– conceptual phase
Copyright Siemens AG 2014 All rights reserved
– engineering/writing code
– commissioning
– scope
– layout/design
– clarity