Professional Documents
Culture Documents
LMCSINA V3 0 en
LMCSINA V3 0 en
Control SINAMICS -
LMCSINA
Siemens
SIMATIC S7-1200 / S7-1500 Industry
Online
https://support.industry.siemens.com/cs/ww/en/view/109479491 Support
Legal information
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
Siemens AG 2018 All rights reserved
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
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: http://www.siemens.com/industrialsecurity.
LMCSINA
Beitrags-ID: 109479491, V3.0, 03/2018 2
Table of contents
Table of contents
Legal information ......................................................................................................... 2
1 Introduction ........................................................................................................ 5
1.1 General structure of the library ............................................................. 5
1.2 Content of the application folders ......................................................... 6
1.2.1 Synchronism applications..................................................................... 6
1.2.2 Cross Cutter ......................................................................................... 7
1.2.3 Flying Saw ............................................................................................ 8
1.2.4 Line Tension Control ............................................................................ 8
1.2.5 Winder .................................................................................................. 9
1.2.6 Traverser .............................................................................................. 9
2 Configuration in STARTER ............................................................................. 10
2.1 Configuring the drive functionality ...................................................... 10
2.2 Configuring the communication .......................................................... 11
2.2.1 Preparation and telegram selection ................................................... 11
2.2.2 Creating the telegram interconnections ............................................. 14
2.2.3 Setting the user-defined GSDML for the TIA Portal ........................... 19
3 LMCSINA synchronism FBs ........................................................................... 20
3.1 Preparation ......................................................................................... 20
3.2 Commissioning steps ......................................................................... 22
3.3 Interfaces ............................................................................................ 28
Siemens AG 2018 All rights reserved
LMCSINA
Beitrags-ID: 109479491, V3.0, 03/2018 3
Table of contents
LMCSINA
Beitrags-ID: 109479491, V3.0, 03/2018 4
1 Introduction
1 Introduction
The SIMATIC library "Library Motion Control SINAMICS" allows the comprehensive
motion control functions in the SINAMICS S120 to be controlled in a user-friendly
and convenient fashion. The applications based on DCC / DCB-Extension for the
SINAMICS S120 are supported. The library can be used with a SIMATIC S7-1500
as well as with a SIMATIC S7-1200. Control is possible via PROFINET or
PROFIBUS-DP.
The following applications are supported:
BasicGear synchronism (from V5.1)
https://support.industry.siemens.com/cs/ww/en/view/xxx
BasicCam synchronism (from V5.1)
https://support.industry.siemens.com/cs/ww/en/view/xxx
ExtendedGear synchronism (from V5.1)
https://support.industry.siemens.com/cs/ww/en/view/xxx
ExtendedCam synchronism (from V5.1)
https://support.industry.siemens.com/cs/ww/en/view/xxx
Positioning (from V5.1)
https://support.industry.siemens.com/cs/ww/en/view/72849730
Linear flying saws with DCB-Extension
Siemens AG 2018 All rights reserved
https://support.industry.siemens.com/cs/ww/en/view/109477745
Cross-cutters with DCB-Extension
https://support.industry.siemens.com/cs/ww/en/view/109477746
DCC Winder
https://support.industry.siemens.com/cs/ww/en/view/38043750
DCC Line Tension Control
https://support.industry.siemens.com/cs/ww/en/view/49972266
Traversing with DCB-Extension
https://support.industry.siemens.com/cs/de/de/view/xxx
Note The former versions of LMCSINA library (< V3.0) include the former application
versions for drive based synchronism (synchronism applications <= V4.x).
The LMCSINA library >= V3.0 includes only the control blocks for the innovated
synchronism applications (from synchronism application version >= V5.1) and
the technological applications.
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 5
1 Introduction
Figure 1-1
The folder "01_Synchronism Applications" contains all blocks, that are relevant for
the control of the synchronism applications (>= V5.1).
Figure 1-2
Siemens AG 2018 All rights reserved
The blocks are only used to control the drive based functions. There are no
interlocks and logics implemented inside the blocks. This makes sure to have a
consistent axis state in the drive. The blocks directly send all commands to the
drive. All axis states are handled by the drive itself. The separate blocks realize the
following tasks:
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 6
1 Introduction
The folder "02_CrossCutter" contains all files that are necessary for the drive
based cross cutter application.
Figure 1-3
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 7
1 Introduction
The folder "03_FlyingSaw" contains all files that are necessary for the drive based
flying saw application.
Figure 1-4
variables and datatypes from another library for compiling the block correctly. If the
library "LAcycCom" not used in the project so far, those files always have to be
copied completely to the PLC.
The subfolder "LMCSINA components" contains the necessary datatypes for
compiling and the control function block.
The folder "04_LineTensionControl" contains all files that are necessary for the
drive based application line tension control.
Figure 1-5
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 8
1 Introduction
library "LAcycCom" not used in the project so far, those files always have to be
copied completely to the PLC.
The subfolder "LMCSINA components" contains the necessary datatypes for
compiling, the control function block and the configuration data block
1.2.5 Winder
The folder "05_Winder" contains all files that are necessary for the drive based
winder application.
Figure 1-6
Siemens AG 2018 All rights reserved
1.2.6 Traverser
The folder "06_Traverser" contains the block for controlling the drive based
application traverser (with DCB Extension).
Figure 1-7
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 9
2 Configuration in STARTER
2 Configuration in STARTER
2.1 Configuring the drive functionality
The drives must be configured and parameterized in Starter, as the motion control
functionality, for the synchronous applications as well as for the other technological
applications, are directly realized in the drive.
Detailed step-by-step instructions are provided in the commissioning chapter of the
application itself. The basic steps are again shown in the following.
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 10
2 Configuration in STARTER
When selecting the telegram of the axes to be controlled, "[999] Free telegram
configuring with BICO" must be selected. If a standard telegram was active
beforehand, reset the parameters on the axis by setting p10 = 30.
The length of the input data/actual values and output values/setpoints should be
set to the following lengths:
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 11
2 Configuration in STARTER
Figure 2-1
The general speed control of the drive is done by the user. Therefore there are
function blocks in TIA Portal like the SINA_SPEED function block of the DriveLib.
For this kind of control the user can select any telegram. In order to use the
SINA_SPEED FB for example the standard telegram 1 is used.
Independent of this general drive control there are several position related
functions like homing available for these speed controlled leading axes in
synchronism operation. To control these functions, supplementary data of 1 (word)
in send and receive direction is added. The communication script is adding the
supplementary data automatically to the drive object. There must not be other
supplementary data configured by the user for that drive object. If the user needs
additional data transfer for a standard telegram, this needs to be handled by
telegram extension. The telegram length must not exceed the maximum limit. The
script fails when the limit is exceeded.
Configuration steps:
First just configure the send and receive data to do the user defined speed
control (e.g. by selecting a standard telegram and optional telegram extension)
Execute the communication script for the synchronism applications
When executing the script select the communication for your speed controlled
leading drive
By running the script supplementary data with the length of 1 word in send and
receive direction is added and the technology control and status word is
interconnected to it.
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 12
2 Configuration in STARTER
Figure 2-2
In this example the user would use Standard telegram 1 for speed control.
Additionally 4 words in send and receive direction for other user data is added by
the user. The script added the supplementary data automatically.
Siemens AG 2018 All rights reserved
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 13
2 Configuration in STARTER
Executable script files are supplied for the particular applications to create the
telegram interconnection. You will find the script that matches the particular
application in the following table.
Table 2-1
Application used Script file required
Synchronous applications: LMCSINA_Synchronism_CommunicationScript
Basic Gearing (.txt/.xml)
Basic Camming
Extended Gearing
Extended Camming
Positioning with DCC / EPOS
Measuring Wheel (as Leading axis)
Speed Axis (as Leading axis)
Cross cutter LMCSINA_Technology_CommunicationScript
(.txt/.xml)
Flying saw LMCSINA_Technology_CommunicationScript
(.txt/.xml)
Siemens AG 2018 All rights reserved
The script files supplied for the applications to establish the appropriate
telegram interconnection can either be incorporated in Starter (from Starter
version V4.4.1.0) or in the project itself. For all of the scripts mentioned above,
the integration and execution is identical. The two versions for possible
integration and execution are described in the following.
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 14
2 Configuration in STARTER
Fig. 2-3
Siemens AG 2018 All rights reserved
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 15
2 Configuration in STARTER
In the dialog that opens, select the appropriate script, and click on "Execute".
Fig. 2-4
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 16
2 Configuration in STARTER
With this version, you must import the script into every project where you wish to
use it. However, the script remains integrated, even when archiving and
transferring the project. This version especially makes sense if you wish to make
your own project-specific modifications to the script.
To do this, proceed as follows:
Insert a script folder at the project level
Fig. 2-5
Siemens AG 2018 All rights reserved
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 17
2 Configuration in STARTER
Fig. 2-6
Figure 2-7
Siemens AG 2018 All rights reserved
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 18
2 Configuration in STARTER
If you are using a PROFIBUS drive, then a GSDML file does not have to be
created in STARTER. The standard GSDs for PROFIBUS can be subsequently
used in the TIA Portal.
Proceed as follows if you wish to use a PROFINET drive:
Note When using PROFINET – when integrating into the TIA portal – it is necessary to
create a user-defined GSDML for the TIA Portal. The standard GSDML of the
SINAMICS S120 does not include a 20/20 or 20/28 telegram; however it is
required for creating the user-defined GSDML file.
Create the user-defined GSDML file for your drive device using the following
Starter script (script and detailed description are available at the following link):
https://support.industry.siemens.com/cs/ww/en/view/92022677
When executed, the script automatically creates the user-defined GSDML file,
which can be subsequently installed in the TIA Portal.
Siemens AG 2018 All rights reserved
Continuing commissioning
The next steps involve commissioning the communication and control in the TIA
Portal. Proceed with the following chapter depending on the application being
used:
Table 2-2
Application used continue with commissioning Chapter
number
Synchronous applications: Chapter xxx
Basic Gearing
Basic Camming
Extended Gearing
Extended Camming
Positioning with DCC / EPOS
Measuring Wheel (as Leading axis)
Speed Axis (as Leading axis)
Cross cutter Chapter xxx
Flying saw Chapter xxx
Winder Commissioning and description see manual
of winder
Line tension control Commissioning and description see manual
of line tension control
Traverser Commissioning and description see manual
of traverser
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 19
3 LMCSINA synchronism FBs
3.1 Preparation
If you wish to configure a PROFIBUS a device, then you can continue with Chapter
3.2.
If you wish to configure a PROFINET device, then this is done using the user-
defined GSDML file. How you can install this GSDML file is described in the
following, and where you can then find it in the hardware catalog.
Fig. 3-1
Fig. 3-2
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 20
3 LMCSINA synchronism FBs
Fig. 3-3
Siemens AG 2018 All rights reserved
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 21
3 LMCSINA synchronism FBs
Note A minimum firmware release of 4.0 is required for the SIMATIC S7-1200. This is
necessary to use the blocks from "LAcycCom" for acyclic communication.
The following's steps describe the procedure when creating the drives and the
control blocks.
Fig. 3-4
Dearchive the global LMCSINA library by right clicking in the global libraries.
Fig. 3-5
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 22
3 LMCSINA synchronism FBs
Figure 3-6
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 23
3 LMCSINA synchronism FBs
Figure 3-7
Siemens AG 2018 All rights reserved
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 24
3 LMCSINA synchronism FBs
Figure 3-8
Siemens AG 2018 All rights reserved
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 25
3 LMCSINA synchronism FBs
Figure 3-9
Siemens AG 2018 All rights reserved
Note The following inputs must (mandatory) be interconnected in order to call the
function block:
– enable
(the block is only calculated for TRUE)
– HWID_STW
Here the hardware ID of the supplementary telegram data in send
direction (from the PLCs point of view) needs to be given
– HWID_ZSW
Here the hardware ID of the supplementary telegram data in receive
direction (from the PLCs point of view) needs to be given
The block itself can now be compiled.
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 26
3 LMCSINA synchronism FBs
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 27
3 LMCSINA synchronism FBs
3.3 Interfaces
3.3.1 Interfaces of LMCSINA_BasicSync FB
Table 3-1
Designation Type Data type Description
enable IN BOOL Block enable
TRUE: block is calculated cyclically
FALSE: block is not calculated
ackError IN BOOL Acknowledge drive fault
TRUE: acknowledge drive fault
enableAxis IN BOOL Drive enable
TRUE: axis enable (OFF1 enable oft he drive)
FALSE: deletion of OFF1 command (OFF2, OFF3
keep set)
enablePositionControl IN BOOL Position control(ler) enable
TRUE: enable position control of the axis
FALSE: disable position control
homing IN BOOL Enable homing
TRUE: enable homing (depending on mode)
homingMode IN INT Homing mode
1: Set reference point
Siemens AG 2018 All rights reserved
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 28
3 LMCSINA synchronism FBs
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 29
3 LMCSINA synchronism FBs
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 30
3 LMCSINA synchronism FBs
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 31
3 LMCSINA synchronism FBs
Table 3-2
Designation Type Data type Description
enable IN BOOL Block enable
TRUE: Block is calculated cyclically
FALSE: Block is not calculated
setVirtualAxis IN BOOL Set the output position of the virtual leading axis
TRUE: Set output position to setting value
moveFwdVirtualAxis IN BOOL Move virtual leading axis continuously forward
TRUE: Move continuously forward
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 32
3 LMCSINA synchronism FBs
forward
Fwd = 0; Bwd = 1: Positioning motions always
backward
positioningBwdVirtualAxis IN BOOL Selection of positioning direction (only valid for
modulo axes and absolute positioning)
TRUE: Positioning only bakcward
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 33
3 LMCSINA synchronism FBs
Block enable
The blocks must be enabled with "Enable". Status 7000H means that the block is
not computed. Status 7001H is output at the first call. When it is in cyclic mode the
status changes to 7002h.
Only if the block is enabled there is a cyclic communication to the drive. If the block
enable signal is disabled during operation the OFF1 command of the drive is taken
first before the cyclic communication is stopped.
Axis enable
The axis is enabled by the input "enableAxis". By that the OFF1 command of the
Siemens AG 2018 All rights reserved
drive is set. The commands for OFF2 and OFF3 are permanently enabled and are
not taken in case the block is enabled. When the axis is automatically switched off
by an axis fault, the fault has to be acknowledged first and then a new rising edge
needs to be created at the "enableAxis" input to switch on the axis again. After that
the input needs to stay enabled as long as the axis should be enabled. So the input
has an edge detection and a level detection. For switching on always a positive
edge is required.
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 34
3 LMCSINA synchronism FBs
Figure 3-10
Acknowledge error
(I: ackError)
Enable axis
(I: enableAxis)
Axis fault
(Q: axisError)
Axis enabled
(Q: axisEnabled)
Axis modes
All axis modes are prioritized and are handled by the application on the drive side.
The synchronism mode is automatically active when the axis and the position
control is enabled. So for that mode no explicit control bit is necessary to set. All
other modes (Stop drive, jog, active homing and positioning) have a higher priority
than synchronism mode and need to be enabled explicitly. If the axis should not
directly go to synchronism mode after switching on and position controller enable
another mode needs to be selected (e.g. "stopDrive").
In general more than one mode can be selected at the same time. The application
prioritizes the modes and runs always the mode with the highest priority. The
following modes are prioritized in the following order (first mode = highest priority;
last mode = lowest priority):
1. Follow up mode (Axis disabled / position control disabled)
2. Stop drive
3. Jog forward
4. Jog backward
5. Active homing mode
6. Positioning mode
7. Absolute synchronism
8. Relative synchronism
When the axis is switched on and the position controller is enabled, the mode
"relative synchronism" is automatically active in case no other mode with higher
priority is selected.
The following functions are not prioritized and can in general be executed in
parallel to the other modes:
Flying homing
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 35
3 LMCSINA synchronism FBs
Selecting a mode
Modes need to be selected explicitly. The modes "follow up" and "relative
synchronism" are an exception here.
The follow up mode is getting active when the position controller is disabled or the
axis is switched off.
The relative synchronism mode is always getting active when the axis and the
position controller are enabled and no other mode is selected.
In case more than one mode is selected the axis always executes the mode with
the highest priority.
Deselecting a mode
A mode can be left by deselecting it or by selecting a mode with higher priority.
When the position controller is enabled and no other mode is selected, the axis
changes always to "relative synchronism" mode and follows the leading value's
velocity.
In the application manual you additionally find a schematic timing diagram for flying
changeovers of modes and the list of all axis states for diagnosis and interpreting
reasons.
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 36
3 LMCSINA synchronism FBs
Block enable
The blocks must be enabled with "Enable". Status 7000H means that the block is
not computed. Status 7001H is output at the first call. When it is in cyclic mode the
status changes to 7002h.
Only if the block is enabled there is a cyclic communication to the drive.
Modes
The virtual leading axis in general can be operated in the following modes:
Continuous mode – a position signal is continuously generated by the given
velocity setpoint.
Positioning mode – the virtual leading axis by a starting command is moving
absolutely to a defined position or moves on relatively by the defined distance.
Setting function – the output position of the virtual leading axis is set to a
defined setting position.
A changeover of modes works similar to the following axis. Modes with higher
priority always first need to be deselected before the axis changes to a mode with
lower priority. Changes to modes with higher priority are always directly done.
Detailed information to all functions of the virtual leading axis can be found in the
application manual in chapter functions of the virtual leading axis.
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 37
4 LMCSINA_CrossCutterFB in TIA Portal
Fig. 4-1
Siemens AG 2018 All rights reserved
Fig. 4-2
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 38
4 LMCSINA_CrossCutterFB in TIA Portal
Fig. 4-3
Siemens AG 2018 All rights reserved
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 39
4 LMCSINA_CrossCutterFB in TIA Portal
Note A minimum firmware release of 4.0 is required for the SIMATIC S7-1200. This is
necessary to use the blocks from "LAcycCom" for acyclic communication.
The following's steps describe the procedure when creating the drives and the
control blocks.
Fig. 4-4
3. Dearchive the global LMCSINA library by right clicking in the global libraries.
Fig. 4-5
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 40
4 LMCSINA_CrossCutterFB in TIA Portal
Copy all of the required library elements into the folder of the PLC
Open the folder "02_CrossCutter" under the master copies and copy all necessary
files of the library to the correct folders of your PLC (take care of the step order!)
Note The following inputs must (mandatory) be interconnected in order to call the
function block:
– enable
(the block is only calculated for TRUE)
– hardwareID
(can be found under PLC variables – system constants)
– driveObjectNo
(can be found in the properties of the drive object in STARTER)
The block itself can now be simply compiled. Additional steps are required to use
acyclic communication (see the next chapter)
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 41
4 LMCSINA_CrossCutterFB in TIA Portal
Figure 4-6
Siemens AG 2018 All rights reserved
Note The function block can also be used without acyclic communication. The default
values in the FB correspond to the default values in the drive parameters.
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 42
4 LMCSINA_CrossCutterFB in TIA Portal
Fig. 4-7
4
5
3
Siemens AG 2018 All rights reserved
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 43
4 LMCSINA_CrossCutterFB in TIA Portal
Fig. 4-8
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 44
4 LMCSINA_CrossCutterFB in TIA Portal
Figure 4-9
Siemens AG 2018 All rights reserved
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 45
Siemens AG 2018 All rights reserved
Fig. 4-10
LMCSINA
Beitrags-ID: 109479491, V3.0, 03/2018 46
4 LMCSINA_CrossCutterFB in TIA Portal
Table 4-1
Designation Data Default Description
type value
enable Bool FALSE TRUE: Enable FB functionality
FALSE: FB deactivated
ackError Bool FALSE Rising edge: Acknowledge drive fault
enableAxis Bool FALSE Rising edge: Switch-on axis
Falling edge: Switch-off axis
axisAcceleration Real 200.0 Acceleration, positioning/jogging [°/s²]
jogPositive Bool FALSE TRUE: Jog forward
jogNegative Bool FALSE TRUE: Jog backward
jogVelocity Real 3600.0 Jogging velocity [°/min]
traverseToMaintenance Bool FALSE TRUE: Traverse to start position
maintenancePosition Real 0.0 Maintenance position [°]
positioningVelocity Real 3600.0 Positioning velocity [°/min]
approachDirection USInt 1 Defining the approach direction for the initial
position and wait position:
0: shortest path
1: only positive
2: only negative
homing Bool FALSE TRUE: Activate reference point approach
Siemens AG 2018 All rights reserved
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 47
4 LMCSINA_CrossCutterFB in TIA Portal
BERO
3 active homing, BWD x x
4 active homing, BWD, x x x
without BERO
5 active homing, negative x x
flag
6 active homing, negative x x x
flag, without BERO
7 active homing, negative x x x
flag, BWD
8 active homing, negative x x x x
flag, BWD, without BERO
10 flying homing x
Table 4-4
Designation Data Default Description
type value
busy Bool FALSE TRUE: FB is working and new output values can
be expected
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 48
4 LMCSINA_CrossCutterFB in TIA Portal
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 49
4 LMCSINA_CrossCutterFB in TIA Portal
Table 4-5
Value Meaning
16#7101 jog velocity at limit
16#7102 positioning velocity at limit
16#7103 compensation velocity at limit
16#7110 positioning acceleration at limit
16#7111 compensation acceleration at limit
16#7200 acyclic command busy
16#7201 acyclic command busy and drive fault active
16#7202 acyclic command done
16#7203 acyclic command done and drive fault active
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 50
4 LMCSINA_CrossCutterFB in TIA Portal
4.4 Operation
4.4.1 Enabling the block
The block must be enabled with "enable". Status 7000H means that the block is not
computed. Status 7001H is output at the first call.
4.4.2 Reading configuration data
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 51
5 LMCSINA_FlyingSawFB in TIA Portal
5.1 Preparation
If you wish to configure a PROFIBUS a device, then you can continue with Chapter
5.2.
If you wish to configure a PROFINET device, then this is done using the user-
defined GSDML file. How you can install this GSDML file is described in the
following, and where you can then find it in the hardware catalog.
Fig. 5-1
Siemens AG 2018 All rights reserved
Fig. 5-2
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 52
5 LMCSINA_FlyingSawFB in TIA Portal
Fig. 5-3
Siemens AG 2018 All rights reserved
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 53
5 LMCSINA_FlyingSawFB in TIA Portal
Note A minimum firmware release of 4.0 is required for the SIMATIC S7-1200. This is
necessary to use the blocks from "LAcycCom" for acyclic communication.
The following's steps describe the procedure when creating the drives and the
control blocks.
Fig. 5-4
10. Dearchive the global LMCSINA library by right clicking in the global libraries.
Fig. 5-5
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 54
5 LMCSINA_FlyingSawFB in TIA Portal
Copy all of the required library elements into the folder of the PLC
Open the folder "03_FlyingSaw" under the master copies and copy all necessary
files of the library to the correct folders of your PLC (take care of the step order!)
Note The following inputs must (mandatory) be interconnected in order to call the
function block:
– enable
(the block is only calculated for TRUE)
– hardwareID
(can be found under PLC variables – system constants)
– driveObjectNo
(can be found in the properties of the drive object in STARTER)
The block itself can now be simply compiled. Additional steps are required to use
acyclic communication (see the next chapter)
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 55
5 LMCSINA_FlyingSawFB in TIA Portal
Figure 5-6
Siemens AG 2018 All rights reserved
Note The function block can also be used without acyclic communication. The default
values in the FB correspond to the default values in the drive parameters.
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 56
5 LMCSINA_FlyingSawFB in TIA Portal
Fig. 5-7
4
5
3
Siemens AG 2018 All rights reserved
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 57
5 LMCSINA_FlyingSawFB in TIA Portal
Fig. 5-8
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 58
5 LMCSINA_FlyingSawFB in TIA Portal
Figure 5-9
Siemens AG 2018 All rights reserved
LMCSINA
Entry-ID: 109479491, V3.0, 03/2018 59
Siemens AG 2018 All rights reserved
Fig. 5-10
LMCSINA
Beitrags-ID: 109479491, V3.0, 03/2018 60
5 LMCSINA_FlyingSawFB in TIA Portal
Table 5-1
Designation Data Default Description
type value
enable Bool false TRUE: Enable functionality of FB; 0: Disable
ackError Bool FALSE Rising edge: Acknowledge drive faults
enableAxis Bool FALSE Rising edge: Enable axis; Falling edge: Disable
axis
axisVelocity Real 100000.0 Maximum positioning velocity [mm/min]
axisAcceleration Real 5000.0 Maximum acceleration for Acceleration
positioning/jogging [mm//s²]
jogPositive Bool FALSE TRUE: Jog FWD
jogNegative Bool FALSE TRUE: Jog BWD
jogVelocity Real 1000.0 Jog velocity [mm/min]
traverseToMaintenance Bool false Rising edge: Traverse to maintenance position
maintenancePosition Real 0.0 Maintenance position [mm]
homing Bool FALSE TRUE: enable homing
homingMode UInt 1 Selection of Homing Mode: 0: no homing; 1:
active homing; 2: active homing, without BERO;
3:active homing, BWD; 4: active homing, BWD,
without BERO; 5: active homing, negative flag; 6:
active homing, negative flag, without BERO; 7:
Siemens AG 2018 All rights reserved
LMCSINA
Beitrags-ID: 109479491, V3.0, 03/2018
5 LMCSINA_FlyingSawFB in TIA Portal
Table 5-3
cuttingMode Meaning
0 no cut
1 immediate continuous cutting
2 continuous cutting
3 immediate test cut
4 test cut
5 immediate single cut
6 single cut
5.3.2 Block outputs
Table 5-4
Designation Data Default Description
type value
TRUE: FB is working and new output values can
busy Bool false be expected
valid Bool false TRUE: Valid set of outputs available at the FB
Rising edge informs that an error occurred during
error Bool false the execution.
axisError Bool FALSE TRUE: Drive error or application error
axisEnabled Bool FALSE TRUE: Axis is in operation
axisHomed Bool false TRUE: axis is homed
axisMoveFWD Bool false TRUE: axis traverses forward
axisMoveBWD Bool false TRUE: axis traverses backward
targetReached Bool false TRUE: target position reached
joggingActive Bool false TRUE: jogging active
posToMaintenanceActive Bool false TRUE: positioning to maintenance position active
homingActive Bool false TRUE: homing active
flyingHomingActive Bool false TRUE: flying homing active
cuttingEnabled Bool false TRUE: cutting operation enabled
cutPossible Bool false TRUE: cut possible
axisInSyncMaterial Bool false TRUE: axis synchronized to the material
LMCSINA
Beitrags-ID: 109479491, V3.0, 03/2018
5 LMCSINA_FlyingSawFB in TIA Portal
LMCSINA
Beitrags-ID: 109479491, V3.0, 03/2018
5 LMCSINA_FlyingSawFB in TIA Portal
Table 5-5
Value Meaning
16#7101 jog velocity at limit
16#7102 positioning velocity at limit
16#7103 compensation velocity at limit
16#7110 positioning acceleration at limit
16#7111 compensation acceleration at limit
16#7200 acyclic command busy
16#7201 acyclic command busy and drive fault active
16#7202 acyclic command done
16#7203 acyclic command done and drive fault active
LMCSINA
Beitrags-ID: 109479491, V3.0, 03/2018
5 LMCSINA_FlyingSawFB in TIA Portal
5.4 Operation
5.4.1 Enabling the block
The block must be enabled with "enable". Status 7000H means that the block is not
computed. Status 7001H is output at the first call.
5.4.2 Reading configuration data
LMCSINA
Beitrags-ID: 109479491, V3.0, 03/2018
6 LMCSINA_WinderFB in TIA Portal
LMCSINA
Beitrags-ID: 109479491, V3.0, 03/2018
7 LMCSINA_LineTensionControlFB in TIA Portal
7 LMCSINA_LineTensionControlFB in TIA
Portal
The description for implementation and use can be found in the DCC line tension
control application documentation.
Siemens AG 2018 All rights reserved
LMCSINA
Beitrags-ID: 109479491, V3.0, 03/2018
8 LMCSINA_TraversingDriveFB im TIA Portal
LMCSINA
Beitrags-ID: 109479491, V3.0, 03/2018
9 Appendix
9 Appendix
9.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 at:
https://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. You send queries to
Technical Support via Web form:
www.siemens.com/industry/supportrequest
Siemens AG 2018 All rights reserved
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:
https://support.industry.siemens.com/cs/sc
LMCSINA
Beitrags-ID: 109479491, V3.0, 03/2018
9 Appendix
LMCSINA
Beitrags-ID: 109479491, V3.0, 03/2018
9 Appendix
LMCSINA
Beitrags-ID: 109479491, V3.0, 03/2018