Siemens A4027118-A0414 user manual Program structure, Pro Program Data Gram Unit Module Section

Page 63

All rights reserved

Saw V1.4.doc

Copyright Siemens AG 2008

Manual SIMOTION Flying

Section C: Integrating the core “flying saw” functions

Program environment and interfaces

Flying Saw with SIMOTION

A4027118-A0414

6.1.2Program 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.

Table 6-1: Program structure of the standard “flying saw” application

Pro-

Program

Program

Data

gram

unit

module

unit

Section

 

 

 

OMAC

OmacMain

OmacMain()

OmacVar

 

 

 

 

 

OmacStUp

OmacStUp()

 

 

 

 

 

SAP

SAP_FS

BGD_SAP_FlyingSaw()

SAP_Var

 

 

Startup_SAP()

 

 

 

 

 

SAP

SAPState

FC_SAP_FlyingSaw_AutomaticAborted()

 

 

 

FC_SAP_FlyingSaw_AutomaticAborting()

 

 

 

FC_SAP_FlyingSaw_AutomaticHeld()

 

 

 

FC_SAP_FlyingSaw_AutomaticHolding()

 

 

 

FC_SAP_FlyingSaw_AutomaticProducing()

 

 

 

FC_SAP_FlyingSaw_AutomaticStandby()

 

 

 

FC_SAP_FlyingSaw_AutomaticReady()

 

 

 

FC_SAP_FlyingSaw_AutomaticStarting()

 

 

 

FC_SAP_FlyingSaw_AutomaticStopping()

 

 

 

FC_SAP_FlyingSaw_AutomaticStopped()

 

 

 

FC_SAP_FlyingSaw_AutomaticManual()

 

 

 

FC_SAP_FlyingSaw_AutomaticIdle()

 

 

 

FC_SAP_FlyingSaw_AutomaticEStop()

 

 

 

 

 

V 1.4

Release 06/06/08

63/107

Image 63
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 ObjectiveBasic 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 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 deathResponsibilities of the operator Correct use MisuseResponsible for monitoring Hardware structure and mounting/installation Qualification of personnelOverview Procedure CommunicationsHMI 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 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 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 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 Pre-assignment dynamic FlyingSawAxisSYNCHRONOUSOPERATION ConfigurationAssigning the synchronous relationships Pre-assignment gear synchronizationIntegrating 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 Initial state of the FBBGDTEMPLATEFlyingSaw Using the FBBGDTEMPLATEFlyingSawMode changeover sequence General information and instructionsChanging-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 warningsDeclaration section Instruction section Description of important program elementsProgram structure Declaration part FSVarFunctions 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 Æ 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/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