Saw User Manual

Section D: Program description
Description of important program elements
Flying Saw with SIMOTION A4027118-A0414
V 1.4 Release 06/06/08 88/107
Copyright © Siemens AG 2008 All rights reserved
Manual_SIMOTION Flying Saw_V1.4.doc
10 Description of important program elements
10.1 Program 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.2 Declaration 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”