Sei sulla pagina 1di 530

s

T 400 FM 458-1 DP SIMADYN D SIMATIC TDC

Function Blocks

Manual

Edition 12.2004

Contents, Foreword

Closed-loop control blocks

Arithmetic blocks

Input/output blocks

Communication blocks

Conversion modules

Logic blocks

Service-/diagnostic blocks

SFC blocks

GMC blocks

Special blocks

Appendix

Index

Safety guidelines

This Manual contains notices which you should observe to ensure your own personal safety, as well as to protect the product and connected equipment. These notices are highlighted in the Manual by a warning triangle and are marked as follows according to the level of danger:

!
!

DANGER

!
!

WARNING

!
!

CAUTION

CAUTION

NOTICE

indicates an imminently hazardous situation which, if not avoided, will result in death or serious injury.

indicates a potentially hazardous situation which, if not avoided, could result in death or serious injury.

used with the safety alert symbol indicates a potentially hazardous situation which, if not avoided, may result in minor or moderate injury.

used without safety alert symbol indicates a potentially hazardous situation which, if not avoided, may result in property damage.

used without the safety alert symbol indicates a potential situation which, if not avoided, may result in an undesireable result or state.

Correct usage

Trademarks

Note the following:

This device and its components may only be used for the applications described in the catalog or the technical description, and only in connection with devices or components from other manufacturers which have been approved or recommended by Siemens.

SIMATICand SIMADYN Dare registered trademarks of Siemens AG.

Third parties using for their own purposes any other names in this document which refer to trademarks might infringe upon the rights of the trademark owners.

Copyright SIEMENS AG 2004 All rights reserved

The reproduction, transmission or use of this document or its contents is not permitted without express written authority. Offenders will be liable for damages. All rights, including rights created by patent grant or registration of a utility model or design, are reserved.

Siemens AG A&D Frauenauracher Straße 80 91056 Erlangen

Disclaimer of liability

We have checked the contents of this manual for agreement with the hardware and software described. Since deviations cannot be precluded entirely, we cannot guarantee full agreement. However, the data in this manual are reviewed regularly and any necessary corrections included in subsequent editions. Suggestions for improvement are welcomed.

Siemens AG 2004 Technical data subject to change.

Editions

T 400, FM 458-1 DP, SIMADYN D, SIMATIC TDC

Manual

Function Blocks

Edition 12.2004

NOTE

Please note that the current edition of this documentation contains different editions of the individual chapters. The following overview tells you when a chapter was revised the last time.

Overview (chapter editions)

Chapter

Edition

 

Foreword

Edition 12.2004

1

Closed-loop control blocks

Edition 12.2004

2

Arithmetic blocks

Edition 12.2004

3

Input/output blocks

Edition 03.2003

4

Communication blocks

Edition 12.2004

5

Conversion modules

Edition 12.2004

6

Logic blocks

Edition 12.2004

7

Service-/diagnostic blocks

Edition 03.2003

8

SFC blocks

Edition 03.2003

9

GMC blocks

Edition 12.2004

10

Special blocks

Edition 12.2004

11

Appendix

Edition 12.2004

Foreword

Purpose of this Manual

Basic knowledge required

Validity of the Manual

Additional support

This Manual explains the principle use and functions of the STEP 7 automation software with the main focus on the appropriate technological and drive control components T400, FM 458-1 DP, SIMADYN D, SIMATIC TDC or D7-SYS.

TDC: Technology and Drives Control

This Manual addresses programmers and commissioning engineers. General knowhow regarding automation technology is required in order to understand the contents of the Manual

This Manual is valid for SIMATIC D7-SYS Version 6.2.

If you have questions relating to the use of the products described in the Manual, which cannot be answered here, then please contact your local Siemens office. You can also call the Hotline:

+49 (180) 5050-222

Tel.:

+49 (180) 5050-223

Fax:

e-mail:

Training Center

Appropriate training courses are available in order to make it easier to get to know the SIMADYN D automation system. Please contact the central Training Center in D-Erlangen (I&S IS INA TC):

+49 (9131) 7-27689, -27972

Tel.:

+49 (9131) 7-28172

Fax:

Internet:

Intranet:

NOTE

This user part of the Manual does not include any detailed information/instructions with individual descriptions, but is only intended to provide a basic procedure. More detailed information on the dialog boxes in the software and how they are handled is provided in the appropriate online help.

Foreword

Information

overview

This manual is part of the overall documentation for the technological and drive control components T400, FM 458, SIMADYN D, SIMATIC TDC and SIMATIC D7-SYS:

Title

Content

System and communications configuring D7-SYS

The first project in a few steps

This Section provides an extremely simple entry into the methodology when assembling and programming the SIMATIC TDC/SIMADYN D control system. It is especially conceived for first-time users of a control system.

 

System software

This Section provides basic know-how about the structure of the operating system and an application program of a CPU. It should be used to obtain an overview of the programming methodology, and basis for configuring user programs.

Communications configuring

This section provides you with basic know-how about the communication possibilities and how you configure links to the communication partners.

Changeover from STRUC V4.x to D7-SYS

Essential features are included in this section, which have changed over STRUC V4.x with the introduction of SIMATIC D7-SYS.

STEP 7 option packages for D7-SYS

Basis software

This section explains the essential use and the functions of the STEP 7 automation software. For first users, it provides an overview on configuring, programming and commissioning a station.

 

When working with the basis software, you can access the online help which provides you with support when it comes to detailed questions on using the software.

CFC

The CFC language (Continuous Function Chart) allows you to graphically interconnect blocks.

When working with the particular software, you can also use the online help which can answer detailed questions regarding the use of the editors/compiler.

SFC

Configuring sequence controls using SFC (Sequential Function Chart) of SIMATIC S7.

In the SFC editor, you generate a sequence chart using graphic resources. The SFC elements of the chart are then positioned according to specific rules.

Hardware

The complete hardware spectrum is described as reference in this Manuals.

Function blocks

These Reference Manuals provide you with an overview of selected function blocks for the associated technological and drive control components T400, FM 458-1 DP, SIMADYN D and SIMATIC TDC.

Foreword

Guide

As first time user, we recommend that this Manual is used as follows:

Please read the first section on using the software in order to get to know some of the terminology and basic procedure.

Then use the particular sections of the Manual if you wish to carry-out certain processing steps (e.g. loading programs).

If you have already executed a small project, and have gained some experience, then you can read individual sections of the Manual in order to get up to speed about a specific subject.

A&D Technical

Can be accessed globally at any time of the day:

Support
Support

World-wide (Nürnberg) Technical Support

   

Local time: 0:00 to 24:00 / 365 days

Phone:

+49 (180) 5050-222 +49 (180) 5050-223

Fax:

GMT:

+1:00

Europe / Africa (Nürnberg) Authorization

United States (Johnson City) Technical Support and Authorization

Asia / Australia (Peking) Technical Support and Authorization

Local time: Mo.-Fr. 8:00 to 17:00

Local time: Mo.-Fr. 8:00 to 17:00

Local time: Mo.-Fr. 8:00 to 17:00

Phone:

+49 (180) 5050-222 +49 (180) 5050-223

Phone:

+1 (423) 262 2522 +1 (423) 262 2289

Phone:

+86 10 64 75 75 75 +86 10 64 74 74 74

Fax:

Fax:

Fax:

GMT:

+1:00

GMT:

-5:00

GMT:

+8:00

Technical Support and Authorization speak generally German and English.

 

Contents

Foreword

iii

1 Closed-loop control blocks

1-1

1.1 DEL Dead line block

1-1

1.2 DEZ Dead zone block

1-3

1.3 DIF Differentiator block

1-5

1.4 DT1 block

1-7

1.5 FUZ Fuzzy controller (REAL type)

1-10

1.6 FUZ_I Fuzzy controller (INTEGER type)

1-13

1.7 INT Integrator

1-15

1.8 LIM Limiter

1-18

1.9 LIM_D Limiter (Typ DOUBLE-INTEGER)

1-20

1.10 PC P controller

1-22

1.11 PIC PI controller

1-25

1.12 PT1 element

1-34

1.13 PWM Pulse width modulator

1-36

1.14 RGE Ramp function generator

1-38

1.15 RGJ Ramp function generator with jerk limiting

1-45

2 Arithmetic blocks

2-1

2.1 ACOS Arc cosine function

2-1

2.2 ADD Adder

2-1

2.3 ADD_I Adder (INTEGER type)

2-1

2.4 ADD_D Adder (DOUBLE-INTEGER type)

2-1

2.5 ADD_M Modulo adder for axis cycle-correct addition

2-2

2.6 ASIN Arc-sine function

2-3

2.7 ATAN Arc-tangent function

2-3

2.8 AVA Absolute value generator with sign evaluation

2-3

2.9 AVA_D Absolute value generator with sign evaluation (DOUBLE-INTEGER type)

2-4

2.10 COS Cosine function

2-5

Contents

2.11 DIV Divider

2-5

2.12 DIV_I Divider (INTEGER type)

2-5

2.13 DIV_D Divider (DOUBLE-INTEGER type)

2-5

2.14 DIV_R Divider (REAL type)

2-5

2.15 MAS Maximum evaluator

2-6

2.16 MIS Minimum evaluator

2-7

2.17 MUL Multiplier

2-8

2.18 IMUL_I Multiplier (INTEGER type)

2-8

2.19 MUL_D Multiplier (DOUBLE-INTEGER type)

2-8

2.20 NATCON Natural constants

2-9

2.21 PLI10 Polygon curve, 10 points

2-10

2.22 PLI20 Polygon curve, 20 breakpoints

2-12

2.23 SII Inverter

2-14

2.24 ISIN Sine function

2-14

2.25 SQR Square-root extractor

2-14

2.26 SUB

Subtractor

2-15

2.27 SUB_I Subtractor (INTEGER type)

2-15

2.28 SUB_D Subtractor (DOUBLE-INTEGER type)

2-15

2.29 TAN Tangent function

2-15

2.30 FRM Formula block

2-16

3 Input/output blocks

3-1

3.1 ADC Analog input via A/D converter

3-2

3.2 AENC Absolute value encoder (SSI/EnDat)

3-5

3.3 BII8 Binary input

3-15

3.4 BIQ8 Binary output

3-17

3.5 DAC

Analog output

3-19

3.6 NAV Speed/position actual value sensing

3-21

3.7 NAVS Speed/position/position difference sensing

3-29

3.8 SBI Status byte input

3-38

3.9 SBQ Status byte output

3-40

4 Communication blocks

4-1

4.1

Communications utility, process data

4-1

4.1.1

CCC4 Collect block process data

4-1

4.1.2

CDC4 Distribution block process data

4-4

4.1.3

CRV Receive block process data

4-7

4.1.4

CTV Transmit block process data

4-10

Contents

4.2

Communications utility message system

4-12

4.2.1

Central and output blocks

4-12

4.1.2.1

@MSC Message system central block

4-12

4.1.2.2

MSI Message output block

4-15

4.1.2.3

MSIPRI Message output block (printer)

4-18

4.2.2

Message blocks for activated messages without value

4-21

4.2.2.1

MER0 Message block for 16 activated messages

4-21

4.2.2.2

MER1 Message block for one activated message with text

4-23

4.2.2.3

MER16 Message block for 16 activated messages with text

4-25

4.2.3

Message blocks für activated messages with value

4-28

4.3.2.1

MER, MER_I, MER_D Message block for one activated message with measured value (R type)

4-28

4.2.4

Message blocks for activated and de-activated messages without value

4-31

4.4.2.1

MERF0 Message block for 16 activated and de-activated messages

4-31

4.4.2.2

MERF1 Message block for an activated and a de-activated message

4-33

4.4.2.3

MERF16 Message block for 16 activated and de-activated messages with text

4-35

4.2.5

Message block for activates and de-activated messages with value

4-38

4.5.2.1

MERF, MERF_I, MERF_D Message block for an activated and a de-activated message with measured value

4-38

4.3

Communications utility, parameter processing

4-41

4.3.1

@DPH Parameter processing central block

4-41

4.3.2

DPI Parameter block

4-41

4.4

Communications utility, trace

4-42

4.4.1

Analog trace

4-42

4.1.4.1

TRCC, TRCC_I, TRCC_D Analog trace acquisition block

4-42

4.4.2

Single trace

4-46

4.2.4.1

@TCP Single trace, central block

4-46

4.2.4.2

TRHI Single trace, header block

4-50

4.2.4.3

TRP, TRP_B, TRP_I, TRP_D Single trace acquisition block

4-52

4.4.3

System trace

4-54

4.3.4.1

@TCI System trace central block

4-54

4.3.4.2

@TRI Acquisition block system trace

4-57

4.5

Communications utility, time of day synchronization

4-58

4.5.1

RTCABS Date and time output

4-58

4.5.2

RTCREL Relative time output

4-59

4.6

SIMATIC Operator Panel

4-60

4.6.1

S7OS OS-Communication

4-60

4.6.2

S7IA User data area "interface area"

4-62

4.6.3

S7EMA User data area "event messages"

4-65

4.6.4

S7AMA User data area "alarm messages"

4-67

4.6.5

S7FKA User data area "function key area"

4-70

4.7

PROFIBUS DP coupling

4-72

4.7.1

DIAPRO Diagnostics DP (PROFIBUS DP coupling)

4-72

4.7.2

SYNPRO SYNC/FREEZE DP (PROFIBUS DP coupling)

4-74

4.8

Central coupling blocks

4-77

4.8.1

@CPN Local coupling central block

4-77

Contents

4.9

Pointer-based communications

4-78

4.9.1

CPY_P Copying block for pointer-based processing

4-78

4.9.2

CRV_P Telegram block, receive with pointer

4-80

4.9.3

CTV_P Telegram block, sending with pointer

4-83

4.9.4

DB_P Data block for pointer-based processing

4-86

4.9.5

DRD, DRD_D, DRD_I, DRD_8, DRD_8D, DRD_8I, DRD_BY DRD… Read blocks for pointer-based communications

4-88

4.9.6

DWR, DWR_D, DWR_I, DWR_8, DWR_8D, DWR_8I, DWR_BY DWR… Write blocks for pointer-based communications

4-91

5 Conversion modules

5-1

5.1

Type, converter

5-1

5.1.1 B_W Converter, 16 binary quantities into a status word

5-1

5.1.2 B_DW Conversion, 32 binary quantities into a double word (32 bit)

5-1

5.1.3 BY_W Status byte to status word converter

5-1

5.1.4 D_I DOUBLE-INTEGER to INTEGER converter

5-2

5.1.5 D_R DOUBLE-INTEGER to REAL converter

5-3

5.1.6 DW_B Conversion double word (32 bit) into 32 binary quantities

5-3

5.1.7 DW_W Conversion 32 bit double word into two 16 bit words

5-3

5.1.8 I_D INTEGER to DOUBLE-INTEGER converter

5-4

5.1.9 I_R INTEGER to REAL converter

5-4

5.1.10 N2_R Conversion 16 bit fixed point format (N2) to REAL

5-5

5.1.11 N4_R Conversion, 32 bit fixed point format (N4) to REAL

5-6

5.1.12 R_D REAL to DOUBLE-INTEGER converter

5-7

5.1.13 R_I REAL to INTEGER converter

5-7

5.1.14 R_N2 Conversion, REAL to 16 bit fixed point format

5-8

5.1.15 R_N4 Conversion, REAL to 32 bit fixed point format

5-9

5.1.16 W_B Converter, status word into 16 binary quantities

5-10

5.1.17 W_BY Status word to status byte converter

5-10

5.1.18 W_DW Conversion from two 16 bit words into a 32 bit double word

5-10

5.2

Special functions

5-11

5.2.1 BNR Binary thumbwheel switch input

5-11

5.2.2 SWB_DW Byte reverser for double word inputs

5-14

5.2.3 SWB_W Byte reverser for word inputs

5-16

5.2.4 SWBI Byte reverser for REAL type inputs

5-18

5.2.5 SWBO Byte reverser for real outputs

5-20

6 Logic blocks

6-1

6.1

Gates 6-1

6.1.1

AND block (BOOL type) 6-1

6.1.2

AND12 AND block, status word (WORD type)

6-1

6.1.3

AND_W AND block (WORD type)

6-3

6.1.4

NAND block (BOOL type)

6-4

Contents

6.1.5

NOR block (BOOL type)

6-4

6.1.6

NOT Inverter (BOOL type)

6-4

6.1.7

NOT_W Inverter status word (WORD type)

6-4

6.1.8

OR block (BOOL type)

6-5

6.1.9

OR_12 OR logic gate status word (WORD type)

6-5

6.1.10

OR_W OR block, status word (WORD type)

6-6

6.1.11

XOR block (BOOL type)

6-7

6.1.12

XOR_W XOR block status Word (WORD type)

6-8

6.2

Timers

6-10

6.2.1

MFP Pulse generator (BOOL type)

6-10

6.2.2

PCL Pulse contractor (BOOL type)

6-11

6.2.3

PDE Switch on delay (BOOL type)

6-12

6.2.4

PDF Switch off delay (BOOL type)

6-13

6.2.5

PST Pulse extender (BOOL type)

6-15

6.3

Counters

6-17

6.3.1

CTR Counter (BOOL type)

6-17

6.3.2

UDI Up/down pulse evaluator (BOOL type)

6-19

6.4

Comparators

6-21

6.4.1

NCM Numerical comparator (REAL type)

6-21

6.4.2

NCM_I Numerical comparator (INTEGER type)

6-21

6.4.3

NCM_D Numerical comparator (DOUBLE-INTEGER type)

6-21

6.5

Switches

6-22

6.5.1

ANS Automatic numerical changeover switch (REAL type)

6-22

6.5.2

ANS_I Automatic numerical changeover switch (INTEGER type)

6-23

6.5.3

BSW Binary changeover switch (INTEGER type)

6-24

6.5.4

NSW Numerical changeover switch (REAL type)

6-24

6.5.5

NSW_D Numerical changeover switch (DOUBLE-INTEGER type)

6-24

6.5.6

NSW_I Numerical changeover switch (INTEGER type)

6-24

6.6

Multiplexer

6-25

6.6.1

DX8 Demultiplexer, 8 outputs, can be cascaded (REAL type)

6-25

6.6.2

DX8_I Demultiplexer, 8 outputs, can be cascaded (INTEGER type)

6-27

6.6.3

MUX8 Multiplexer, can be cascaded (REAL type)

6-29

6.6.4

MUX8_I Multiplexer, can be cascaded (INTEGER type)

6-31

6.7

Memory

6-33

6.7.1

CNM Controllable numerical quantity (REAL type)

6-33

6.7.2

CNM_D Controllable numerical memory (DOUBLE-INTEGER type)

6-34

6.7.3

CNM_I Controllable numerical memory (INTEGER type)

6-37

6.7.4

DFR D-flipflop, R-dominant (BOOL type)

6-38

6.7.5

DFR_W Reset-dominant D flipflop (WORD type)

6-40

6.7.6

RSR RS flipflop, R-dominant (BOOL type)

6-41

6.7.7

RSS RS flipflop, S-dominant (BOOL type)

6-42

6.8

Buffers

6-44

Contents

 

6.8.1

DAT Function block to input/output real values in/out of a data memory (REAL type)

6-44

6.8.2

DLB Delay block (REAL type)

6-45

6.8.3

SAV Value buffer (REAL type)

6-46

6.8.4

SAV_B Value buffer (BOOL type)

6-47

6.8.5

SAV_D Value buffer (DOUBLE-INTEGER type)

6-48

6.8.6

SAV_I Value buffer (INTEGER type)

6-49

6.8.7

TSAV, TSAV_B, TSAV_I, TSAV_D…values are backed-up in the technology save area (TSAVE area)

6-50

6.9

Special functions

6-52

6.9.1

BF Flash function for a binary quantity (BOOL type)

6-52

6.9.2

BF_W Flash function for a status word (WORD type)

6-53

6.9.3

DTS Synchronization delay time (BOOL type)

6-54

6.9.4

ETE Edge evaluator (BOOL type)

6-55

6.9.5

FUI_W First up indicator (WORD type)

6-56

6.9.6

LVM Limit value monitor with hysteresis, 2 directions (BOOL type)

6-57

6.9.7

NOP1 Dummy block (REAL type)

6-58

6.9.8

NOP1_B Dummy block (BOOL type)

6-59

6.9.9

NOP1_D Dummy block (Double Integer type)

6-59

6.9.10

NOP1_I Dummy block (Integer type)

6-59

6.9.11

NOP8 Dummy block (Real type)

6-59

6.9.12

NOP8_B Dummy block, 8 binary quantities (BOOL type)

6-59

6.9.13

NOP8_D Dummy block, 8 4-byte quantities (Double Integer type)

6-59

6.9.14

NOP8_I Dummy block, 8 word quantities (INTEGER type)

6-60

6.9.15

PIN8 Priority evaluator

6-60

6.9.16

SH Shift block (WORD type)

6-62

6.10

Processor interrupt generator

6-64

6.10.1

PAC Process interrupt counter

6-64

6.10.2

PAI Process interrupt periphery input

6-66

6.10.3

PAS Process interrupt software

6-68

7

Service-/diagnostic blocks

7-1

7.1 ASI Acknowledge signal (BOOL type)

7-1

7.2 EPE Delete change memory

7-2

7.3 PNO CPU number (INTEGER type)

7-3

7.4 PSL Processor utilization (REAL type)

7-4

7.5 RFG Ramp function (REAL type)

7-6

7.6 SER Service block

7-9

7.7 SQG Square wave generator (REAL type)

7-11

7.8 SQGB Clock generator for binary signals (BOOL type)

7-13

7.9 SSD Output on 7-segment display (WORD type)

7-15

7.10 STG Step function (REAL type)

7-16

Contents

7.11 SYF1 System error field (WORD type, 1 word long)

7-18

7.12 SYF4 System error field (WORD type, 4 words long)

7-21

7.13 USF User flags (WORD type)

7-24

8 SFC blocks

8-1

8.1 Control block

8-1

8.2 SFCSI SFC step information block

8-6

8.3 SFCTI SFC transition information block

8-10

9 GMC blocks

9-1

9.1

Motion control functions

9-1

9.1.1

Overview

9-1

9.1.1.1

Structure of a motion control application

9-2

9.1.2

Basics

9-4

9.1.2.1

Position and speed characteristics

9-4

9.1.2.2

Block connections and normalization

9-5

9.1.3

Application example with SIMOLINK coupling to the drive

9-8

9.1.3.1

SIMOLINK interface

9-8

9.1.3.2

FM458 as SIMOLINK master

9-8

9.1.3.3

Motion control - control and status bits

9-10

9.1.3.4

Settings for MASTERDRIVES MC

9-11

9.1.3.5

Basic functions to generate a setpoint

9-15

9.1.4

Application example with central closed-loop position control

9-21

9.1.4.1

System schematic and task profile

9-21

9.1.4.2

Central position sensing with an incremental encoder

9-22

9.1.4.3

Setpoint generation (basic structure and analog value output)

9-27

9.1.5

Integrating drives using the DSC technique via PROFIBUS

9-34

9.2

MDCMP Compensation block for mode changeover

9-37

9.3

CAMSW Cam block with 2 cams

9-42

9.4

CATCH Catch-up/shutdown

9-46

9.5

EDC Engage/disengage

9-49

9.6

NAVMC Speed/position actual value sensing

9-54

9.7

POSREG Position register reading

9-61

9.8

PHSFT Phase shifter

9-63

9.9

ADDAZ Adder with axis cycle limiting

9-65

9.10

SPLINE Cam disk with 32 points (calculation)

9-66

9.11

CAMD Cam disk

9-68

9.12

TABCAM Cam disk in tabular form

9-71

9.13

POSMC Positioning block

9-74

9.14

OFSSAV Offset calculation

9-77

9.15

OFSGEN Offset input

9-79

9.16

GEAR Gearbox block

9-81

Contents

 

9.17 INT_MR Virtual master

9-83

9.18 WEBSFT Measured value offset

9-85

9.19 OVFHSK Overflow handshake procedure

9-87

9.20 TAB, TAB_D Tabular values manager

9-89

9.21 DRVIF Interface to the drive

9-92

9.22 MDCMP1 basic and equalization functions for Motion Control

9-97

9.23 CLUTCH engage/disengage (coupling)

9-103

9.24 SHEAR cross-cutter/cross sealer

9-107

9.25 EDC1 engager/disengager

9-110

9.26 MCSB generating motion sequences (basis block)

9-115

9.27 MCSS generating motion sequences (subsequent block)

9-121

9.28 CAMSW1 cam controller for time characteristics

9-125

9.29 ENC2 Optional incremental encoder for NAVMC

9-128

9.30 NAVDP Position actual value sensing

9-131

9.31 DRVIF2 Interface to the drive

9-137

9.32 RCVT5 Receive block

9-142

9.33 SNDT5 Send block

9-145

10

Special blocks

10-1

10.1 FGEN Format generator

10-1

10.2 STATIS Statistical evaluation

10-6

10.3 TRACK Cut optimization for cross-cutters

10-8

A

Appendix

A-1

A.1

Type overview Function Blocks

A-1

A.2

Numerical table

A-16

Index

I-1

1 Closed-loop control blocks

1.1 DEL Dead line block

Symbol

input quantity activation threshold

DEL R X Y R R B
DEL
R X
Y
R
R
B

Brief description

adjustable dead line

output quantity

the value range, symmetrical around the zero point, can be set to zero

Mode of operation

if the absolute value of X is less than B, then Y = 0

if X is greater than or equal to B, then Y = X - B

if X is less than or equal to -B, then Y = X + B

The dead line, symmetrical around the zero point, can be set using response value B. Algorithm:

Y =

point, can be set using response value B. Algorithm: Y = X + B for X

X

+ B

for

X <= -B

0

for

-B < X < B

X

- B

for

X >= B

with the secondary condition B >= 0. For B < 0 the following is valid for all X: Y = X.

Block diagram

X B Y

X

X B Y

B

X B Y
Y
Y

Closed-loop control blocks

Transfer function

I/O

Y -B +B X
Y
-B
+B
X

X

Input quantity

(default: 0.0)

B

Response threshold

(default: 0.0)

Y

Output quantity

(default: 0.0)

Configuringdata

Computation time [µs]

T400/PM5 2,1

FM458 / PM6 CPU550 / 551

0,7

0,4

Can be inserted online

yes

Can be configured in

Interrupt tasks

Cyclic tasks

Executed in

Normal mode

Special features

-

Closed-loop control blocks

1.2 DEZ Dead zone block

Symbol

input quantity response value

DEZ R X Y R R TH
DEZ
R X
Y
R
R TH

output quantity

Brief description

Mode of operation

adjustable dead zone

the value range, symmetrical around the zero point, can be set to zero

If the absolute value of X is less than TH, then Y = 0. If the absolute value of X is greater than or equal to TH, then Y = X The dead zone, symmetrical around the zero point, can be set using response value TH. Algorithm:

 
  X for X <= -TH

X

for X <= -TH

Y=

0

for -TH < X < TH

X

for X >= TH

with the secondary condition TH >= 0. For TH < 0, the following is valid for all X: Y = X.

Block diagram

X TH   Y      

X

X TH   Y      

TH

X TH   Y      
 
  Y
  Y

Y

     
     
     

Closed-loop control blocks

Transfer function

I/O

Y -TH +TH X
Y
-TH
+TH
X

X

Input quantity

(default: 0.0)

TH

Response value

(default: 0.0)

Y

Output quantity

(default: 0.0)

Configuringdata

Computation time [µs]

T400/PM5 2,5

FM458 / PM6 CPU550 / 551

0,8

0,4

Can be inserted online

yes

Can be configured in

Interrupt tasks

Cyclic tasks

Executed in

Normal mode

Special features

-

Closed-loop control blocks

1.3 DIF Differentiator block

Symbol

input quantity derivative act. time const.

DIF R X Y R TS TD
DIF
R
X
Y
R
TS
TD

output quantity

Brief description

Mode of operation

Function block with differentiating characteristics

Output quantity Y is proportional to the rate of change of X, multiplied by the derivative action time constant TD. The discrete values are calculated according to the following algorithm:

Y

n

=

(X

n

-X

n-1

)

TD

TA

Yn

Value from Y in sampling interval n

Xn

Value from X in sampling interval n

Xn–1

Value from X in sampling interval n-1

NOTE

The higher TD/TA is, then the higher is the amplitude change at Y from one sampling instant to the next. TA is the sampling time in which the function block is configured. TD is internally limited to TD > 0.

CAUTION

Overshoot is possible!

Block diagram

X TD Y

X

X TD Y

TD

X TD Y
Y
Y

Closed-loop control blocks

Transfer function

I/O

X, Y X Y
X, Y
X
Y
TA TA t
TA TA t

TA

TA TA t
TA TA t

TA

TA TA t

t

X

Input quantity

(default: 0.0)

TD

Derivative action time constant

(default: 0.0 ms)

Y

Output quantity

(default: 0.0)

Configuringdata

Computation time [µs]

T400 / PM5 FM458 / PM6 CPU550 / 551

9,5

3,1

1,6

Can be inserted online

yes

Can be configured in

Interrupt tasks, cyclic tasks

Executed in

Initialization mode

Normal mode

Special features

-

Closed-loop control blocks

1.4 DT1 block

Symbol

numerical input value smoothing time constant derivative action time constant setting value transfer setting vatue

DT1 R X Y R TS T1 YPT R TS TD R SV BO S
DT1
R
X
Y
R
TS
T1
YPT
R
TS
TD
R
SV
BO
S

output quantity DT1

output quantity, smoothing block

Brief description

Mode of operation

Function block with derivative action and smoothing. Output DT1 can be set.

Setting function not active (S = 0)

Input quantity X is dynamically delayed by smoothing time constant T1, and is fed to a differential element (differentiator) and block output YPT. Output quantity Y of the complete DT1 is proportional to the rate of change of YPT (difference quotient), multiplied by the derivative action time TD. T1 determines the gradient of the output quantity decrease. It specifies the time at which the transfer function has decreased, after smoothing and differentiation, to 37% of X·TD/T1. The transfer function, with a sufficiently high T1/TA ( T1/TA>10 ) corresponds to the following characteristic

Y(t) = X·(TD/T1)·e t/T1

The discrete values are calculated according to the following algorithm:

with t = n·TA

Y 1n

=

TD

T 1

(

XnnYPT

⋅−

1

)

YPT

n =

TA

YPT

n 1 +⋅−XnnYPT 1

T 1

(

)

YPTn

Value from YPT in sampling interval n

Yn

Value from Y in sampling interval n

Xn

Value from X in sampling interval n

YPTn–1

Value from Y2 in sampling interval n-1

The higher T1/TA is, then the lower is the amplitude change at Y and at YPT from one sampling instant to the next. TA is the sampling time in which the function block is configured. The higher TD/TA is, the higher is the amplitude change at Y from one sampling instant to the next. TD and T1 are internally limited: TD >= 0, T1 >= TA.

Closed-loop control blocks

Setting function active (S = 1)

If the setting function is active, setting value SV is transferred to DT1 output Y; the smoothing element output is then:

T 1

YPT

=−⋅ SV

X

nn

Td

n

for TD 0

The internal limits for T1 and TD are valid. For TD=0, the output quantities remain unchanged as long as S = 1.

CAUTION

Overshoot is possible when the setting function is both active and inactive!

Block diagram

Transfer function

 

T1

 

TD

 

SV

         
         
 
     
     
     
   

PT1

   

D

 

X

X   Y
 
X   Y
X   Y

Y

 
   
 
   
   

S

 

YPT

 
 
Y1 Y1=f(X,t) X TD T1 Y1(t=T1)=0,37 X TD/T1 t T1
Y1
Y1=f(X,t)
X TD
T1
Y1(t=T1)=0,37
X TD/T1
t
T1

Closed-loop control blocks

I/O

X

Input quantity

(default: 0.0)

T1

Smoothing time constant

(default: 0.0 ms)

TD

Derivative action time constant

(default: 0.0 ms)

SV

Transfer setting value

 

For S = 0, setting value SV has no influence on the output quantities of the DT1 block. For S = 1, Y is set to SV, and the output of DT1 is calculated corresponding to the

equation above

(default: 0)

Y

Output quantity DT1

(default: 0.0)

YPT

Output quantity, smoothing block

(default: 0.0)

Configuringdata

Computation time [µs]

T400 / PM5 FM458 / PM6 CPU550 / 551

13,3

4,4

2,2

Can be inserted online

yes

Can be configured in

Interrupt tasks

Cyclic tasks

Executed in

Initialization mode

Normal mode

Special features

-

Closed-loop control blocks

1.5 FUZ Fuzzy controller (REAL type)

Symbol

 

FUZ

 

communications port adress data input x1 input x2 input x3 input x4 input x5 input x6 input x7 input x8 input x9 numerical input value x10 save changes in the eprom

GV

CTS

Y1

R

output y1

S

US

Y2

R

output y2

R

X1

Y3

R

output y3

R

X2

Y4

R

output y4 error code, receiver

R

X3

Yt1

W

R

X4

Yt2

W

error code, transmitter

R

X5

YTF

W

status display of the fuzzy block (integer typ)

R

X6

QTS

BO

communication port

R

X7

R

X8

R

X9

R

X10

BO

EEP

Brief description

universal 4 x fuzzy controller, each with 10 Real-format inputs

parameterization using a PC (connected via DUST 1) using the ProFuzzy tool (this must be separately purchased)

a maximum of 7 trapezoidal membership functions are supported per input

a maximum of 7 singleton type membership functions are supported per output

Mode of operation

the controller can include up to 50 controllers

The controller has 7 trapezoidal membership functions for fuzzification. A

maximum of 50 IF

inference mechanism.

Seven singleton type membership functions are available for each output for defuzzification. The controller itself, its inputs and outputs and its membership functions can have symbolic names. Further, minimum and maximum limits are entered for each input.

All of the parameters are saved in battery buffered RAMs; when required, they can also be saved in non volatile EEPROMs.

Communications can be established between the PC and SIMADYN D via the DUST1 interface. A maximum of 256 FUZ blocks can be addressed via a logical interface. The controller can be simulated offline and online. The characteristic field and its cuts can be graphically represented (3- and 2 dimensional).

The code for fuzzification, inference and defuzzification is permanently integrated in the block and optimized for the particular processor which allows short computation times to be achieved.

AND

THEN

assignments are available for the

Closed-loop control blocks

For fuzzification, each discrete signal value is assigned appropriate linguistic variables corresponding to the level of membership. The inference mechanism works according to the MIN/MAX principle. Each of the 10 inputs can be involved in each of the 50 rules (logically combined with fuzzy AND operator). A fuzzy OR operator is realized indirectly by entering several rules.

Defuzzification is realized according to the gravity method. In this case, the gravity of the output fuzzy quantity, which is obtained from all of the fuzzy quantity results according to the inference schematic rule, are formed over the output quantity, and its abscissa is defined as discrete output quantity. For this block, for each rule, the level of fulfillment is multiplied by the modal value of the singletons in the rule. These products are summed over all rules and are divided by the sum of the fulfillment line.

The computation time of FUZ is essentially dependent on the number of inputs, outputs and rules which are used. The basic computation time is approximately 50 µs. The computation time information in the technical data should be appropriately interpreted.

I/O

CTS

Initialization input to specify the configured name of the module via whose data interface parameterization is to be realized.

US

Initialization input for address data. The data consists of a channel name, and, in addition, a channel number (DUST1 syntax) (default: empty string)

X1

Controller input 1 (default: 0.0)

X10

Controller input 10 (default: 0.0)

EEP

When a 1 is entered, all of the controller data, which have changed since the last time they were saved in the EEPROM, are again saved there. It is recommended that all of the controller data are saved in the EEPROM after "fine tuning". (default: 0)

Y1

Controller output 1 (default: 0.0)

Y4

Controller output 4 (default: 0.0)

YT1

Status display of the receive channel; refer to "Communications Configuring D7-SYS” for an explanation (default: 16#0000)

YT2

Status display of the transmit channel; explanation, refer to "Communications Configuring D7-SYS” (default: 16#0000)

YTF

Status display of the fuzzy controller (default: 16#0000)

QTS

Block output QTS indicates whether the block is operating error-free (QTS = 1), or after entering an error message, became inactive (QTS = 0) (default: 0)

Closed-loop control blocks

Configuringdata

Computation time [µs]

T400 / PM5 FM458 / PM6 CPU550 / 551

70,0

23,1

11,6

Can be inserted online

--

Can be configured in

Interrupt tasks

Cyclic tasks

Executed in

Initialization mode

Normal mode

Special features

-

Closed-loop control blocks

1.6 FUZ_I Fuzzy controller (INTEGER type)

Symbol

 

FUZ I

 

coupling module name adress data input X1 input X2 input X3 input X4 input X5 input X6 input X7 input X8 input X9 input X10 save changes in the EEPROM

GV

CTS

Y1

I

output Y1

S

US

Y2

I

output Y2

I

X1

Y3

I

output Y3

I

X2

Y4

I

output Y4

I

X3

YT1

W

error code receiver error code transmitter status display of the fuzzy block

I

X4

YT2

W

I

X5

YZF

W

I

X6

QTS

BO

block status

I

X7

I

X8

I

X9

I

X10

BO

EEP

Brief description

universal 4 x fuzzy controller, each with 10 INTEGER-format inputs

parameterization is realized using PC (connected via DUST1) using the ProFuzzy tool (this must be separately purchased).

a maximum of 7 trapezoidal membership functions are supported per input.

a maximum of 7 singleton type membership functions are supported per output.

Mode of operation

the controller can include up to 50 controllers.

The controller has 7 trapezoidal membership functions for fuzzification. A

maximum of 50 IF

inference mechanism. Seven singleton type membership functions are available for each output for defuzzification. The controller itself, its inputs and outputs and its membership functions can have symbolic names. Further, minimum and maximum limits are entered for each input.

All of the parameters are saved in battery buffered RAMs; when required, they can also be saved in non volatile EEPROMs. Communications can be established between the PC and SIMADYN D via the DUST1 interface. A maximum of 256 FUZ_I blocks can be addressed via a logical interface. The controller can be simulated offline and online. The characteristic field and its cuts can be graphically represented (3- and 2 dimensional).

The code for fuzzification, inference and defuzzification is permanently integrated in the block and optimized for the particular processor which allows short computation times to be achieved. For fuzzification, each discrete signal value is assigned appropriate linguistic variables corresponding to the level of membership. The inference mechanism works according to the MIN/MAX principle. Each of the 10 inputs can be involved in each of the 50 rules (logically combined

AND

THEN

assignments are available for the

Closed-loop control blocks

with fuzzy AND operator). A fuzzy OR operator is realized indirectly by entering several rules. Defuzzification is realized according to the gravity method. In this case, the gravity of the output fuzzy quantity, which is obtained from all of the fuzzy quantities results according to the inference schematic rule, are formed over the output quantity, and its abscissa are defined as discrete