Page 2
General Notes SIMOTION Flying Saw A4027118-A0414 We reserve the right to make technical changes to this product. Copyright Reproduction, transmission or use of this document or its contents is not permitted without express written authority. Offenders will be liable for damages.
Page 4
General Notes SIMOTION Flying Saw A4027118-A0414 Qualified personnel In the sense of this documentation qualified personnel are those who are knowledgeable and qualified to mount/install, commission, operate and service/maintain the products which are to be used. He or she must have the appropriate qualifications to carry-out these activities e.g.: •...
Page 5
Foreword SIMOTION Flying Saw A4027118-A0414 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 –...
Page 6
Foreword SIMOTION Flying Saw A4027118-A0414 Document structure The documentation of this application is sub-divided into the following main section: Sec- Description Note tion Section A will provide you with everything that you require to obtain an overview of this standard application. This Section explains the prerequisites and the objective when using this application.
Safety information and instructions..............23 4.1.2 Responsibilities of the operator ..............24 Hardware structure and mounting/installation ..........25 Installing the standard SIEMENS software ............. 28 Downloading the user program and parameterizing the drive in the SIMOTION D demonstration case ................28 4.4.1 De-archiving the SIMOTION project ...............
Page 8
List of contents SIMOTION Flying Saw A4027118-A0414 Brief instructions to demonstrate ..............41 5.1.1 Structure overview ..................42 5.1.2 Brief instructions ..................... 43 Detailed operating instructions ............... 47 5.2.1 Structure overview ..................48 5.2.2 Start ........................ 48 5.2.3 Machine parameter settings ................51 5.2.4 Operator control functions in the setting-mode..........
Page 9
List of contents SIMOTION Flying Saw A4027118-A0414 Using the restart bit..................83 Error messages ....................83 Help functions within the core “flying saw” functions ........85 Section D: Program description................86 Information and instructions to adapt the core “flying saw” functions .. 87 Information and warnings ................
Section A: Prerequisites and objectives Basic information Flying Saw with SIMOTION A4027118-A0414 Section A: Prerequisites and objectives Content Section A will provide you with everything that you require to obtain an overview of this standard application. The prerequisites and the objective for using this standard application are presented.
Section A: Prerequisites and objectives Basic information Flying Saw with SIMOTION A4027118-A0414 Basic information Prerequisites 1.1.1 Target group The standard application is conceived for all programmers and users who wish to quickly and simply implement a flying saw using SIMOTION. 1.1.2 Knowledge base In order to use this technology template, you should be able to use SCOUT...
Section A: Prerequisites and objectives Basic information Flying Saw with SIMOTION A4027118-A0414 Principle design of a "flying saw" The material is fed-in as an endless web (e.g. plastic, sheet steel or fiber board) using a conveyor belt that runs with a constant velocity. The position of the cut on the material web is either sensed using a print mark using a sensor or is specified by the control after a cut length has been passed that can be adjusted.
Section A: Prerequisites and objectives Basic information Flying Saw with SIMOTION A4027118-A0414 The user program only has to control the material feed and to supply the core function with the correct parameters. Additional function of the standard application Further, using this standard application, after the material has been cut with the cutting device, a gap can be created between the individual cut pieces.
Page 14
Section A: Prerequisites and objectives Basic information Flying Saw with SIMOTION A4027118-A0414 The program fulfills the following tasks: • Operating mode manager for the complete (demonstration) machine • The control of the (demonstration) machine • The core functions of the "flying saw" functionality with absolute gearing •...
Section A: Prerequisites and objectives Uses Flying Saw with SIMOTION A4027118-A0414 Uses Applications 2.1.1 Controls that are permitted The standard “flying saw” application has only been tested for use in the following control system: • SIMOTION D 435 However, it can also be used – without any significant additional costs – also in the SIMOTION P or SIMOTION C controls.
Section A: Prerequisites and objectives Uses Flying Saw with SIMOTION A4027118-A0414 2.1.3 Properties and features of the core “flying saw” functions The following properties and features were taken into account when implementing the core functions, and can also be used in a user program that you generate yourself: •...
Section A: Prerequisites and objectives Uses Flying Saw with SIMOTION A4027118-A0414 Application environment The standard “flying saw” application can be used in the following hardware environment: Fig. 2-1 Application environment of the standard “flying saw” application PG / PC SIMOTION D Encoder Motor Material web...
Section A: Prerequisites and objectives Structure and function Flying Saw with SIMOTION A4027118-A0414 Structure and function Design of the "flying saw" 3.1.1 General design The "flying saw", which is based on the "flying saw" core function comprises a spindle axis that is mounted on the cutting unit. 3.1.2 Physical quantities that can be parameterized The following physical quantities of the “flying saw”...
Page 19
Section A: Prerequisites and objectives Structure and function Flying Saw with SIMOTION A4027118-A0414 Table 3-1: Explanation of the parameterizable physical quantities Physical quantity Description DistanceToSensor Distance (clearance) between the axis zero of the "flying saw" [mm] and the sensor to sense the material and print mark StartPos Starting position of the cutting unit referred to the axis zero [mm]...
Section A: Prerequisites and objectives Structure and function Flying Saw with SIMOTION A4027118-A0414 Operating states of the "FlyingSaw-FB" The “FlyingSaw FB” automatically controls the “flying saw” axis to implement the required level of functionality. This functionality is sub-divided into five operating states so that the sequences at the “flying saw”...
Page 21
Section A: Prerequisites and objectives Structure and function Flying Saw with SIMOTION A4027118-A0414 starting position and is ready to synchronize to the material web. The flying saw axis waits in the “enable” state. • Automatic (3) The flying saw axis has been synchronized to the material web and cuts the material as specified.
Components and their interconnections required for the software presentation Installation of standard SIEMENS software Downloading the user program in SIMOTION D435 Downloading drive parameters in SINAMICS Operator control of Brief instructions on how to use the demonstration system...
Section B: The application example as demonstration system t lli th h d Flying Saw with SIMOTION A4027118-A0414 Installing the hardware and software Regarding your safety 4.1.1 Safety information and instructions Pictograms, signal words and text Every piece of safety information/instruction in this document is designated by text graphics –...
Section B: The application example as demonstration system t lli th h d Flying Saw with SIMOTION A4027118-A0414 4.1.2 Responsibilities of the operator 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.
Section B: The application example as demonstration system t lli th h d Flying Saw with SIMOTION A4027118-A0414 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.
Page 26
Section B: The application example as demonstration system t lli th h d Flying Saw with SIMOTION A4027118-A0414 Table 4-1 Hardware components Hardware element Diagram Order No./MLFB and functions Training case, SIMOTION D435 with SINAMICS S120 SIMOTION D 6ZB2 470-0AE00 demonstration and The SIMOTION D training case comprises training case...
Page 27
Section B: The application example as demonstration system t lli th h d Flying Saw with SIMOTION A4027118-A0414 Table 4-2 Hardware configuration and mounting Action Comment 1 Connect the MPI/DP interface of your PG/PC Do not use the standard MPI cable, to the righthand MPI/DP interface (contact supplied with the PG/PC to connect the X136) of the SIMOTION D435 using a...
Section B: The application example as demonstration system t lli th h d Flying Saw with SIMOTION A4027118-A0414 Installing the standard SIEMENS software Minimum required releases Table 4-3 Versions Component Version. STEP 7 V5.4 + SP2 SIMOTON SCOUT V4.1.1.6 WinCCflex Advanced...
Page 29
Section B: The application example as demonstration system t lli th h d Flying Saw with SIMOTION A4027118-A0414 • When RDY lights green and STOP lights orange, set the SIMOTION D435 mode switch to the 0 position (RUN) • RDY and RUN are green Once the factory setting has been restored, the SIMOTION D435 has PROFIBUS address 2 and the baud rate is 1.5 Mbit/s.
Section B: The application example as demonstration system t lli th h d Flying Saw with SIMOTION A4027118-A0414 4.4.3 Re-configuring the double-axis motor module from 3A/3A to 5A/5A This application example is configured as standard using a 3A/3A motor module. However, there are demonstration cases in the field, which are still equipped with a 5A/5A motor module.
Page 31
Section B: The application example as demonstration system t lli th h d Flying Saw with SIMOTION A4027118-A0414 Fig. 4-3: Re-configuring the motor module V 1.4 Release 06/06/08 31/107...
Section B: The application example as demonstration system t lli th h d Flying Saw with SIMOTION A4027118-A0414 4.4.4 Setting the Ethernet interface of the PG/PC Setting the PG/PC interface Table 3-5: Setting the PG/PC interface Action Comment 1 In SIMOTION SCOUT open the interface configuration using O PTIONS PG/PC...
Page 33
Section B: The application example as demonstration system t lli th h d Flying Saw with SIMOTION A4027118-A0414 6 Open Properties by double-clicking on the PG/PC(1). 7 Under the “Assignment” tab (this is already automatically selected), the ETHERNET interface used must be listed under “Assigned”.
Page 34
Section B: The application example as demonstration system t lli th h d Flying Saw with SIMOTION A4027118-A0414 9 The interface of the control is now assigned the interface of the PG/PC. Select this and if it has still not been set, then set the checkmark for S7ONLINE access Active.
Page 35
Section B: The application example as demonstration system t lli th h d Flying Saw with SIMOTION A4027118-A0414 Table 3-6: Ethernet address Action Comment 1 Open the window Network and Dial-up Connections of your PG/PC and select the network connection to SIMOTION D435 and open its properties.
Section B: The application example as demonstration system t lli th h d Flying Saw with SIMOTION A4027118-A0414 3 The Ethernet interface IE2 (X130) of SIMOTION D435 has, as standard, the IP address 169.254.11.22. Select “Use the following IP address” and enter the IP address 169.254.11.23.
Page 37
Section B: The application example as demonstration system t lli th h d Flying Saw with SIMOTION A4027118-A0414 2 Acknowledge with OK 3 Acknowledge with OK 4 Press No and do not restart 5 Close the hardware configuration and change to Scout V 1.4 Release 06/06/08 37/107...
Section B: The application example as demonstration system t lli th h d Flying Saw with SIMOTION A4027118-A0414 4.4.6 Downloading the SIMOTION project of the standard application Table 4-5: Downloading the SIMOTION project Action Comment 1 Before you download the project, in the offline mode, please check under Target system/Select target devices 4 Whether both SIMOTION D435 as well as...
Page 39
Section B: The application example as demonstration system t lli th h d Flying Saw with SIMOTION A4027118-A0414 6 After starting the download, you will be prompted as to whether you wish to “copy RAM to ROM“ after the download. Always answer this question with Yes as otherwise your program must be again downloaded after power ON/OFF.
Page 40
Section B: The application example as demonstration system t lli th h d Flying Saw with SIMOTION A4027118-A0414 12 Now switch the SIMOTION D435 into the RUN state. To do this, click on the SIMOTION-CPU and with the righthand mouse key and target device/operating state, go to the operating state display.
Section B: The application example as demonstration system t l f th Flying Saw with SIMOTION A4027118-A0414 Operator control of the application example The application can be used to present SIMOTION D with SINAMICS and get to know and test the functions of the CPU D435. You will find brief instructions on how to demonstrate and present the application in the following Chapter 5.1 Brief instructions to demonstrate.
Section B: The application example as demonstration system t l f th Flying Saw with SIMOTION A4027118-A0414 5.1.1 Structure overview Please refer to the following diagram for the basic operator control structure with all of the operator areas of the application. The SETTINGS, STATUS and MANUAL displays are not required when presenting the application and are therefore not described in the detailed Operating Instructions.
Table 5-1: Brief instructions to demonstrate/present the “flying saw” application example Action Comment 1 Call the following file "C:\Siemens\Step7\S7Proj\SAP_FlyingSaw\TDOP\ PRO__00.fwd" As an alternative, you can also select the operator panel using Step 7. In the SIMATIC Manager, open the SAP_FlyingSaw project. You will find the HMI object OP1 at the project level.
Page 44
Section B: The application example as demonstration system t l f th Flying Saw with SIMOTION A4027118-A0414 6 Once the “flying saw” has reached its starting position, the Flying Saw START button is displayed to activate the “flying saw” Before you activate the “flying saw”, the required cut length should be selected using the Cutlength slider.
Page 45
Section B: The application example as demonstration system t l f th Flying Saw with SIMOTION A4027118-A0414 12 After the last cut, the “flying saw” automatically moves to its starting position and waits for new material. 13 Once the material has been completely removed from the screen area, then you can either allow new material to enter by pressing...
Page 46
Section B: The application example as demonstration system t l f th Flying Saw with SIMOTION A4027118-A0414 Material Random print mark offset Start Start flying Material Stop Move flying saw Material to the starting position Allow Terminate material to flying saw run-out (end) Basic...
Section B: The application example as demonstration system t l f th Flying Saw with SIMOTION A4027118-A0414 Detailed operating instructions A detailed description of the application is provided in these instructions. This is necessary so that you can get to know and test the CPU functions. Prerequisites The following prerequisites must be fulfilled to use the application example: •...
Start In the SIMATIC Manager, open the SAP_FlyingSaw project. You will find the HMI object OP1 at the project level. Start the runtime from the context menu (righthand mouse key). Call the following file C:\Siemens\Step7\S7Proj\SAP_FlyingSaw\TDOP\PRO__00.fwd". V 1.4 Release 06/06/08 48/107...
Page 49
Section B: The application example as demonstration system t l f th Flying Saw with SIMOTION A4027118-A0414 The welcome screen is displayed Fig. 5-4 Welcome screen General screen areas The screen forms of the application are handled using buttons at the lower edge of each of the screen forms.
Page 50
Section B: The application example as demonstration system t l f th Flying Saw with SIMOTION A4027118-A0414 The following functions can be selected using the individual buttons: Table 5-2 General buttons to control/handle the screen forms Button Function You can access the pre-setting screen from every operator screen using the SETTINGS button.
Section B: The application example as demonstration system t l f th Flying Saw with SIMOTION A4027118-A0414 5.2.3 Machine parameter settings The standard application allows the following parameters to be adapted: Machine geometry • Distance to sensor Distance between the flying saw axis and the sensor of the material and print mark detection •...
Page 52
Section B: The application example as demonstration system t l f th Flying Saw with SIMOTION A4027118-A0414 Fig. 5-5 SETTINGS operator screen for machine geometry settings V 1.4 Release 06/06/08 52/107...
Section B: The application example as demonstration system t l f th Flying Saw with SIMOTION A4027118-A0414 5.2.4 Operator control functions in the setting-mode In the manual mode, the material web and flying saw can be manually moved. This standard application does not require any functions that may only be executed in the setting-up mode.
Section B: The application example as demonstration system t l f th Flying Saw with SIMOTION A4027118-A0414 5.2.5 Operator functions of the process in the automatic mode Note The automatic mode is only available, if • There is no fault, •...
Page 55
Section B: The application example as demonstration system t l f th Flying Saw with SIMOTION A4027118-A0414 Standard operator control Table 5-3: Standard operator control in the automatic mode Action Comment 1 Initial situation: The “flying saw” is in the AUTOMATIC-STOPPED mode 2 Using the Sync Position slider switch, enter the position at which the flying saw reaches the position where the material web is to be cut.
Page 56
Section B: The application example as demonstration system t l f th Flying Saw with SIMOTION A4027118-A0414 8 Depending on the material velocity and the cutting duration, an actual maximum position of the flying saw is obtained, which is identified by a red bar.
Page 57
Section B: The application example as demonstration system t l f th Flying Saw with SIMOTION A4027118-A0414 Expanded operator control Table 5-4: Expanded operator control in the automatic mode Action Comment 1 If the flying saw is in the AUTOMATIC-STOPPED, operating mode, you can select one of two possibilities: 1.
Page 58
Section B: The application example as demonstration system t l f th Flying Saw with SIMOTION A4027118-A0414 6 Here, you can set the velocities for the return to the starting position and also when returning to the starting position in the automatic mode Display areas Fig.
Section B: The application example as demonstration system t l f th Flying Saw with SIMOTION A4027118-A0414 5.2.6 Technology view The technology view of the application can be selected from every operator screen using the TECHNOLOGY button. Fig. 5-10 Technology view of the flying saw Velocity of the material web Velocity of the flying...
Section B: The application example as demonstration system t l f th Flying Saw with SIMOTION A4027118-A0414 5.2.7 Operator control functions in the status display The status display of the application can be selected from every operator screen using the STATUS button. Fig.
Section C: Integrating the core “flying saw” functions Operator control of the application example Flying Saw with SIMOTION A4027118-A0414 Section C: Integrating the core “flying saw” functions Content All of the steps necessary to integrate the core “flying saw” functions into your application are explained in Section C.
Section C: Integrating the core “flying saw” functions Program environment and interfaces Flying Saw with SIMOTION A4027118-A0414 Program environment and interfaces 6.1.1 Function and identification of the program groups The standard “flying saw” application is sub-divided into the following program groups: •...
Section C: Integrating the core “flying saw” functions Program environment and interfaces Flying Saw with SIMOTION A4027118-A0414 6.1.2 Program structure All of the functions, implemented in the standard “flying saw” application are listed in the following table according to their assignment to a particular program group and program unit.
Page 64
Section C: Integrating the core “flying saw” functions Program environment and interfaces Flying Saw with SIMOTION A4027118-A0414 Pro- Program Program Data gram unit module unit Section FS_TEMPL FB_BGD_TEMPLATE_FlyingSaw() FS_Var FS_PMIPO MT_FS1_PrintmarkDetection() IPO_FS1_IPO_routine() FS_SPB FB_BGD_FS_SPB_in() FB_BGD_FS_SPB_reset() FB_BGD_FS_SPB_read() FB_BGD_FS_SPB_out() SIM_PM IPO_SIM_Printmarks() SIM_Var Startup_SIM() HMI_SAP BGD_HMI_FlyingSaw()
Section C: Integrating the core “flying saw” functions Program environment and interfaces Flying Saw with SIMOTION A4027118-A0414 Call environment The function block FB_BGD_TEMPLATE_FlyingSaw() of the “flying saw” core function must be cyclically called in the user program. This is the reason that the call can only be made from a program that is incorporated in the background task.
Section C: Integrating the core “flying saw” functions Program environment and interfaces Flying Saw with SIMOTION A4027118-A0414 • Block interfaces • User interface in the global data area (data unit FS_Var) The function block is signaled changing tasks and modes using the block interface.
Page 67
Section C: Integrating the core “flying saw” functions Program environment and interfaces Flying Saw with SIMOTION A4027118-A0414 Parameter Data type Initial value Description Mode Using Mode, the mode is pre- selected that is activated with the next positive signal edge at the execute input.
Section C: Integrating the core “flying saw” functions Program environment and interfaces Flying Saw with SIMOTION A4027118-A0414 Parameter Data type Initial value Description Input/output parameter (IN/OUT) UsersInterface STRUCT User interface ErrorInterface STRUCT ErrorID of the technology functions Internal data of the sequence InternalData STRUCT control...
Page 69
Section C: Integrating the core “flying saw” functions Program environment and interfaces Flying Saw with SIMOTION A4027118-A0414 Fig. 6-2 Structure of the global data area of the core “flying saw” function Unit FS_Var User rinterface DW24 TOs used ErrorID of the technology DW34 functions Physical quantities...
Page 70
Section C: Integrating the core “flying saw” functions Program environment and interfaces Flying Saw with SIMOTION A4027118-A0414 Parameter Data type Initial Description value EndSyncPos [mm] LREAL 20.0 End position of the synchronous range EndPos [mm] LREAL 125.0 Starting position of the cross-cutter ToStartposVelocity [mm/s] LREAL...
Page 71
Section C: Integrating the core “flying saw” functions Program environment and interfaces Flying Saw with SIMOTION A4027118-A0414 Parameter Data type Initial Description value Control information Restart BOOL false If the bit is set (e.g. in the StartUp task), then the template executes a re-initialization and resets the bit.
Section C: Integrating the core “flying saw” functions Integrating the core “flying saw” functions Flying Saw with SIMOTION A4027118-A0414 Integrating the core “flying saw” functions This is how you integrate core functions into your project Please proceed as follows to integrated core functions into your project: •...
Section C: Integrating the core “flying saw” functions Integrating the core “flying saw” functions Flying Saw with SIMOTION A4027118-A0414 Table 7-2 Software components Software Diagram Order No./MLFB and functions Version used STEP 7 6ES7810-4CC07-0YA5 V5.3 SP3 HF1 Step7 is the basis package for all optional software packages and is used to program the SIMATIC S7.
Section C: Integrating the core “flying saw” functions Integrating the core “flying saw” functions Flying Saw with SIMOTION A4027118-A0414 7.2.3 Technology objects required and synchronous relationships The following technology objects must be set-up and interconnected with one another in the following fashion in order to use the core “flying saw” functions: Technology objects The required technology objects are listed according to their function within...
Section C: Integrating the core “flying saw” functions Integrating the core “flying saw” functions Flying Saw with SIMOTION A4027118-A0414 The FlyingSawAxis is connected, for the cut, as “synchronous axis” with the MaterialAxis in a 1:1 (gearing) synchronous relationship. The technology objects and synchronous relationships listed above must be set-up and configured/engineered by the user in SIMOTION SCOUT.
Section C: Integrating the core “flying saw” functions Integrating the core “flying saw” functions Flying Saw with SIMOTION A4027118-A0414 Setting-up the required technology objects Prerequisite SIMOTION SCOUT has been started. The user knows how to apply the SIMOTION SCOUT program. 7.4.1 Flying saw axis Configuration...
Section C: Integrating the core “flying saw” functions Integrating the core “flying saw” functions Flying Saw with SIMOTION A4027118-A0414 Monitoring functions – closed-loop control • Please set these parameters corresponding to the system layout and configuration. 7.4.2 Axis, material web Configuration •...
Section C: Integrating the core “flying saw” functions Integrating the core “flying saw” functions Flying Saw with SIMOTION A4027118-A0414 Integrating into your application 7.6.1 Calling the “FlyingSaw FB” in the user program The function block of the core “flying saw” functions can also be simply called in the program after integration into your SIMOTION project.
Section C: Integrating the core “flying saw” functions Integrating the core “flying saw” functions Flying Saw with SIMOTION A4027118-A0414 Assigning the instance In the calling user program, the function block “FB_BGD_TEMPLATE_FlyingSaw()” must be assigned an instance. The following table includes examples in ST and FBD. Table 7-6 Generating an instance of the “FB_BGD_TEMPLATE_FlyingSaw()”...
Section C: Integrating the core “flying saw” functions Using the "FB_BGD_TEMPLATE_FlyingSaw()" Flying Saw with SIMOTION A4027118-A0414 Using the "FB_BGD_TEMPLATE_FlyingSaw()" General information and instructions The most important element of the technology template is the function block “FB_BGD_TEMPLATE_FlyingSaw()”. The connected “flying saw” is parameterized and controlled using this block.
Page 82
Section C: Integrating the core “flying saw” functions Using the "FB_BGD_TEMPLATE_FlyingSaw()" Flying Saw with SIMOTION A4027118-A0414 Fig. 8-1 Possible state transitions at the "FB_BGD_TEMPLATE_FlyingSaw()" RESTART Manual Manual Disable Error Disable Error Startposi- Startposi- tion tion Automa- Automa- Standard Zustandsübergang Fehlerzustandsübergang Automatische Zustandswechselkette The actual block state is displayed at the state output.
Section C: Integrating the core “flying saw” functions Using the "FB_BGD_TEMPLATE_FlyingSaw()" Flying Saw with SIMOTION A4027118-A0414 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 at the state output.
Page 84
Section C: Integrating the core “flying saw” functions Using the "FB_BGD_TEMPLATE_FlyingSaw()" Flying Saw with SIMOTION A4027118-A0414 Fig. 8-3 Block outputs for fault messages Done Execute Busy Mode Error StopCutting FB_BGD_TEMPLATE_FlyingSaw() OnTheSpotCutPossible KnifeOut OnTheSpotCutDone ErrorID OnTheSpotCut State The error bit signals an error while an error code is output at output ErrorID ;...
Section C: Integrating the core “flying saw” functions Using the "FB_BGD_TEMPLATE_FlyingSaw()" Flying Saw with SIMOTION A4027118-A0414 Help functions within the core “flying saw” functions As part of the core functions, there are also help functions that make it easier for you to implement your “flying saw” application. It provides you with solutions for the following functions: •...
Section D: Program description Using the "FB_BGD_TEMPLATE_FlyingSaw()" Flying Saw with SIMOTION A4027118-A0414 Section D: Program description Content Section D is interesting if you wish to expand/adapt your application based on the technology templates available. Objectives This part of the documentation should •...
Section D: Program description Information and instructions to adapt the core “flying saw” Flying Saw with SIMOTION A4027118-A0414 Information and instructions to adapt the core “flying saw” functions Information and warnings Before carrying-out changes Before you carry-out changes to the components included in the core functions, you should get to know how the components function by referring to and reading the ST/MMC documentation.
Section D: Program description Description of important program elements Flying Saw with SIMOTION A4027118-A0414 Description of important program elements 10.1 Program structure The core functions of the standard “flying saw” application are sub-divided into two sections • Declaration section • Instruction section All of the interfaces, constants, instance data and multi-instance of the function blocks called from the block are described in the Declaration...
Section D: Program description Description of important program elements Flying Saw with SIMOTION A4027118-A0414 • Sequence phases when changing from the “disable” to “manual” • Sequence phases when changing from the “starting position” to “disable” • Sequence phases when changing from the “starting position” to “error” •...
Section D: Program description Description of important program elements Flying Saw with SIMOTION A4027118-A0414 10.3.2 Start identification, axis monitoring and automatic state change chains Start identification Identify whether a restart is present. If yes, then • Activate the monitoring of the parameterization of the technology objects as well as auto-parameterization.
Section D: Program description Description of important program elements Flying Saw with SIMOTION A4027118-A0414 • From the “manual” state into the “starting position” state. “Manual” “Disable” “Starting position” 10.3.3 Checking the input parameters and parameterization of the technology settings that are absolutely necessary This program function is only active in the error state if it was activated by the user using the restart bit.
Page 92
Section D: Program description Description of important program elements Flying Saw with SIMOTION A4027118-A0414 Fig. 10-1 State model of the "FlyingSaw FB" RESTART Manual Manual Disable Error Disable Error Startposi- Startposi- tion tion Automa- Automa- Standard Zustandsübergang Fehlerzustandsübergang Automatische Zustandswechselkette The functional sequences that are hidden behind the states and state changes (transitions) are listed in the following table.
Page 93
Section D: Program description Description of important program elements Flying Saw with SIMOTION A4027118-A0414 Step Function Comment Mode Disable (1) Disable Disable Disable Disable Disable 0 The stop command is prepared 1 _stop() is called for the flying saw axis 2 _disableAxis() is called for the flying saw axis If the axis is disabled, then the “disable”...
Page 94
Section D: Program description Description of important program elements Flying Saw with SIMOTION A4027118-A0414 Step Function Comment Disable Manual Disable Manual 0 The enable command is prepared. 1 _enableAxis() is called for the flying saw axis If the axis is enabled, then the “manual” mode is activated Mode, starting position (2) Startpo- sition...
Page 95
Section D: Program description Description of important program elements Flying Saw with SIMOTION A4027118-A0414 Step Function Comment 3 _disableGearing() is called to delete (clear) the command from the command queue. If required, then continue with step 1 4 The "cut" output bit is set The actual synchronous position is deleted (cleared) from the SyncPosBuffer 5 Wait until "StopCutting"...
Page 96
Section D: Program description Description of important program elements Flying Saw with SIMOTION A4027118-A0414 Step Function Comment 1 _enableGearing() is called to synchronize the flying saw axis to the material web at the master and slave positions If synchronization was successful, then continue with step if not, then continue with step 2 2 _disableGearing() is called to delete (clear) the command from the command queue.
Page 97
Section D: Program description Description of important program elements Flying Saw with SIMOTION A4027118-A0414 Step Function Comment 1 _stop() is called for the flying saw axis If the axis is disabled, then advance to step 2 2 _disableAxis() is called for the flying saw axis If the axis is disabled, then the “disable”...
Section D: Program description Description of important program elements Flying Saw with SIMOTION A4027118-A0414 10.4 Properties/features of startup_SAP The startup_SAP program is located in the unit SAP_FS • Assigns the actual TO instances • Assigns the machine-specific parameters • Resets the restart bit. •...
Page 99
Section D: Program description Description of important program elements Flying Saw with SIMOTION A4027118-A0414 • FB_BGD_FS_SPB_out() • FB_BGD_FS_SPB_read() FB_BGD_FS_SPB_reset() The SyncPos buffer is deleted (cleared) using this FB. FB_BGD_FS_SPB_in() Using this FB, when the print mark is sensed, a new synchronous position is entered into the buffer.
Section E: Appendix General information on the application Flying Saw with SIMOTION A4027118-A0414 Section E: Appendix General information on the application 11.1 Scope of supply The "flying saw" package comprises: • Program S7/Scout project as ZIP file: FlyingSaw_for_SIMOTION_V4.1.1_V1.4.zip • Documentation Implementation/Operating Instructions as PDF file FlyingSaw_with_SIMOTION_V4.1.1_V1.4.pdf 11.2...
Section E: Appendix Error messages Flying Saw with SIMOTION A4027118-A0414 Error messages 12.1 Signaling error events at the “FlyingSaw FB” of the core “flying saw” functions If an error occurs when calling the “FB_BGD_TEMPLATE_FlyingSaw()” of the core “flying saw” functions, then this is displayed using an error code at output ErrorID of the FB.
Page 102
Section E: Appendix Error messages Flying Saw with SIMOTION A4027118-A0414 ErrorID Explanation error code C021 Disable to starting position Error when positioning the FlyingSawAxis ( _pos ) Details in FS_Var structure under RetDINT_pos_FSA C022 Disable to starting position Error when positioning the FlyingSawAxis ( _pos ) Details in FS_Var structure under FR_pos_FSA C031 Starting position to disable...
Page 103
Section E: Appendix Error messages Flying Saw with SIMOTION A4027118-A0414 C055 Starting position to automatic Error for superimposed positioning of the FlyingSawAxis to create "gap" ( _pos ) Details in FS_Var structure under FR_possuperimp_FSA C056 Starting position to automatic Error when positioning the FlyingSawAxis ( _pos ) Details in FS_Var structure under RetDINT_pos_FSA C057 Starting position to automatic...
Page 104
Section E: Appendix Error messages Flying Saw with SIMOTION A4027118-A0414 ErrorID Explanation error code C061 Automatic Run Error when activating gearing of the FlyingSawAxis ( _enablegearing ) Details in FS_Var structure under RetDINT_enablegearing_FSA C062 Automatic Run Error when de-activating gearing after unsuccessful synchronization of the FlyingSawAxis ( _disablegearing ) Details in FS_Var structure under RetDINT_disablegearing_FSA C063...
Page 105
Section E: Appendix Error messages Flying Saw with SIMOTION A4027118-A0414 ErrorID Explanation error code C091 Manual to Disable Error when stopping the FlyingSawAxis ( move mit v=0) Details in FS_Var structure under RetDINT_stop_FSA C092 Manual to Disable Error when stopping the FlyingSawAxis ( move mit v=0) Details in FS_Var structure under FR_stop_FSA C0A1 Manual to Starting position...
Name: Department: D – 91056 Erlangen City: Fax: +49 (0) 9131/98–1297 Telephone: E-Mail: applications@erlf.siemens.de E-Mail: Evaluation of the document ❏ ❏ Is this subject helpful/ beneficial for you? How high are the benefits of this application for you in the following working phases?