Siemens A4027118-A0414 user manual Integrating into your application

Page 79

All rights reserved

Saw V1.4.doc

Copyright Siemens AG 2008

Manual SIMOTION Flying

Section C: Integrating the core “flying saw” functions

Integrating the core “flying saw” functions

Flying Saw with SIMOTION

A4027118-A0414

7.6Integrating into your application

7.6.1Calling 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.

Calling the “FB_BGD_TEMPLATE_FlyingSaw()” in ST and FBD

As an example, the calls of the function block

FB_BGD_TEMPLATE_FlyingSaw()” of the core “flying saw” functions in the ST and FBD programming languages are shown here:

Table 7-5 Calling the function block “_BGD_TEMPLATE_FlyingSaw()“

FB_BGD_TEMPLATE_FlyingSaw()

ST

FUP

V 1.4

Release 06/06/08

79/107

Image 79
Contents Application number A4027118 -A0414 Simotion Flying SawCopyright General NotesGeneral Notes Warranty, liability and supportReference regarding export codes Qualified personnelStandard Simotion application ForewordSec Description Tion Document structureList of contents Integrating the core flying saw functions Description of important program elements Error messages 101Subjects discussed ContentChap Title Contents ObjectivePrerequisites Basic informationObjective and purpose of this standard application Principle design of a flying saw Solution using the standard flying saw applicationComponents included in the standard application Release 06/06/08 14/107 Controls that are permitted Tasks that can be implemented using the core functionsUses ApplicationsStarting position of the flying axis can be set Properties and features of the core flying saw functionsPrecisely synchronizing at a specific position Flying axisSensor Application environmentPhysical quantities that can be parameterized Structure and functionDesign of the flying saw General designPhysical quantity Description Synchronous rangeStarting position ErrorDisable Operating states of the FlyingSaw-FBManual AutomaticSection B The application example as demonstration System ContentsSevere bodily injury or even death Pictograms, signal words and textClassification Severe bodily injury or even deathMisuse Responsibilities of the operator Correct useResponsible for monitoring Qualification of personnel Hardware structure and mounting/installationOverview Communications ProcedureHMI system Action Comment Minimum required releases Installing the standard Siemens softwareInstallation Resetting Simotion D435 to the factory settingsRelease 06/06/08 29/107 Release 06/06/08 30/107 Release 06/06/08 31/107 Yes PG/PC InterfacePG/PC1 Setting the Ethernet address of the PG/PC Ethernet address Action Comment Page Downloading the Simotion project of the standard application Page Page Detailed operating instruction Operator control of the application exampleBrief instructions to demonstrate DemonstrateStructure overview to demonstrate the application Structure overviewPrint Mark Simulation on / OFF Brief instructionsButton Flying Saw Startpos Material END button Material Start button and continue with Step Process screenPage Simodrive Detailed operating instructionsStart Welcome screen General screen areasButton Function StartSyncPosition Machine parameter settingsMachine geometry Distance to sensor StartPositionSystem Operator control functions in the setting-mode Operator functions of the process in the automatic mode Standard operator control Page Gap Length Expanded operator controlDisplay areas Flying saw mode10 Technology view of the flying saw Technology view11 Status Operator control functions in the status displaySection C Integrating the core flying saw functions Function and identification of the program groups Program environment and interfacesPro Program Data Gram Unit Module Section Program structureFBBGDTEMPLATEFlyingSaw IPOInterfaces Call environmentClassifying the interfaces Block interface of the FBBGDTEMPLATEFlyingSaw False Queued mode changeover is Activated using this inputINT Parameter Data type Initial value DescriptionOutput parameter OUT Structure of the global data area of the data unit FSVarPhysical quantities Parameter Data type Initial Description Value Restart This is how you integrate core functions into your project Integrating the core flying saw functionsSimotion control Hardware element Diagram Order No./MLFB and functionsTechnology objects Technology objects required and synchronous relationshipsDe-archiving the standard flying saw application PreparationsDownloading the core functions into your Scout project Setting-up the required technology objects Monitoring functions closed-loop control Axis, material web ConfigurationPre-assignment limits Pre-assignment dynamic FlyingSawAxisSYNCHRONOUSOPERATION ConfigurationAssigning the synchronous relationships Pre-assignment gear synchronizationCalling the FlyingSaw FB in the user program Integrating into your applicationCalling the FBBGDTEMPLATEFlyingSaw in ST and FBD Integrating the template block in the processing sequence Assigning the instanceInstance Initial state of the FBBGDTEMPLATEFlyingSaw Using the FBBGDTEMPLATEFlyingSawMode changeover sequence General information and instructionsAutoma Changing-over the modeTic Error messages Using the restart bitRestart after a new start Release 06/06/08 84/107 Help routines Help functions within the core flying saw functionsObjectives Section D Program descriptionBefore carrying-out changes Information and warningsDeclaration section Instruction section Description of important program elementsProgram structure Declaration part FSVarStatic variables Functions of the FBBGDTemplateFlyingSaw FlyingSaw-FBDeclarations Automatic state change sequences Axis monitoring functionsState machine of the FlyingSaw FB Error Æ Disable Step Function Comment Mode ErrorDisable Æ Starting position Step Function Comment Mode DisableDisable Æ Disable Disable Æ ErrorMode, starting position Step Function Comment Disable Æ ManualStarting position Æ Error Starting position Æ DisableAutomatic cycle Step Function CommentStarting position Æ Manual Mode, automaticAutomatic Æ Disable Automatic Æ ErrorMode, manual Manual Æ ErrorManual Æ Disable Automatic Æ Starting positionSyncPos buffer Properties/features of startupSAPProperties/features of the IPOFS1IPORoutine Help routinesFBBGDFSSPBread FBBGDFSSPBresetFBBGDFSSPBin FBBGDFSSPBoutVersion Date/Revision Author General information on the applicationScope of supply Revisions/AuthorErrorID Explanation Error code Error messagesUsersInterface.grEndPos Disablegearing EnablegearingGap pos Details in FSVar structure under FRpossuperimpFSA Section E Appendix Section E Appendix Applicationcenter Contact partnerEvaluation of the document Please help us to become even better