Siemens A4027118-A0414 Using the FBBGDTEMPLATEFlyingSaw, General information and instructions

Page 81

All rights reserved

Saw V1.4.doc

Copyright Siemens AG 2008

Manual SIMOTION Flying

Section C: Integrating the core “flying saw” functions

Using the "FB_BGD_TEMPLATE_FlyingSaw()"

Flying Saw with SIMOTION

A4027118-A0414

8 Using the "FB_BGD_TEMPLATE_FlyingSaw()"

8.1General 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.

In the user program, the block must therefore be parameterized and the block mode changed-over in order to initiate that the “FB_BGD_TEMPLATE_FlyingSaw()” executes the required functions.

The "FB_BGD_TEMPLATE_FlyingSaw()“ is parameterized as described in Chapter 6.3 Interfaces. When parameterizing (assigning parameter values), basic values of the “flying saw” are defined that normally do not change; for example, the name of the flying saw axis, the starting position, the synchronous position etc. These values may only be changed when the system is at a standstill and changes require a re-initialization (restart) of the "FB_BGD_TEMPLATE_FlyingSaw()“!

The individual modes of the"FB_BGD_TEMPLATE_FlyingSaw()“ are described in Chapter 3.2 Operating states of the "FlyingSaw-FB". The procedure to change over the mode is described in more detail in the following Chapters.

8.2Initial state of the "FB_BGD_TEMPLATE_FlyingSaw()"

After a “restart”, the “FB_BGD_TEMPLATE_FlyingSaw()” is in the “disable” state.

Each time that the control is started, “restart” must be run by setting the restart bit in the startup task. (this is realized automatically when using the program startup_SAP() in the UNIT SAP_FS)

This means that the template is transitioned into its initial state and important technology parameters are checked regarding plausibility, if possible adapted, and if not possible, parameterizing errors are flagged to the user at the fault output.

8.3Mode changeover sequence

The functions of the function block “FB_BGD_TEMPLATE_FlyingSaw()” and therefore the functions of the connected “flying saw” are controlled using the various state modes of the block.

The following state modes and status transitions can be called at the block:

V 1.4

Release 06/06/08

81/107

Image 81
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 101Chap Title Contents ContentObjective Subjects discussedBasic information PrerequisitesObjective 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 Uses Tasks that can be implemented using the core functionsApplications Controls that are permittedPrecisely synchronizing at a specific position Properties and features of the core flying saw functionsFlying axis Starting position of the flying axis can be setSensor Application environmentDesign of the flying saw Structure and functionGeneral design Physical quantities that can be parameterizedPhysical quantity Description Synchronous rangeDisable ErrorOperating states of the FlyingSaw-FB Starting positionManual AutomaticSection B The application example as demonstration System ContentsClassification Pictograms, signal words and textSevere bodily injury or even death Severe bodily injury or even deathResponsibilities of the operator Correct use MisuseResponsible for monitoring Hardware structure and mounting/installation Qualification of personnelOverview Procedure CommunicationsHMI system Action Comment Installation Installing the standard Siemens softwareResetting Simotion D435 to the factory settings Minimum required releasesRelease 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 Brief instructions to demonstrate Operator control of the application exampleDemonstrate Detailed operating instructionStructure overview to demonstrate the application Structure overviewBrief instructions Print Mark Simulation on / OFFButton 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 Machine geometry Distance to sensor Machine parameter settingsStartPosition StartSyncPositionSystem 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 IPOCall environment InterfacesClassifying 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 relationshipsPreparations De-archiving the standard flying saw applicationDownloading the core functions into your Scout project Setting-up the required technology objects Axis, material web Configuration Monitoring functions closed-loop controlPre-assignment limits Assigning the synchronous relationships FlyingSawAxisSYNCHRONOUSOPERATION ConfigurationPre-assignment gear synchronization Pre-assignment dynamicIntegrating into your application Calling the FlyingSaw FB in the user programCalling the FBBGDTEMPLATEFlyingSaw in ST and FBD Assigning the instance Integrating the template block in the processing sequenceInstance Mode changeover sequence Using the FBBGDTEMPLATEFlyingSawGeneral information and instructions Initial state of the FBBGDTEMPLATEFlyingSawChanging-over the mode AutomaTic Using the restart bit Error messagesRestart 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 warningsProgram structure Description of important program elementsDeclaration part FSVar Declaration section Instruction sectionFunctions of the FBBGDTemplateFlyingSaw FlyingSaw-FB Static variablesDeclarations Automatic state change sequences Axis monitoring functionsState machine of the FlyingSaw FB Error Æ Disable Step Function Comment Mode ErrorDisable Æ Disable Step Function Comment Mode DisableDisable Æ Error Disable Æ Starting positionStarting position Æ Error Step Function Comment Disable Æ ManualStarting position Æ Disable Mode, starting positionStarting position Æ Manual Step Function CommentMode, automatic Automatic cycleAutomatic Æ Disable Automatic Æ ErrorManual Æ Disable Manual Æ ErrorAutomatic Æ Starting position Mode, manualProperties/features of the IPOFS1IPORoutine Properties/features of startupSAPHelp routines SyncPos bufferFBBGDFSSPBin FBBGDFSSPBresetFBBGDFSSPBout FBBGDFSSPBreadScope of supply General information on the applicationRevisions/Author Version Date/Revision AuthorError messages ErrorID Explanation Error codeUsersInterface.grEndPos Enablegearing DisablegearingGap 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