LInfeed SIMATIC V1 0 en
LInfeed SIMATIC V1 0 en
LInfeed SIMATIC V1 0 en
Legal information
Use of application examples
Application examples illustrate the solution of automation tasks through an interaction of several
components in the form of text, graphics and/or software modules. The application examples are
a free service by Siemens AG and/or a subsidiary of Siemens AG (“Siemens”). They are non-
binding and make no claim to completeness or functionality regarding configuration and
equipment. The application examples merely offer help with typical tasks; they do not constitute
customer-specific solutions. You yourself are responsible for the proper and safe operation of the
products in accordance with applicable regulations and must also check the function of the
respective application example and customize it for your system.
Siemens grants you the non-exclusive, non-sublicensable and non-transferable right to have the
application examples used by technically trained personnel. Any change to the application
examples is your responsibility. Sharing the application examples with third parties or copying the
application examples or excerpts thereof is permitted only in combination with your own products.
The application examples are not required to undergo the customary tests and quality inspections
of a chargeable product; they may have functional and performance defects as well as errors. It is
your responsibility to use them in such a manner that any malfunctions that may occur do not
result in property damage or injury to persons.
Disclaimer of liability
Siemens shall not assume any liability, for any legal reason whatsoever, including, without
limitation, liability for the usability, availability, completeness and freedom from defects of the
application examples as well as for related information, configuration and performance data and
any damage caused thereby. This shall not apply in cases of mandatory liability, for example
under the German Product Liability Act, or in cases of intent, gross negligence, or culpable loss of
life, bodily injury or damage to health, non-compliance with a guarantee, fraudulent
non-disclosure of a defect, or culpable breach of material contractual obligations. Claims for
damages arising from a breach of material contractual obligations shall however be limited to the
foreseeable damage typical of the type of agreement, unless liability arises from intent or gross
negligence or is based on loss of life, bodily injury or damage to health. The foregoing provisions
do not imply any change in the burden of proof to your detriment. You shall indemnify Siemens
against existing or future claims of third parties in this connection except where Siemens is
mandatorily liable.
By using the application examples you acknowledge that Siemens cannot be held liable for any
damage beyond the liability provisions described.
Other information
Siemens reserves the right to make changes to the application examples at any time without
notice. In case of discrepancies between the suggestions in the application examples and other
Siemens publications such as catalogs, the content of the other documentation shall have
precedence.
The Siemens terms of use (https://support.industry.siemens.com) shall also apply.
Security information
Siemens provides products and solutions with industrial security functions that support the secure
operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary
to implement – and continuously maintain – a holistic, state-of-the-art industrial security concept.
Siemens’ products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines
and networks. Such systems, machines and components should only be connected to an
enterprise network or the Internet if and to the extent such a connection is necessary and only
when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit
https://www.siemens.com/industrialsecurity.
Siemens’ products and solutions undergo continuous development to make them more secure.
Siemens strongly recommends that product updates are applied as soon as they are available
and that the latest product versions are used. Use of product versions that are no longer
supported, and failure to apply the latest updates may increase customer’s exposure to cyber
threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed
at: https://www.siemens.com/industrialsecurity.
⽬录
Legal information ......................................................................................................... 2
1 Introduction ........................................................................................................ 5
1.1 Overview............................................................................................... 5
1.2 Mode of operation ................................................................................ 6
1.2.1 Overview infeed system ....................................................................... 6
1.2.2 Functionality of Intelligent Infeed .......................................................... 6
1.2.3 Software architecture ........................................................................... 8
1.2.4 Technological concept .......................................................................... 9
1.2.5 Definitions ........................................................................................... 10
1.3 General requirements ......................................................................... 12
1.3.1 Product requirements ......................................................................... 12
1.3.2 Mechanical requirements ................................................................... 12
1.3.3 Sensor position recommendation ....................................................... 12
1.4 Components used .............................................................................. 13
2 Engineering ...................................................................................................... 14
2.1 Description of interface ....................................................................... 14
2.1.1 FB LInfeed_Manager (FB 31800) ...................................................... 15
2.1.2 FB LInfeed_InletBelt (FB31801) ......................................................... 18
2.1.3 FB LInfeed_InfeedBelt (FB31802) ..................................................... 20
2.1.4 FB LInfeed_OutletBeltBasic (FB31803) ............................................. 22
2.1.5 FC LInfeed_RpmToVelocity (FC 31800) ............................................ 24
2.1.6 FC LInfeed_VelocityToRpm (FC 31801) ............................................ 25
2.1.7 FC LInfeed_MachineSpeedToVelocity (FC 31802) ........................... 26
2.1.8 FC LInfeed_VelocityToDistance (FC 31803) ..................................... 27
2.1.9 PLC data types ................................................................................... 28
2.1.10 PLC tags ............................................................................................. 33
2.2 Project integration .............................................................................. 38
2.2.1 Integrating the library blocks into STEP 7 .......................................... 38
2.2.2 CPU selection and settings ................................................................ 39
2.2.3 Technology object configuration ........................................................ 39
2.2.4 Call of Intelligent Infeed application ................................................... 40
2.2.5 Sensor signal acquisition.................................................................... 41
2.2.6 Change of Intelligent Infeed configuration .......................................... 42
2.2.7 Machine parameters ........................................................................... 42
2.2.8 Product parameters ............................................................................ 45
2.2.9 Pocket length ...................................................................................... 48
2.2.10 Other parameters ............................................................................... 48
2.3 Operation ............................................................................................ 50
2.3.1 Activation and deactivation................................................................. 50
2.3.2 General functionalities ........................................................................ 50
2.3.3 Start of application .............................................................................. 51
2.3.4 Homing of outlet belt .......................................................................... 51
2.3.5 Continuous homing ............................................................................ 51
2.3.6 Control of outlet product rate POutlet (by infeed system) ..................... 52
2.3.7 Control of inlet product rate PInlet (by upstream machine) .................. 52
2.4 Error handling ..................................................................................... 53
2.4.1 Acknowledge of errors........................................................................ 53
2.4.2 Solutions for errors at enabling of manager FB ................................. 53
2.4.3 Solutions for errors at start of functionality ......................................... 53
2.4.4 Solutions for errors during functionality is running ............................. 53
2.4.5 Solutions for insufficient product position accuracy on the outlet
belt ...................................................................................................... 54
3 Additional information .................................................................................... 55
1 介绍
1.1 概览
该应用程序可用于在不规则到达的相同长度的产品之间创建相等的间隙。一个典型
的用例是将产品同步到 tappet chain 中。
智能进料应用程序旨在用于生产机器,主要是包装行业。该应用程序自动计算和
调节产品的适当加速度和速度。由于该过程是非接触式的,智能进料也适用于特
别敏感的产品。
关键事实和好处
• “Ready to run” 解决方案去控制一个进料系统
• 非接触式产品处理
• 支持不同长度的皮带
• 出⼝带上的胶带链(⼝袋)或恒定距离(⽆⼝袋)
• 皮带运动的自动控制和协调
• 只需参数化(无需编程)即可快速工程化
• 模块化概念
• 皮带数量仅受所用CPU类型的限制
• 手动点动功能(例如用于调试)
• 工艺对象配置的自动检查
• 专为梯形图调用而设计; 易于诊断
1.2 操作模式
1.2.1 进料系统概述
图 1-1: 进料系统基本设计
产品流向
进料系统由几条皮带组成:
• Inlet belt
产品(连续)通过这条传送带到达.
• Infeed belts
几个进料带以计算出的速度移动,以使产品适当地到达出口带。所需进料带
的数量取决于不同的参数 (例如机器速度、摩擦系数等)
• Outlet belt
出口带将产品输送到下游机器或作为其一部分。该带上的产品之间有明确的
间隙。出口带可以设计有或没有口袋。 在带有口袋的版本中,产品位于出口
皮带口袋的中间。(例如流式包装机)
1.2.2 智能进料功能
本章描述了产品处理的机制.
当自动功能运行时,每个产品都会经历以下操作阶段:
• Product detection
当产品传感器检测到新产品时,它会在内部寄存器中初始化,并由进料系统根据
当前的皮带速度进行处理。.
• Identification of target pocket
对于每种产品,每条带(进料轮廓)的快慢带速度会导致出口带的可到达位置范围
。如果可能的话,将产品分配到口袋的方式是不会创建空口袋。
The figure below shows the minimum and maximum infeed profile along the
system. Only the infeed belts change their velocities. A velocity distribution for a
product is always between a minimum and a maximum value. These values are
depending on different parameters. (e.g. machine speed, friction coefficient, etc.)
图 1-3: Application concept – Infeed profiles (例如: Inlet belt velocity = outlet belt velocity)
Infeed profiles
(product velocities)
v
mm/s
The basic product synchronization to the outlet belt is done by the ‘autoSync’
functionality. This is always required for synchronizing products to the outlet belt.
‘PositionCorrection’ is an optional or advanced functionality for correcting product
positions. This can be required due to:
• Unknown slippage of products
• Inaccurate or changing parameters (e.g. friction coefficient)
Product velocity
Product sensor
1.2.3 软件架构
图 1-5: 智能进料应用程序的软件架构
模块化概念
智能进料应用程序由一个主模块 (LInfeed_Manager) 和代表真实现有机器零件的
其他(子)模块组成。
1.2.4 技术概念
在自动功能期间,所有进料带都根据所需的速度循环啮合。这是通过 MC_GearIn
指令实现的。技术概念取决于出口带的控制位置。见以下两个案例。
Outlet be lt
TO_PositioningAxis / TO_SynchronousAxis
linear, modulo 0.."pocket length"
注意 出口皮带轴的控制必须由用户完成。
Outlet belt
TO_ExternalEncoder
linear, modulo 0.."pocket length"
1.2.5 定义
𝑝𝑎𝑟𝑡𝑠
注意 The product rate is defined as 𝑃 =
𝑜𝑟 [𝑝𝑝𝑚] (parts per minute)
The Intelligent Infeed application requires the inlet center distance of the products
as parameter. If only the inlet belt velocity is known, it can be converted to
distance.
Example
Table 1-4 Example parameters
Parameter Value
product rate 100ppm
velocity 250mm/s
→Inlet center distance (distanceInlet) = 60 * 250mm/s / 100ppm = 150mm
𝒗𝒆𝒍𝒐𝒄𝒊𝒕𝒚𝑰𝒏𝒍𝒆𝒕 𝒅𝒊𝒔𝒕𝒂𝒏𝒄𝒆𝑰𝒏𝒍𝒆𝒕
𝑹= = = 𝒄𝒐𝒏𝒔𝒕𝒂𝒏𝒕
𝒗𝒆𝒍𝒐𝒄𝒊𝒕𝒚𝑶𝒖𝒕𝒍𝒆𝒕 𝒅𝒊𝒔𝒕𝒂𝒏𝒄𝒆𝑶𝒖𝒕𝒍𝒆𝒕
Table 1-5 Cases of velocity ratio R
R Velocity Distance
< 1.0 𝑣𝑒𝑙𝑜𝑐𝑖𝑡𝑦𝐼𝑛𝑙𝑒𝑡 < 𝑣𝑒𝑙𝑜𝑐𝑖𝑡𝑦𝑂𝑢𝑡𝑙𝑒𝑡 𝑑𝑖𝑠𝑡𝑎𝑛𝑐𝑒𝐼𝑛𝑙𝑒𝑡 > 𝑑𝑖𝑠𝑡𝑎𝑛𝑐𝑒𝑂𝑢𝑡𝑙𝑒𝑡
= 1.0 𝑣𝑒𝑙𝑜𝑐𝑖𝑡𝑦𝐼𝑛𝑙𝑒𝑡 = 𝑣𝑒𝑙𝑜𝑐𝑖𝑡𝑦𝑂𝑢𝑡𝑙𝑒𝑡 𝑑𝑖𝑠𝑡𝑎𝑛𝑐𝑒𝐼𝑛𝑙𝑒𝑡 = 𝑑𝑖𝑠𝑡𝑎𝑛𝑐𝑒𝑂𝑢𝑡𝑙𝑒𝑡
> 1.0 𝑣𝑒𝑙𝑜𝑐𝑖𝑡𝑦𝐼𝑛𝑙𝑒𝑡 > 𝑣𝑒𝑙𝑜𝑐𝑖𝑡𝑦𝑂𝑢𝑡𝑙𝑒𝑡 𝑑𝑖𝑠𝑡𝑎𝑛𝑐𝑒𝐼𝑛𝑙𝑒𝑡 < 𝑑𝑖𝑠𝑡𝑎𝑛𝑐𝑒𝑂𝑢𝑡𝑙𝑒𝑡
NOTE For perfect functionality, the velocity ratio R has to be kept constant.
Example
Table 1-6 Example parameters
Parameter Value
product rate 120ppm
inlet center distance 225mm
pocket length 300mm
→ velocityInlet = 120ppm / 60 * 300mm = 600mm/s
→ velocityOutlet = 120ppm / 60 * 225mm = 450mm/s
→ R = 225mm / 300mm = 0.75
→ velocityInlet = 0.75 * velocityOutlet
In this example this means that the inlet belt has to move at a velocity of 75%
relative to the outlet belt.
Figure 1-9: Transition between two belts (example inlet and infeed belt 1)
belt transition. (More reliable detection of products than the use of a diffuse or
sensing light barrier)
• Only one sensor for inlet and first infeed is required (rising and falling edge
evaluation). A rising edge at a sensor detects the product. The falling edge is
used for the position correction of products on the infeed belts.
Figure 1-10: Sensor position recommendation (example with 2 infeed belts)
Table 1-7
Component Numbe Article number Note
r
CPU 1516-3 PN/DP 1 6ES7516-3AN02-0AB0 Other S7-1500 CPU
with FW V2.8.3
STEP 7 Professional V16 2 6ES7822-1A.06-..
2 Engineering
2.1 Description of interface
The interfaces and the controlling of the LInfeed library are based on the PLCopen
standard with considering the behavior of execute and enable inputs.
The function blocks are implemented in Structured Control Language (SCL). They
are programmed for use in an equidistant cyclic task.
List of blocks
Table 2-1 Size of blocks
Block Symbol Size in code Size in data Size in load
work-memory work-memory memory
[Kbytes] [Kbytes] [Kbytes]
FB 31800 LInfeed_Manager 47 571
FB 31801 LInfeed_InletBelt 4 78
FB 31802 LInfeed_InfeedBelt 20 250
FB 31803 LInfeed_OutletBeltBasic 11 158
FC 31800 LInfeed_RpmToVelocity 0.1 6
FC 31801 LInfeed_VelocityToRpm 0.1 6
FC 31802 LInfeed_VelocityToDista 0.1 6
© Siemens AG 2020 All rights reserved
nce
FC 31803 LInfeed_MachineSpeed 0.1 6
ToVelocity
DB 31800 LInfeed_DataExchange 76 96
InstLInfeed_Manager 80 118
InstLInfeed_InletBelt 0.3 4
InstLInfeed_InfeedBelt 1.3 8
InstLInfeed_OutletBeltBasic 0.6 7
3Instance data blocks (prefix InstLInfeed_) are not delivered with the library. They will be
generated automatically with the call of a function block.
Figure
LInfeed_Manager
jogging Bool
stopping Bool
fastStopActive Bool
ready Bool
© Siemens AG 2020 All rights reserved
calculationBusy Bool
actualInfeedProfile LReal
productTransferred Bool
productPositionDeviation LReal
diagnostics LInfeed_typeDiagnostics
LInfeed_typeManage configuration LInfeed_typeManagerConf
rConfiguration iguration
LInfeed_typeDataEx dataExchange LInfeed_typeDataExchang
change e
Principle of operation
This function block is organizing and operating the complete functionality of this
application. Especially functionalities which are affecting all belts are executed and
controlled by the manager FB.
Supported functionalities
• Enable / disable belts (axes)
• Reset errors and acknowledge technology alarms of the belts (axes)
• Jog forward / backward (all infeed belts)
• Automatic functionality
• Stop / fast stop
NOTE More information regarding the operation, see chapter: 2.3 Operation
Input parameters
Table 2-3 LInfeed_Manager input parameters
Parameter Data type Comment
enable Bool [TRUE] Enable functionality of FB
enableBelts Bool [TRUE] Enable infeed belts (axes)
reset Bool Rising edge: Acknowledge errors of FB and alarms of
technology objects (belts)
startAutomatic Bool Rising edge: Start automatic functionality
jogFwd Bool [TRUE] Jog all infeed belts in forward direction
jogBwd Bool [TRUE] Jog all infeed belts in backward direction
stop Bool Rising edge: Stop all infeed belts (with ‘autoSync’
dynamics)
fastStop Bool [TRUE] Enable fast stop, all infeed belts will be stopped
(with ‘fastStop’ dynamics)
Output parameters
Table 2-4 LInfeed_Manager output parameters
Parameter Data type Comment
valid Bool [TRUE] Valid set of output values available at
the FB
© Siemens AG 2020 All rights reserved
InOut parameters
Table 2-5 LInfeed_Manager inOut parameters
Parameter Data type Comment
configuration LInfeed_typeManagerConfiguration Configuration structure of FB
dataExchange LInfeed_typeDataExchange For internal use only. Connection
of dataExchange DB
Status displays
Table 2-6 LInfeed_Manager status displays
Status Meaning Comment
16#7000 STATUS_NO_CALL No call of FB
16#7001 STATUS_FIRST_CALL First call of FB after enabling
16#7002 STATUS_SUBSEQUENT_CALL Subsequent call of FB
© Siemens AG 2020 All rights reserved
Figure
LInfeed_InletBelt
error Bool
warning Bool
status Word
expectedVelocity LReal
diagnostics LInfeed_typeDiagnostics
LInfeed_typeInletBeltConfigu configuration LInfeed_typeInletBeltCo
ration nfiguration
dataExchange LInfeed_typeDataExcha
LInfeed_typeDataExchange
nge
Principle of operation
This function block is representing the inlet belt.
Supported functionalities
© Siemens AG 2020 All rights reserved
• Display of expected velocity of the inlet belt. This can be used to control the
inlet belt with correct velocity.
Input parameters
Table 2-7 LInfeed_InletBelt input parameters
Parameter Data type Comment
actualVelocity LReal Actual velocity of inlet belt
productSensor Bool Input signal of product sensor
Output parameters
Table 2-8 LInfeed_InletBelt output parameters
Parameter Data type Comment
valid Bool [TRUE] Valid set of output values available at
the FB
busy Bool [TRUE] FB is not finished and new output
values can be expected
error Bool [TRUE] An error occurred during the execution
of the FB
warning Bool [TRUE] A warning occurred during the
execution of the FB
status Word [16#0000 – 16#70FF] Status of the FB;
[16#7100 – 16#7FFF] LInfeed_WarningIDs;
[16#8000 – 16#FFFF] LInfeed_ErrorIDs
expectedVelocity LReal Expected velocity of inlet belt in [mm/s], can
be used during commissioning (compare with
actualVelocity) or as setpoint value for axis
control
diagnostics LInfeed_typeDiagnostics Diagnostics information of FB
InOut parameters
Table 2-9 LInfeed_InletBelt inOut parameters
© Siemens AG 2020 All rights reserved
Status displays
Table 2-10 LInfeed_InletBelt status displays
Status Meaning Comment
16#7000 STATUS_NO_CALL No call of FB
16#7001 STATUS_FIRST_CALL First call of FB after enabling
16#7002 STATUS_SUBSEQUENT_CALL Subsequent call of FB
Figure
LInfeed_InfeedBelt
status Word
beltEnabled Bool
fastStopActive Bool
diagnostics LInfeed_typeDiagnostics
LInfeed_typeInfeedBeltConfi configuration LInfeed_typeInfeedBeltConfi
guration guration
dataExchange
LInfeed_typeDataExchange LInfeed_typeDataExchange
Principle of operation
This function block is representing and controlling an infeed belt.
© Siemens AG 2020 All rights reserved
Supported functionalities
• Jog forward / backward
Input parameters
Table 2-11 LInfeed_InfeedBelt input parameters
Parameter Data type Comment
axis DB_ANY Axis specification (TO_SynchronousAxis)
jogFwd Bool [TRUE] Jog infeed belt in forward direction
jogBwd Bool [TRUE] Jog infeed belt in backward direction
productSensor Bool Input signal of product sensor
Output parameters
Table 2-12 LInfeed_InfeedBelt output parameters
Parameter Data type Comment
valid Bool [TRUE] Valid set of output values available at
the FB
busy Bool [TRUE] FB is not finished and new output
values can be expected
error Bool [TRUE] An error occurred during the execution
of the FB
warning Bool [TRUE] A warning occurred during the
execution of the FB
status Word [16#0000 – 16#70FF] Status of the FB;
[16#7100 – 16#7FFF] LInfeed_WarningIDs;
[16#8000 – 16#FFFF] LInfeed_ErrorIDs
beltEnabled Bool [TRUE] Infeed belt (axis) is enabled
jogging Bool [TRUE] Infeed belt is jogging
diagnostics LInfeed_typeDiagnostics Diagnostics information of FB
InOut parameters
Table 2-13 LInfeed_InfeedBelt inOut parameters
Parameter Data type Comment
© Siemens AG 2020 All rights reserved
Status displays
Table 2-14 LInfeed_InfeedBelt status displays
Status Meaning Comment
16#7000 STATUS_NO_CALL No call of FB
16#7001 STATUS_FIRST_CALL First call of FB after enabling
16#7002 STATUS_SUBSEQUENT_CALL Subsequent call of FB
Figure
LInfeed_OutletBeltBasic
status Word
actualMachineSpeedPercent LReal
homingBusy Bool
homingDone Bool
diagnostics LInfeed_typeDiagnostics
LInfeed_typeOutletBelt configuration LInfeed_typeOutletBeltB
BasicConfiguration asicConfiguration
LInfeed_typeDataExch dataExchange LInfeed_typeDataExcha
ange nge
Principle of operation
© Siemens AG 2020 All rights reserved
Supported functionalities
• Manual homing
• Continuous homing (when automatic functionality is running)
Input parameters
Table 2-15 LInfeed_OutletBeltBasic input parameters
Parameter Data type Comment
axis DB_ANY Axis specification (ExternalEncoder, PositioningAxis,
SynchronousAxis)
productSensor Bool Input signal of product sensor
homing Bool Rising edge: Start homing of outlet belt (according configured
homing mode)
continuousHoming Bool Enable continuous homing of outlet belt (incremental
encoder required)
Output parameters
Table 2-16 LInfeed_OutletBeltBasic output parameters
Parameter Data type Comment
valid Bool [TRUE] Valid set of output values available at
the FB
busy Bool [TRUE] FB is not finished and new output
values can be expected
error Bool [TRUE] An error occurred during the execution
of the FB
warning Bool [TRUE] A warning occurred during the
execution of the FB
status Word [16#0000 – 16#70FF] Status of the FB,
[16#7100 – 16#7FFF] LInfeed_WarningIDs;
[16#8000 – 16#FFFF] LInfeed_ErrorIDs
actualMachineSpeed LReal Value of actual machine speed in [%] relative
Percent to parameter ‘designMachineSpeed’
homingBusy Bool [TRUE] Homing command at outlet belt is busy
homingDone Bool [TRUE] Homing command at outlet belt is
done
diagnostics LInfeed_typeDiagnostics Diagnostics information of FB
InOut parameters
© Siemens AG 2020 All rights reserved
Status displays
Table 2-18 LInfeed_OutletBeltBasic status displays
Status Meaning Comment
16#7000 STATUS_NO_CALL No call of FB
16#7001 STATUS_FIRST_CALL First call of FB after enabling
16#7002 STATUS_SUBSEQUENT_CALL Subsequent call of FB
Figure
LInfeed_RpmToVelocity
LReal effectiveRollDiameter
UDInt motorRevolutions
UDInt loadRevolutions
Principle of operation
This function converts speed [rpm] to velocity [mm/s].
𝜋 𝑚𝑜𝑡𝑜𝑟𝑅𝑒𝑣𝑜𝑙𝑢𝑡𝑖𝑜𝑛𝑠
𝑣𝑒𝑙𝑜𝑐𝑖𝑡𝑦 = 𝑟𝑝𝑚 ∗ ∗ 𝑒𝑓𝑓𝑒𝑐𝑡𝑖𝑣𝑒𝑅𝑜𝑙𝑙𝐷𝑖𝑎𝑚𝑒𝑡𝑒𝑟 ∗
60 𝑙𝑜𝑎𝑑𝑅𝑒𝑣𝑜𝑙𝑢𝑡𝑖𝑜𝑛𝑠
Table 2-19 LInfeed_RpmToVelocity input parameters
Parameter Data type Comment
rpm LReal Motor speed in [rpm]
effectiveRollDiameter LReal [> 0.0] Effective roll diameter (including belt) in [mm]
motorRevolutions UDInt [> 0] Number of motor revolutions
© Siemens AG 2020 All rights reserved
NOTE Evaluate the ENO output of the function for error identification.
Figure
LInfeed_VelocityToRpm
LReal effectiveRollDiameter
UDInt motorRevolutions
UDInt loadRevolutions
Principle of operation
This function converts velocity [mm/s] to speed [rpm].
1
𝑟𝑝𝑚 = 𝑣𝑒𝑙𝑜𝑐𝑖𝑡𝑦 ∗
𝜋 𝑚𝑜𝑡𝑜𝑟𝑅𝑒𝑣𝑜𝑙𝑢𝑡𝑖𝑜𝑛𝑠
∗ 𝑒𝑓𝑓𝑒𝑐𝑡𝑖𝑣𝑒𝑅𝑜𝑙𝑙𝐷𝑖𝑎𝑚𝑒𝑡𝑒𝑟 ∗
60 𝑙𝑜𝑎𝑑𝑅𝑒𝑣𝑜𝑙𝑢𝑡𝑖𝑜𝑛𝑠
Input parameters
Table 2-21 LInfeed_VelocityToRpm input parameters
Parameter Data type Comment
velocity LReal Velocity in [mm/s]
© Siemens AG 2020 All rights reserved
effectiveRollDiameter LReal [> 0.0] Effective roll diameter (including belt) in [mm]
motorRevolutions UDInt [> 0] Number of motor revolutions
loadRevolutions UDInt [> 0] Number of load revolutions
NOTE Evaluate the ENO output of the function for error identification.
Figure
LInfeed_MachineSpeedToVelocity
LReal distance
Principle of operation
This function converts machine speed [ppm ] to velocity [mm/s].
𝑚𝑎𝑐ℎ𝑖𝑛𝑒𝑆𝑝𝑒𝑒𝑑
𝑣𝑒𝑙𝑜𝑐𝑖𝑡𝑦 = ∗ 𝑑𝑖𝑠𝑡𝑎𝑛𝑐𝑒
60
Table 2-23 LInfeed_MachineSpeedToVelocity input parameters
Parameter Data type Comment
machineSpeed LReal Machine speed in parts per minute [ppm]
distance LReal [> 0.0] Pocket length or inlet center distance in [mm]
NOTE Evaluate the ENO output of the function for error identification.
Figure
LInfeed_VelocityToDistance
LReal machineSpeed
Principle of operation
This function converts velocity [mm/s] to distance [mm].
𝑣𝑒𝑙𝑜𝑐𝑖𝑡𝑦
𝑑𝑖𝑠𝑡𝑎𝑛𝑐𝑒 = 60 ∗
𝑚𝑎𝑐ℎ𝑖𝑛𝑒𝑆𝑝𝑒𝑒𝑑
Table 2-25 LInfeed_VelocityToDistance input parameters
Parameter Data type Comment
velocity LReal Velocity (e.g. inlet belt velocity) in [mm/s]
machineSpeed LReal [> 0.0] Machine speed in parts per minute [ppm]
NOTE Evaluate the ENO output of the function for error identification.
2.1.9.1 LInfeed_typeDataExchange
This data type is for the application internal data exchange and the structure is not
relevant for the user.
2.1.9.2 LInfeed_typeManagerConfiguration
(default: -1.0)
cycleTime LReal [-1.0] Automatic detection;
[> 0.0s] Value is used;
Cycle time of application in seconds
(default: -1.0)
calculationPerformance Int [-1] Automatic detection;
[0] Minimum;
[> 0] Value is used; Adjustment factor of calculation
performance of infeed profile table; Increase for faster
calculation
(default: -1)
changeParametersOnT Bool [FALSE] Parameters are only taken over when
heFly manager output ‘ready’ is set;
[TRUE] Parameters can be changed during automatic
functionality is running (for commissioning)
(default: FALSE)
2.1.9.3 LInfeed_typeDiagnostics
2.1.9.4 LInfeed_typeProductParameters
positions
(default: -1.0)
handoverProfile Int [1] Constant acceleration;
[2] Continuous acceleration;
Handover profile of products at the transition between 2 belts
(default: 2)
2.1.9.5 LInfeed_typeInletBeltConfiguration
2.1.9.6 LInfeed_typeInfeedBeltConfiguration
(default: -2)
distanceLimit LReal [-2.0] Value of 'manager.positionCorrection.distanceLimit';
[> 0.0mm] Value is used;
Distance limitation of correction movement
(default: -2.0)
velocityDifferenc LReal [-2.0] Value of 'manager.positionCorrection.velocityDifference';
e [> 0.0mm/s] Value is used;
Velocity difference of correction movement
(default: -2.0)
acceleration LReal [-2.0] Value of 'manager.positionCorrection.acceleration’;
[-1.0] Default acceleration of axis;
[> 0.0mm/s²] Value is used
(default: -2.0)
deceleration LReal [-2.0] Value of 'manager.positionCorrection.deceleration’;
[-1.0] Default deceleration of axis;
[> 0.0mm/s²] Value is used
(default: -2.0)
jerk LReal [-2.0] Value of 'manager.positionCorrection.jerk’;
[-1.0] Default jerk of axis;
[0.0] Trapezoidal velocity profile;
[> 0.0mm/s³] Value is used
(default: -2.0)
2.1.9.7 LInfeed_typeOutletBeltBasicConfiguration
2.1.9.8 LInfeed_typeSensor
© Siemens AG 2020 All rights reserved
2.1.10.1 LInfeed_Tags
2.1.10.2 LInfeed_WarningIDs
(Word)
LINFEED_WARN_NON_CO 16#7100 Warning: Gap between the products on inlet belt is too
NTROLLED_PRODUCT small or product rate at inlet belt is too high; See
parameters 'manager.inletBeltCenterDistance' and
'manager.inletBeltMaxDeviation'
LINFEED_WARN_DISTANC 16#7101 Warning: Distance travelled by the products per
E_PER_CYCLE application cycle exceeds PLC tag
'LINFEED_DISTANCE_PER_CYCLE_WARNING_VALU
E'; Recommendation: Reduce application cycle time
LINFEED_WARN_PRODUC 16#7102 Warning: Product not detected within configured position
T_SENSOR window. See parameters
'infeedBelt.productSensor.positionWindow' or
‘outletBelt.productSensor.positionWindow'
2.1.10.3 LInfeed_ErrorIDs
ED_AUTOSYNC_BELT_STATE
LINFEED_ERR_INT_UNDEFIN 16#860E Error internal: Undefined autosync product state
ED_AUTOSYNC_PRODUCT_S
TATE
LINFEED_ERR_INT_UNDEFIN 16#860F Error internal: Undefined velocity profile calculation
ED_CALCULATION_STATE state
Please note that if the outlet belt is represented by an external encoder, the use of
a S7-1500T CPU is required.
See also chapter 1.2.4 Technological concept
2.2.2.2 CPU-Type
The optimal CPU type (performance) is depending on the number of infeed belts
and application cycle time.
NOTE The number of required infeed belts has to be defined in advance and is not part
of this documentation.
© Siemens AG 2020 All rights reserved
Basic parameters
In the TO configuration the following parameter has to be set:
Axis type: linear
Extended parameters
• Mechanical parameters: load gear, leadscrew pitch (exact values required)
• Limits (dynamic limits) have to be set (every infeed requires same values)
• Control loop (optimization)
NOTE The configured limit velocity of axis is relevant for automatic functionality.
It is required to insert one axis to the project for representation of the outlet belt.
Possible technology objects:
• TO_PositioningAxis
© Siemens AG 2020 All rights reserved
• TO_SynchronousAxis
• TO_ExternalEncoder (S7-1500T-CPU required)
Basic parameters
Axis type: linear, modulo enabled, modulo length = pocket length
Extended parameters
• Mechanical parameters: load gear, leadscrew pitch (exact values required)
• Limits (dynamic limits) have to be set
• Homing → Select homing mode
(zero mark via PROFIdrive telegram recommended)
• Control loop (optimization)
General
A TO_SynchronousAxis is required for each infeed belt.
NOTE The user is responsible for an adequate call cycle of the application.
NOTE The complete application has to be called in the same organization block (OB).
All block instances have to be called in every organization block cycle.
Data exchange
The LInfeed_DataExchange DB has to be connected to the inOut parameter
© Siemens AG 2020 All rights reserved
The sensor signals are required for product detection and position correction. In
general, there are 2 possibilities to get the signals in the CPU:
• via IO modules (e.g. DI at ET 200SP)
• via drive inputs at SINAMICS S120 (with Tel 390)
• via drive inputs at SINAMICS S210 (with Tel 105 and the bit
G1_ZSW1.Probe1Deflected resp. G1_ZSW1.Probe2Deflected)
Figure 2-1: I/O addresses of an ET 200SP input module (example input address 100)
It is required to assign the sensor inputs to the OB where the Intelligent Infeed
application is called (call synchronously to MC Interpolator → Use MC-Servo).
A (varying) acquisition time of input signals in the user program can cause
inaccuracy positioning of products on the outlet belt.
All relevant machine configuration types can be found in the following chapters:
2.1.9.5 LInfeed_typeInletBeltConfiguration
2.1.9.6 LInfeed_typeInfeedBeltConfiguration
2.1.9.7 LInfeed_typeOutletBeltBasicConfiguration
Sensor position
Infeed 2
Sensor position
Sensor Inlet
Infeed 1
Allowed sensor
position range
Handover position
Infeed 1
Handover position
Infeed 2
0.0 + Position / mm
NOTE The reference position (0.0) is the first belt transition (inlet belt → infeed belt 1).
All position values refer to this point.
Handover positions
© Siemens AG 2020 All rights reserved
The handover positions define where a certain belt ends and the next begins. For
every infeed belt the handover position has to be defined:
handover position belt (n) > handover position (n-1) + product length
That means the product length has to be smaller than the infeed belt lengths.
Sensor positions
The sensors (inlet and infeed belts) have to be located in specified position ranges.
See figure above.
The sensor on the inlet belt is mandatory for product detection and cannot be
deactivated. Sensors on infeed belts are optional for increasing accuracy on the
outlet belt, they have to be activated via configuration structure.
NOTE Infeed belt sensors increase the accuracy on the outlet belt. Recommendation:
Positions of sensors at belt transitions.
See also chapter: 1.3.3 Sensor position recommendation
NOTE Only infeed belts with configured operation mode ‘controlled by autoSync’ are
relevant for product synchronization to the outlet belt.
Infeed belts with configured operation mode ‘synchronized to outlet belt’ are
additional and increase the total number of infeed belts.
The homing of the outlet belt can be done with different modes (see instruction
MC_Home).
productPhaseOffset productPhaseOffset
< 0.0 > 0.0
Outlet belt
3. staticFriction
2. length [0.0 - 1.0]
[mm] pocket length
[mm]
1. designMachineSpeed
Defines the maximum rate of arriving products on the inlet belt.
Unit: Parts per minute [ppm].
2. length
Defines the regular length of the products. Unit: [mm]
3. staticFriction
Defines the grip of the products on the belt surface. See data sheet from belt
manufacturer.
Also see chapter: 3.1.2 Get friction coefficient with inclined plane test
© Siemens AG 2020 All rights reserved
4. inletBeltCenterDistance
[mm]
5. inletBeltMaxDeviation [mm]
inletBeltMaxDeviation 1 inletBeltMaxDeviation 2
(e.g. -15mm) (e.g. 20mm)
Note:
Handling of this case causes a temporary change of the infeed
profile.
After product with position deviation is placed on outlet belt, the
Infeed profile returns to normal (initial) value.
inletBeltMaxDeviation
(positive gap e.g. 50mm)
inletBeltMaxDeviation
(negative gap e.g. -40mm)
Note:
Handling of this case causes a permanent change of the Infeed
profile.
To recover back to the normal infeed profile it is required to adjust
the velocity of the outlet belt.
4. inletBeltCenterDistance
Distance between center of products if products arrive with ideal / regular
conditions.
If only the velocity of the inlet belt is known, you can convert it to the inlet
center distance.
See chapter: 1.2.5 Definitions
5. inletBeltMaxDeviation
Defines the maximum position error of products on the inlet belt.
The pocket length is defined from the middle of a tappet to the middle of the next or
the previous tappet. All pockets (distance between middle tappets) must have
same lengths.
Figure 2-7: Pocket length at outlet belt
Outlet belt
NOTE The pocket length has to be equal to the modulo length in the TO configuration
of the outlet belt axis.
Control mode
This parameter defines the operating mode of the automatic functionality (manager
input ‘autoStart’).
Table 2-48: Control modes of automatic functionality
Value Meaning Comment
0 no active control for commissioning and test purposes
1 autoSync Synchronization of products to the outlet
belt (only gearing commands are used by
Intelligent Infeed)
2 autoSync and positionCorrection synchronization of products to the outlet
belt and position correction of products
on the infeed belts (gearing and
superimposed commands are used by
Intelligent Infeed)
More information can be found in chapter: 1.2.2 Functionality of Intelligent Infeed
Product control
1. autoSyncDynamics
These parameters define the dynamics for the ‘autoSync’ functionality. The
dynamics are used to change the velocities of the infeed belts for each arriving
product.
2. positionCorrection
These parameters define the additional dynamics and the maximum distance to be
corrected on an infeed belt.
This configuration (at manager FB) affects the ‘positionCorrection’ functionality at
all infeed belts. It is possible to change parameters individually at the respective
infeed belt (e.g. change dynamics like velocityDifference or distanceLimit).
2.3 Operation
2.3.1 Activation and deactivation
enable
valid
busy
error
LINFEED_ERR_XXX
status
STATUS_SUBSEQUENT_CALL
STATUS_FIRST_CALL
STATUS_NO_CALL
1) 2) 3) 4) 5)
1) The function block is activated by setting the ‘enable’ input. After enabling
the FB, the output ‘status’ is changing to STATUS_FIRST_CALL and
afterwards to STATUS_SUBSEQUENT_CALL. In case there is a
© Siemens AG 2020 All rights reserved
Enable belts
With manager FB input ‘enableBelts’ all configured infeed belts are enabled and
disabled. The output ‘beltsEnabled’ is set, if the belts are enabled.
NOTE If the manager FB input ‘enableBelts’ is reset while other functionalities are
running, the fast stop functionality is activated to stop all belts as fast as
possible. After stopping is finished the axes are disabled. This can be used for
emergency stop handling.
Stop / fastStop
A rising edge at manager FB input ‘stop’ or ‘fastStop’ triggers a stop for all infeed
belts. While stopping is active, the output ‘stopping’ is set.
NOTE After a stop, the products can no longer be controlled by the infeed system. They
have to be removed.
Reset
The manager FB input ‘reset’ can be used to acknowledge FB errors and reset
technology alarms. During reset is active the output ‘resetting’ is set.
NOTE Axes only get reset (with MC_RESET) if technology alarms are pending.
The homing functionality of the outlet belt is started by a rising edge at input
‘homing’ of outlet belt FB.
Passive homing (outletBelt.homing.mode 2 or 8) can be aborted via stop
functionality at manager FB.
This functionality executes a cyclic homing of the outlet belt axis. It is activated via
outlet belt FB input ‘continuousHoming’.
Due to inaccuracies in the mechanical parameters (lead screw pitch, modulo length
of the axis,…) or slippage between the drive roller and the outlet belt, the axis
position of the outlet belt may drift. This can lead to a steadily increasing shift of the
products from the center of the pocket.
Requirements:
• Outlet belt homing sensor present
• Passive homing at outlet belt axis configured (use zero mark via PROFIdrive)
• Home position is configured, see chapter 2.2.7 Machine parameters
Normally the product rate PInlet is specified (e.g. by the upstream machine). There
is no influence on it. The value varies from approximately constant to completely
irregular depending on the operating state of the upstream machine.
In the irregular case the POutlet has to be controlled accordingly. That means the
velocity of the outlet belt has to be regulated.
NOTE Empty pockets on the outlet belt cannot be avoided at startup of the infeed
system.
Product sensor Product sensor Product sensor Product sensor Product sensor
Measuring belt Inlet belt Infeed belt 1 Infeed belt 2 Infeed belt 3 Outlet belt
In this case the product rate at the outlet belt POutlet is fixed. That means the inlet
and the outlet belt have to move with constant velocity.
The product rate on the inlet belt has to be controlled by changing the inlet center
distance of the products (e.g. controlling product rate of upstream machine).
NOTE Empty pockets on the outlet belt cannot be avoided at startup of infeed system.
NOTE The complete list of ErrorID information can be found in tag table
LInfeed_ErrorIDs
Errors are displayed at the manager FB. If a submodule is affected (belt), the error
is also displayed at the respective block.
To acknowledge pending errors, a rising edge at the input ‘reset’ at the manager
FB is required. The reset process may take a few cycles. As long as reset is active
the manager output ‘resetting’ is set.
2.4.5 Solutions for insufficient product position accuracy on the outlet belt
3 Additional information
3.1 Miscellaneous
3.1.1 Optimal infeed belt length
In the following you will find a rough guideline for determining the length of the
infeed belts:
It is possible to get the friction coefficient of products related to the belt surface with
a simple test.
Figure 3-1: Inclined plane test
2.
1.
© Siemens AG 2020 All rights reserved
4 Appendix
4.1 Service and support
Industry Online Support
Do you have any questions or need assistance?
Siemens Industry Online Support offers round the clock access to our entire
service and support know-how and portfolio.
The Industry Online Support is the central address for information about our
products, solutions and services.
Product information, manuals, downloads, FAQs, application examples and videos
– all information is accessible with just a few mouse clicks:
support.industry.siemens.com
Technical Support
The Technical Support of Siemens Industry provides you fast and competent
support regarding all technical queries with numerous tailor-made offers
– ranging from basic support to individual support contracts. Please send queries
to Technical Support via Web form:
www.siemens.com/industry/supportrequest
© Siemens AG 2020 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
web page:
support.industry.siemens.com/cs/sc
https://support.industry.siemens.com/cs/ww/en/view/109779533