Siemens A4027118-A0414 Description of important program elements, Program structure, Constants

Page 88

All rights reserved

Saw V1.4.doc

Copyright Siemens AG 2008

Manual SIMOTION Flying

Section D: Program description

Description of important program elements

Flying Saw with SIMOTION

A4027118-A0414

10 Description of important program elements

10.1Program 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. Er besteht aus der Unit FS_Var.

All program instructions of the code that can be run are provided in the Instruction section. This Section is sub-divided into four units.

FS_TEMPL with the "FlyingSaw FB“.

FS_PMIPO with the print mark sensing and the ipo-synchronous functions.

FS_SPB with the FBs to manage the synchronous positions in the SyncPo buffer

10.2Declaration part FS_Var

The structure of all of the data required for the FlyingSaw FB is saved in the unit FS_Var. Instances will be the data in the user unit SAP_Var. When required, in this unit, this data area can also be instantiated several times so that the FlySaw FB can also be called for several flying saws within one project.

Constants

Axis numbers

Operating states of the flying saw

Sequence phases of the parameter check

Sequence phases of the automatic parameterization

Sequence phases when changing from the “error” to “disable”

Sequence phases when changing from the “error” to “disable” state

Sequence phases when changing from the “disable” to “error”

Sequence phases when changing from the “disable” to “starting position”

V 1.4

Release 06/06/08

88/107

Image 88
Contents Simotion Flying Saw Application number A4027118 -A0414General Notes CopyrightWarranty, liability and support General NotesQualified personnel Reference regarding export codesForeword Standard Simotion applicationDocument structure Sec Description TionList of contents Integrating the core flying saw functions Error messages 101 Description of important program elementsContent Chap Title ContentsObjective Subjects discussedPrerequisites Basic informationObjective and purpose of this standard application Solution using the standard flying saw application Principle design of a flying sawComponents included in the standard application Release 06/06/08 14/107 Tasks that can be implemented using the core functions UsesApplications Controls that are permittedProperties and features of the core flying saw functions Precisely synchronizing at a specific positionFlying axis Starting position of the flying axis can be setApplication environment SensorStructure and function Design of the flying sawGeneral design Physical quantities that can be parameterizedSynchronous range Physical quantity DescriptionError DisableOperating states of the FlyingSaw-FB Starting positionAutomatic ManualContents Section B The application example as demonstration SystemPictograms, signal words and text ClassificationSevere bodily injury or even death 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 Installing the standard Siemens software InstallationResetting 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 PG/PC Interface YesPG/PC1 Setting the Ethernet address of the PG/PC Ethernet address Action Comment Page Downloading the Simotion project of the standard application Page Page Operator control of the application example Brief instructions to demonstrateDemonstrate Detailed operating instructionStructure overview Structure overview to demonstrate the applicationPrint Mark Simulation on / OFF Brief instructionsButton Flying Saw Startpos Material END button Process screen Material Start button and continue with StepPage Detailed operating instructions SimodriveStart General screen areas Welcome screenButton Function Machine parameter settings Machine geometry Distance to sensorStartPosition StartSyncPositionSystem Operator control functions in the setting-mode Operator functions of the process in the automatic mode Standard operator control Page Expanded operator control Gap LengthFlying saw mode Display areasTechnology view 10 Technology view of the flying sawOperator control functions in the status display 11 StatusSection C Integrating the core flying saw functions Program environment and interfaces Function and identification of the program groupsProgram structure Pro Program Data Gram Unit Module SectionIPO FBBGDTEMPLATEFlyingSawInterfaces Call environmentClassifying the interfaces False Queued mode changeover is Activated using this input Block interface of the FBBGDTEMPLATEFlyingSawParameter Data type Initial value Description INTStructure of the global data area of the data unit FSVar Output parameter OUTPhysical quantities Parameter Data type Initial Description Value Restart Integrating the core flying saw functions This is how you integrate core functions into your projectHardware element Diagram Order No./MLFB and functions Simotion controlTechnology objects required and synchronous relationships Technology objectsDe-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 FlyingSawAxisSYNCHRONOUSOPERATION Configuration Assigning the synchronous relationshipsPre-assignment gear synchronization Pre-assignment dynamicCalling 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 Using the FBBGDTEMPLATEFlyingSaw Mode changeover sequenceGeneral information and instructions Initial state of the FBBGDTEMPLATEFlyingSawAutoma Changing-over the modeTic Error messages Using the restart bitRestart after a new start Release 06/06/08 84/107 Help functions within the core flying saw functions Help routinesSection D Program description ObjectivesInformation and warnings Before carrying-out changesDescription of important program elements Program structureDeclaration part FSVar Declaration section Instruction sectionStatic variables Functions of the FBBGDTemplateFlyingSaw FlyingSaw-FBDeclarations Axis monitoring functions Automatic state change sequencesState machine of the FlyingSaw FB Step Function Comment Mode Error Error Æ DisableStep Function Comment Mode Disable Disable Æ DisableDisable Æ Error Disable Æ Starting positionStep Function Comment Disable Æ Manual Starting position Æ ErrorStarting position Æ Disable Mode, starting positionStep Function Comment Starting position Æ ManualMode, automatic Automatic cycleAutomatic Æ Error Automatic Æ DisableManual Æ Error Manual Æ DisableAutomatic Æ Starting position Mode, manualProperties/features of startupSAP Properties/features of the IPOFS1IPORoutineHelp routines SyncPos bufferFBBGDFSSPBreset FBBGDFSSPBinFBBGDFSSPBout FBBGDFSSPBreadGeneral information on the application Scope of supplyRevisions/Author Version Date/Revision AuthorErrorID Explanation Error code Error messagesUsersInterface.grEndPos Disablegearing EnablegearingGap pos Details in FSVar structure under FRpossuperimpFSA Section E Appendix Section E Appendix Contact partner ApplicationcenterPlease help us to become even better Evaluation of the document