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

Models: A4027118-A0414

1 107
Download 107 pages 57.56 Kb
Page 88
Image 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

Page 88
Image 88
Siemens A4027118-A0414 Description of important program elements, Program structure, Declaration part FSVar, Constants