10 description of important program elements, 1 program structure, 2 declaration part fs_var – Siemens Simotion A4027118-A0414 User Manual

Page 88

Advertising
background image

Section D: Program description

Description of important program elements

Flying Saw with SIMOTION

A4027118-A0414

V 1.4

Release 06/06/08

88/107

C

opyr

ight

©

Si

em

ens

AG 2

0

08

Al

l r

ights r

e

s

e

rv

ed

M

anual_

S

IM

OTION Fl

ying Saw

_

V1

.4.

d

oc

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”

Advertising