1 2 3 4 5 6 7 8 9 10 11 FM 354 Servo Drive Positioning Module Simatic

Download as pdf or txt
Download as pdf or txt
You are on page 1of 364

Preface, Contents

Product Overview
1

Basic Principles of Positioning


2
SIMATIC
Installing and Removing
3

FM 354 Servo Drive Wiring


4
Positioning Module
Defining Paramters
5
Programming the Technological
Manual
Functions
6

Starting up
7

Human-machine Interface
8

Description of Functions
9

Writing Traversing Programs


10

Troubleshooting
11

Appendices

Technical Specifications
A

EC Declaration of Conformity
B

UDT (User DB)


C

Abbreviations
D

Index

6ES7 354-1AH01-8BG0
Edition 04.2002
Safety Information
This Manual contains information which you should carefully observe to ensure your own personal
safety and the prevention of damage to the system. This information is highlighted by a warning
triangle and presented in one of the following ways depending on the degree of risk involved:

Danger
! indicates that death, severe personal injury or substantial property damage will result if proper
precautions are not taken.

Warning
! indicates that death, severe personal injury or substantial property damage can result if proper
precautions are not taken.

Caution
! indicates that minor personal injury or property damage can result if proper precautions are not
taken.

Caution
means that material damage can occur if the appropriate precautions are not taken.

Note
contains important information about the product, its operation or a part of the document to which
special attention is drawn.

Qualified personnel
The unit may only be started up and operated by qualified personnel. Qualified personnel
as referred to in the safety guidelines in this document are those who are authorized to start up, earth
and label units, systems and circuits in accordance with relevant safety standards.

Proper use
Please note the following:

Warning
! The unit may be used only for the applications described in the catalog or the technical description,
and only in combination with the equipment, components and devices of other manufacturers as far
as this is recommended or permitted by Siemens.
It is assumed that this product be transported, stored and installed as intended and maintained and
operated with care to ensure that the product functions correctly and safely.

Trademarks
SIMATICR, SIMATIC HMIR und SIMATIC NETR are registered trademarks of SIEMENS AG.
Other names in this publication might be trademarks whose use by a third party for his own purposes
may violate the rights of the registered holder.

Copyright Siemens AG. 1996-2002 All rights reserved Exclusion of liability


The reproduction, transmission or use of this document or its contents is not We have checked that the contents of this publication agree with the hard-
permitted without express written authority. Offenders will be liable for ware and software described herein. Nonetheless, differences might exist
damages. All rights, including rights created by patent grant or registration of and therefore we cannot guarantee that they are completely identical. The
a utility model, are reserved. information given in this publication is reviewed at regular intervals and any
corrections that might be necessary are made in the subsequent printings.
Siemens AG Suggestions for improvement are welcome at all times.
Automation & Drives
Motion Control Systems
Postfach 3180, D-91050 Erlangen E Siemens AG 1996-2002
Federal Republic of Germany Subject to technical changes without
FM 354 Servonotice.
Drive Positioning Module
Index-6 6ES7 354-1AH01-8BG0
Siemens Aktiengesellschaft 6ES7-354-1AH01-8BG0
Preface

Purpose of this document


This manual contains all information about the FM 354 module:
S Hardware and functions
S Parameter definition
S Human-machine interface
S S7 function blocks
S Safe setup

Information blocks in this manual


The following information blocks describe the purpose and uses of this manual:
S Product overview of the module (Chapter 1)
This section explains the purpose and possible applications of the module. It
provides introductory information about the FM 354 and its functions.
S Basic principles of positioning (Chapter 2)
Here you will find introductory information on positioning methods and associ-
ated definitions of terms.
S Installing and removing the FM 354 (Chapter 3)
Explains the installation and removal of the FM 354.
S Wiring the FM 354 (Chapter 4)
Describes the connection and wiring of drives, encoders and digital input/output
modules.
S Defining parameters of the FM 354 (Chapter 5)
Describes the parameterization and functions of “Parameterize FM 354.”
S Programming the FM 354 (Chapter 6)
Describes how to program the FM 354 with STEP 7.
S Starting up the FM 354 (Chapter 7)
Describes startup procedures for the FM 354.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 i
Preface

S Human-machine interface (Chapter 8)


– Describes the various options for operating and monitoring the FM 354, and
which data and signals can be used and monitored.
S Reference information and appendices for finding factual information (module
functions, programming guide, interface signals, parameter lists, error handling,
technical specifications, standard HMI user interface)
S List of abbreviations and index for looking up information.

User requirements
The present manual describes the hardware and functions of the FM 354
To set up, program and start up a SIMATIC S7-300 with the FM 354, you will need
a knowledge of:
S The SIMATIC S7
Installation manual S7-400/M7–400 Programmable Controller, Hardware and
Installation
S Your programming device (PG)
S How to perform programming with STEP 7
S How to configure a operator panel interface.

FM 354 users
The structure and presentation of the information in the manual are oriented to the
intended uses of the FM 354, and the user’s own activity.
It distinguishes among the following:
S Installation
These activities include installation and wiring of the FM 354.
S Programming
These activities include parameterizing and programming the FM 354.
S Troubleshooting and diagnostics
These activities include detecting and correcting faults and errors
– in the hardware setup of the module and its components
– and in the programming, handling and control of module functions.
S Operation
These users operate the FM 354. The operator accordingly deals only with the
control of positioning tasks.

FM 354 Servo Drive Positioning Module


ii 6ES7 354-1AH01-8BG0
Preface

CE marking
Our products are in compliance with the EU Guideline 89/336/EEC “Electromagne-
tic Compatibility” and the harmonized European standards (EN) which it embodies.
The EC Declaration of Conformity in accordance with Article 10 of the EU Guide-
line referenced above is contained in this manual (see Chapter B).

Recycling and disposal


For recycling in an environmentally compatible manner and for the disposal of your
old SIMATIC in line with prsent state of technology, please contact your appropri-
ate Siemens contact partner:
http://www.ad.siemens.de/partner

Additional Assistance
If you should encounter any problems using this manual, or if you have any
questions, please contact the office specified on the query form at the end of this
manual.

Hotline
If you have an urgent problem, please contact:
A & D Technical Supports: Tel.: +49 (180) 50 50 222
Fax: +49 (180) 50 50 223
E-Mail: [email protected]

Further support
We are offering courses to help you familiarize yourself with the operation of the
SIMATIC S7 programmable controller system.
Please contact your regional or the central training center in (D-90027) Nuremberg,
Germany under tel. +49(0)911-895-3202.

Siemens Internet Address


For up-to-date information on SIMATIC products, visit us on the Internet at
http://www.ad.siemens.de/simatic-cs.
J

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 iii
Preface

FM 354 Servo Drive Positioning Module


iv 6ES7 354-1AH01-8BG0
Contents

1 Product Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1


1.1 The FM 354 in the S7-300 programmable controller . . . . . . . . . . . . . . . . . . 1-2
1.2 Module description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-7
1.3 Overview of module functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9
2 Basic Principles of Positioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1
3 Installing and Removing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1
3.1 Installing the FM 354 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3
3.2 Removing the FM 354 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4
3.3 Replacing modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5
4 Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1
4.1 Wiring an FM 354 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-3
4.2 Description of the drive interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-5
4.3 Connecting the drive unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-7
4.4 Description of the measurement system interface . . . . . . . . . . . . . . . . . . . . 4-8
4.5 Connecting the encoders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-12
4.6 Description of the I/O interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-14
4.7 Wiring up the front connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-20
5 Defining Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1
5.1 Installing “Parameterize FM 354” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-3
5.2 Getting started with “Parameterize FM 354” . . . . . . . . . . . . . . . . . . . . . . . . . 5-4
5.3 Parameter data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-7
5.3.1 Machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-9
5.3.2 Increments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-19
5.3.3 Tool offset data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-20
5.3.4 Traversing programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-22
5.4 Parameterization with “Parameterize FM 354” . . . . . . . . . . . . . . . . . . . . . . . 5-24
5.5 Storing the parameter data in SDB >= 1 000 . . . . . . . . . . . . . . . . . . . . . . . . 5-25
6 Programming the Technological Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1
6.1 Programming fundamentals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3
6.1.1 Interface, user data blocks (AW-DBs) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3
6.1.2 Standard function blocks, overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-5
6.1.3 Communication between the CPU and the FM 354 . . . . . . . . . . . . . . . . . . . 6-6
6.1.4 Structure of a user program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-7

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 v
Contents

6.1.5 Distributed configuration, OB 86 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-8


6.1.6 Connecting an OP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-8
6.1.7 Procedures for Writing the User Program (AWP) . . . . . . . . . . . . . . . . . . . . . 6-9
6.2 Putting the FM 354 into operation with the parameter initialization tool . . 6-10
6.3 Description of the standard function blocks . . . . . . . . . . . . . . . . . . . . . . . . . 6-10
6.3.1 FC POS_INIT (FC 0) – Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-11
6.3.2 FC POS_CTRL (FC 1) – Data interchange . . . . . . . . . . . . . . . . . . . . . . . . . . 6-13
6.3.3 FC POS_DIAG (FC 2) – Read diagnostic interrupt data . . . . . . . . . . . . . . . 6-23
6.3.4 FC POS_MSRM (FC 3) – Read measured values . . . . . . . . . . . . . . . . . . . 6-26
6.4 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-27
6.5 User data block (AW-DB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-29
6.6 Sample applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-40
6.7 Error list, system messages (CPU) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-47
6.8 Technical specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-49
7 Starting up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-1
7.1 Installation and wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2
7.2 Initial values for testing and optimization . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-3
7.3 Testing and optimization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-6
7.3.1 Activating the machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-12
7.3.2 Checking the drive and encoder circuits . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-13
7.3.3 Basic startup of the position controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-17
7.3.4 Optimizing the position controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-19
7.3.5 Realigning the reference point coordinates . . . . . . . . . . . . . . . . . . . . . . . . . . 7-23
7.3.6 Activating position controller diagnostics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-24
7.3.7 Activating the software limit switches, drift compensation and backlash
compensation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-26
7.3.8 Parameterizable zero-speed monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-28
8 Human-machine Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-1
8.1 Standard HMI (human-machine interface) for the OP 07 and the OP 17 8-3
8.1.1 Standard user interface for the OP 07 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-5
8.1.2 Standard user interface for the OP 17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-10
8.2 Analysis of the user DB by the user program for operator control . . . . . . 8-17
8.3 Data block for status messages (DB-SS) . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-20
9 Description of Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-1
9.1 Control and checkback signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-2
9.1.1 Control signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-3
9.1.2 Checkback signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-6
9.1.3 General handling information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-10
9.2 Operating modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-14
9.2.1 Jogging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-15
9.2.2 Open-loop control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-18
9.2.3 Reference point approach . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-19
9.2.4 Incremental relative . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-24
9.2.5 MDI (Manual Data Input) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-27

FM 354 Servo Drive Positioning Module


vi 6ES7 354-1AH01-8BG0
Contents

9.2.6 Automatic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-31


9.2.7 Automatic single block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-36
9.3 System data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-37
9.3.1 Modify parameters/data (Write request in user DB, DBX39.3) . . . . . . . . . 9-38
9.3.2 Single functions (user DB, DBB34 and 35) . . . . . . . . . . . . . . . . . . . . . . . . . . 9-42
9.3.3 Single commands (user DB, DBB36 and 37) . . . . . . . . . . . . . . . . . . . . . . . . 9-45
9.3.4 Zero offset (Write request in the user DB, DBX39.1) . . . . . . . . . . . . . . . . . 9-48
9.3.5 Set actual value (Write request in the user DB, DBX38.7) . . . . . . . . . . . . . 9-50
9.3.6 Set actual value on-the-fly (Write request in the user DB, DBX39.0) . . . . 9-51
9.3.7 Request application data (Write request in the user DB, DBX39.6) . . . . . 9-52
9.3.8 Teach in (Write request in the user DB, DBX39.7) . . . . . . . . . . . . . . . . . . . . 9-53
9.3.9 Set reference point (Write request in the user DB, DBX38.6) . . . . . . . . . . 9-53
9.3.10 Measured values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-54
9.3.11 Basic operating data (Read request in the user DB, DBX42.0) . . . . . . . . . 9-56
9.3.12 Active NC block (Read request in the user DB, DBX42.1), next NC block
(Read request in the user DB, DBX42.2) . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-57
9.3.13 Application data (Read request in the user DB, DBX43.6) . . . . . . . . . . . . . 9-58
9.3.14 Actual value block change (Read request in the user DB, DBX42.3) . . . . 9-58
9.3.15 Servicing data (Read request in the user DB, DBX42.4) . . . . . . . . . . . . . . 9-58
9.3.16 Additional operating data (Read request in the user DB, DBX43.5) . . . . . 9-59
9.3.17 Parameters/data (Read request in the user DB, DBX43.3) . . . . . . . . . . . . 9-59
9.4 System of measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-60
9.5 Axis type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-61
9.6 Encoders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-64
9.6.1 Incremental encoders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-66
9.6.2 Absolute encoders (SSI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-69
9.6.3 Synchronizing the encoders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-72
9.7 Position controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-74
9.8 Digital inputs/outputs (Read request in the user DB, DBX43.4) . . . . . . . . 9-85
9.8.1 Function description of digital inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-86
9.8.2 Function description of digital outputs (Write request in the user DB,
DBX39.4) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-87
9.9 Software limit switches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-88
9.10 Process interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-89
10 Writing Traversing Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-1
10.1 Traversing blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-2
10.2 Program execution and direction of machining . . . . . . . . . . . . . . . . . . . . . . . 10-16
10.3 Block transitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-16
11 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-1
11.1 Error classes and module responses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-3
11.2 Error messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-4
11.2.1 Fault indication by LED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-4
11.2.2 Diagnostic interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-6
11.2.3 Error messages in checkback signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-7
11.2.4 Message in data block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-8
11.2.5 Viewing the diagnostic buffer (PG/PC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-8

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 vii
Contents

11.3 Error lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-9


11.3.1 Diagnostic interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-9
11.3.2 Error messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-15
A Technical Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-1
B EC Declaration of Conformity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-1
C UDT (User DB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-1
D List of Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-1
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Index-1
J

FM 354 Servo Drive Positioning Module


viii 6ES7 354-1AH01-8BG0
Product Overview 1
Chapter Overview

Section Section Header Page


1.1 The FM 354 in the S7-300 programmable controller 1-2
1.2 Module description 1-7
1.3 Overview of module functions 1-9

What can the FM 354 do?


The FM 354 is a microprocessor-controlled positioning module for a drive with an
analog setpoint interface.
The FM 354 is a high-performance module for tasks in servo-controlled positioning.
The module works autonomously and is controlled by way of the user program in
the SIMATIC S7-300 system.
It can operate rotary and linear axes by servo or open-loop control with actual-
value tracking.
The FM 354 has a variety of operating modes.
The module has a non-volatile data memory to store parameterization data.
S The FM 354 is low-maintenance (no battery).
S It can be linked and adapted to user circumstances by parameterizing it as re-
quired by the system.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 1-1
Product Overview

Where can the FM 354 be used?


The FM 354 can be used for both simple positioning and complex traversing pro-
files demanding superior dynamic response, accuracy and speed. It is also suitable
for positioning tasks in machinery with high clock-pulse rates.
Typical uses for the positioning module might include:
S Transfer lines
S Assembly lines
S Presses
S Woodworking machines
S Handling equipment
S Loaders
S Auxiliary movements in milling and turning machines
S Packaging machines
S Conveyor equipment
Its range of functions is comparable to that of the WF 721 module in the
SIMATIC S5 system, and the FM 353 in the SIMATIC S7 system.

1.1 The FM 354 in the S7-300 programmable controller

How is the FM 354 linked up with the S7-300?


The FM 354 is designed as a function module of the SIMATIC S7-300 controller.
The S7-300 programmable controller consists of a CPU and a variety of peripheral
modules mounted on a mounting rail.
The configuration may have one or more racks.

FM 354 Servo Drive Positioning Module


1-2 6ES7 354-1AH01-8BG0
Product Overview

Multi-rack configurations
A SIMATIC S7-300 CPU may run up to four racks with as many as eight bus sta-
tions each (see Figure 1-1).

OP PG
MPI
Operator panel Programming device

Backplane bus Rack 3

IM SM SM SM FM SM SM SM
dig./anal. dig./anal. dig./anal. dig./anal. dig./anal. dig./anal.

24 V

Rack 2

IM SM SM SM FM SM SM SM
dig./anal. dig./anal. dig./anal. dig./anal. dig./anal. dig./anal.

24 V
Servo
Rack 1 drive Encoders

IM SM SM SM FM 354 SM SM SM
dig./anal. dig./anal. dig./anal. dig./anal. dig./anal. dig./anal.

24 V
Rack 0 Distributed I/Os,
L2-DP with IM inter-
face module

PS 24 V SIMATIC IM SM SM SM FM 354
2/5/10 A S7-300 CPU
dig./anal. dig./anal. dig./anal.

MPI – Multipoint interface Servo Encoders


IM – Interface module 24 V drive
SM – Signal module
PS – Power supply
CPU – Central processing unit

Fig. 1-1 Multi-rack configuration of a SIMATIC S7-300 with FM 354 (example)

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 1-3
Product Overview

Overview of system components


A positioning controller using the FM 354 consists of a variety of individual compo-
nents. which are shown in Figure 1-2.

Operator panel (OP) Your programming device (PG)


(e.g. OP 07)

Configuration
package

DIN rail

SIMATIC S7-300

PS
CPU
IM SM SM
FM 354
SM SM

Power section e.g. touch


e.g. SIMODRIVE 611-A probe

Encoders

Motor
e.g. 1FT5

SIMODRIVE

Fig. 1-2 System overview (schematic)

MPI connection
The FM can service up to 3 MPI nodes (PCs, programming devices or OPs) simul-
taneously.

FM 354 Servo Drive Positioning Module


1-4 6ES7 354-1AH01-8BG0
Product Overview

Components
The most important components and their functions are listed in Table 1-1.

Table 1-1 Components of a positioning controller

Component Function
DIN rail ... the module mounting rack for the S7-300.
FM 354 ... the positioning module. It is controlled by the S7-300 CPU.
CPU ... executes the user program; powers the S7-300 backplane
bus at 5 V; and communicates with the programming device
and the operator panel via the MPI interface.
Power supply (PS) ... converts line voltage (120/230 V AC) to 24 V DC operating
voltage to power the S7-300.
Signal modules (SM) ... adapts various process-signal levels to the S7-300
Interface module (IM) ... connects the individual cells of an S7-300 with
one another (applies to multi-tier configuration; see Fig-
ure 1-1).
Programming device (PG) ... configures, parameterizes, programs and tests the S7-300
and the FM 354.
Operator panel (OP) ... the interface to the machine. It serves for operation and
monitoring. It is not an absolute prerequisite for operation of
an FM 354.
Power section ... actuates the motor.
Motor ... drives the axis.
Encoders ... the path measurement system that detects the current posi-
tion of the axis. By comparing the actual position with the ap-
plicable setpoint position, the FM 354 immediately detects
discrepancies and attempts to compensate for them.
Configuration package ...A CD-ROM with:
S An FC block package
S The parameterization tool for ”Parameterize FM 354”
S A preconfigured operator interface for the COROS series
OP 07 and OP 17
S A manual in PDF format
S Getting Started in PDF format

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 1-5
Product Overview

System overview of data handling


The following figure gives you an overview of the data storage concept.

CPU FM 354

Module data
Load memory RAM S Module data
P bus S Diagnostic data
User program,
including FCs

User DBx
Diagnostic/
Online data process inter-
rupt DBx pa- DBx pa-
Operating rame- ... rame-
K bus
system terization terization
MPI data data

Human-machine
interface e.g.:
Creation of the
user program Parameterization, S Machine data
testing and diag- S Increments
nostics
S Tool offset data
OP
S Traversing programs
S Status messages

LAD/STL DB Editor Parameter-


Editor ize FM 354

PG (STEP 7)

Fig. 1-3 Data storage concept

FM 354 Servo Drive Positioning Module


1-6 6ES7 354-1AH01-8BG0
Product Overview

1.2 Module description

View of the FM 354


Figure 1-4 shows the FM 354 module, its interfaces and front-panel elements (in-
cluding fault and status displays).

DIN rail

Module name plate:


FM 354
F.SERVO MOTOR
Bus connector –
SIMATIC port
Front door
(flips open) Labeling plate

Front view with


doors removed
ENCODER X3

SF Front connector
1
Status and DC5V
2
3 I0
error displays DIAG 4 I1
5 I2
6 I3
7
8
9
RM
1 0

1 1 Display for digital


Q0
Measurement 1 2 Q1 I/O modules
1 3
system port X3 1 4
Q2
Q3
1 5
1 6
1 7
1 8
Drive 1 9
2 0
port X2
ANAL.OUT X2

I/O port X1

Fig. 1-4 View of the ports and front-panel elements

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 1-7
Product Overview

Ports
A description of the ports is provided in Table 1-2 .

Table 1-2 Ports

Ports Description
Bus connector – Back connector to continue the S7 LAN from module to module
SIMATIC port
Drive port 9-pin male sub-D connector (X2) to connect the drive unit
Measurement system 15-pin female sub-D connector (X3) to connect the encoder
port
I/O port 20-pin male front connector (X1) to connect the load power sup-
ply and for digital input and output wiring

LED indicators
Twelve LEDs are arranged on the front panel of the FM 354. Table 1-3 describes
these LEDs and what they mean.

Table 1-3 Status and error displays

LED Significance
SF (red) - This LED indicates an error condition in the FM 354.
Group error (see Troubleshooting, Chapter 11)
5 V DC (green) - This LED indicates that the hardware is ready for operation.
Logic power sup-
ply is ON
DIAG (yellow) - This LED indicates the various diagnostic conditions.
Diagnostics (see Troubleshooting, Chapter 11)
I0...I3 (green) - These LEDs indicate which input is ON.
Digital inputs
Q0...Q3 (green) - These LEDs indicate which output is ON.
Digital outputs
RM (green) - This LED indicates the drive unit is ready to operate.
Drive unit ready

FM 354 Servo Drive Positioning Module


1-8 6ES7 354-1AH01-8BG0
Product Overview

Type plate of the FM 354


Figure 1-5 describes all the information contained in the type plate of the FM 354.

SIEMENS

SVP JM123456
Made in Germany

Product status
Marks and approvals
Order number Module identifier

Fig. 1-5 Type plate of the FM 354

1.3 Overview of module functions

Summary
The FM 354 module performs the following functions:
S Mode control
S Actual-value capture
S Servo position control
S Digital inputs and outputs
S Settings and functions that do not depend on operating mode
S Software limit switches
S Process interrupts
S Block sequence control
S Diagnostics and troubleshooting
S Data storage on the FM 354

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 1-9
Product Overview

Operating mode control


The user program passes the operating mode to the FM.
The FM 354 has the following modes available:
S Jogging
S Open-loop control
S Reference point approach
S Incremental mode, relative
S Manual data input (MDI)
S Automatic
S Automatic single block

Encoders
Incremental or absolute encoders (SSI) may be connected to the measuring sys-
tem port.

Position control
The position controller performs the following tasks:
S Guidance of the drive commensurate with speed during movement sequence
(e.g. adjustable acceleration and delay, jerk limitation, following error monitor-
ing), see Section 9.7 “Position control”)
S Precise approach of the axis to the programmed target position
(e.g. approach to position; see Section 9.7 “Position controller”)
S Maintenance of the axis in position when outside factors interfere.
(e.g. offset compensation; see Section 9.7 “Position control”)

Digital inputs/outputs
Four digital inputs and four outputs can be used as specified by the user.
You might connect:
S Reference-point switches
S Switches for external starting
S Touch probes
S Position reached, Stop (“PEH”)
S Forward/backward rotation
The switching function is assigned to a given I/O number by way of the machine
data.

FM 354 Servo Drive Positioning Module


1-10 6ES7 354-1AH01-8BG0
Product Overview

Settings and functions not dependent on operating mod


Special functions can be activated by specific settings in the user program, in addi-
tion to the mode (e.g. inprocess measurement, retrigger reference point, etc.).

Software limit switches


The operating range (specified by software limit switches) is automatically moni-
tored after synchronization is recorded.

Process interrupts
Process interrupts are triggered by such events as:
S Position reached
S Length measurement completed
S On-the-fly block change
S Inprocess measurement
Process interrupts are selected by way of machine data.

Block sequence control


Automatic processing of a traversing program, including subprograms created dur-
ing the parameterization process. A number of traversing programs are available
for execution on the module.

Diagnostics and troubleshooting


Startup and ongoing operation of the module are monitored by fault and diagnostic
interrupts. Faults or errors are reported to the system and displayed by the LEDs
on the module.

Data storage on the FM 354


Parameterization data (machine data, tool compensation data, traversing programs
and increment sizes) is retained in storage on the FM 354.
J

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 1-11
Product Overview

FM 354 Servo Drive Positioning Module


1-12 6ES7 354-1AH01-8BG0
Basic Principles of Positioning 2
What is positioning?
Positioning means moving a load to a defined position within a defined time, taking
all influencing forces and torques into account.

s
Dx

Position A Position B

F = driving force Dx = distance to be traversed s = path

Fig. 2-1 Principle of a positioning action

Servo-controlled positioning
Servo-controlled positioning is:
S guidance of the drive at the proper speed during execution of a movement
S precise approach of the axis to the programmed target position
S maintenance of the axis in position in the face of interfering factors.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 2-1
Basic Principles of Positioning

Structure of a positioning circuit


Figure 2-2 shows the structure of a position control circuit with the FM 354.

Power grid FM 354 CPU


EMERG. STOP

Reference posi-
tion

Power section
Safety e.g., SIMO-
device DRIVE 611-A

Actual Parameter- PG
position ize

Movement

Motor M Encoders

Mechanical transmission
elements Hardware limit
switch
“Parameterize FM 354”

Fig. 2-2 Setup of servo-controlled positioning, example

FM 354
Servo-controlled positioning with output of an analog actuating signal for the drive.

Power section
The power section processes the analog actuating signal and delivers the proper
electric power to the motor.

Motor
The motor is actuated by the power section and drives the axis.

Mechanical transmission elements


These include not only the axis, but also gear trains and clutch systems.

FM 354 Servo Drive Positioning Module


2-2 6ES7 354-1AH01-8BG0
Basic Principles of Positioning

Encoder
The encoder detects movement of the axis. It supplies pulses to the FM 354. The
number of pulses is proportional to the distance traversed

Peripherals
All other additional equipment is covered by the term peripherals.
Peripherals mainly include:
S Limit switches to limit the positioning range (safety devices).
S A programming device (PG) and the “Parameterize FM 354” parameterization
software.
J

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 2-3
Basic Principles of Positioning

FM 354 Servo Drive Positioning Module


2-4 6ES7 354-1AH01-8BG0
Installing and Removing 3
Chapter Overview

Section Section Header Page


3.1 Installing the FM 354 3-3
3.2 Removing the FM 354 3-4
3.3 Replacing modules 3-5

Overview
The FM 354 is intended for installation as an I/O module in the SIMATIC S7-300
programmable logic controller.

Important safety rules


There are important rules which you must follow when integrating an FM 354 in the
S7-300 PLC in a plant or system.
These rules and specifications are described in the manual S7-300 Programmable
Controller, Hardware and Installation.

Mechanical set-up
The options for the mechanical set-up and its configuration are described in the
manual S7-300 Programmable Controller; Hardware and Installation.
Below, we give only a few supplementary pointers.

Installation position
The module should preferably be installed horizontally.
In vertical installations, please observe the ambient temperature restrictions
(max. 40 °C).

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 3-1
Installing and Removing

What you should know about the mechanical layout


The FM 354 can be mounted in any of the eight available slots (slots 4 to 11) for
I/O modules on the mounting rail.
In configuring the mechanical layout of your controller, you should note the follow-
ing rules:
1. No more than eight SMs or FMs per tier (rack).
2. The maximum number of modules is limited by module width and by the length
of your DIN rail.
The FM 354 requires an installation width of 80 mm (3.12 inches).
3. The maximum number of modules is limited by the total power that all modules
to the left of the CPU or IM, as the case may be, consume from the 5 V back-
plane bus.
The CPU 314, for example, can supply a maximum of 1.2 A.
The FM 354 requires 100 mA of this amount.

FM 354 Servo Drive Positioning Module


3-2 6ES7 354-1AH01-8BG0
Installing and Removing

3.1 Installing the FM 354

Rules
No particular protective measures (EGB Guidelines) are necessary for the installa-
tion of the FM 354.

Warning
! Install the FM 354 only after all power to the S7-300 has been turned OFF.

Tools required
A 4.5 mm (.18 inch) screwdriver.

Procedure
To install the FM 354:
1. The FM 354 comes with a bus connector. Plug this into the bus plug of the
module to the left of the FM 354. (The bus plug is on the back; you may have to
loosen the module already in place.)
If further modules are to be mounted to the right, plug the bus connector of the
next module into the right backplane bus connector on the FM 354.
If the FM 354 is the last module in the rack, do not connect this bus connector.
2. Hook the FM 354 onto the rail and swing it down into position.
3. Screw the FM 354 down (torque approx. 80-110 Nm).
4. After the modules have been mounted, you can also assign each of them a slot
number. Slot labels for this purpose are enclosed with the CPU.
The numbering scheme and how to plug in the slot labels are described in the
manual S7-300 Programmable Controller, Hardware and Installation, for the
numbering scheme to follow and how to apply the slot labels.

Note
The slot determines the initial address of each module. To find out how to allocate
the module start address, please refer to the manual S7-300 Programmable Con-
troller, Hardware and Installation.
The FM 354 is addressed in the same way as an analog module.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 3-3
Installing and Removing

3.2 Removing the FM 354

Rules
No particular protective measures (EGB Guidelines) are necessary for the removal
of the FM 354.

Warning
! Remove the FM 354 only after all power to the S7-300 has been turned OFF.

Tools required
A 4.5 mm (18 inch) screwdriver.

Procedure
To remove the FM 354:
1. Open the front doors. If necessary, remove the labeling strips.
2. Detach the power-supply connections from the terminal block.
3. Detach the sub-D plugs from the encoder and drive unit.
4. Release the protective device on the front connector and unplug it.
5. Loosen the fastening screws and swing the module up and out.

FM 354 Servo Drive Positioning Module


3-4 6ES7 354-1AH01-8BG0
Installing and Removing

3.3 Replacing modules

Overview
If a defective FM 354 has to be replaced, and no programming device/PC is avail-
able for parameterization, or the module is to be replaced while the system is
switched on, please note the following start-up requirements (CPU, FM):
S An SDB w 1 000 should be generated in order to complete the startup (for stor-
ing the parameter data); see Section 5.5.
S In the user program:
– Interrupt communication with the FM 354 before removing the old FM, and
resume communication after installing the new FM.
– If data/parameters are modified during operation and stored modally on the
FM, please follow the instructions in Section 9.3.1.

Replacing an FM 354
To replace a parameterized but defective FM 354:
1. Replace the FM 354 when the system is switched off (CPU, FM)

Remove the FM 354 (See Sec. 3.2)

Install the FM 354 see Sec. 3.1)

Switch on the system

Appropriate SDB w 1 000 in No


CPU?1)

Yes
Reparameterization of FM
FM 354 para-
→ PG/PC required
meterized
automatically

FM 354 ready

1) How to create an SDB w1 000 after startup, and


how to load it in the CPU is described in Section 5.5.

Fig. 3-1 Replacing the FM 354 with the system switched off

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 3-5
Installing and Removing

FM 354 Servo Drive Positioning Module


3-6 6ES7 354-1AH01-8BG0
Wiring 4
Chapter Overview

Section Section Header Page


4.1 Wiring an FM 354 4-3
4.2 Description of the drive interface 4-5
4.3 Connecting the drive unit 4-7
4.4 Description of the measurement system interface 4-8
4.5 Connecting the encoders 4-12
4.6 Description of the I/O interface 4-14
4.7 Wiring up the front connector 4-20

Safety rules
In order to ensure the safe operation of your plant, you should introduce the follow-
ing additional measures, and adjust them appropriately to your system’s condi-
tions:
S An EMERGENCY STOP concept meeting appropriate safety regulations
(e.g. European standards EN 60204, EN 418 and associated standards).
S Additional measures for limiting the end position of axes
(e.g. hardware limit switches).
S Equipment and measures for protecting the motors and power electronics in
accordance with the installation guidelines for SIMODRIVE.
We also recommend you carry out a risk analysis in accordance with basic safety
requirements / Appendix 1 of the EC machine directive, in order to identify sources
of danger affecting the complete system.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 4-1
Wiring

Further references
Please refer also to the following chapters in the manual S7-300 Programmable
Controller, Hardware and Installation:
S Lightning protection and overvoltage protection: Chapter 4.2
S Guidelines for handling of electrostatic sensitive devices (ESDs): Appendix B.
S Configuring the electrical installation: Chapter 4
For further information about EMC guidelines, we recommend the description in:
Equipment for Machine Tools, EMC guidelines for WS/WF equipment, Order No.:
6ZB5 440-0QX01-0BA1.

Standards and specifications


When wiring the FM 354 you must observe the relevant VDE guidelines.

FM 354 Servo Drive Positioning Module


4-2 6ES7 354-1AH01-8BG0
Wiring

4.1 Wiring an FM 354

Summary
Figure 4-1 shows how the individual components of the positioning controller with
FM 354 are linked together.

OP
PG

SIMATIC S7-300

SIEMENS

Front connector

External 24 V
power supply CPU FM 354
MPI connecting cable

X3 X2

Setpoint cable

Dig. outputs, e.g. di-


Measuring- rection of rotation
system cables
e.g. incremental Dig. inputs, e.g.
encoder with touch probe
RS 422

e.g. ROD 320


(built-in encoder
in 1FT5 motor) Drive unit,
e.g. SIMODRIVE 611-A
e.g. absolute
encoder (SSI) SIEMENS

SIMODRIVE
e.g. linear
scale with EXE

Fig. 4-1 Wiring diagram of an FM 354

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 4-3
Wiring

Connecting cables
Table 4-1 lists the connecting cables for a positioning controller with the FM 354.

Table 4-1 Connecting cables for a positioning controller with FM 354

Type Order No. Description


MPI connecting see Catalog ST 70, Order No. Connection between OP,
cable E86060-K4670-A101-AV PG and S7-300 CPU
Setpoint cable 6FX2 002-3AB01-1VV0 Setpoint cable for FM 354
see Catalog NC Z and SIMODRIVE 611-A,
Order No.: "10 V; one axis
E86060-K4490-A001-AV
Measurement 6FX2 002-2CD01-1VV0 Incremental encoder with
system cable see Catalog NC Z RS 422 and FM 354
Order No.: (EXE with linear scale)
E86060-K4490-A001-AV
Measuring- 6FX2 002-2CE01-1VV0 ROD 320 encoder with
system cables see Catalog NC Z 1FT5 motor and FM 354
Order No.:
E86060-K4490-A001-AV
Measuring- 6FX2 002-2CC01-1VV0 Connection of absolute
system cables see Catalog NC Z encoder (SSI) and FM 354
Order No.:
E86060-K4490-A001-AV

Front connector
You need a 20-pin screw-type front connector for wiring the I/Os. It must be or-
dered separately.
Order No.: 6ES7 392-1AJ00-0AA0
see Catalog ST 70, Order No. E86060-K4670-A101-AV
see Catalog NC 60.1, Order No. E86060-K4460-A101-AV

FM 354 Servo Drive Positioning Module


4-4 6ES7 354-1AH01-8BG0
Wiring

4.2 Description of the drive interface

Connector for the drive unit


Power sections with an analog interface ("10 V) can be connected to the 9-pin
sub-D X2 connector of the FM 354.
The FM 354 also provides an enable signal.

Connector position
Figure 4-2 shows the installation position and identification of the plug on the mod-
ule.

ANAL. OUT X2

1
6

9 5

FM 354

Fig. 4-2 Position of X2 connector

Connector pinout
Connector identifier: X2 ANAL. OUT X2
Connector type: 9-pin sub-D plug connector

Table 4-2 Pinout of the X2 connector

Pin Name type Pin Name type


1 SW VO 6 BS VO
2 open 7 open
3 open 8 open
4 open 9 RF.1 K
5 RF.2 K

Signal names
SW Setpoint "10 V
BS Reference potential for setpoint
RF.1...2 Contact for CL controller enable

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 4-5
Wiring

Signal type
VO Voltage outlet
K Switching contact

Signals
One voltage signal and one enable signal are provided.
S SETPOINT (SW)
An analog voltage signal in the range "10 V, for output of an rpm setpoint.
S REFERENCE SIGNAL (BS)
A reference potential (analog ground) for the setpoint signal, internally con-
nected with the logic ground.
S SERVO ENABLE (RF)
A relay contact pair used to switch the axis-specific Enable signal for the power
section, e.g. a SIMODRIVE drive unit. The FM 354 activates this signal when
cyclic open–loop control mode is entered, that is, when startup and initialization
were successfully completed and the user activated the single function “Servo
Enable”. Prerequisite is, however, that MD37 is set for “Servo Enable active”.

Signal parameters
The setpoint is output as an analog differential signal.

Table 4-3 Electrical parameters of the setpoint signal

Parameters Min Max Unit


Rated voltage range –10 10 V
Output current –3 3 mA

D/A converter resolution: 0...1 V 16 bits + sign


1...10 V 13 bits + sign

Relay contacts
The axis enables are switched via relay outputs (“make” contacts).

Table 4-4 Electrical parameters of the relay contacts

Parameters Max Unit


Switching voltage 50 V
Switching current 1 A
Switching capacity 30 VA

Connecting cables to drive unit


Acceptable length: up to 35 m (115 ft)

FM 354 Servo Drive Positioning Module


4-6 6ES7 354-1AH01-8BG0
Wiring

4.3 Connecting the drive unit

To connect the connecting cables


Please note:

Note
Use only shielded twisted pairs for lines. The shielding must be connected to the
metallic or metallized connector jacket on the controller side. To protect the analog
setpoint signal against low-frequency interference, we recommend that you not
ground the shielding on the drive-unit side
The cable set supplied as an accessory offers excellent immunity against interfer-
ence

X2
Connecting cable

FM 354

Drive unit,
e.g. SIMODRIVE 611-A

SIEMENS
SIMODRIVE

E/R VSA

Fig. 4-3 Connecting a SIMODRIVE 611-A drive unit

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 4-7
Wiring

Procedure to connect the connecting cable


Connect the drive unit as follows:
1. Wire the free cable end of the connecting cable to the terminals of the drive
unit. (The terminal identifiers on the cable ends indicate the proper terminals for
SIMODRIVE units.)
2. Open the front door and plug the sub-D connector into the module.
3. Lock the connector in place with the knurled screws. Close the front door.

Designation of the connecting cable


The connecting cable is a prefabricated cable for an axis with an analog interface,
terminal designation for SIMODRIVE drive units.
Order No.: 6FX2 002-3AB01-0VV0
The connecting cable is available in a variety of lengths.
see Catalog NC Z, Order No.: E86060-K4490-A001-AV.

4.4 Description of the measurement system interface

Connectors for encoders


A 15-pin female sub D connector is provided for the connection of incremental en-
coders or absolute encoders (serial port).

Location of connector
Figure 4-4 shows where the connector is installed on the module, and how it is
identified.

ENCODER X3
8
15

9
1

FM 354

Fig. 4-4 Location of the X3 connector

FM 354 Servo Drive Positioning Module


4-8 6ES7 354-1AH01-8BG0
Wiring

Connector pinout
Identifier: X3 ENCODER X3
Type: 15-pin female sub-D plug connector

Table 4-5 Pinout of the X3 connector

Encoders Encoders
Pin type Pin type
Incremental Absolute Incremental Absolute
1 Unassigned I 9 MEXT VO
2 CLS O 10 N I
3 CLS_N O 11 N_N I
4 P5EXT VO 12 B_N I
5 P24EXT VO 13 B I
6 P5EXT VO 14 A_N DATA_N I
7 MEXT VO 15 A DATA I
8 Unassigned

Signal names
A, A_N Track A true / negated (incremental encoder)
B, B_N Track B true / negated (incremental encoder)
N, N_N Zero mark true / negated (incremental encoder)
CLS, CLS_N SSI sliding pulse true / negated (absolute encoder)
DATA, DATA_N SSI data true / negated (absolute encoder)
P5EXT +5 V supply (pins 4 and 6 connected internally)
P24EXT +24 V power supply
MEXT Ground power supply

Signal type
VO Voltage outlet (power supply)
O Output (5 V signal)
I Input (5 V signal)

Connectable encoder types


Incremental or absolute (SSI) encoders may be connected directly (e.g. digital-
rotary encoders); they are then selected via machine data.
Encoders with SINE/COSINE signals (e.g. length scales) may be connected by
way of an external electronic pulse shaper (EXE) that converts the signals to 5 V
levels.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 4-9
Wiring

Encoder characteristics
Both encoders that can be connected directly and EXEs must meet the following
requirements:
Incremental encoders
Transfer procedure: Differential transfer with 5 V rectangular
signals (such as RS422 standard)
Output signals: Track A as true and negated signal (Ua1, Ua1)
Track B as true and negated signal (Ua2, Ua2)
Zero signal N as true and negated signal (Ua0, Ua0)
When connecting an incremental encoder, please note
that at the instant of the zero pulse (TRUE signal) the
signals of tracks A and B must also be TRUE.
If necessary, the negated signal must be connected and,
consequently, the direction adjusted (MD19).
“1” signal w 2.4 V
“0” signal < 0.8 V
Maximum output frequency: 1 MHz
Phase shift, track
A to B: 90° "30°
Power consumption: Not more than 300 mA
Absolute encoders (SSI)
Transfer procedure: Synchronous-serial interface (SSI) with
5 V differential-signal transfer
signals (such as RS422 standard)
Output signals: Data as true and negated signal
Input signals: Sliding pulse as true and negated signal
Resolution: Not more than 25 bits
Maximum transfer
frequency: 1.25 Mbps
Power consumption: Not more than 300 mA

Encoder power supply


The 5 V or 24 V power supply to the encoders is generated within the module and
is available on the female sub-D connector, and so you can power the encoders by
way of the connecting cable, without additional wiring. The available voltage is
electronically protected against shorting and thermal overload, and is monitored.

FM 354 Servo Drive Positioning Module


4-10 6ES7 354-1AH01-8BG0
Wiring

Table 4-6 Electrical parameters of encoder power supply

Parameters Min Max Unit


5 V power supply
Voltage 5,1 5,3 V
Ripple 50 mVss
Current carrying capacity 0,3 A
24 V power supply
Voltage 20,4 28,8 V
Ripple 3,6 Vss
Current carrying capacity 0,3 A

Note
24 V encoders that are supplied via X3 must not be inserted or removed when the
FM 354 power supply is connected.

External voltage supply


If the encoders are supplied externally (encoders are not connected to FM power
supply), the reference potentials of the two supplies must be interconnected.

Connecting cables to encoder


The maximum cable length depends on the specifications of the encoder power
supply, and on the transfer frequency. For trouble-free operation, you should not
exceed the following values when using SIEMENS cable sets:

Table 4-7 Maximum cable length as a function of encoder power supply

Supply voltage Power con- Max. cable length


sumption
5 V DC < 300 mA 25 m (82 ft)
5 V DC < 220 mA 35 m (115 ft)
24 V DC < 300 mA 100 m (328 ft)

Note
If you want to use incremental encoders with cable lengths longer than 25 or 35 m
(82 or 115 ft), select a type that uses a 24 V power supply.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 4-11
Wiring

Table 4-8 Maximum cable length as a function of transfer frequency

Encoder type Frequency Max. cable length


1 MHz 10 m (32.8 ft)
Incremental encoder
500 kHz 35 m (115 ft)
1.25 Mbps 10 m (32.8 ft)
Absolute encoder (SSI)
125 kbps 100 m (328 ft)

For further encoder information see Section 9.6.

4.5 Connecting the encoders

To connect the connecting cables, please note the following:

Note
Use only shielded cables. The shielding must be connected to the metallic or me-
tallized connector jacket.
The cable sets supplied as an accessory offer excellent immunity from interfer-
ence, as well as cross-sections large enough for the power supply to the encod-
ers.

Connecting cable
FM 354

X3 X3 X3 X3

e.g. incremental e.g. e.g. absolute e.g.


encoder ROD 320 encoder (SSI) linear scale
with RS 422 (built-in en- with EXE
coder in 1FT5)

Fig. 4-5 Connecting the encoders

FM 354 Servo Drive Positioning Module


4-12 6ES7 354-1AH01-8BG0
Wiring

Procedure for connecting encoders


To connect the encoders:
1. Connect the connecting cables to the encoders.
For absolute encoders (SSI) it may be necessary to cut and add connectors to
the cable (end of the cable to the encoder) according to the manufacturer’s in-
structions.
2. Open the front door and plug the sub-D connector into the module.
3. Lock the connector in place with the knurled screws. Close the front door.

Available connecting cables for encoders


Cable set for add-on encoders or EXEs (for connection of linear scales)
Order No.: 6FX2 002-2CD01-1jj0
Cable set for built-in encoders with 17-pin round plugs.
Order No.: 6FX2 002-2CE01-1jj0
Cable set for absolute encoders (SSI) with a free cable end.
Order No.: 6FX2 002-2CC01-1jj0
Connecting cables are available in a variety of lengths.
see Catalog NC Z , Order No.: E86060-K4490-A001-Aj.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 4-13
Wiring

4.6 Description of the I/O interface

Front connector
Four digital input/output modules and the standby signal (controller message) may
be connected to the 20-pin front connector X1 with its single-wire terminal.

Location of connector
Figure 4-6 shows the front connector in position to be wired, and the labeling on
the inside of the front door.

Front connector in wiring position Labeling on


X1 inside of front door

Locking device
1
2
3 3
4 4
5 5
6 6
7
8 9
9 10
1 0
X1
1 1 11
1 2 12
1 3 13
1 4 14
1 5
1 6
1 7
1 8 19
1 9
20 L+
2 0
M

Fig. 4-6 Location of X1 connector

FM 354 Servo Drive Positioning Module


4-14 6ES7 354-1AH01-8BG0
Wiring

Connector pinout
Connector identifier: X1
Connector type: 20-pin S7 front connector for single-wire terminal

Table 4-9 Pinout of the X1 connector

Pin Name Type Pin Name Type


1 open 11 DA1 O
2 open 12 DA2 O
3 DI1 I 13 DA3 O
4 DI2 I 14 DA4 O
5 DI3 I 15 open
6 DI4 I 16 open
7 open 17 open
8 open 18 open
9 RM_P I 19 L+ VI
10 RM_N I 20 M VI

Signal names
DI1...4 Digital input 1...4
DQ1...4 Digital output 1...4
RM_P Positive input for controller message
RM_N Negative input for controller message
L+, M 24 V load power supply / ground

Signal type
O Output
I Input
VI Voltage input

4 digital inputs (DI1...4)


All inputs have equal priority. Switching functions are allocated to an input number
by way of machine data; input polarity is selected in the same way (starting and
shutdown slopes).
These fast inputs are PLC-compatible (24 V current-sourcing). Switches or con-
tactless sensors (2-wire or 3-wire sensors) can be connected.
Possible uses include:
S As reference-point switches
S As switches for external Start/Stop, external block change
S As touch probes
See Section 5.3.1 for further applications.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 4-15
Wiring

Table 4-10 Electrical parameters of digital inputs

Parameters Value Unit Notes


1 signal, voltage range 11...30 V
1 signal, power consumption 6...15 mA
0 signal, voltage range –3...5 V or input open
Signal delay 0 → 1 15 µs
Signal delay 1 → 0 150 µs
Internal signal delay 20 µs for actual value
transfer function

“Controller message” (RM) input


The standby signal of the drive power section (controller message) can be con-
nected to a further input.

Note
The “controller message” input is configured as an isolated optical coupler input.
This allows both a current-sourcing and a current-sinking output of the power sec-
tion to be connected. See Section 4.7 for details about wiring.

Table 4-11 Electrical parameters of “controller message” input

Parameters Value Unit Notes


1 signal, voltage range 15...30 V
1 signal, power consumption 2...6 mA
0 signal, voltage range –3...5 V or input open
Signal delay 0 → 1 30 µs
Signal delay 1 → 0 150 µs

There are two ways of powering the standby signal:


S from the controller
S from the drive unit

FM 354 Servo Drive Positioning Module


4-16 6ES7 354-1AH01-8BG0
Wiring

Power from the open-loop control


Figure 4-7 shows examples of how to power the standby signal from the controller
(e.g. SIMODRIVE 611 drive unit).

Actuation of input controller message by high-side switch or relay contact


FM Drive unit

X1 High-side switch or
RM_P relay contact
9 74
RM_N
10
L+
19 73
M
20
e.g. SIMODRIVE 611

Actuation of input controller message by low-side switch or relay contact

X1
9 RM_P Low-side switch or
relay contact
RM_N
10
L+
19

20 M

Fig. 4-7 Actuation of the input controller message, power supply from the
control

Power from the drive unit


Figure 4-8 shows examples of how to power the standby signal from the drive unit.

Actuation of input controller message by high-side switch or relay contact


FM Drive unit
P24
X1
RM_P
9

10 RM_N

19 L+ M

20 M

Actuation of input controller message by low-side switch or relay contact

X1
RM_P
9 P24
RM_N
10
19 L+

20 M M

Fig. 4-8 Actuation of the input controller message, power supply from the
drive unit

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 4-17
Wiring

4 digital outputs (DO1...4)


All outputs have equal priority. Switching functions are allocated to an output num-
ber by way of machine data.
These four outputs are intended for wiring of application-specific signals.
Possible uses include:
S Position reached and stopped
S Switching function M command
S Forward/backward rotation
See Section 5.3.1 for further applications.

Note
Make sure that the cable length between the digital outputs and the load does not
exceed a permissible max. length of 30 m.

Table 4-12 Electrical parameters of digital outputs

Supply voltage 24 V DC
(allowable range: 20.4...28.8 V)
Electrical isolation No
Output voltage S 0 Signal: Residual current max. 2 mA
S 1 Signal: (Power supply –3 V)
Output current on signal “1”
S at ambient temperature of
40_C
– Rated value 0.5 A (total current 2 A)
– Permissible value range 5 mA...0.6 A (via supply voltage)
– Lamp load max. 5 W
S at ambient temperature of
60_C
– Rated value 0.1 A (total current 0.4 A)
– Permissible value range 5 mA...0.12 A (over power supply)
Switching rate S Resistive load: max. 100 Hz
S Inductive load: 0.25 Hz

FM 354 Servo Drive Positioning Module


4-18 6ES7 354-1AH01-8BG0
Wiring

Load power supply (L+, M)


Here a 24-V load power supply must be connected. The unit will not operate if the
poles are reversed.

Note
Note the SIMATIC setup guidelines. In particular, the M terminal (reference poten-
tial) must be connected with the chassis ground of the programmable controller (M
terminal on the terminal block of the S7-300 CPU).
see manual S7-300 Programmable Controller, Hardware and Installation.

Danger
! The 24 V load power supply should be a functional extra-low voltage with safe
isolation to EN60204-1, Section 6.4, PELV (with M grounding).

Note
Make sure that the interconnecting cable between power supply and load power
supply connection L+ and appropriate reference potential M does not exceed a
max. permissible length of 10 m.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 4-19
Wiring

4.7 Wiring up the front connector

Wiring the front connector


Figure 4-9 shows you how to install the conductors on the front connector and how
to relieve the strain with the shield connection element.

ENCODER X3

SF
1
2
DC5V 3 3
DIAG 4
I0 4
5
I1 5
6
I2 6
7
I3
8 9
9 RM
1 0 10

X1
1 1 Q0 11
1 2 Q1 12
1 3 Q2 13
1 4 Q3
1 14
5
1 6
1 7
1 8
1 9 AC
19 19
+
2 0 20 – 20 L+
DC24V M
ANAL.OUT X2

FM 354
Labeling on inside of front
door

Digital
outputs Shielding terminal element

Digital
inputs
e.g.
touch probe

Fig. 4-9 Wiring up the front connector

Connecting cables
Flexible conductor, cross-sectional area 0.25...1.5 mm2.
Ferrules are not necessary.
You can use ferrules without insulating collars per DIN 46228, Shape A, long con-
figuration.
You can connect two lines measuring 0.25...0.75 mm2 in a single ferrule.

Note
To provide optimum immunity to interference, shielded cables should be used to
connect touch probes or sensors.

FM 354 Servo Drive Positioning Module


4-20 6ES7 354-1AH01-8BG0
Wiring

Tools required
A 3.5 mm (.13 inches) screwdriver or power screwdriver.

Procedure for wiring the front connector


To wire the terminal strip:
1. Strip 6 mm (.23 inches) of insulation from the cable; apply ferrules,
if any.
2. Open the front door. Move the front connector into position for wiring (while
pressing down on the locking elements as shown in Figure 4-6).
Lock the connector in place without any electrical contact to the module.
3. Apply the cable grip to the connector.
4. If you are leading the lines out from below, start wiring from the bottom; other-
wise start from the top. Screw down unused terminals as well.
The tightening torque should be 60-80 Nm.
5. Tighten the cable grip on the cable strand.
6. Move the front connector into operating position (while pressing down on the
locking elements).
7. You can fill out the labeling strip enclosed with the product and slip it into the
front panel.

Shielded cables
When using shielded cables, the following additional steps are necessary:
1. After leading the cable into the cabinet, connect the cable shielding with a
grounded shielding bus (strip the insulation from the cable itself).
For this you can use the shielding terminal element mounted on the DIN rail; it
will accept up to eight shielding terminals.
see manual S7-300 Programmable Controller, Hardware and Installation.
2. Connect the shielded line to the module, but do not connect the shielding there.

Shielding terminal element


To provide a shielding end lead for shielded cables, this element can be inserted in
the DIN rail. It can accept up to eight shielding terminals (KLBÜ line from
Weidmüller).
Order No.: Terminal element: 6ES7 390-5AA00-0AA0
Shielding terminal: 6ES7 390-5CA00-7AA0
see Catalog NC 60.1, Order No. E86060-K4460-A101-Aj
see Catalog ST 70, Order No. E86060-K4670-A101-Aj
J

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 4-21
Wiring

FM 354 Servo Drive Positioning Module


4-22 6ES7 354-1AH01-8BG0
Defining Parameters 5
Chapter Overview

Section Section Header Page


5.1 Installing “Parameterize FM 354” 5-3
5.2 Getting started with “Parameterize FM 354” 5-4
5.3 Parameter data 5-7
5.4 Parameterization with “Parameterize FM 354” 5-24
5.5 Storing the parameter data in SDB w 1 000 5-25

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 5-1
Defining Parameters

Summary
This chapter gives you an overview of how to define the parameters of the FM 354
with the “Parameterize FM 354” tool.

S7-300 CPU FM 354


P bus
Data blocks (DB)
User S DB-MD
data block
S DB-SM Online (editing in the
PLC menu and selec-
K bus S DB-WK
tion of the Online edit-
MPI S DB-NC
ing option)

Offline (editing in the File


PG menu)
(STEP 7) HW-CONFIG

Rack parameterization -
Parameter-
Group selection - Acti-
ization forms
vate interrupts (basic pa-
rameters)

Setup.exe Configuration: Generate system data

Module parameterization

S Parameterization tool ”Parameterize FM 354 ”


S Function blocks
S Preconfigured user interface for OPs
S Manual in PDF format
S Getting Started in PDF format

Fig. 5-1 Overview of parameterization

FM 354 Servo Drive Positioning Module


5-2 6ES7 354-1AH01-8BG0
Defining Parameters

5.1 Installing “Parameterize FM 354”

Prerequisites
One of the following operating systems must be installed on the programming de-
vice (PG/PC):
S “Windows 95”
S “Windows NT” (V4.0 or higher)
S “Windows 98”
S ”Windows Millennium”
S ”Windows 2000”
You need the STEP 7 program (V4.02 or higher)
For online operation, the link between the programming device/PC and the S7-300
CPU must already be set up (see Figure 4-1). For distributed use of the FM, a link
from the programming device/PC to the L2-DP network must already be set up.

Installation
The entire software (parameterization tool, function blocks and preconfigured user
interface for OPs) is stored on CD ROM.
Install the software as follows:
1. Insert the CD ROM in the CD ROM drive of your PG/PC.
2. Run file Setup.exe on the CD ROM.
3. Follow the instructions displayed by the installation routine step for step.
Result: The software is installed in the following directories:
– “Parameterize FM 354” parameterization tool:
[STEP7 directory]\S7FLAG
– Technology functions: [STEP7 directory]\S7LIBS\FMSTSV_L
– User interface for OPs:
[STEP7 directory]\EXAMPLES\FM_LAGE\zEn14_02_FM354_OP_EX
– Sample applications: [STEP7 directory]\EXAMPLES\zEn14_02
STEP7 project name: zEn14_02_FM354_EX

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 5-3
Defining Parameters

5.2 Getting started with “Parameterize FM 354”

Prerequisites
You have installed the software on your programming device/PC, as described in
Section 5.1.

Configuration
Before you can configure your system, you must create a project in which to save
the parameters. You will find further information on how to configure modules in
your user manual Standard Software for S7 and M7, STEP 7. The description be-
low outlines only the most important steps.
1. Start the SIMATIC Manager and open your project.
2. Insert a SIMATIC 300 station in the menu Insert > Station.
3. Select the SIMATIC 300 station. Call up the S7 hardware configuration from
the menu Edit > Open Object.
4. Select a rack.
5. Select the FM 354 positioning module with the correct order number from the
module catalog, and insert it in the hardware table as appropriate for your con-
figuration.
6. Double-click a module to configure it.
The Properties dialog box appears.

Fig. 5-2 Getting started with “Parameterize FM 354”

FM 354 Servo Drive Positioning Module


5-4 6ES7 354-1AH01-8BG0
Defining Parameters

7. By clicking on the tabs in this FM 354 window (General, Addresses and Basic
Parameters), you can
– Assign a name
– Change the address of the FM as well as any input parameters for FC
POS_INIT (see Chapter 6.3.1)
– Configure the interrupts (diagnostic interrupt, process interrupt).
Note:
Further operation of the FM 354 is not possible with the CPU in the STOP state.
Click the Parameters button to call up the screen for setting the parameters.

Fig. 5-3 Overview display for parameterization

You can return to this display at any point during parameterization by selecting the
menu View > Overview.
The FM 354 module for servo-controlled positioning is parameterized by way of
parameter DBs that reside in memory on the module. Here a key function is per-
formed by the “Machine data” data block (DB-MD), since it is always needed, re-
gardless of what technological function the module performs. All other parameter
DBs are only needed as a function of the technology involved.
You can now set the parameters of your module. This chapter gives you an over-
view of the parameters that can be set.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 5-5
Defining Parameters

You can use the mouse to change the size of the window for entering the parame-
ter data and the size of the overview display.
Proceed as follows:
1. Position the mouse pointer on the top border of the window, so that it changes
into an arrow.
2. Press the left mouse button, and drag the pointer downwards by moving the
mouse.
3. Release the mouse button.
4. Position the mouse pointer on the bar with the name of the window.
5. Press the left mouse button, and drag the pointer upwards by moving the
mouse. When you have moved the window to the correct position, release the
mouse button.
When you have configured your project, you can call up the Properties screen in
S7 Configuration by selecting the module and activating the menu command Edit
> Object Properties.

Note
Once you have imported a project from STEP 7 V2.1, you cannot store any pa-
rameter data (data blocks) in this project. You can only read the parameter data in
this project by importing the data from a file, or store the data by exporting the
data to a file.
1. Create a new project in STEP 7 V3.1.
2. Copy all programs (*.awl) into the new project.

Integrated help
The parameterization user interface has an integrated help system to support you
when you set the parameters of the positioning module. To call up the integrated
help:
S Select the menu command Help > Help Topics ... or
S press the F1 key or
S select the symbol and then move to the element or window you want infor-
mation about and press the left mouse button.

FM 354 Servo Drive Positioning Module


5-6 6ES7 354-1AH01-8BG0
Defining Parameters

5.3 Parameter data

What can I parameterize?


You can parameterize the following data storage areas:
S Machine data (MD)
S Increment sizes (SM)
S Tool offset data (TO)
S Traversing programs (NC)
S User data (user data blocks)
This data is stored in data blocks (DBs) within the numerical range 1001 to 1239
(not including user data).
The MD, SM, TO and NC data blocks are transferred to the FM 354 and reside in
memory there.
Parameterization of SM, TO and NC may be omitted if the associated functions are
not used.
The user data block must be stored in the CPU. Only then can it be filled with data
online (see Chapter 6).
Parameterization data (except for user data) can also be created, edited and saved
offline on the PU.

Data blocks (DB) of the FM 354


Table 5-1 gives you an overview of the data blocks in the FM 354 and their mean-
ing.

Table 5-1 Data blocks

Data block Significance


DB-MD Machine data (DB No. = 1200)
User memory requirements = 284 bytes
Machine data serves to adapt the FM 354 to the user’s own specific ap-
plication. Parameterization with machine data is essential in order for the
FM’s functions to be activated. The parameterized DB-MD should be
loaded to the FM. As it is written to the FM 354, the DB-MD is checked
for the input limits of the individual values and their interdependencies. It
is then stored only if all values are allowed. Otherwise data error mes-
sages are displayed by way of the MPI. A defective DB will not be re-
tained when the power is turned off.
The machine data can then be activated by way of “Activate machine
data” or by switching the equipment on and off.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 5-7
Defining Parameters

Table 5-1 Data blocks, continued

Data block Significance


DB-SM Increments (DB No. = 1230)
User memory requirements = 468 bytes
Increments serve in the “Relative incremental” operating mode as user-
definable relative path distances for individual positioning. You can de-
fine from 1 to 100 increment sizes (see Section 5.3.2).
Modifications can be made in all operating modes (even in “Incremental
relative” mode) during movement. The modifications of the increments
must always be complete before a new movement is started in “Incre-
mental relative” mode. If this is not the case, the error message “incre-
mental dimensions do not exist” is output Cl. 2/No. 13.
DB-WK Tool offset data (DB No. = 1220)
User memory requirements= 308 bytes
The use of tool length compensation and wear values is described in
Section 10.1. Up to 20 compensation or wear values are available.
Tool offset data are required for the “Automatic and Automatic single
block” modes.
Modifications can be made in all operating modes and during movement.
If modifications are made during starting or at block transitions when the
tool compensation is active (internal access to offset values), the error
message “tool offset value does not exist” is output Cl.3/No.35.
DB-NC Traversing programs
(Program No. + 1000 = DB No. = 1001...1199)
User memory requirements= 108 bytes + (20 x number of traversing
blocks)
Traversing programs are required for the “Automatic and Automatic
single block” modes.
S Programs which are not selected can always be modified.
S If modifications are made to a preselected program, including the
subprogram, preselection of the program is canceled. You must then
select the program again. A modification can be made to a program
when BL = 0 (start of program/end of program) and on Stop.
System data For module replacement without PG
block All the parameter data of the FM 354 (DB-MD, DB-SM, DB-WK, DB-NC)
SDB w 1 000 are stored in SDB w 1 000. This SDB is loaded into the CPU and is used
as an additional means of data storage.
DB-SS Data block for status messages (DB no. 1000)
The DB-SS is an internal DB on the FM for testing, start-up and operator
control and monitoring.
DB 1249 Internal DB on the FM, not relevant for user.

FM 354 Servo Drive Positioning Module


5-8 6ES7 354-1AH01-8BG0
Defining Parameters

Data block structure


Table 5-2 gives a rough picture of data block structure.

Table 5-2 Data block structure

Addresses/ Comment
Contents
Offset
System information, not relevant for
DB header
user
Information for labeling of data
0 and above User data area / structure header
block within the system
24 and above Parameterization data
for MD, other- User data
wise 32

Detailed data block structures and parameterization data for the individual types of
data blocks can be found in the following sections.

5.3.1 Machine data

DB structure
Table 5-3 gives you an overview of the structure of the “machine data” data block
(DB-MD).

Table 5-3 DB structure – Machine data

Byte Variable type Value Significance of the variables Comment


DB header

0 WORD Rack slot Module address


2 WORD DB No. (w 1000) As in DB header
4 DWORD reserved
8 WORD Error No. (from FM) With HMI services
10 WORD 1 Channel number
12 2 STRING MD DB identifier/type 2 ASCII characters
16 DWORD 354 Module identifier FM 354
20 4 CHAR 0 Version number/block number (DB structure)

24 and See machine data list MD5...MD45


above.
..

Note: MD address in DB = (MD-no. –5) * 4 +24

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 5-9
Defining Parameters

Entering values
In “Parameterize FM 354” select the menu File > New > Machine Data to call up
the following display.

Fig. 5-4 Entering values for machine data

Enter the machine data in the tab windows.


You can also enter your values in a table by selecting View > Table form.
When creating the MD DBs you must follow the instructions in Section 7
“Starting up the FM 354”.

Note
The measurement system (MD7) must match the measurement system specified
in the other DBs.
The measurement system raster (MSR) is the smallest distance unit in the active
system of measurement.
If at some point you have failed to take this precaution:
1. Delete all data blocks (which do not match the measurement system) or clear
the memory of the FM 354 completely.
2. Modify the other data blocks on the PG.
3. Reload the data blocks to the FM 354.

FM 354 Servo Drive Positioning Module


5-10 6ES7 354-1AH01-8BG0
Defining Parameters

Machine data list


All machine data of the FM 354 are listed in Table 5-4.
Notes to the machine data list:
K stands for configuration data: seeSection9.3.3
E stands for user-definable machine data settings for readjustment (startup opti-
mization) and technology; seeSection 9.3.3
The units of measurement refer to the value representation in the machine data DB.

Table 5-4 Machine data list


See
Default Data type/
No. Designation Value/Meaning Sec-
values Unit/Comments
tion
1...4 open
5E Process interrupt 0 0 = Position reached BITFIELD32 9.10
generation 1 = Length meas. completed
3 = Change block on-the-fly
4 = Inprocess Measurement
6 Axis name X max. 2 ASCII characters1) 4 bytes3)
7K System of measure- 1 1 = 10–3 mm DWORD [MSR] 9.4
ment 2 = 10–4 inch
3 = 10–4 degrees
4 = 10–2 degrees
8K Axis type 0 0 = linear axis DWORD 9.5
1 = rotary axis
9K Rotary axis end2) 36@105 0...1 000 000 000 DWORD [MSR]
10 K Encoder type 1 0 = not present DWORD 9.6.1
1 = incremental encoder 9.6.2
3 = absolute enc. (SSI, 13-bit) GRAY Code
4 = absolute enc. (SSI, 25-bit) GRAY Code
13 = absolute enc. (SSI, 13-bit) Binary Code
14 = absolute enc. (SSI, 25-bit) Binary Code
11 K Travel per motor 10 000 1...1,000,000 ,000 DWORD [MSR] 9.6.1
revolution (division (integer compo- 9.6.2
period)2 nent)
12 K Residual distance 0 0...232–1 DWORD
per encoder revolu- [2–32MSR] (frac-
tion (division pe- tional component)
riod)2

MSR = measurement-system grid RPS = reference-point switch


1) The variable axis name is implemented as an axis letter (X, Y, Z, ...) with an address extension (1...9).
Permissible characters: X, Y, Z, A, B, C, U, V, W, Q, E, 1...9 e.g.: “X”, “X1”
2) see Dependencies
3) The axis name is in bytes 3 and 4 (bytes 1 and 2 give the character length specification).

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 5-11
Defining Parameters

Table 5-4 Machine data list, continued


See
Default Data type/
No. Designation Value/Meaning Sec-
values Unit/Comments
tion
13 K Increments per en- 2 500 21...225 (for absolute encoders) DWORD 9.6.1
coder revolution (di- With incremental 9.6.2
vision period)2 encoders, evalua-
tion takes place at
4@MD.
14 K Number of rotations 0 0/1 = single-turn encoders DWORD 9.6.1
– absolute encoder 21...212 for multi-turn encoders Only powers of two 9.6.2
are allowed.
15 K Baud rate –absolute 2 1= 78,000 DWORD 9.6.1
encoder 2 = 156,000 9.6.2
For baud rates 3 = 312,000
which lie between 4 = 625,000
these values, set 5 = 1,250,000
the next lower baud
rate
16 K Reference- 0 –1,000,000,000...+1,000,000,000 DINT [MSR] 9.2.3
point coordinate
17 K Absolute-encoder 0 0...225 – 1 DWORD 9.6.3
readjustment [Encoder grid] ab-
solute encoder
18 K Type of reference- 0 0 = direction +, zero pulse right DWORD 9.2.3
point approach 1 = direction +, zero pulse left Code identifies
(reference-point ap- 2 = direction –, zero pulse right position for syn-
proach direction) 3 = direction –, zero pulse left chronization point
4 = direction +, RPS center with ref. to RPS
5 = direction –, RPS center for incremental en-
8 = direction +, RPS edge coders only
9 = direction –, RPS edge
19 K Direction adjustment 0 0 = invert direction of measurand BITFIELD32 9.7
1 = invert analog value
20 K Hardware monitor- 0 0 = cable break (incremental BITFIELD32 9.6.1
ing encoder) 9.6.2
1 = error, absolute encoder
2 = pulse monitoring
(incremental encoder)
3 = Voltage monitoring - encoder
21 E Software limit –109 –1 000 000 000...1 000 000 000 DINT [MSR] 9.7
switches, begin- 9.9
ning2)
22 E Software limit switch 109 –1 000 000 000...1 000 000 000
– end2)

MSR = measurement-system grid RPS = reference-point switch


1) The variable axis name is implemented as an axis letter (X, Y, Z, ...) with an address extension (1...9).
Permissible characters: X, Y, Z, A, B, C, U, V, W, Q, E, 1...9 e.g.: “X”, “X1”
2) see Dependencies
3) The axis name is in bytes 3 and 4 (bytes 1 and 2 give the character length specification).

FM 354 Servo Drive Positioning Module


5-12 6ES7 354-1AH01-8BG0
Defining Parameters

Table 5-4 Machine data list, continued


See
Default Data type/
No. Designation Value/Meaning Sec-
values Unit/Comments
tion
23 E Maximum speed 30@106 10...500,000,000 DWORD 9.7
[MSR/min]
24 E Target range (posi- 1 000 0...1 000 000 DWORD [MSR]
tion reached, stop)
25 E Monitoring time 0 0 = no monitoring DWORD [ms]
1 ... 65534 rounded to
2-ms steps
26 E Stationary range 104 1...1 000 000 DWORD [MSR]
27 E Reference- 0 –1,000,000,000...+1,000,000,000 DINT [MSR] 9.2.3
point shift
28 E Referencing veloc- 6@106 10...500,000,000 DWORD 9.2.3
ity2) [MSR/min]
29 E Reducing velocity2) 3@106 10...500,000,000
30 E Backlash com- 0 0 to 1,000,000 DINT [MSR] 9.7
pensation
31 E Directional refer- 0 0 = as in search for reference DWORD 9.7
ence of backlash (not for absolute encoders)
1 = positive
2 = negative
32 K M-function 1 during positioning: DWORD 10.3
output type 1 = time-controlled serial output of up 9.1
2 = acknowledgment-controlled to 3 M functions in
NC block
before positioning:
3 = time-controlled
4 = acknowledgment-controlled
after positioning:
5 = time-controlled
6 = acknowledgment-controlled
33 K M-function 10 1...100,000 DWORD [ms]
output time rounded to 2-ms
steps

MSR = measurement-system grid RPS = reference-point switch


1) The variable axis name is implemented as an axis letter (X, Y, Z, ...) with an address extension (1...9).
Permissible characters: X, Y, Z, A, B, C, U, V, W, Q, E, 1...9 e.g.: “X”, “X1”
2) see Dependencies
3) The axis name is in bytes 3 and 4 (bytes 1 and 2 give the character length specification).

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 5-13
Defining Parameters

Table 5-4 Machine data list, continued


See
Default Data type/
No. Designation Value/Meaning Sec-
values Unit/Comments
tion
34 K Digital inputs2) 0 0 = external start BITFIELD32 9.2.3
1 = input for enable bit-coded function 9.8
2 = external block change allocation:
3 = set actual value on-the-fly
Bit No. I/O 0
4 = measure
Bit No. + 8 I/O 1
5 = RPS for search for reference
Bit No. + 16 I/O 2
6 = reversing switch for
Bit No. + 24 I/O 3
search for reference
Front edge always
35 K Digital outputs2) 0 0 = Position reached, stop activates the func- 9.8
1 = Axis movement forward tion
2 = Axis movement reverse
3 = Change M97
4 = Change M98
5 = Enable Start
7 = Direct output
36 K Input adjustment 0 8 = I0 inverted BITFIELD32 9.8
(signal processing 9 = I1 inverted
inverted) 10 = I2 inverted
11 = I3 inverted
37 K Servo control sig- 1 0 = controller enable active 9.7
nals 2 = controller ready active
3 = controller ready inverted
7 = time override active
15 = continue operation after 9.1.1
emergency stop (drive
enable [AF])
16 = automatic drift compen-
sation active
38 E Positioning loop am- 1 000 1...10,000 DWORD
plification [(MSR/min)/MSR]
39 E Minimum following 0 0 = no monitoring DWORD [MSR]
error, dynamic 1...1 000 000
40 E Acceleration 1 000 0 = without ramp DWORD 9.7
1...100,000 [103MSR/s2]
41 E Deceleration 1 000
42 E Jolt time 0 0...10,000 DWORD [ms]
43 E Set voltage, max. 8 000 1,000...10,000 DWORD [mV]
44 E Offset compensa- 0 –1,000...+1,000 DINT [mV]
tion
45 E Voltage ramp 0 0...10,000,000 DWORD [mV/s]
52 E Speed for backlash 0 0 DWORD 9.7
compensation 1 to 100 [%]

MSR = measurement-system grid RPS = reference-point switch


1) The variable axis name is implemented as an axis letter (X, Y, Z, ...) with an address extension (1...9).
Permissible characters: X, Y, Z, A, B, C, U, V, W, Q, E, 1...9 e.g.: “X”, “X1”
2) see Dependencies
3) The axis name is in bytes 3 and 4 (bytes 1 and 2 give the character length specification).

FM 354 Servo Drive Positioning Module


5-14 6ES7 354-1AH01-8BG0
Defining Parameters

Table 5-4 Machine data list, continued


See
Default Data type/
No. Designation Value/Meaning Sec-
values Unit/Comments
tion
53 E Mode for backlash 0 0 = before positioning DWORD 9.7
compensation 1 = during positioning
54 E Standstill speed 0 0 – 7.3.8
Automatic zero-speed monitoring
1...1 000 000 [MSR/min]
zero-speed monitoring detection
if standstill speed falls below
setpoint
55 E TimeOut time for 0 0 – 7.3.8
zero-speed No TimeOut monitoring
monitoring 1...100 000 [ms]
Enforced zero-speed monitoring
after the TimeOut time has
elapsed

MSR = measurement-system grid RPS = reference-point switch


1) The variable axis name is implemented as an axis letter (X, Y, Z, ...) with an address extension (1...9).
Permissible characters: X, Y, Z, A, B, C, U, V, W, Q, E, 1...9 e.g.: “X”, “X1”
2) see Dependencies
3) The axis name is in bytes 3 and 4 (bytes 1 and 2 give the character length specification).

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 5-15
Defining Parameters

Dependencies
With certain combinations of machine data, restrictions in the value range arise for
non-processing of the machine data.
These dependencies are verified on acceptance of the MD DB or individual ma-
chine data, and an error message is output in the event of a violation. Some
checks are performed on the basis of internally calculated reference variables.
These reference variables and the dependency checks are described in the tables
below.
Reference variables generated internally from MD:
Generation of travel per encoder revolution UMWEG

UMWEG = MD11 + MD12@2–32

Generation of internal measured value factor MWFAKTOR

MD10 Measured value factor


0 MWFAKTOR = 1
1 MWFAKTOR = UMWEG / (4@MD13)
3, 4, 13, 14 MWFAKTOR = UMWEG / MD13

Activation of software limit switches SEAKT

MD21 MD22 SEAKT


= –109 = +109 0 (inactive)
≠ –109 = +109
= –109 ≠ +109 1 (active)
≠ –109 ≠ +109

Internal generation of absolute traversing range limits VFBABS

MWFAKTOR VFBABS
<1 109 / MWFAKTOR
w1 109

FM 354 Servo Drive Positioning Module


5-16 6ES7 354-1AH01-8BG0
Defining Parameters

Verification:
MD9 check

MD8 MD10 MD18 Permissible rotary axis end


0 – – –
1 0 –
1 w4 –
<4 MD9 mod UMWEG == 0 (MD23/30 000)@
v
vMD9vVFBABS
v
3, 13 – UMWEG mod MD9 == 0
4, 14 – (MD14@UMWEG) mod MD9 == 01)

1) MD9 is the ratio of a power of 2x or 2–x to the absolute value range of the encoder (see Sec-
tion 9.6.2)

MD11, MD12, MD13 check → results in MWFAKTOR (see above)

Permissible measured value factor range: 2–14 < MWFAKTOR < 214

MD13 check

MD10 Increments per encoder revolution


0, 1 –
3, 4, 13, 14 2x x = 1, 2, 3, ...

MD14 check

MD10 No. of revolutions


0, 1, 3, 13 –
4, 14 2x x = 1, 2, 3, ...

MD21, MD22 check (Part1)

SEAKT MD8 Permissible software limit switches


0 – MD21 = –109, MD22 = +109
1 0 MD21 ≥ –VFBABS
MD22 ≤ VFBABS
MD21 < MD22
1 0 ≤ MD21 < MD9
0 ≤ MD22 < MD9
MD21 ≠ MD22

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 5-17
Defining Parameters

MD21, MD22 check (Part2)

SEAKT MD10 Permissible software limit switches


0 – MD21 = –109, MD22 = +109
1 0, 1 –
3, 13 MD22–MD21 ≤ UMWEG
4, 14 MD22–MD21 ≤ MD14@UMWEG

MD28 check

Permissible velocity: 10 ≤ MD28 ≤ MD23

MD29 check

MD10 Permissible velocity:


3, 4, 13, 14 any, not used
0, 1 10 ≤ MD29 ≤ MD23

MD31 check

MD30 MD10 Permissible directional reference of backlash


0 –
≠0 0, 1
3, 4, 13, 14 1, 2

MD34 check
Permissible:
BYTE0(MD34) ≠ BYTE1(MD34) ≠ BYTE2(MD34) ≠ BYTE3(MD34)

MD35 check
Permissible:
BYTE0(MD35)&0x7F ≠ BYTE1(MD35)&0x7F ≠ BYTE2(MD35)&0x7F ≠
BYTE3(MD35)&0x7F

MD53 check
MD53 Permissible MD52
0 0...100
1 MD52 < (10 V – MD43 [V]) @ 100 / 10 V

FM 354 Servo Drive Positioning Module


5-18 6ES7 354-1AH01-8BG0
Defining Parameters

5.3.2 Increments

DB structure
Table 5-5 gives you a general view of the structure of the “Increments” data block
(DB-SM).

Table 5-5 DB structure – increments

Byte Variable type Value Significance of the variables Comment


DB header

0 WORD Rack slot Module address


2 WORD DB No. (w 1000) As in DB header
4 DWORD Reserved
8 WORD Error No. (from FM) With MMI services
10 WORD 1 Channel number
12 2 STRING SM DB identifier/type 2 ASCII characters
16 DWORD 354 Module identifier FM 354
20 4 CHAR 0 Version number/block number (DB structure)

24 DWORD 1...3 Measurement-system grid per MD7 Unit of measurement


28 WORD 0/1 Parameter (DB) backup Job via HMI
30 WORD Reserved

32 DWORD 0...109 Increment 1


36 DWORD 0...109 Increment 2 to increment 100 see Section 9.2.4

Input of values
Values are input in the increments menu of the “Parameterize FM 354” parameter-
ization tool.

Fig. 5-5 Entering values for incremental dimensions

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 5-19
Defining Parameters

5.3.3 Tool offset data

DB structure
Table 5-6 gives you a general view of the structure of the “tool offset data” data
block (DB-WK).

Table 5-6 DB structure – tool offset data

Byte Variable type Value Significance of the variables Comment


DB header

0 WORD Rack slot Module address


2 WORD DB No. (w 1000) As in DB header
4 DWORD Reserved
8 WORD Error No. (from FM) With MMI services
10 WORD 1 Channel number
12 2 STRING TO DB identifier/type 2 ASCII characters
16 DWORD 354 Module identifier FM 354
20 4 CHAR 0 Version number/block number (DB structure)

24 DWORD 1...3 Measurement-system grid per MD7 Unit of measurement


28 WORD 0/1 Parameter (DB) backup Job via MMI
30 WORD Reserved

32 DINT –109...109 Tool length offset 1 Tool 1


DINT –109...109 Wear value 1 absolute
DINT –109...109 Wear value 1 additive
44 DINT –109...109 Tool length offset 2 Tool 2
DINT –109...109 Wear value 2 absolute
DINT –109...109 Wear value 2 additive
to to
Tool length offset 20 Tool 20
Wear value 20 absolute seeSection 10.1
Wear value 20 additive

FM 354 Servo Drive Positioning Module


5-20 6ES7 354-1AH01-8BG0
Defining Parameters

Input of values
Values are input in the tool offset data menu of the “Parameterize FM 354” para-
meterization tool.
If the additive wear value is changed online, the FM calculates the new wear pa-
rameter as an absolute value and the additive tool wear is reset to 0.

Fig. 5-6 Entering values for tool offset data

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 5-21
Defining Parameters

5.3.4 Traversing programs

DB structure
Table 5-7 gives you a general view of the structure of the “traversing programs”
data block (DB-NC).

Table 5-7 DB structure – traversing programs

Byte Variable type Value Significance of the variables Comment


DB header

0 WORD Rack slot Module address


2 WORD DB No. (w 1000) As in DB header
4 DWORD Reserved
8 WORD Error No. (from FM) With MMI services
10 WORD 1 Channel number
12 2 STRING NC DB identifier/type 2 ASCII characters
16 DWORD 354 Module identifier FM 354
20 4 CHAR 0 Version number/block number (DB structure)

24 DWORD 1...3 Measurement-system grid per MD7 Unit of measurement


28 WORD Reserved
30 WORD Reserved

32 18 STRING ASCII charac- NC program name max. 18 characters


ters
52 STRUCT NC block NC block new (modification range)
72 STRUCT NC block 1st traversing block
92 STRUCT NC block 2nd to 100th traversing block seeSection 9.3.11, 10.1

FM 354 Servo Drive Positioning Module


5-22 6ES7 354-1AH01-8BG0
Defining Parameters

Input of traversing programs


An empty window is provided for the input of NC traversing programs. Here you
can input your traversing program as follows:

Fig. 5-7 Entry for traversing programs

1. % Program number Program name


The “%” can be input only in the first line. This input is mandatory. The DB num-
ber is formed from the program number.
The program name is optional and may have up to 18 characters.
2. N<block number> – G<command> (G1, G2, G3) – X<value> – F<value> –
M<command> (M1, M2, M3) – D<No.> (tool offset number) – L<No.> –
P<No.> − (for NC programming see Chapter 10).
– You must enter the block number (N) first and in ascending order. The
rest of the inputs may be in any desired sequence.
– Input separators as a blank.
You must enter characters in upper case letters.
You can also use the input area at the top of the screen. The program number and
the program name are saved when you exit the input box. You can save the tra-
versing blocks with the “Save Block” button.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 5-23
Defining Parameters

5.4 Parameterization with “Parameterize FM 354”

Entering the values


You have a variety of options for entering your parameterization data.
1. User data
You can input values or select texts in a table. Select input fields with the cursor
and enter the values. You can select the associated texts for the values with the
space key.
2. Machine data
The values are entered in dialog boxes and windows selected by option tabs.
To display the machine data in a table, select the menu View > Table form.
Here you can enter the values as described in the user data section.
3. Tool compensation data and increment sizes
You can input the values in a table. Select input fields with the cursor and enter
the values.
4. Traversing programs
Traversing programs are input in text format.
A comment column is included in the tables for MD, SM, and TO values. This com-
ment is not stored in the data block. It can be printed out or stored with the data in
the file on export.

FM 354 Servo Drive Positioning Module


5-24 6ES7 354-1AH01-8BG0
Defining Parameters

5.5 Storing the parameter data in SDB w 1 000

Overview
The FM 354 stores its parameter data internally.
In order to ensure that the parameter data are available if a fault develops on the
FM 354 and no programming device/PC is at hand, the data can be stored in a
system data block in the CPU (SDB w 1 000). The CPU transfers the data stored
in SDB w 1 000 to the FM 354 on each new start. If the FM 354 has no machine
data or the internal time stamp (time of creation) is invalid, the data are transferred
from SDB w 1 000 to the FM 354 and saved there.
The time stamp is renewed every time a DB (parameter initialization data) is
opened and when a file is imported. If the contents of the DB are modified (for
instance the machine data), a new time stamp is also generated when the DB is
saved or loaded.
You must ensure that the parameter data in
SDB w 1 000 always match the parameter data on the FM 354 when start-up
is complete.

Note
If parameter initialization data are modified again in the FM following creation of
SDB w 1 000, they are overwritten when the CPU is restarted (see “Time stamp”,
above).
SDB w 1 000 should therefore not be created until start-up is finished.

If you need to modify the data subsequently, you should generate


SDB w 1 000 again and load it into the CPU. You can delete the previous SDB
before you load the new one, however the new SDB automatically overwrites the
old one when it is generated. The old SDB and the new SDB do not have to be
allocated the same number.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 5-25
Defining Parameters

Creating the SDB


Prerequisite: Online connection with the FM 354

Select menu File > Create SDB


If no DB-MD exists on the FM → Abort

An associated SDB w 1 000


exists for the FM 354 in the S7 No No associated SDB
project. exists
Yes

Overwrite this SDB? No

Yes Abort

SDB is created and stored in the S7 project in


CPU\S7-Program\blocks\system data

Fig. 5-8 Creating SDB w 1 000

Display/delete SDB in the S7 project

Select menu File > Display SDB

All SDBs for FM 354 of the project are


displayed

No
Delete SDB? Close the window

Yes

Select SDB and delete

Fig. 5-9 Displaying/deleting SDB w 1 000

FM 354 Servo Drive Positioning Module


5-26 6ES7 354-1AH01-8BG0
Defining Parameters

Loading the SDB in the CPU


When you have created the SDB, you must load the “system data” of the project
into the CPU.
There are two ways of proceeding:
1. Method
Select the online window in the SIMATIC Manager (the online and offline win-
dows must be open)
Copy the system data from the offline project in CPU\S7-Program\Blocks\Sys-
tem data into the online project (drag with the mouse or select Copy/Paste).
2. Method
Select the system data in the SIMATIC Manager in CPU\S7-Pro-
gram\Blocks\System data.
Activate the menu PLC > Load (or the right mouse button) to load the system
data into the CPU
or
Use the menu PLC > Load in EPROM memory card on CPU
You can also program the memory card for the CPU on a programming device/PC.
If the configuration is loaded from HW-CONFIG, this SDB is not loaded into the
CPU.

Deleting SDBs in the CPU


To delete the SDBs in the CPU:
1. Select “Parameterize FM 354”.
2. Select menu File > Display SDB. Delete the SDB(s).
3. Close “Parameterize FM 354” and in the SIMATIC Manager in Online Project
select CPU\S7-Program\Blocks\System data. Delete the system data.
4. Transfer the system data to the CPU again (see above)
J

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 5-27
Defining Parameters

FM 354 Servo Drive Positioning Module


5-28 6ES7 354-1AH01-8BG0
Programming the Technological Functions 6
Chapter Overview

Section Section Header Page


6.1 Programming fundamentals 6-3
6.2 Putting the FM 354 into operation with the parameter initialization 6-10
tool
6.3 Description of the standard function blocks 6-10
6.4 Interrupts 6-27
6.5 User data block (AW-DB) 6-29
6.6 Sample applications 6-40
6.7 Error list, system messages (CPU) 6-47
6.8 Technical specifications 6-49

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 6-1
Programming the Technological Functions

General remarks
The purpose of the function description of the blocks and of the interface is to illus-
trate communications between the CPU and the FM 354 in the SIMATIC S7 pro-
grammable controller. The programmable blocks and the AW-DB (which is the in-
terface to the FM 354) make it possible for you to write your user program to suit
your particular application.

S7-300
CPU FM 354
P bus Control/status
User program
signals
and System data
AW-DB
K bus Data blocks

MPI
On-line

Off-line
PG
STL/LAD editor
(STEP 7)
A DB is generated AW-DB The AW-DB is loaded
FC UDT 1
under STEP7 into the CPU

Source is UDT 1

User data type

Setup.exe

S Parameter tool “Parameterize FM 354”


S Function blocks (FCs, UDT 1 and sample pro-
grams)
S Preconfigured operator interface for OPs
S Manual in PDF format
S Getting Started in PDF format

Fig. 6-1 Programming overview

FM 354 Servo Drive Positioning Module


6-2 6ES7 354-1AH01-8BG0
Programming the Technological Functions

Prerequisites
The following prerequisites must be fulfilled for the development of your user pro-
gram if you want to control the FM 354:
S You must have installed the software on the PG/PC as per Section 5.1.
The block library containing the basic functions is normally stored in directory
[STEP7 directory]\S7LIBS\FMSTSV_L.
S The link from PG/PC to the S7 CPU must be established (see Fig. 4-1).
S You must have already created your project for the SIMATIC S7 (see “FM 354,
First Steps”).

6.1 Programming fundamentals

Overview
In this chapter you will find information on the following:
S Section 6.1.1, Page 6-3: Interface, user data blocks (AW-DBs)
S Section 6.1.2, Page 6-5: : Standard function blocks, overview
S Section 6.1.3, Page 6-6: Communication between CPU and FM 354
S Section 6.4, Page 6-27: Interrupts
S Section 6.1.4, Page 6-7: Structure of a user program
S Section 6.1.5, Page 6-8: Distributed configuration
S Section 6.1.6, Page 6-8: Connecting an OP
S Section 6.1.7, Page 6-9: Procedures for writing a user program (AWP)

6.1.1 Interface, user data blocks (AW-DBs)

The AW-DB (interface) is created off-line.


The user can access the signals and/or data on the interface using absolute or
symbolic addresses (creation of the AW-DB with UDT structure).
The interface is allocated to the relevant channel/axis via the standard function
blocks’ DB_NO input parameter. The module address is part of the user DB. It is
entered by FC POS_INIT or manually via ”Parameterize FC 354” (button ”Enter
Mod-Adr in user DB“ in main display). The user DB must already exist.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 6-3
Programming the Technological Functions

Creating the AW-DB


Proceed as follows:
1. Open your project and select SIMATIC xxx > CPUxxx > S7 Program >
Blocks.
2. The data block (for example DB 1) is generated under STEP 7 with the menu
command Insert > S7 Block > Data Block.
3. The LAD/STL/FBD editor is started by double-clicking on this data block.
4. In the “New data block” dialog, select “Data block with assigned user-specific
data type”.
5. UDT 1 is displayed.
UDT 1 contains the structure of the AW-DB.
6. Select UDT 1 and confirm with OK.
7. You have now created the AW-DB.
8. Save this AW-DB with File > Save.
9. Close the editor.

Information about symbolic programming


Normally, the blocks are entered in the symbol table with the symbol name, ad-
dress, and data type (the symbol table is supplied in the project and in the library).
If you change the block number in your project with the SIMATIC Manager, the
numbering in the symbol table must also be changed. Block allocation via the sym-
bol table is always absolutely unique.
Before writing and compiling your user program, you must enter the blocks (AW-
DBs, FCs) which you are using for your particular configuration in the symbol table.
The symbolic structure of the interface is stored in the UDT block provided. The
symbolic relationship is established via your STEP 7 project, the symbol table, and
the UDT block.
Appendix C shows the UDT with symbols and absolute address.
Sample symbol table:

Symbol Address Data Comments


Type
DB_FM1 DB 1 UDT 1 User DB for the FM 354
POS_INIT FC 0 FC 0 User DB initialization
POS_CTRL FC 1 FC 1 Data interchange

FM 354 Servo Drive Positioning Module


6-4 6ES7 354-1AH01-8BG0
Programming the Technological Functions

6.1.2 Standard function blocks, overview

The Table below provides an overview of the FCs, DBs and OBs required for com-
munication with and control of the FM 354.
Table 6-1 Standard Function Blocks for the FM 354 (overview)

Block Block Name Description/Function Remarks


FC 0 POS_INIT Call in OB 100 and OB 83, start-up/initializa- Required for application,
Page 6-11 tion no. can be changed 1)
FC 1 POS_CTRL Call in OB 1, cyclic operation (synchroniza-
Page 6-13 tion with FM 354)
Basic functions and operating modes, inter-
face processing, read and write requests
FC 2 POS_DIAG Call in OB 82, internal errors, external er-
Page 6-23 rors, and external channel errors on the FM
FC 3 POS_MSRM ACall in OB 40 or OB 1, To be used only if function
Page 6-26 measured value readout is required for the applica-
tion, no. can be changed 1)
DB (UDT) AW-DB Interface to the FM Required for application
OB 1 – Cyclic level Required for application
OB 82 – Diagnostic interrupt level
OB 100 – Start-up level
OB 86 – Rack failure For distributed configura-
tions
OB 122 – I/O access error

1) – Block number is default setting, block number can be changed in the SIMATIC Manager
– Symbol table entries can be changed in conjunction with symbolic programming only

Note
The symbolic block identifier is used from here on.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 6-5
Programming the Technological Functions

6.1.3 Communication between the CPU and the FM 354

Linking the FM 354 into the user program


The Figure below shows you how the FM 354, the AW–DB and the technological
functions communicate.

CPU FM 354
OB 40
OB 82
(process in- 4 bytes of OB start information Diagnostic and
(diagnostics)
terrupt) process inter-
4 bytes of FC POS_DIAG rupt info
OB start in-
OB 1
formation
Read/write requests Control and check-
1) Error message back signals
FC POS_MSRM

OB 100 Data, error mes-


Restart (start-up) FC POS_CTRL
sage and error
AW-DB specification
FC POS_INIT 1)
(1 DB per channel) FC POS_MSRM

1) This FC can be called only in OB 40 or OB 1, but not in both simultaneously.

Fig. 6-2 Overview diagram for linking the FM 354 into the user program

FM 354 Servo Drive Positioning Module


6-6 6ES7 354-1AH01-8BG0
Programming the Technological Functions

6.1.4 Structure of a user program

The diagram below provides an overview of the structure of the user program
(AWP).

OB 100 and OB 86 (in distributed configurations)


CALL FC POS_INIT (parameters same as DB_NO, CH_NO, LADDR)
The CPU goes to “STOP” when an error occurs during start-up.
Parameter entry

OB 1 (or other cyclic levels) AW-DB


S CALL FC POS_CTRL (parameters: DB_NO)
S Your user program, the one that is to control your system
S AWP: Error evaluation
AWP: Set, reset, scan
signals/data
OB 82
S CALL FC POS_DIAG (parameters: DB_NO)
S AWP: Open Emergency STOP circuit, reset signals (the FM was
reset or a fatal error occurred in the FM; see “Information on Error
Evaluation”)

Note
GET/PUT functions (SFC 72/73) from/to the FM are not guaranteed to work prop-
erly, that is to say, these functions are not supported, since they are not required.
Parameter initialization data can be modified via the “Modify parameters/data” sig-
nal (AW-DB, DBX39.3).

Information on signal processing:


The FM 354’s cycle (= 2 ms) and the user cycle (OB 1) are asynchronous to one
another. Depending on the instant of signal transfer to the FM 354, the time it
takes to process signals may be = 1 to < 2 x the FM cycle. This must be taken into
account particularly when user cycles are short. If necessary, the processing status
of the FM 354 should be queried before activating a new action.
Note also that signal/data transfer takes longer/several cycles in distributed confi-
gurations (see Section 6.8).

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 6-7
Programming the Technological Functions

Information on testing the user program


When testing the user program with “Set breakpoint”, please note that it is not al-
ways possible to resume the program scan with the FM 354 after the breakpoint
has been reached (for technical reasons).
For example, movements activated by the user program cannot be halted when
the user program has reached the breakpoint.
The program can be resumed by executing a restart (CPU: STOP/RUN), by reset-
ting the axis, or by changing the operating mode.

6.1.5 Distributed configuration, OB 86

If system operation must be maintained with an FM 354 despite a faulty link be-
tween CPU and distributed I/Os (DP), OB 86 is to be linked into the user program.
In OB 86, provisions (e.g. set flags and evaluate in OB) must be made to prevent
OB 1 communication with the FM 354 in case of a failure. To enable synchroniza-
tion of the user program and the FM, the FC POS_INIT (corresponding to execu-
tion in OB 100) is to be linked on re-establishing the link. Additionally, OB 122 (I/O
access error) must be loaded in the CPU.

6.1.6 Connecting an OP

Part of the AW-DB, namely the “Data field for operator control/monitoring”
(DBB496 to DBB515), is used to store signals/data for an OP as per the preconfi-
gured operator interface. In order to initiate actions, the relevant signals/data have
to be transferred to the interface (relevant area in the AW-DB) via the user pro-
gram (see Section 6.6, Example 4).

FM 354 Servo Drive Positioning Module


6-8 6ES7 354-1AH01-8BG0
Programming the Technological Functions

6.1.7 Procedures for Writing the User Program (AWP)

The sample project “zEn14_02_FM354_EX”, which is part of the configuring pack-


age, serves as model for writing a user program.
Suggested procedure:
1. Open your project in the SIMATIC Manager.
2. Select SIMATIC xxx > CPUxxx > S7 Program.
3. Open the “zEn14_02_FM354_EX” project in the SIMATIC Manager with File >
Open... > Projects.
4. Select the ”EXAMPLES” directory.
5. Select the “Symbols” file and copy it to your project under SIMATIC xxx >
CPUxxx > S7 Program (replacing the existing object).
6. Open the “Sources” directory and copy from all STL sources to your project’s
“Sources” directory.
7. Open the “Blocks” directory and copy all blocks to your project’s “Blocks” direc-
tory (including UDT blocks).
8. Select the “Sources” directory in your project. Start the “LAD/STL/FBD Editor”
by double-clicking on the “OB_example” file.
9. Modify the appropriate input parameters (see FC POS_INIT in Section
6.3.1 and FC POS_DIAG in Section 6.3.3) in the FC POS_INIT call in OB
100 and in the FC POS_DIAG call in OB 82.
10.You can insert the relevant functions from the sample project
“zEn14_02_FM354_EX” (see Section 6.6) in the “Example Calls” network
in OB 1. The functions can be activated by writing your user program to
set/reset the signals in the DB 100 (AW-DB for the examples) supplied.
The input parameter must be modified accordingly for FC POS_CTRL.
11. The organization blocks (OB 1, OB 82, OB 100) are generated from the STL
source with the menu commands File > Save and File > Compile werden aus
der AWL-Quelle die Organisationsbausteine (OB 1, OB 82, OB 100) (warnings
from the compilation run can be ignored).
12.Close the editor.
13.Set the CPU to “STOP” and switch the CPU on.
14.In the SIMATIC Manager, select SIMATIC xxx > CPUxxx > S7 Program >
Blocks.
15.Load all the S7 blocks (including system data) into your CPU (with the CPU at
STOP) with PLC > Load.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 6-9
Programming the Technological Functions

6.2 Putting the FM 354 into operation with the parameter


initialization tool
To put the FM 354 into operation with the parameter initialization tool “Parameter-
ize FM 354”, the CPU must be at “STOP”. It can also be at “RUN”, for example if
you want to automate part of your plant or connect the drives, in which case the
control/checkback signals “Switch P bus interface to start-up” (AW-DB, DBX14.1)
and “Switching of P bus interface concluded” (AW-DB, DBX22.1) must be ob-
served. For a description of these signals, see Section 9.1).
Also please observe Section 7.3 “Testing and Optimization”.

Note
Observe the relevant safety measures if you want to move the axis.

6.3 Description of the standard function blocks

Overview
This chapter contains information on the following:
S Section 6.3.1, Page 6-11: FC POS_INIT (FC 0) – AW-DB Initialization
S Section 6.3.2, Page 6-13: FC POS_CTRL (FC 1) – Data Interchange
S Section 6.3.3, Page 6-23: FC POS_DIAG (FC 2) – Read Diagnostic Interrupt
Data
S Section 6.3.4, Page 6-26: FC POS_MSRM (FC 3) – Read Measured Values

FM 354 Servo Drive Positioning Module


6-10 6ES7 354-1AH01-8BG0
Programming the Technological Functions

6.3.1 FC POS_INIT (FC 0) – Initialization

Function
Use FC POS_INIT to initialize specific areas of your AW-DB.

Call options
FC POS_INIT must be called once in the start-up OB 100 and OB 86 for “distrib-
uted configurations”.

Call in LAD Representation Call in STL Representation


(ladder diagram) (statement list)
CALL POS_INIT
FC POS_INIT
EN ENO DB_NO :=
DB_NO CH_NO :=
RETVAL
CH_NO LADDR :=
LADDR

Parameters
The Table below lists the parameters for this FC.

Name Data Param. Description


Type Type
DB_NO INT I Data block number
CH_NO BYTE I Number of the axis:
0 – Only one channel/axis on Same
the module meaning
1 – First channel/axis on the internally
module
2...255 – Illegal
LADDR INT I S Logical base address of the module; use entry from
“HW-CONFIG”, → “Properties”, → “Address”
(see Section 5.2)
S 0 – No entry of addresses in the user DB
Parameter types: I = input parameter

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 6-11
Programming the Technological Functions

Function description
The FC carries out the following actions:
1. Entry of addressing values in user DB, If parameter LADDR ≠ 0
Module address
2. Deletion of the following structures in user DB:
– Control signals
– Checkback signals
– Initiate, Ready and Error signals for the job requests
– Single functions and single commands and their Ready and Error signals
3. If the input parameter LADDR = 0, no address is entered in the user DB. It is
assumed that the addressing values (module address) have been entered
manually via ”Parameterize FM 354” (button ”Enter Mod-Adr in user DB” in
main display).

Error evaluation
An error is signalled by the binary result BR = 0 or by RET_VAL < 0.
Possible errors are:
S Unknown channel number CH_NO and DB no. = 0 as input parameters; the
AW-DB is not initialized.
S If no AW-DB is found, the CPU goes to STOP; view the CPU’s diagnostic
buffer.

RET_VAL Error
–1 Unknown channel number
–2 DB number = 0

FM 354 Servo Drive Positioning Module


6-12 6ES7 354-1AH01-8BG0
Programming the Technological Functions

6.3.2 FC POS_CTRL (FC 1) – Data interchange

Function
FC POS_CTRL is the basic block for controlling the FM 354.
With FC POS_CTRL, you can:
S Process Read and Write requests
S Execute mode control (control and checkback signals)
FC POS_CTRL carries out the following actions:
1. Synchronization with the module (only then is the exchange of signals/data pos-
sible).
2. Reading of the checkback signals. FC POS_CTRL puts the values/signals that
are read into user data block AW-DB.
3. Transfer of the control signals from user data block AW-DB to the FM 354.
4. Carrying out of Write requests from user data block AW-DB, which includes the
transfer of associated data from AW-DB and setting of the job status for the
Write. Before the function is activated, all data required for the execution of the
intended functions must be entered in AW-DB.
5. Carrying out of Read requests from user data block AW-DB, which includes
transfer of the associated data to AW-DB and setting of the Read job status.
6. Automatic transfer of all single functions from user data block AW-DB to the FM
354 when one or more than one setting has been changed and setting of the
Write job status (Set or Reset).
7. Automatic transfer of all single commands from user data block AW-DB to the
FM 354 and setting of the Write job status. The single commands are reset fol-
lowing the transfer.
8. Automatic reading of the error number when an operator input error, traversing
error or data error has occurred. The error number is entered in user data block
AW-DB (DBB90 to DBB97) and the Read job status set.

Call options
FC POS_CTRL must be called cyclically (once in the OB 1 cycle, for instance) for
each channel. Before calling the function, enter all data/signals required to execute
the intended functions in user data block AW-DB.

Call in LAD Representation Call in STL Representation


(ladder diagram) (statement list)
CALL POS_CTRL
FC POS_CTRL
EN ENO DB_NO :=
DB_NO RET_VAL RET_VAL :=

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 6-13
Programming the Technological Functions

Parameters
The Table below lists the parameters for this FC.

Name Data Param. Description


Type Type
DB_NO INT I Data block number
RET_VAL INT Q Return value

Parameter types: E = input parameter, Q = output parameter

Return values
The function returns the following values:

RET_VAL BR Description
1 1 At least 1 job/transfer in progress
0 1 No job/transfer in progress, no error
<0 0 Error:
S Data error (AW-DB, DBX22.4)
S Communication error (AW-DB, DBW66)

Function description
The function works together with an AW-DB user data block. The DB number is
passed to the function in the DB_NO parameter when the FC is called.
S Start-up
FC POS_CTRL acknowledges start-up of the module. During this time, the
“RET_VAL” parameter and the “Write/Read job in progress” signals (AW-DB,
DBX68.0 and DBX68.2) are TRUE.
S Control and checkback signals
When FC POS_CTRL is called, the checkback signals are immediately read
(using direct access) from the FM 354. Since the control signals and job re-
quests are not processed until after these signals are read, the checkback sig-
nals reflect the status of the module before the block was called. The control
signals are also written to the FM 354 using direct access.
Depending on the chosen mode, the control signals “Start”, “Negative direction”
and “Positive direction” (AW-DB, DBX15.0, 15.2 and 15.3) are reset once
start-up has actually taken place (edge formation of the signals for the FM).
For information on the generation of the checkback signals “Process” (AW-DB,
DBX13.6) and “Position” (AW-DB, DBX13.7), see “Mode control”.

FM 354 Servo Drive Positioning Module


6-14 6ES7 354-1AH01-8BG0
Programming the Technological Functions

S Job requests
Data interchange with the module that goes beyond control and checkback sig-
nals is handled using job requests. Simultaneously pending Write or Read re-
quests, however, can only be executed in succession, whereby one Read and
one Write request are processed in one call.
To issue a request, set the relevant initiation signal in user data block AW-DB
(DBB38 to DBB43). In the case of Write requests, you must also make the ap-
propriate data available.
The request is serviced when FC POS_CTRL is called. When the FM is used
centralized, a Read request is serviced in one call. A Write request requires at
least three calls (or OB cycles) due to the acknowledgements required from the
module. The interval between calls should exceed the length of an FM cycle.
When a request has been serviced, the Initiate signal is removed (does not ap-
ply to single functions).
The next job request is not determined or executed until the next block call has
been made.
For each job request, there is a Ready signal (AW-DB, DBX44.0 to 53.7) and
an Error signal (AW-DB, DBX54.0 to 63.7) in addition to the Initiate signal.
You should reset the Ready and Error signals for a job request following evalua-
tion or prior to issuing the request.
S Order in which job requests are serviced/priority
You may submit several job requests simultaneously, even together with Write
requests for single commands and single functions.
As soon as a Write request is detected (also on a signal change in the case of
single functions), it is serviced immediately upon completion of the transfer cur-
rently in progress, if any. Be sure that signals for single commands are not set
cyclically, as this could prevent other job requests from being serviced (priority).
Order/priority of Write requests:
1. Write single commands
2. Write single functions
3. Write requests.
The Write requests are serviced in the order of the Initiate signals,
which is stipulated in user data block AW-DB (from DBX38.0 to 39.7).
Order/priority of Read requests:
1. Read error code, operator/traverse errors or data errors
2. Read requests
The Read requests are serviced in the order of the Initiate signals,
which is stipulated in user data block AW-DB (from DBX42.0 to 43.6).

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 6-15
Programming the Technological Functions

S Job request status


You can read the status of the job request in return value RET_VAL and in the
“Write/read job in progress” signals in user data block AW-DB (DBX68.0 and
DBX68.2). You can evaluate the status of an individual job request by evaluat-
ing the Initiate, Ready and Error signals for that job request.
Table 6-2 Job request status

Jobs in
Initiate Ready Error
RET_VAL Progress
Job Request Status Signals Signals Signals
(integer) (DBX68.0
(DBB34...43) (DBB44...53) (DBB54...63)
DBX68.2)
1. Job in progress 1 1 1 – –
2. Job terminated without 0 – – 1 –
error
3. Write job terminated with –1 – – 1 1
error in this job
4. Write job aborted or not –1 – – – 1
executed
5. Read job aborted –2 – – – 1
6. Write and Read aborted –3 – – – 1
or not executed (in the
case of simultaneous job
requests)
– Irrelevant for error evaluation

Processing status

Signal Description
Write not possible = TRUE; Write request cannot be serviced in this cycle because:
(AW-DB, DBX68.1) S The axis is not initialized
S Test mode is enabled
S No operating mode is active
S The selected operating mode has not yet been set
In these cases, you can leave the Write request pending or you can cancel it.
FC POS_CTRL resets the signal when all of the above-listed conditions are
fulfilled.
Read not possible = TRUE; Read request cannot be serviced at this time because:
(AW-DB, DBX68.3) S The axis is not initialized
S No mode has been selected
S Test mode is enabled
In these cases, you can leave the Read request pending or you can cancel
it. FC POS_CTRL resets the signal when all of the above-listed conditions
are fulfilled.
Reset status/error With this signal you can reset all Ready and Error signals prior to processing
(AW-DB, DBX69.1) of the pending job requests. The signal itself is then reset by the FC.

FM 354 Servo Drive Positioning Module


6-16 6ES7 354-1AH01-8BG0
Programming the Technological Functions

Error evaluation
Communication errors or data interpretation errors on the FM are flagged in the
Binary Result (BR = 0) and by RET_VAL < 0; see job request status.
Possible errors are:
S Data transfer error (communication is not completed) during a transfer with SFC
58/59 “WR_REC / RD_REC”. The error code is made available in user data
block AW-DB, DBW66 (RET_VAL value of these internal SFCs) (4., 5., 6. Un-
der job request status, Table 6-2, also see Error List, Section 6.7).
S Data transferred with Write are checked for data errors by the module and inter-
preted. If a data error occurs, the checkback signal “Data error” (AW-DB,
DBX22.4) is set to TRUE in user data block AW-DB (message: “Write job ter-
minated with error”). The error number, read out via an internal job request, is
entered in user data block AW-DB, DBB94 and 95 (job status, point 3, Table
6-2).
You will find more information on data errors in the parameter initialization tool
under the menu command Debug > Error Evaluation and in Chapter 11.
Performance in the event of an error during the servicing of a Write request (does
not apply to single functions and commands):
S The Initiate signal is removed for the errored request and the Error signal (AW-
DB, DBX54.0 to 63.7) and Ready signal (AW-DB, DBX44.0 to 53.7) are set (job
request status, point 3, Table 6-2).
S The Initiate signal is also removed for all pending Write requests and the Error
signal set (job request status, point 4, Table 6-2).
S Any pending Read requests are serviced. The error code (AW-DB, DBW66) for
each request is re-set if another error occurs.
Performance in the event of an error during the servicing of a Read request:
S The Initiate signal is removed for the errored Read and the Error signal set (job
request status, point 5, Table 6-2).
S Any pending Read requests are serviced. The error code (AW-DB, DBW66) for
each request is re-set if another error occurs.
Performance in the event of an error during servicing of single functions and
commands:
S The Write request is not serviced in its entirety, and the Error signal is set (job
request status, point 4, Table 6-2).
S The function set/reset which led to initiation of the Write request is not acti-
vated.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 6-17
Programming the Technological Functions

Servicing Write requests


Before Write requests can be serviced, the data area associated with the Write
request must first be initialized with the relevant values and the appropriate operat-
ing mode.
A Write request is initiated by setting the relevant job request number.
The following abbreviations are used in the Table below to indicate the adjacent
operating mode:
Operating mode: T – Jogging mode
STE – Control mode
REF – Approach to reference point
SM – Incremental mode (relative)
MDI – MDI (Manual Data Input)
A/AE – Automatic mode / Automatic single block
The following Write requests are available:

Operating Mode Write re- See


System Data Data T STE REF SM MDI A/AE
quest Sect.
Speed levels 1, 2 DBX38.0 DBB160...167 V d d V d d 9.2.1
Voltage levels 1, 2 DBX38.1 DBB168...175 d V d d d d 9.2.2
Setpoint for incremental di-
DBX38.2 DBB156...159 d d d V d d 9.2.4
mension
MDI block DBX38.3 DBB176...195 d d d d V d 9.2.5
MDI block, on-the-fly DBX38.4 DBB222...241 – – – – x – 9.2.5
Reserved DBX38.5
Set reference point DBX38.6 DBB152...155 x x x x x – 9.3.9
Set actual value DBX38.7 DBB144...147 x x – x x x 9.3.5
Set on-the-fly actual value DBX39.0 DBB148...151 x x – x x – 9.3.6
Zero offset DBX39.1 DBB140...143 x x – x x x 9.3.4
Reserved DBX39.2 x x x x x x
Modify parameters/data DBX39.3 DBB196...219 x x x x x x 9.3.1
Digital outputs DBX39.4 DBB220...221 x x x x x x 9.8.2
Program selection DBX39.5 DBB242...245 – – – – – V 9.2.6
Application request DBX39.6 DBB246...249 x x x x x x 9.3.7
Teach-in DBX39.7 DBB250...251 x – – x x – 9.3.8

d Data are accepted, then processed in the relevant operating mode.


x Data are accepted or processed.
– Data are rejected with error (see error handling, Table 11-8 column 4, No. 1).
V Data required to move the axis.

FM 354 Servo Drive Positioning Module


6-18 6ES7 354-1AH01-8BG0
Programming the Technological Functions

Servicing Read requests


A Read request is initiated by setting the relevant job request number. The relevant
operating mode must be activated.
The following Read requests are available:

Operating Mode Read re- See


System Data Data T STE REF SM MDI A/AE
quest Sect.
Basic operating data DBX42.0 DBB310...333 x x x x x x 9.3.11
Active NC block DBX42.1 DBB342...361 x
9.3.12
Next NC block DBX42.2 DBB362...381 x
Actual value for block chan- DBX42.3 DBB398...401 x 9.3.14
ge
Service data DBX42.4 DBB402...433 x x x x x x 9.3.15
Operating error number DBX42.5 DBB86...89 x x x x x x 6.3.3
Suppl. operating data DBX43.5 DBB434...442 x x x x x x 9.3.16
Parameters/data DBX43.3 DBB446...469 x x x x x x 9.3.17
Digital inputs/outputs DBX43.4 DBB220...221 x x x x x x 9.8
Application data DBX43.6 DBB382...397 x x x x x x 9.3.13
Read measured values DBX43.7 DBB486...497 x x x x x x 9.3.10
6.3.4

x Data are accepted or processed.

Operating mode control


The operating modes are discussed in detail in Section 9.2, the control-/checkback
signals and handling information in Section 9.1.
The user must write the control signals to the user data block (AW-DB). FC
POS_CTRL transfers the control signals from user data block AW-DB to the FM
354 and the checkback signals from the FM 354 to user data block AW-DB. The
FM must be initialized.
The Table below lists the control and checkback signals, with symbols in German
and English.
Table 6-3 Control-/checkback signals

German English AW-DB Description


Control signals
TFB TEST_EN DBX14.1 Switch P bus interface to “Start-up”
BFQ/FSQ OT_ERR_A DBX14.3 Acknowledge operator errors and traversing
errors
ST START DBX15.0 Start
STP STOP DBX15.1 Stop

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 6-19
Programming the Technological Functions

Table 6-3 Control-/checkback signals

German English AW-DB Description


R– DIR_M DBX15.2 Negative direction
R+ DIR_P DBX15.3 Positive direction
QMF ACK_MF DBX15.4 Acknowledge M function
EFG READ_EN DBX15.5 Read Enable
SA SKIP_BLK DBX15.6 Skip block
AF DRV_EN DBX15.7 Drive enable
BA MODE_IN DBB16 Operating mode Code
Jog 01
Control 02
Approach to reference point 03
Incremental mode, relative 04
MDI 06
Automatic 08
Automatic single block 09
BP MODE_TYPE DBB17 Operating mode parameters Code
Speed levels 1 and 2
Voltage levels 1 and 2
Incremental dimension selection 1...100, 254
OVERR OVERRIDE DBB18 Override
Status signals
TFGS TST_STAT DBX22.1 Switching of P BUS interface completed
BF/FS OT_ERR DBX22.3 Operator-/traversing error
DF DATA_ERR DBX22.4 Data error
PARA PARA DBX22.7 Channel initialized
SFG ST_ENBLD DBX23.0 Start Enable
BL WORKING DBX23.1 Process in progress
WFG WAIT_EI DBX23.2 Wait for external Enable
T-L DT_RUN DBX23.5 Dwell time running
PBR PR_BACK DBX23.6 Reverse program scanning
BAR MODE_OUT DBB24 Active operating mode
SYN SYNC DBX25.0 Channel synchronized
ME MSR_DONE DBX25.1 End of measurement
FR– GO_M DBX25.2 Travel in negative direction
FR+ GO_P DBX25.3 Travel in positive direction
SRFG ST_SERVO DBX25.4 Servo enable status
FIWS FVAL_DONE DBX25.5 Setting of on-the-fly actual value successfully
completed
PEH POS_RCD DBX25.7 Position reached. Stop.
MNR NUM_MF DBB26 M function number
AMF STR_MF DBX27.4 M function modification

FM 354 Servo Drive Positioning Module


6-20 6ES7 354-1AH01-8BG0
Programming the Technological Functions

The status signals “Process in progress” and “Position reached. Stop” are not re-
ported back to the user program until the FM has detected and processed the Start
signal (v 2 FM cycles).
The calling of FC POS_CTRL and the relevant control/status signals forms the
subsequent signals so that starting of the procedure can be detected earlier than
would otherwise be the case.

Signal Description
Execution started = TRUE When a mode/movement is started with the relevant
(AW-DB, DBX13.6) control signals or when the status for “Process in
progress” (AW-DB, DBX23.1) = 1

“Execution started” when FC is called/started

“Process in progress” when the FM starts tra-


versing movement
Position = FALSE When status signal “Position reached. Stop.” (AW-DB,
(AW-DB, DBX13.7) DBX25.7) = 0 is returned or when a mode is started
with the relevant control signals.
“Position” when FC is called/started

“Position reached. Stop” when FM starts traversing


movement

Single functions and single commands are also required to control the FM 354.
All single commands and single functions that are active when FC POS_CTRL is
called are transferred. The single commands are cancelled following transfer, even
in the event of an error.

Operating Modes Write See


System Data Function T STE REF SM MDI A/AE
Request Sect.
Single functions Internal DBB34 and 35 V x V V V V 9.3.2
Single commands Internal DBB36 and 37 x x x x x x 9.3.3

x Data are accepted or processed.


V Data required to move the axis.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 6-21
Programming the Technological Functions

The functions which can be activated in the FM using single functions or single
commands are listed below.

Single Functions Single Commands


Servo enable Activate machine data
In–process measurement Delete residual distance
Parking axis Automatic block return
Simulation Automatic block advance
Length measuring Restart
Retriggering of reference point Rescind set actual value
Reset Enable input
Follow-up mode
Disable software limit position monitoring
Automatic drift compensation

Error messages from the FM


When an operator error, traversing error or data error occurs, the error number is
read automatically via a Read request. The error number is entered in the AW-DB
user data block and the Read status set.
An operating error, reported via a diagnostic interrupt, can be read out with the
Read request “Operating error no.” (AW-DB, DBX42.5).

Table 6-4 Error messages from the FM

Error Message Error No. Error Acknowl-


edgement
Data error Status signal Is read out via Read re- New Write request
(AW-DB, DBX22.4) quest
(AW-DB, DBB94 and 95)
Operator/travers- Status signal Is read out via Read re- Set/reset control
ing error (AW-DB, DBX22.3) quest signal “Acknowl-
(AW-DB, DBB 90 and 91) edge operator/tra-
versing error” (AW-
DB, DBX14.3)
Diagnostic inter- With OB 82 acti- In the case of operating er- Single command:
rupt vated, data must rors read out with FC Restart
be read out with POS_DIAG, the error no. is
FC POS_DIAG read out via Read request
DBX42.5
(AW-DB, DBB86 and 87)

For additional specific information, please refer to Chapter 11 “Error Handling”.

FM 354 Servo Drive Positioning Module


6-22 6ES7 354-1AH01-8BG0
Programming the Technological Functions

6.3.3 FC POS_DIAG (FC 2) – Read diagnostic interrupt data

In the event of a fatal error, the FM 354 generates a diagnostic interrupt (OB 82
must be linked into the user program and interrupt parameter initialization activated
on the FM 435) and makes the information available in the local data area. For in-
formation on diagnostic interrupts, see Section 6.4.
Additional information on external channel errors (operating errors) for FM 354
channels 1 to 3 is provided when you call FC POS_DIAG.

Call options
FC POS_DIAG can be called in interrupt OB 82 or in OB 1.

Call in LAD Representation Call in STL Representation


(ladder diagram) (statement list)

FC POS_DIAG CALL POS_DIAG


EN ENO DB_NO :=
DB_NO RET_VAL RET_VAL :=
IN_DIAG IN_DIAG :=

Parameters
The Table below lists the parameters for FC POS_DIAG.

Name Data Param. Description


type type
DB_NO INT I Data block number
RET_VAL INT Q –1
IN_DIAG BOOL I/Q Initiation signal for reading of the diagnostic data; is reset
following execution of FC POS_DIAG.

Parameter types: I = input parameter, Q = output parameter,


I/Q = throughput parameter (initiation parameter)

Function description
The function works together with an AW-DB user data block. When the function is
called, the AW-DB is forwarded with a DB_NO parameter.
Reading of the diagnostic data is started by setting the IN_DIAG parameter to
TRUE. The FC resets the parameter when the request has been serviced.
The IN_DIAG parameter remains set while the request is being serviced. Transfer
of the data is terminated when the parameter is reset (IN_DIAG = FALSE).

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 6-23
Programming the Technological Functions

Error evaluation
Errors are flagged in the Binary Result (BR = 0) and by RET_VAL < 0.
Possible errors are as follows:
Data transfer error during transfers with SFC 51 “RDSYSST”. The error is made
available in the user DB AW-DB, DBW96 (see Error List, Section 6.7).

Diagnostic data
The prerequisite for the generation of a diagnostic interrupt is activation of the in-
terrupt with the aid of the appropriate parameters (see Section 5.2).
If the user program does not contain an OB 82, the CPU goes to STOP.
The Table below contains the diagnostic information for the FM 354.

Table 6-5 Diagnostic information

Data Message AW-DB Description


Format
4 x byte When a diagnostic DBX70.0 Module/group errors
interrupt is gener-
DBX70.1 Internal error/hardware error (group error bytes 72, 73)
ated, the relevant
information is made DBX70.2 External error
available in the CPU
DBX70.3 External channel error (group error byte 78)
(local data area,
OB 82) and is en- DBX70.6 Module not initialized
tered in the user DB
DBX71.0 Module type class for FM 354 = 08H
by calling FC
...3
POS_DIAG.
DBX71.4 Channel information available
DBX72.1 Communication error (K bus)
DBX72.3 Response from watchdog timer
DBX72.4 Internal supply voltage to the module failed (NMI)
DBX73.2 FEPROM error
DBX73.3 RAM error
DBX73.6 Process interrupt lost

FM 354 Servo Drive Positioning Module


6-24 6ES7 354-1AH01-8BG0
Programming the Technological Functions

Table 6-5 Diagnostic information, continued

Data Message AW-DB Description


Format
10 x When FC DBB74 FM pos. ID (74H)
byte POS_DIAG is called,
DBB75 Length of the diagnostic information (16)
the information (incl.
bytes 0 to 3) is read DBB76 Number of channels (3)
and entered in the
DBX77 Channel vector error (1)
AW-DB (from
DBB70). DBX78.0 Cable break (incremental position encoder)
DBX78.1 Error in absolute position encoder
DBX78.2 No increm. error pulses or zero mark
DBX78.3 Voltage monitor f. sensor
When an operating DBX78.7 Operating error (see Chapter 11, Error Handling)
error occurs, the er-
ror number can be
read via Read re- DBB99... Unassigned
quest DBX42.5 (AW- 83
DB, DBB86 to 89)

Tips for the user


Following a diagnostic interrupt, the diagnostic information and the associated
module address (OB82_MDL_ADDR) is made available in the local data area of
OB 82 for quick analysis.

Local data MDL_DEFECT


Module error

INT_FAULT EXT_FAULT PNT_FAULT


internal external external
error error channel error

COMM_FAULT AW-DB
WTCH_DOG_FLT Byte.Bit:
INT_PS_FLT 78.0...7
EPROM_FLT
RAM_FLT
HW_INTR_FLT

Fig. 6-3 Evaluating diagnostic information

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 6-25
Programming the Technological Functions

6.3.4 FC POS_MSRM (FC 3) – Read measured values

Function
FC POS_MSRM reads the measured values in user data block AW-DB.
For information on process interrupts, please see Section 6.4.
For information on measured values, please see Section 9.3.10.

Note
The measured values can also be read by means of FC POS_CTRL (Read re-
quest). If more than one Read request is pending, this request will be processed in
the relevant order.
FC POS_MSRM renders the measured values irrespective of other Read requests
pending.

Call options
FC POS_MSRM can be called in OB 40 (only when Fm is used centralized) if the
process interrupt was triggered (see Section 5.2), or in OB 1.

Call in LAD Representation Call in STL Representation


(ladder diagram) (statement list)

FC POS_MSRM CALL POS_MSRM


EN ENO DB_NO :=
DB_NO RET_VAL RET_VAL :=
IN_MSR IN_MSR :=

Parameters
The Table below lists the parameters for FC POS_MSRM.

Name Data Param. Description


type type
DB_NO INT I Data block number
RET_VAL INT Q –1
IN_MSR BOOL I/Q Start Read

Parameter types: I = input parameter, Q = output parameter,


I/Q = throughput parameter (initiation parameter)

FM 354 Servo Drive Positioning Module


6-26 6ES7 354-1AH01-8BG0
Programming the Technological Functions

Function description
The function works together with an AW-DB user data block. When the function is
called, the DB number is forwarded in the DB_NO parameter.
Reading of the measured value is started by setting the IN_MSR parameter to
TRUE. When the function has executed, the FC resets the parameter.
The IN_MSR parameter remains set while the function is executing. Transfer of the
data is terminated is complete when the parameter is reset (IN_MSR = FALSE).

Error evaluation
Errors are flagged in the Binary Result (BR = 0) and by RET_VAL < 0.
Possible errors are as follows:
Data transfer errors during transfers with SFC 59 “RD_REC”. The error is made
available in the user data block AW-DB, DBW98 (see Error List, Section 6.7).

6.4 Interrupts

Interrupt processing
The FM 354 can generate process interrupts and diagnostic interrupts. You can
process these interrupts only in an interrupt OB (OB 40 or OB 82). If an interrupt is
generated without the associated OB having been loaded, the CPU goes to STOP
(refer to the manual entitled Programming with STEP 7).
Interrupt servicing is enabled in the following stages:
1. General Interrupt Enable for the entire module:
– Select the module in the hardware configuration.
– Enable diagnostic and/or process interrupts with Edit > Object Properties >
Basic Parameters (also see Figure 5.2).
– Select the OB number for the process with Edit > Object Properties > Ad-
dresses.
– Save and compile the hardware configuration.
– Load the hardware configuration into the CPU.
2. Enable the events for the process interrupt in the machine data.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 6-27
Programming the Technological Functions

Evaluating a process interrupt


When the FM 354 generates a process interrupt, variable OB40_POINT_ADDR (or
the corresponding variable in another process interrupt OB) contains the following
information:

Table 6-6 Contents of doubleword OB40_POINT_ADDR

Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0


0 On-the-fly On-the-fly Length Position
measuring block chan- measurement reached
ge terminated
1
2
3

The reason for the interrupt is made available in byte 0.

Lost process interrupts


If servicing of a process interrupt in the process interrupt OB has not yet been ter-
minated, the module “makes a note” of all subsequent process interrupt events. If
an event re-occurs before a process interrupt could be generated, the module gen-
erates the diagnostic interrupt “process interrupt lost”.

Evaluating a diagnostic interrupt


Following a diagnostic interrupt, the diagnostic information is made available in the
local data area of OB 82 for quick analysis. Call the FC POS_DIAG function to as-
certain the exact cause of error (see Section 6.3.3).

FM 354 Servo Drive Positioning Module


6-28 6ES7 354-1AH01-8BG0
Programming the Technological Functions

6.5 User data block (AW-DB)

Overview
The Table below describes the structure of the user data block.

Table 6-7 User data block (AW-DB)

AW-DB FM 354
Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
General addresses
DBW0 Module address (data type INT)
DBW2
to Reserved
DBB12
Execution
DBB13 Position
started

Control signals
Acknowl- Switch to
edge opera- P bus
DBB14
tor/travers- Start-up
ing error
Acknow-
Drive Read-in Positive Negative
DBB15 Block skip ledge Stop Start
enable enable direction direction
M function
DBB16 Operating mode
DBB17 Operating mode parameters
DBB18 Override
DBB19
to Reserved
DBB21

Checkback signals
Operator/ Switch to
Channel
DBB22 Data error traversing P bus com-
initialized
error pleted
Wait for
Reverse Dwell in Machining Start
DBB23 external
prog. scan progress in progress enable
enable
DBB24 Active operating mode
On-the-fly
Position End of Channel
setting of Servo ena- Positive Negative
DBB25 reached. measure- synchroni-
actual value ble status travel travel
Stop. ment zed
completed
DBB26 M function number
M function
DBB27 modifica-
tion

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 6-29
Programming the Technological Functions

Table 6-7 User data block (AW-DB), continued

AW-DB FM 354
Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
DBB28
to Reserved
DBB33

Initiation signals

Initiation signals for single settings (switches); transfer through Write request when change occurs
Parking On-the-fly Controller
DBB34 Simulation
axis measuring enable
Automat. Software
Enable Length
drift com- limit posi- Follow-up Retrigger
DBB35 input dis- measure-
pensation tions dis- mode ref. point
abled ment
disabled abled

Initiation signals for single commands; transfer through Write request when change occurs
(signals are reset following transfer)
DBB36 Reserved
Rescind Automatic Automatic Delete
Activate
DBB37 setting of Restart block block ad- residual
MD
actual value return vance distance

Initiation signals for Write requests


Setpoint for
Set actual Set refer- On-the-fly Voltage Speed
DBB38 MDI block incremental
value ence point MDI block levels 1, 2 levels 1, 2
dimension
Request Modify pa- On-the-fly
Program Digital
DBB39 Teach-in application rameters / Zero offset setting of
selection outputs
data data actual value
DBB40
to Reserved
DBB41

Initiation signals for Read requests


Actual Basic
Operating Service Next Active
DBB42 value block operating
error no. data NC block NC block
change data
Read Additional
Application Dig. inputs/ Parameter/
DBB43 measured operating
data outputs data
values data

FM 354 Servo Drive Positioning Module


6-30 6ES7 354-1AH01-8BG0
Programming the Technological Functions

Table 6-7 User data block (AW-DB), continued

AW-DB FM 354
Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0

Ready signals

Status/checkback signals from FC POS_CTRL


Parking On-the-fly Controller
DBB44 Simulation
axis measuring enable
Automat. Software
Enable Length
drift com- limit posi- Follow-up Retrig. ref.
DBB45 input dis- measure-
pensation tions dis- mode point
abled ment
disabled abled
DBB46 Reserved
Rescind
Autom. Autom. Delete
setting of Activate
DBB47 Restart block block residual
actual va- MD
return advance distance
lue
Setpoint for
Set actual Set refer- On-the-fly Voltage Speed
DBB48 MDI block incremental
value ence point MDI block levels 1, 2 levels 1, 2
dimension
On-the-fly
Request Modify pa-
Program Digital setting
DBB49 Teach-in application rameters/ Zero offset
selection outputs of actual
data data
value
DBB50
to Reserved
DBB51
Operator/ Actual Basic
Data error Operating Service Next Active
DBB52 traversing value block operating
read error read data NC block NC block
error read change data
Read Additional
Application Dig. inputs/ Parameter/
DBB53 measured operating
data outputs data
values data

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 6-31
Programming the Technological Functions

Table 6-7 User data block (AW-DB), continued

AW-DB FM 354
Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0

Error signals

Error messages from FC POS_CTRL


Parking On-the-fly Controller
DBB54 Simulation
axis measuring enable
Automat. Software
Enable Length
drift com- limit Follow-up Retrig. ref.
DBB55 input measure-
pensation positions mode point
disabled ment
disabled disabled
DBB56 Reserved
Rescind
Autom. Autom. Delete
setting of Activate
DBB57 Restart block block residual
actual MD
return advance distance
value
Setpoint for
Set actual Set refer- On-the-fly Voltage Speed
DBB58 MDI block incremental
value ence point MDI block levels 1, 2 levels 1, 2
dimension
On-the-fly
Request Modify pa-
Program Digital setting of
DBB59 Teach-in application rameters/ Zero offset
selection outputs actual
data data
value
DBB60
to Reserved
DBB61
Operator/ Actual Basic
Data error Operating Service Next Active
DBB62 traversing value block operating
read error read data NC block NC block
error read change data
Read Additional
Application Dig. inputs/ Parameter/
DBB63 measured operating
data outputs data
values data
DBB64
bis Reserved
DBB65

Processing status of FC POS_CTRL

DBW66 Error code (communications error) of the last job request/transfer (data type: INT)
Read re- Write re-
Read job Write job
DBB68 quest not quest not
active active
possible possible

Reset
DBB69
status/error

FM 354 Servo Drive Positioning Module


6-32 6ES7 354-1AH01-8BG0
Programming the Technological Functions

Table 6-7 User data block (AW-DB), continued

AW-DB FM 354
Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0

Diagnostic data for the FM, read out with FC POS_DIAG


Ext. chan. Int./HW err.
Module not External Module/
DBB70 err. (DBB
initialized error group fault
(DBB78) 72, 73)

Channel Module type classes (08H)


DBB71 info
available
Int. module Watchdog Comm. er-
DBB72 supply volt. triggered ror (K bus)
failed

Process RAM FEPROM


DBB73
int. lost error error

DBB74 FM pos. ID (74H)


DBB75 Length of diagnostic information (16)
DBB76 Number of channels (1)

Channel
DBB77
error vector

Voltage Error: no Error: Cable


Operating
DBB78 mon. increm. or abs. en- break (inc.
error
sensor zero mark coder encoder)
DBB79
to Reserved
DBB85
Error code following flagging of an “Operating error”
(is read if operating error is set following FC POS_DIAG)
DBB86 Error number (DS 164) – Detail event class
DBB87 Error number (DS 164) – Detail event number
DBB88
to Reserved
DBB89
Error code following flagging of “Operator-/traversing error”
DBB90 Error number (DS 162) – Detail event class
DBB91 Error number (DS 162) – Detail event number
DBB92
to Reserved
DBB93

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 6-33
Programming the Technological Functions

Table 6-7 User data block (AW-DB), continued

AW-DB FM 354
Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Error code following flagging of “Data error”
DBB94 Error number (DS163) – Detail event class
DBB95 Error number (DS163) – Detail event number
Error code FC POS_DIAG (Return code SFC 51)
DBW96
(Data type: INT)
Error code FC POS_MSRM (Return code SFC 59)
DBW98
(Data type: INT))

Data for the requests


Zero offset
DBD140 Data type: DINT
Set actual value
DBD144 Data type: DINT
On-the-fly setting of actual value
DBD148 Data type: DINT
Set reference point
DBD152 Data type: DINT
Setpoint for incremental dimension
DBD156
Speed levels 1 and 2
DBD160 Speed level 1
DBD164 Speed level 2
Voltage levels 1 and 2
DBD168 Voltage level 1
DBD172 Voltage level 2

FM 354 Servo Drive Positioning Module


6-34 6ES7 354-1AH01-8BG0
Programming the Technological Functions

Table 6-7 User data block (AW-DB), continued

AW-DB FM 354
Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
MDI block
DBB176
to Reserved
DBB177

Position/ G function group


DBB178
dwell 2 1
M function group
DBB179 Speed
3 2 1
DBB180 G function no. of group 1
DBB181 G function no. of group 2
DBB182
bis Reserved
DBB183
DBD184 Value for position/dwell (data type DINT)
DBD188 Value for speed (data type DINT)
DBB192 M function no. of group 1
DBB193 M function no. of group 2
DBB194 M function no. of group 3
DBB195 Reserved
Modify parameter/data or request reading of relevant data
DBB196 DB type
DBB197 Number
DBB198 Quantity
DBB199 Request
DBB200
Data array, structure/data type of Write data as per bytes 1 to 4 of this structure
to
(e.g. a program block or max. 5 MD items)
DBB219
Digital inputs/outputs
Digital input
DBB220
3 2 1 0
Digital output
DBB221
3 2 1 0
On-the-fly MDI block
DBB222
to Reserved
DBB223

Position/ G function group


DBB224
dwell 2 1
M function group
DBB225 Speed
3 2 1
DBB226 G function no. of group 1

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 6-35
Programming the Technological Functions

Table 6-7 User data block (AW-DB), continued

AW-DB FM 354
Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
DBB227 G function no. of group 2
DBB228
to Reserved
DBB229
DBD230 Value for position/dwell (data type DINT)
DBD234 Value for speed (data type DINT)
DBB238 M function no. of group 1
DBB239 M function no. of group 2
DBB240 M function no. of group 3
DBB241 Reserved
Program selection
DBB242 Program number
DBB243 Block number
DBB244 Direction of processing
DBB245 Reserved
Request for application data
DBB246 Application data 1
DBB247 Application data 2
DBB248 Application data 3
DBB249 Application data 4
Teach-in
DBB250 Program number
DBB251 Block number
DBB252
to Reserved
DBB309

Data read as per request


Basic operating data
DBD310 Actual position (data type DINT)
DBD314 Actual speed
DBD318 Residual distance (data type DINT)
DBD322 Setpoint position (data type DINT)
DBD326 Sum of active coordinate offset, tool offset, zero offset (data type DINT)
DBD330 Rotational speed
DBD334
to Reserved
DBD338
Active NC block
DBB342 Program number

FM 354 Servo Drive Positioning Module


6-36 6ES7 354-1AH01-8BG0
Programming the Technological Functions

Table 6-7 User data block (AW-DB), continued

AW-DB FM 354
Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
DBB343 Block number

No. of UP Position/ G function group


DBB344 Block skip UP call
calls dwell 3 2 1
M function group
DBB345 Tool offset Speed
3 2 1
DBB346 G function no. of group 1
DBB347 G function no. of group 2
DBB348 G function no. of group 3
DBB349 Reserved
DBD350 Value for position/dwell (data type DINT)
DBD354 Value for speed (data type DINT)
DBB358 M function no. of group 1
DBB359 M function no. of group 2
DBB360 M function no. of group 3
DBB361 Tool offset no.
Next NC block
DBB362 Program number
DBB363 Block number

No. of UP Position/ G function group


DBB364 Block skip UP call
calls dwell 3 2 1
M function group
DBB365 Tool offset Speed
3 2 1
DBB366 G function no. of group 1
DBB367 G function no. of group 2
DBB368 G function no. of group 3
DBB369 Reserved
DBD370 Value for position/dwell (data type DINT)
DBD374 Value for speed (data type DINT)
DBB378 M function no. of group 1
DBB379 M function no. of group 2
DBB380 M function no. of group 3
DBB381 Tool offset no.
Application data
DBD382 Application data 1 (data type: DINT)
DBD386 Application data 2 (data type: DINT)
DBD390 Application data 3 (data type: DINT)
DBD394 Application data 4 (data type: DINT)

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 6-37
Programming the Technological Functions

Table 6-7 User data block (AW-DB), continued

AW-DB FM 354
Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Actual value block change
DBD398 Data type DINT
Service data
DBD402 DAO output value (data type DINT)
DBD406 Actual encoder value (data type DINT)
DBD410 Missing pulses (data type DINT)
DBD414 Kv factor (data type DINT)
DBD418 Following error (data type DINT)
DBD422 Following error limit (data type DINT)
DBD426 Setpoint overshoot value/switch adjustment (data type DINT)
DBD430 Approach time/response time constant (data type DINT)
Additional operating data
DBB434 Override
DBB435 NC traversing program no.
DBB436 NC block no.
DBB437 UP call counter
DBB438 Active G90/91
DBB439 Active G60/64
DBB440 Active G43/44
DBB441 Active D number
Accelera-
Limited to
DBB442 tion/decel- Speed limit
"10 V
eration limit
DBB443
to Reserved
DBB445
Parameter/data
DBB446 DB type (MD, incremental dimension or traversing program)
DBB447 Number
DBB448 Quantity
DBB449 Job
DBB450
Array, structure/data type according to data, to be read as per bytes 1 to 4 of this structure
to
(e.g. a program record or max. 5 MD items)
DBB469
DBB470
to Reserved
DBB485

FM 354 Servo Drive Positioning Module


6-38 6ES7 354-1AH01-8BG0
Programming the Technological Functions

Table 6-7 User data block (AW-DB), continued

AW-DB FM 354
Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0

Measured values
Measured values as per FC POS_MSRM call
DBD486 Initial value or on-the-fly measured value (data type DINT)
DBD490 Final value (data type DINT)
DBD494 Measured length value

Array for operator control/monitoring


Operator control and monitoring
Speed Increm.
Volt. levels Teach-in Prog. sel. MDI block
DBB498 levels dim. trans- Read MD Write MD
transferred transferred transferred transferred
transferred ferred
Operator/ Set actual MDI block
Diagnostic Zero offset
DBB499 traversing Data error value transferred
interrupt transferred
error transferred on-the-fly
DBW500 MD number
DBD502 MD value (data type DINT)
DBB506 Incremental dimension number
DBB507 Reserved
DBW508 Display number
DBW510 Keyboard code
DBW512 Reserved
Operating mode selection
Incremen- Approach Open-loop
Auto/single
DBB514 Jog mode Auto mode MDI tal mode to refer- control
block mode
(relative) ence point mode
Acknowl-
edge Acknowl-
DBB515
diagnostic edge error
interrupt

Note
For a list of symbolic signal identifiers see the UDT 1 block in the “FMSTSV_L”
library.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 6-39
Programming the Technological Functions

6.6 Sample applications

Overview
This chapter provides information on the following:
S Basic example for setting the operating mode
S Example 1: Moving axes in “JOG mode” and “ Approach to reference point
mode”
S Example 2: Traversing an MD block
S Example 3: “Automatic” mode with program selection
S Example 4: Technology example for embedding OPs

General remarks
The sample project “zEn14_02_FM354_EX” ([STEP7 directory]\EXAM-
PLES\zEn14_02) is installed upon installation of the FM 354 configuring package.
The relevant technological functions (FC POS_CTRL, FC POS_DIAG, FC
POS_INIT) are in blocks OB 1, OB 82 and OB 100. DB 100 (DBEX0 contains the
required user signals/user data for all sample applications.
Each example is programmed as an FC (for instance, Example 1 = FC 101, and so
on). In order to utilize the functions from Example 1 through Example 3, the rele-
vant FCs must be called in OB 1 just as they are called in the Basic Example. Ex-
amples 1 to 3 are interdependent. They are technologically simple examples which
you can expand to suit your particular needs. For example 4, the source file
OB_example4 contained in the source folder must be compiled.
After FC POS_CTRL has been called, OB 1 contains an example showing how to
program the evaluation of the reported errors (RET_VAL from FC POS_CTRL).
You can expand this error evaluation program to suit your requirements.

Note
In the examples, the axes do not traverse in simulation mode!
Because “DBEX” is a retentive DB, it is initialized in the start/restart routine (OB
100). If this is not required, simply delete the initialization section of OB 100 (net-
work “DBEX Initialization”).

FM 354 Servo Drive Positioning Module


6-40 6ES7 354-1AH01-8BG0
Programming the Technological Functions

Basic example for setting the operating mode


This example is always required for sample applications 1 to 3.
Open sample project “zEn14_02_FM354_EX” in the SIMATIC Manager with File >
Open... > Projects. The block for this example is FC 100.
You will find the signals in ”DBEX”.
This example must always be called. It sets the modes according to user require-
ments, evaluates the mode checkback signal and indicates the current mode set-
ting. The checkback signals required for the examples will be copied into “DBEX”.
In order to use the “Jog” or “Reference point approach” mode in Example 1, the
user has to set the relevant mode code in byte MODE_IN of ”DBEX” (01 for “Jog”,
03 for “Reference point approach”). When “Jog” mode is selected, mode parameter
01 (MODE_TYPE) is additionally set for activating speed level 1 in “Jog” mode.
Mode Code
Jog 01
Reference point approach 03
MDI 06
Auto 08
In Example 2, you must set “MDI” mode (mode coded in byte MODE_IN = 06).
In Example 3, you must set “Auto” mode (mode coded in byte MODE_IN = 08).
The active mode is displayed in byte MODE_OUT in the relevant code.
To restart the module (e.g. after diagnostic interrupt), bit RESET_AX must be set in
“DBEX”. The example will then set bit RESET_AX in “AW-DB”. A restart will be
initiated and bit RESET_AX reset in “DBEX”.
In order to work with the following examples, you must set the mode required for
each.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 6-41
Programming the Technological Functions

Example 1
Open sample project “zEn14_02_FM354_EX” in the SIMATIC Manager with File >
Open... > Projects. The block for this example if FC 101.
The signals are in “DBEX”. The signals relevant for Example 1 only are in structure
“EX1”.
The Drive Enable and the Controller Enable for the axis are set in “DBEX” (OB
100: DRV_EN = TRUE, SERVO_EN = TRUE) and are transferred to the interface
(AW-DB) in Example 1.
In order for the example to function, you must first set either “Jog” mode (mode
code 01) or “Reference point approach” mode (mode code 03) in byte MODE_IN of
the “DBEX”. The respective mode checkback signal is flagged in byte
MODE_OUT.
The traversing movements are shown in bits “GO_M” = TRUE (traverse -axis 1) or
“GO_P” = TRUE (traverse + axis 1).
“Jog” mode active:
Once a mode has become active, the Write request “VLEV_EN” (AW-DB, transfer
speed level 1, 2) is executed once. If you want to transfer it again, you must either
reset the “VLEV_D” bit (status/checkback signal from the request) or set the “JO-
BRESET” (reset status/error) in AW-DB.
If you set bit “DIR_M” (minus direction) or bit “DIR_P” (plus direction) to TRUE in
“DBEX”, the axis is moved in either a negative or positive direction.
“Reference point approach” mode active:
When you set the ”START” bit to TRUE, the axis is moved in a negative or positive
direction (depending on the machine data initialization) until the reference point is
located. If the reference point approach was successful, the axis is synchronized
(SYNC=TRUE).
If an operator or traverse error occurred, this is flagged by bit “OT_ERR” = TRUE.
An error can be acknowledged by setting bit “OT_ERR_A” to TRUE.
Note:
Variable table 1, which contains all the relevant signals for monitoring and control-
ling Example 1 (“control and monitor variable” tool), is located in the “Blocks” direc-
tory.

FM 354 Servo Drive Positioning Module


6-42 6ES7 354-1AH01-8BG0
Programming the Technological Functions

Example 2
Open sample project “zEn14_02_FM354_EX” in the SIMATIC Manager with File >
Open... > Projects. The block for this example is FC 102.
The signals are in “DBEX”. The signals relevant for Example 2 only are in structure
“EX2”.
The Drive Enable and the Controller Enable for the axis are set in “DBEX” (OB
100: DRV_EN = TRUE, SERVO_EN = TRUE), and are transferred to the interface
(AW-DB) in Example 2.
In order for the example to function, you must set the “MDI” mode. Enter “MDI”
mode (mode code 06) in the MODE_IN byte of “DBEX”. The relevant mode check-
back signal is flagged in byte MODE_OUT.
Once the mode has been successfully set, a default MDI block is automatically
transferred to the module (MDI network) when Write request “MDI_EN” has been
set in “AW-DB” (transfer MDI block). This block can be changed in dependence on
the system and the request. If it is to be retransferred, you either have to reset the
“MDI_D” bit in “AW-DB” (status/checkback signal for request) or set bit “JOBRE-
SET” (reset status/error).
Set the “START” bit in “DBEX” to TRUE in the “EX2” structure. The activated MDI
block is started on the condition that the axis is synchronized and has a Start En-
able. Then the “START” bit is reset. The MDI block cannot be restarted until the
start enable is again available.
The block can be stopped by setting the “STOP” bit.
Only when the “STOP” bit has been reset to FALSE (and the “START” bit to
TRUE) is a restart possible.
If an operator error or traversing error occurs, it is flagged by the “OT_ERR” bit
(the bit is set to TRUE). The error can be acknowledged by setting the
“OT_ERR_A” bit to TRUE.
Hinweis:
Variable table 2, which contains all the relevant signals for monitoring and control-
ling Example 2 (“control and monitor variable” tool), is located in the “Blocks” direc-
tory.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 6-43
Programming the Technological Functions

Example 3
Open sample project “zEn14_02_FM354_EX” in the SIMATIC Manager with File >
Open... > Projects. The block for this example is FC 103.
The signals are in “DBEX”. The signals relevant for Example 3 only are in structure
“EX3”.
The program to be selected in the Example has the program number “10”. This
program number is entered in Example 3.
The Read Enable, the Drive Enable, and the Controller Enable for the axis are set
in “DBEX” (OB 100: READ_EN = TRUE, DRV_EN=TRUE, SERVO_EN=TRUE),
and are transferred to the interface (AW-DB) in Example 3.
Prerequisite for successful program selection is the availability of that program in
the FM.
In order for the example to function, you must set “Auto” mode. Set the “AUTO”
mode (mode code 08) in byte MODE_IN of “DBEX”. The relevant mode checkback
signal is flagged in byte MODE_OUT.
Following successful mode selection, the program with the number “10” is auto-
matically selected by setting Write request “PROGS_EN” in “AW-DB”.
Set the “START” bit in “DBEX” to TRUE in structure “EX3”. The selected program
is started, assuming that the axis is synchronized and has a Start Enable. Then the
“START” bit will be reset.
The program can be stopped by setting the “STOP” bit. It can be restarted by re-
setting the “STOP” bit to FALSE (and the “START” bit to TRUE).
If an operator error or traversing error occurs, it is flagged in the “OT_ERR” bit (the
bit is then TRUE). The error can be acknowledged by setting bit “OT_ERR_A” to
TRUE.
Hinweis:
Variable table 3, which contains all the relevant signals for monitoring and control-
ling Example 3 (“control and monitor variable” tool), is located in the “Blocks” direc-
tory.

FM 354 Servo Drive Positioning Module


6-44 6ES7 354-1AH01-8BG0
Programming the Technological Functions

Example 4
Open sample project “zEn14_02_FM354_EX” in the SIMATIC Manager with File >
Open... > Projects. The block for this example is FC 104. Use OB 1, which is
created after compiling the source file OB_example4 in the source folder.
In this example, the HMI interface signals for the data range from DBB 498 through
DBB 515 are transferred to the interface area for the control signals, e.g. the
modes (see Section 8.2).
You can trigger write and read jobs by assigning the data fields to be transferred
the appropriate parameters and data.
For example, if you select the machine data screen PIC_763, you can write an MD
using the ”set” softkey (SK) and read an MD using the ”read” softkey (SK).
Once you have selected the mode screen PIC_75 on the operator panel and
selected the appropriate mode SK, the selected mode will be accepted into the
control signals of the interface, and the appropriate mode will be set.
If you select the diagnostic screen PIC_77, you can acknowledge an error by
pressing the ”Quit” SK or acknowledge a diagnostic alarm by pressing the ”Res”
SK.
In this way, all interface signals which can be activated by the OP are requested.
You can assign default values to all data fields and transmit trigger pulses for the
jobs to be executed.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 6-45
Programming the Technological Functions

Structure of “DBEX” (DB 100)


DATA_BLOCK “DBEX”
STRUCT // *** General signals ***
ERR_CODE_INIT : INT; // Error code FC POS_INIT
ERR_CODE_CTRL : INT; // Error code FC POS_CTRL
ERR_CODE_DIAG : INT; // Error code FC POS_DIAG
OVERRIDE : BYTE; // Override
MODE_IN : BYTE; // Mode setting (coded)
MODE_OUT : BYTE; // Mode setting (coded)
DRV_EN : BOOL; // Drive Enable
SERVO_EN : BOOL; // Controller Enable
OT_ERR_A : BOOL; // Acknowledgement for operator/traversing error
RESET_AX : BOOL; // Restart
DIAG_RD : BOOL; // Start of FC POS_DIAG
PARA : BOOL; // Initialized
SYNC : BOOL; // Synchronized
START_EN : BOOL; // Start Enable
POS_ROD : BOOL; // Position reached, Stop
WORKING : BOOL; // Execution in progress
GO_M : BOOL; // Traverse in negative direction
GO_P : BOOL; // Traverse in positive direction
OT_ERR : BOOL; // Operator-/traversing error
DATA_ERR : BOOL; // Data error
INIT_ERR : BOOL; // Error in FC POS_INIT
DIAG_ERR : BOOL; // Error in FC POS_DIAG
MINUS1 : BOOL; // “MINUS1” error in FC POS_CTRL
MINUS2 : BOOL; // “MINUS2” error in FC POS_CTRL
MINUS3 : BOOL; // “MINUS3” error in FC POS_CTRL
EX1: STRUCT // *** Signals for EXAMPLE 1 ***
DIR_M : BOOL; // Negative direction
DIR_P : BOOL; // Positive direction
START : BOOL; // Start
STOP : BOOL; // Stop
END_STRUCT;
EX2: STRUCT // *** Signals for EXAMPLE 2 ***
START : BOOL; // Start
STOP : BOOL; // Stop
END_STRUCT;
EX3: STRUCT // *** Signals for EXAMPLE 3 ***
START : BOOL; // Start
STOP : BOOL; // Stop
READ_EN : BOOL; // Read Enable
END_STRUCT;
END_STRUCT
BEGIN
END_DATA_BLOCK

FM 354 Servo Drive Positioning Module


6-46 6ES7 354-1AH01-8BG0
Programming the Technological Functions

6.7 Error list, system messages (CPU)


The Table below lists some of the errors which occur during data transfer with the
internal SFCs (RET_VAL in SFCs 51, 58 and 59; system messages) (see the Ref-
erence Manual entitled System Software for S7-300/400; System and Standard
Functions).

Table 6-8 Error list

Error Code (AW-DB, DBW66) Description


HEX DEC INT
0 0 0 No errors
8081 32897 –32639 Length of “DR” field insufficient
8082 32898 –32638 SZL_ID invalid or not in CPU
8083 32899 –32637 Invalid INDEX
8084 32900 –32636 SZL can not be called via SFC
8085 32901 –32635 Information currently unavailable (caused by system)
80A0 32928 –32608 Negative acknowledgement when reading from module. Module re-
moved during Read operation or module defective.
80A1 32929 –32607 Negative acknowledgement while writing to module. Module removed
during Write operation or module defective.
80A2 32930 –32606 DP protocol error in layer 2 (data transfer over Profibus-DP interrupted,
e.g. due to wirebreak, missing terminating resistor connector, parame-
ter assignment error, etc.)
80A3 32931 –32605 DP protocol error in user interface/user (data transfer over Profibus-DP
interrupted, e.g. due to wirebreak, missing terminating resistor connec-
tor, parameter assignment error, etc.)
80A4 32932 –32604 Communication problem on K (communication) bus
80B1 32945 –32591 Length specification invalid
80B2 32946 –32590 The configured slot is not occupied.
80B3 32947 –32589 Actual module type not the same as setpoint module type
80C0 32960 –32576 Module does not yet have the data to be read available
80C1 32961 –32575 Data from an identical Write job have not yet been processed on the
module
80C2 32962 –32574 Module is currently servicing the maximum possible number of re-
quests
80C3 32963 –32573 Needed resources (such as memory, etc.) are currently in use
80C4 32964 –32572 Communications error
80C5 32965 –32571 Distributed I/O not available
80C6 32966 –32570 Priority class abort (restart or background)
8522 34082 –31454 DB too short. The data cannot be read out of the DB (Write request)
8532 34098 –31438 DBs too long (Write request)

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 6-47
Programming the Technological Functions

Table 6-8 Error list, continued

Error Code (AW-DB, DBW66) Description


HEX DEC INT
853A 34106 –31430 No DB (Write request)
8544 34116 –31420 Error on the n-th (n > 1) attempt to read a DB following the occurrence
of an error (Write request)
8723 34595 –30941 DB too short. The data cannot be written to the DB (Read request).
8730 34608 –30928 DB write-protected in the CPU. Data cannot be written to the DB (Read
request).
8732 34610 –30926 Number of the DB out of range (Read request)
873A 34618 –30918 No DB (Read request)
8745 34629 –30907 Error on the n-th attempt (n > 1) to write to a DB following the occur-
rence of an error (Read request)
Errors 80A2 to 80A4 and 80Cx are temporary, that is to say, they can be eliminated without your interven-
tion after a certain period. Messages in the form 7xxx indicate the temporary communication status.

FM 354 Servo Drive Positioning Module


6-48 6ES7 354-1AH01-8BG0
Programming the Technological Functions

6.8 Technical specifications

Memory requirements
The Table below provides an overview of the memory requirements for the FCs
and the user data block (AW-DB). All values are approximate.

Table 6-9 Memory requirements for the FCs and user data block

No. FC Block in Bytes MC7 Code in Local Data in


Bytes Bytes
0 POS_INIT 250 140 6
1 POS_CTRL 2 670 2 340 22
2 POS_DIAG 300 180 48
3 POS_MSRM 270 170 20
4 AW-DB 2 000 520 –

Execution times for the FCs in the following sample system


The specified times are rounded.
Structure: CPU 315-2DP, FM 354 in simulation mode
User cycle time: Approx. 5 ms
FM cycle: 2 ms

Table 6-10 Execution times for the FCs

FC Transfer Cycle 1 Cycle 2 Cycle 3


Write control-/status signals without data 1.3 ms – –
POS_CTRL Write control-/status signals with data 1.5 ms 3.2 ms 1.5 ms
Read control-/status signals with data 3.6 ms – –
POS_DIAG Read process and diagnostic data 3.2 ms – –
POS_MSRM Read measured values 3.6 ms – –

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 6-49
Programming the Technological Functions

Execution times for the FCs in the following sample system, when used in a dis-
tributed configuration
The specified times are rounded.
Structure: CPU 315-2DP, IM 153-2, FM 354 in simulation mode
User cycle time: 5 ms
FM cycle: 2 ms
Baud rate: 1.5 MB

Table 6-11 Execution times for distributed FCs

No. Function System data Transfer time in Mean transfer


transfer the range of ... to time
0 POS_CTRL Control/checkback 1.1 ... 1.5 ms 1.3 ms
signals
1 POS_CTRL Write request 30 ... 40 ms 35 ms
2 POS_CTRL Read request 10 ... 20 ms 15 ms
3 POS_DIAG Read 2.1 ... 2.7 ms 2.4 ms

Several cycles are required to read or write data via the relevant requests.

Response time for start signals to a distributed FM

Table 6-12 Response time for start signals

CPU view: starting from Response time in the


to
FC call range of ... to
Start “JOG” Response at output of FM 8 ... 13 ms
(axis traverses, incl. FM re-
Start “MDI” sponse time) 10 ... 15 ms

FM 354 Servo Drive Positioning Module


6-50 6ES7 354-1AH01-8BG0
Starting up 7
Chapter Overview

Section Section Header Page


7.1 Installation and wiring 7-2
7.2 Initial values for testing and optimization 7-3
7.3 Testing and optimization 7-6

Overview
This Chapter introduces you to the user interface for testing and start-up, and pro-
vides check lists for starting up the positioning module. The checklists will help
you:
S Check all steps until the module is running.
S Prevent malfunctions of the module once it is in operation.
You are guided through start-up of the machine axes.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 7-1
Starting up

7.1 Installation and wiring

Installation information
You can find information about how to install your module:
S In Chapter 3 of this manual
S Inthe manual S7-300 Programmable Controller, Hardware and Installation

Wiring information
You can find information about how to wire your module:
S In Chapter 4 of this manual
S In the manual S7-300 Programmable Controller, Hardware and Installation

Checklist
The checklist below will help you check important steps in the installation and para-
meterization of the FM 354 positioning module.

Table 7-1 Installation and wiring checklist

Step Check What to do: OK


1 Slots Plug the module into one of the suitable slots.
2 Shielding Check the shielding of the FM 354 positioning module:
S To ensure proper shielding, the module must be screwed down
firmly
on the rail.
S The shielding for shielded lines for digital I/O modules must be
connected to the shielding terminal element.
S The shielding for the setpoint cable should not be grounded on
the drive-unit end.
3 Limit switches Check the start/stop limit switches. The limit-switch connections must
be connected to the power section. The start/stop limit switches
should not be connected to the digital inputs.
4 Parameterize Make sure the FM 354 positioning module setup is consistent with
the parameterization. Check in particular that:
S The attached encoder matches the machine data.
S The wiring of the digital I/O modules matches the machine data.

FM 354 Servo Drive Positioning Module


7-2 6ES7 354-1AH01-8BG0
Starting up

7.2 Initial values for testing and optimization

Parameterization information
You can find information about parameterization:
S In Chapter 5 of this manual
S In the on-line help in “Parameterize FM 354”

Overview
The following opening display appears in the “Parameterize FM 354” tool:

Fig. 7-1 Overview display for parameterization and start-up

You can return to this display at any point during parameterization by selecting the
menu View > Overview.
As it is written to the FM 354, the DB-MD is checked for the input limits of the indi-
vidual values and their interdependencies. It is then stored only if all values are
allowed. Otherwise data error messages are displayed by way of the MPI. A defec-
tive DB will not be retained when the power is turned off.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 7-3
Starting up

Checklist
Despite the “acceptance” testing just mentioned, the ultimate responsibility for the
accuracy of all machine data lies with the module user. So it is highly advisable to
perform startup using the following checklist.

Table 7-2 Parameterization checklist

Step Check What to do: OK


1 Machine data Set initial machine data contents
As shown in Table 5-4 machine data are subdivided into configuration
data (K) and setting data (E). K data indicates how the FM 354 is con-
nected to the machine axis or CPU user program, and must therefore
already be fully set up before startup begins.
E data is intended for changes during startup, and serves to optimize
FM 354 response for the technological process of positioning.
The values in Table 7-3 are recommended, and sometimes necessary,
as initial settings.
2 Increments Increments are only needed for the “Relative incremental” mode. For
the next part of the startup procedure it is helpful to set up an “Incre-
ments” data block (DB-SM) with the following values:
Value 1 1 MSR
Value 2 10 MSR
Value 3 100 MSR
Value 4 1,000 MSR
Value 5 10,000 MSR
with rotary axes:
Value 6 1 rotary-axis cycle [MSR] MSR = measurement-system
grid
3 Tool offset data Tool offset data is needed only for the “Automatic” mode and is not nec-
essary for the startup described here. Generally, it is not needed until
you start up the user program on the S7-300 CPU.
4 Traversing pro- Traversing programs are needed only for the “Automatic” mode and are
grams not necessary for the startup described here. Generally, it is not needed
until you start up the user program on the S7-300 CPU.
5 Create SDB w When you have completed all start-up actions on the FM 354 and
1 000 your plant, create, save and load SDB w 1 000 into the CPU/onto the
memory card of the CPU. All the parameter data (DBs) of the FM 354
are stored in SDB w 1 000. This SDB allows you to replace the FM 354
module in the event of a fault, and to download the parameters without
a programming device/PC.

FM 354 Servo Drive Positioning Module


7-4 6ES7 354-1AH01-8BG0
Starting up

Note
The measurement system (MD7) must match the measurement system specified
in the other DBs.
The measurement system raster (MSR) is the smallest distance unit in the active
system of measurement.
If at some point you have failed to take this precaution:
1. Delete all data blocks (which do not match the measurement system) or clear
the memory of the FM 354 completely.
2. Modify the other data blocks on the PG.
3. Reload the data blocks to the FM 354.

Initial contents of MD
The table below shows you what initial contents are recommended or required for
the E machine data at startup of the machine axis.
Enter the machine data in the tab windows or in table format in accordance with
the following table.

Table 7-3 Initial contents of machine data

MD (E) Value Explanation


5 0 FM 354 triggers no process interrupts
16 –109...+109 [MSR] Specified reference-point coordinates
17 0 Absolute encoder readjustment value (absolute encoders only).
Entered automatically when the reference point of the FM 354
is set.
21/22 –109/+109 [MSR] Software limit switches inactive
231) vmax = 10...5@108 [MSR/min] Specified maximum axis speed
24 1 000 [MSR] Large PEH target range
25 0 PEH time monitoring switched off
26 10 000 [MSR] Zero speed range monitoring set to default value
(If the “zero speed range” monitoring error occurs during the
start-up, as described in Section 7.3, please enter the maxi-
mum value of 1 000 000 deviating from the default. You then
define the value required for your true drive axis in Section
7.3.6)
27 0 Reference-point shift (incremental encoders only) should be
entered for numerical readjustment of the reference point
28 0.2@vmax 20% of the maximum speed is the recommended initial value
29 0.1@vmax 10% of the maximum speed is the recommended initial value
30/31 0/0 Backlash compensation inactive
38 1 000 [MSR/min/MSR] Generally applicable position control loop gain

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 7-5
Starting up

Table 7-3 Initial contents of machine data, continued

MD (E) Value Explanation


39 0 Following-error monitoring inactive
40/41 1 000/1 000[103MSR/s2] Very low acceleration values
42 0 Jolt filter switched off
431) Umax = 1,000...10,000 [mV] Specified maximum amount of drive setpoint
44 0 Offset value for drive setpoint
45 0 Voltage ramp inactive

1) This pair of values corresponds to the speed category of the drive. It serves as a basis for calculating the
Kv factor in the servo, and must therefore be entered correctly.
Recommendation: So far as possible, Umax should be set in the range between 8 and 9 V.

7.3 Testing and optimization

Testing and optimization information


Once you have installed, wired and parameterized the unit, you can test and opti-
mize your FM 354 positioning module. Testing and optimization can be performed
with the aid of the testing and start-up interface with or without the user program.
You can also test individual modes and their traversing programs, and view and
debug them during execution.
There are two ways of operating the FM:
S CPU is in “STOP”, test without user program
S CPU is in “RUN”, test with user program
You can monitor the interface between the FM and the user program. You can
also control the program from the start-up user interface when control signal
[TFB] (TEST_EN) is enabled in the user program.
This interface is installed with “Parameterize FM 354”. Once the FM 354 has been
parameterized, you can call it up by selecting the menu Test > Startup or by se-
lecting from the overview display.

FM 354 Servo Drive Positioning Module


7-6 6ES7 354-1AH01-8BG0
Starting up

When you call up this menu the following screen appears:

1 – Error field
2 – Status field (e.g. actual values, check-back signals)
3 – Field for mode-specific inputs
4 – Field for input of values/settings/commands and start/stop for movement

The abbreviations for the checkback signals are described in Table 9-2.

Fig. 7-2 Startup interface (e.g. for “Reference-point approach” mode)

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 7-7
Starting up

Note
To start a movement, we recommend the following input sequence:
S Select a mode
S Turn simulation on (if you want an operating case)
S Servo enable
S Drive enable
S Override 1...100%
You can operate the “R+” and “R–” buttons in the “jogging” mode as follows:
1. Select “R+” or “R–” with the mouse
2. Press the space bar
You can operate “Start” and “Stop” with the mouse, or with the space bar if you
have already selected the button.
The digital outputs are not set in the “Stop” status of the CPU.
When you operate the following buttons, you will get dialog windows:
S Set actual value...
S Set actual value on-the-fly
S Set reference point
S Zero offset

Warning
! If you move the axis directly (without simulation), for safety’s sake make sure you
can switch off the hardware if a hazard arises

Note
If you use the start-up user interface to operate the FM 354 when the CPU is in
“STOP”, and then switch the CPU to “RUN” and then immediately switch to the
start-up interface in your user program by means of the [TFB] (TEST_EN) signals
(e.g. if example application 3 is included in the user program), please note the fol-
lowing:
You must select the mode again from the start-up interface, or close the
start-up interface and call it up again.

FM 354 Servo Drive Positioning Module


7-8 6ES7 354-1AH01-8BG0
Starting up

You can also call up the following screens:


The following display appears when you select Test > Alarms:

Fig. 7-3 Troubleshooting

The following display appears when you select Test > Service data:

Fig. 7-4 Service data

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 7-9
Starting up

The following display appears when you select Test > Trace:

Fig. 7-5 Trace

FM 354 Servo Drive Positioning Module


7-10 6ES7 354-1AH01-8BG0
Starting up

Checklist
When starting up the machine axis, it is important to perform the following steps in
the indicated sequence. Steps 1 to 5 are always necessary; the rest are optional,
depending on your own application.

Table 7-4 Checklist - Startup of machine axis

Step Check What to do: Page OK


1 Activation of machine data See Section 7.3.1 7-12
2 Monitoring of drive and encoder switching See Section 7.3.2 7-13
3 Basic startup of position controller See Section 7.3.3 7-17
4 Optimization of position controller See Section 7.3.4 7-19
5 Readjustment of reference-point coordinates See Section 7.3.5 7-23
6 Activation of position controller diagnostics See Section 7.3.6 7-24
7 Activation of software limit switches, drift com- See Section 7.3.7 7-26
pensation and backlash compensation

Note
In order for an axis to start, the start enable checkback signal must have been set.
If there is no start enable, this may be because:
S “Drive enable” is not set
S “Stop” is set
S “Operation in progress” is active

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 7-11
Starting up

7.3.1 Activating the machine data

Overview
The checkback signal PARA notifies you that a DB-MD has been retained. This
machine data is automatically activated at power-up. The module’s positioning
functions are ready to operate.
If no DB-MD is present as yet on the FM 354 when the control is switched on, the
module can only communicate by way of the MPI interface. The control signals are
not processed by the FM 354. Once an error-free DB-MD has been transferred,
the machine data is automatically activated, PARA is set and the control signals
are processed.
If the FM 354 is working with activated machine data, you can transfer a new data
block or individual parameters in modified form to the module and, if the entire
DB-MD is error-free, put the new or modified data into effect by means of the ”Acti-
vate machine data” function provided that an operating mode is active (parameter-
izing tool ”Start-up display”).
The following approaches are possible:
S If only E data have been modified in the machine data record since the last ac-
tivation, the equipment is activated with module status “Operation in progress”
= 0, without interrupting the servo cycle. “SYN” is retained.
S If K data has also been modified in the machine data record since the last ac-
tivation, activation takes place with module status “Operation in progress” = 0
by way of a cold restart of the servo, just as occurs for a power-up of the mod-
ule. The instantaneous actual position is still displayed, but encoder pulses from
incremental encoders might go unrecorded. “SYN” is reset.
S If the machine data record contains erroneous data at activation time, the func-
tion is rejected, with the “Machine data cannot be activated” error message
(see Table 11-5, Class 2, No. 21).

FM 354 Servo Drive Positioning Module


7-12 6ES7 354-1AH01-8BG0
Starting up

7.3.2 Checking the drive and encoder circuits

Overview
The following startup action allows you to monitor the proper actuation of the drive
unit and the encoder:

Note
Always be sure to put MD modifications into effect with “Activate machine data.”

Caution
! Before triggering any traversing movement, be sure to check that there is enough
space for the axis to move in the desired direction.

Drive actuation
You can use the following flow chart to check the actuation of the drive.
Starting the axis
Start the axis with the “space bar” after preselecting the direction via R+ or R–.
The “Windows properties” allow for successive execution of the command (re-
peated starting/stopping of the axis) when the “space bar” is depressed in quick
succession.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 7-13
Starting up

Select
Mode = Control

Set
Voltage level 1 = 0
Voltage level 2 = 0.1 @ Umax

Select
Voltage level 1

Set
Servo enable = ON

Start axis
Plus or minus direction

Axis idle? No
Yes Parameterization
MD44 – Set offset compensation

Set
Activate machine data

Select
Voltage level 2

Start axis
Plus or minus direction
(be sure there is enough room!)

Axis moving? No
Yes Is servo enable parameter-
ization correct?
No
Yes Parameterization
MD37 – Servo enable

Set
Activate machine data

Check and correct drive actuation

No Axis travel direction correct?

Yes

Parameterization
MD19 – Invert analog value

Set
Activate machine data

END

Fig. 7-6 Drive actuation

FM 354 Servo Drive Positioning Module


7-14 6ES7 354-1AH01-8BG0
Starting up

Encoder actuation and traversing speed


You can use the following flow chart to check the encoder actuation and traversing
speed.

Select
Mode = Control
Voltage level 2

Set
Voltage level 1 = 0 Umax = MD43
Voltage level 2 = 0.1 @ Umax

Set
Servo enable = ON

Start axis
Plus or minus direction
(be sure there is enough room!)

Read actual position

Is direction of position change


correct?
No

Yes Parameterization
MD19 – Reverse direction of measurement

Set
Activate machine data

Is amount of change in
actual position correct?
No
Yes Parameterization
MD11...13 – Measured-value resolution

Set
Activate machine data

Read actual speed

Is actual speed = 0.1 @MD23


correct? No
Yes Yes
MD23 correct?

No
Correct RPM allocation
accordingly on the drive

Parameterization
MD23 – Maximum speed

Set
Activate machine data

END

Fig. 7-7 Encoder actuation and traversing speed

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 7-15
Starting up

Drive transition time and maximum voltage rise


For the following position-controller optimization it is important to know the drive
time constant (transition time). In open-loop control mode and on errors with the
response “Everything Off” (see Section 11) the voltage value is fed to the drive by
way of a ramp defined in MD45. A variety of drives, as well as certain mechanical
or technological situations, may require a limitation on the voltage rise. If you do
not have a specific value in hand and wish to find a suitable rise value by trial and
error, please use the following procedure:

Note
A voltage rise setting will obviously make the axis stop more slowly if an
“Everything Off” error response occurs.

Select Mode = Control


Voltage level 2

Set
Voltage level 1 = 0
Voltage level 2 = Ua = Umax

Set
Servo enable = ON

Start axis If controlled drive of the axis at Umax is not possible


Plus or minus direction without a voltage ramp, set voltage level 2 to a value
(be sure there is enough room!) Ua < Umax and calculate the real drive time constant
Tareal from the measured time constant Ta, as:
Read drive time constant (Ta) from
servicing data Tareal = Ta @Umax : Ua

Start axis
Axis acceleration too high? Plus or minus direction
Yes (be sure there is enough room!)
No
Parameterization
MD45 – Voltage ramp lower

Set
Activate machine data

Axis acceleration too low?


Yes
No
Parameterization
MD45 – Voltage ramp higher
Set
Activate machine data

Was voltage level 2 = Umax?


No
Yes Set
Raise voltage level 2
(up to Ua = Umax)
END

Fig. 7-8 Drive transition time and maximum voltage rise

The axis is now ready for startup of the position controller.

FM 354 Servo Drive Positioning Module


7-16 6ES7 354-1AH01-8BG0
Starting up

7.3.3 Basic startup of the position controller

Overview
The following startup action allows you to monitor the basic function of the servo -
i.e. position control of the axis:

Note
Always be sure to put MD modifications into effect with “Activate machine data.”

Non-release control
You can use the following flow chart to check the non-release control.

Select
Mode = jogging
Speed level 1
OVER = 100 %

Set
Speed level 1 = 0,1 @ vmax
Speed level 2 = 0.5 @ vmax

Set
Servo enable = ON

Read actual position

Does axis start up too fast(sometimes with


“Drive rotation direction” error message)? Yes
No

Does axis slowly drift away? Repeat


Yes
No “Check encoder actuation”
startup step
Does actual value oscillate around one place?
Yes No

Repeat
“Check drive actuation”
startup step

END See Figure 7-6 See Figure 7-7

Fig. 7-9 Non-release control

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 7-17
Starting up

Positioning
Use the following flow chart to check axis travel to a target position.

Select
Mode = Relative incremental
Increment = 4 DB increments, Value 4 = e.g. 1,000 MSR
OVER = 10 %

Set
Speed level 1 = 0.5 @ vmax
Speed level 2 = 0.5 @ vmax

Set
Set reference point with value 0

Check check-back signal SYN

Set
Servo = ON

Start axis
Plus or minus direction
(be sure there is enough room!)

Read actual position

Direction OK?
No
Yes

Amount OK?
No
Yes Start again with
No “Check drive actuation”
Further testing desired? startup step
Yes

Select new OVER 1...200 %

END See Figure 7-6

Fig. 7-10 Positioning

FM 354 Servo Drive Positioning Module


7-18 6ES7 354-1AH01-8BG0
Starting up

7.3.4 Optimizing the position controller

Overview
In principle, the dynamic response of an axis is essentially determined by the dy-
namic response of the variable-speed drive; there is not sufficient space to discuss
this topic here. But this latter dynamic response, in turn, is influenced by the design
characteristics of the machinery, such as friction, backlash, torsion and the like. By
feeding back the measured displacement, a position controller generally closes the
outermost loop of a controller cascade with the following structure:

Motor and
FM 354 Drive
Machine

Servo Speed Current


Ref. Regulator M
controller Regulator
position

Tacho

Actual position Encoders

Fig. 7-11 Position control circuit

Procedure
The following instructions are intended as an aid for practical situations.
Position controllers must meet a variety of requirements for various technological
applications.
Assessment criteria for the quality of the positioning process can include:
S Good uniformity of traversing movement
S Little or no overshoot at the target point for positioning
S Short positioning time
S A continuous acceleration (soft travel).
In most applications, several of these criteria will be important, so that most of the
time the dynamic response of the controller can be optimized only with a number of
compromises.
Execute test movements as in Figure 7-12 during the optimization steps described
below.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 7-19
Starting up

To trigger test movements


You can trigger test movements as follows as you perform optimization:

Select
Mode = jogging
Speed level 2
OVER = various values

Set
Speed level 1 = 0.1 @ vmax
Speed level 2 = 0.5 @ vmax

Set
Servo enable = ON

Start axis
Plus or minus direction
(be sure there is enough room!)

Uniformity of movement - Overshoot -


Evaluate axis response Positioning time

Further testing desired?


Yes
No

END

Fig. 7-12 Test movements for optimizing the servo control system

Selecting initial values of response-defining MD


Set the following machine data in accordance with the drive time constant Ta
(Tareal) determined in Section 7.3.2 to the initial values for the optimization steps
below, e.g. for an axis in MSR 10–3 mm:
S Acceleration, delay
MD40 = MD41 [mm/s2] = 30 @ MD23 [mm/min] : Ta [ms]
S Jolt time
MD42 (ms) = 0
S Positioning loop amplification
MD38 (1/min) = 100,000 : Ta (ms)
The acceleration value that actually acts on the system is reduced by the time re-
sponse of the position control circuit - i.e. as a function of the Kv value. The maxi-
mum acceleration (a) in this setting can be attuned to the drive time constant, and
can be estimated as follows:
amax [mm/s 2] = 16 @ MD23 [mm/min] : Ta [ms]

FM 354 Servo Drive Positioning Module


7-20 6ES7 354-1AH01-8BG0
Starting up

The qualitative effect of the parameters on the positioning process appears in the
following table:

Table 7-5 Effect of machine data that defines response

MD38 MD40/41 MD42


Quiet running small – –
Noise immunity great – –
Soft movement reversal small great great
Positioning without overshooting small great great
Fast positioning great small small

Optimization of dynamic response


The following startup actions allow you to optimize the position controller to your
requirements. Check all speed ranges, and if applicable give the greatest weight in
evaluating the results to the speed that is the most significant for your technology.
Optimization for uniformity of movement
You can make optimization of the position controller considerably easier by analyz-
ing the actuating signal or drive speed (tachometer voltage) with a storage oscillo-
graph. The resulting oscillograms for the transition functions U(t) and v(t), i.e. the
oscillation pattern, can be interpreted more easily (see Figure 7-13).

U
v

t
Effective range of jolt filter

Gain too high (axis swing damping weak)


Amplification/acceleration too great
Amplification/acceleration too small
Optimum setting

Fig. 7-13 Transition function of the position-control circuit

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 7-21
Starting up

Optimization for overshoot


Evaluate the overshoot in the target position (s-overshoot in the servicing data).
For suitable machine data changes, see Table 7-5.
Optimization for positioning time
Evaluate the approach time to the target position (approach time Te in the servicing
data).
For suitable machine data changes, see Table 7-5.
Optimization for especially soft travel (super-soft)
For particular applications, especially soft travel response of the axis is desirable.
By choosing the following output values for the machine data affecting the dynamic
response you can produce a very soft movement where the acceleration is con-
trolled exclusively by the jolt filter. The effective maximum acceleration in move-
ment-reversal processes responds proportionally to the difference in speed, and
reaches its maximum in the transition from v = 0 to maximum speed (see Figure
7-14).
S Acceleration, delay
MD40 = MD41 [mm/s2] = 0
S Jolt time
MD42 [ms] = 0.5 @Ta [ms]
S Positioning loop amplification
MD38 [1/min] = 100,000 : Ta [ms]
The maximum value of the actual effective acceleration can be estimated as fol-
lows:
amax [mm/s 2] = 16 @MD23 [mm/min] : Ta [ms]

U
v

Response on different velocity transitions


(sum effect of jolt filter and position control)

T_a t

Fig. 7-14 Response on different velocity transitions (sum effect of jolt filter
and position control)

FM 354 Servo Drive Positioning Module


7-22 6ES7 354-1AH01-8BG0
Starting up

Compromise optimization
When optimizing for several of the above criteria, you can determine the machine
data from the results of the individual optimizations by a variety of methods:
S Guarantee of all partial results
– Least determined value of MD38
– Greatest value for each of MD40, MD41 and MD42
S Prioritization of one optimization criterion
Set MD38 and MD40-MD42 to the values that match the highest-priority opti-
mization criterion for your application, and again evaluate response as to the
remaining criteria.
S Taking the mean of partial results
Set MD38 and MD40-MD42 to the means of the individual partial results, and
again evaluate response as to all criteria.

7.3.5 Realigning the reference point coordinates

Axis with incremental encoder


To ensure distinct reproducibility of reference recordings, it is necessary for the
synchronizing zero pulse (SYNI) to be a distinct distance away from the reference
point switch (RPS). At low reducing speeds, we recommend a distance of from
10% to 90% of the distance of one encoder revolution. For high reducing speeds
we recommend 30% to 60%. Check this value in the servicing data report after
executing a reference point approach (switch alignment value) and if you find non-
conformity to the required value range, make a corresponding adjustment in the
relative position allocation between the encoder and the reference point switch.
Example: Positive search direction

SYNI

RPS
zero pulse

MD11, 12

Switch readjustment displayed: 40 % @ MD11, 12


(suitable for high reducing speeds)

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 7-23
Starting up

Set the referencing velocity to the highest value compatible with your require-
ments. It is important to be able to decelerate to the reducing velocity across the
length of the reference-point switch. If this is not the case, an additional reposition-
ing to the RPS occurs before the search phase of the synchronizing zero pulse
begins. Compare the cycle of the executed traversing movements with Section
9.2.3 and optimize the referencing speed (MD28).
Then readjust the reference-point coordinates proper by entering the necessary
reference-point shift in the machine data. After the machine data is activated, the
new reference-point shift takes effect with the next search for reference.

Axis with absolute encoder (SSI)


In a suitable mode (“jogging”, “incremental relative”) move to a known point on the
axis and execute the Set reference point function with the known position value.
The set position and actual position will immediately be set to this value, and the
allocation of an absolute value to the absolute encoder (SSI) will be entered in the
machine data record (MD17). If you want to archive this value externally, apart
from the module’s own data memory, perform a readout of the machine data DB
and save it to a floppy disk or to the hard disk of your PG.

7.3.6 Activating position controller diagnostics

Overview
Once the position controller has been optimized, activate the position controller
diagnostics. If position control is performing improperly or the axis is responding
abnormally, this function will trigger error messages.
You can use the following flow chart to start the position controller diagnostics:

FM 354 Servo Drive Positioning Module


7-24 6ES7 354-1AH01-8BG0
Starting up

Select
Mode = jogging
Speed level 2
OVER = 10...20 %

Set
Speed level 1 = 0.1 @ vmax
Speed level 2 = 0.5 @ vmax

Set Test:
Servo enable = ON “Swerve” the axis on deactivation of the controller

Set
Servo enable = OFF

Read the following error from


the servicing data

Is maximum value for following error


No detected with controller inactive?
Yes When the positioning operation is complete, check
Parameterization that the axis has remained within the specified dis-
MD26 – Entry > 300% of maximum tance range.
idle following error
Generates “Drive movement without controller en-
able, idle range” error message
Start axis
Plus or minus direction
(be sure there is enough room!)

Read the following error from


the servicing data

Parameterization
MD39 – Enter the following error at Enable “Following error too great”
approx. 5...10 % vmax error message

OVER = 200 %

Parameterization
MD24 – Enter a PEH target In the specified distance range, the positioning op-
range eration for the motion sequence is interpreted as
complete.
Start axis
Plus or minus direction
(be sure there is enough room!)

Read approach time Te of drive


in servicing data

Parameterization
MD25 – PEH monitoring time Generates “PEH target range monitoring”
MD25 w 1.5 @Te error message

Set
Activate machine data

END

Fig. 7-15 Activation of position controller diagnostics

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 7-25
Starting up

7.3.7 Activating the software limit switches, drift compensation and


backlash compensation

Software limit switches


Carefully run the axis up to its extreme limits as specified for normal operation of
the machine. Enter these position actual values into the machine data MD21/MD22
as software limit switches, and activate them.

Note
If you change the reference-point coordinate later or use Set reference point for
the absolute encoder, you must redefine the positioning values of the software limit
switches.

If you do not need the software limit switches, the input limits –109 and 109 [MSR]
must be entered in MD21/MD22 (for default values, see Table 5-4).

Drift compensation
If you want to use the drift compensation function in addition to the offset com-
pensation already described in Section 7.3.2, activate it in the machine data
(please see the function description in Section 9.7, Position control).

Backlash compensation
With indirect position measurement (for example, with an encoder on the motor)
the free play of mechanical transmission elements during positioning may cause a
position deviation of a machine part (such as a lathe saddle) that is to be posi-
tioned but does not lie in the measured-value feedback loop. As a rule, a piece of
the distance will be “missing” after a reversal of direction. This backlash amount
can be determined as a mean at various axis positions, and entered in the ma-
chine data MD30 and MD31.
You can use the following flow chart to determine backlash and activate backlash
compensation.
Also please refer to the information on “backlash compensation” presented in Sec-
tion 9.7 !

FM 354 Servo Drive Positioning Module


7-26 6ES7 354-1AH01-8BG0
Starting up

Parameterization
Initial backlash value MD30 = 0 (see Table 7-3)
MD31 – Set directional
reference of backlash

Set
Activate machine data

Set
Speed level 1 = 0.1 @ vmax
Speed level 2 = 0.5 @ vmax

Set
Servo enable = ON

Select
Mode = Relative incremental
Increment = 3 DB increments, value 3 = e.g. 100 MSR
OVER = 10 % (see Table 7-2)

Start axis
Direction as in MD31

Zero gauge on machine part to be


positioned Gauge, e.g. dial gauge or laser gauge

Start axis
Direction opposite to MD31

Read traveled distance on


gauge

Determine backlash value Please note:


Backlash=Increment - measured distance Negative backlash values may occur during
repeat tests if there is overcompensation

Further testing for checking or to take


Yes mean?
No
Further testing at another position to
take mean? No
Yes
Select Take the mean for all partial
Mode = jogging
results
Speed level 2
OVER = 100 %
Parameterization
MD30 – Add backlash to value in
Start axis
effect to date, with correct sign
Move to new measuring position

Yes
Check for efficacy of correction?

Set No
Activate machine data
END

Fig. 7-16 Determination of backlash and activation of backlash compensation

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 7-27
Starting up

7.3.8 Parameterizable zero-speed monitoring

Warning
! The parameterizable zero-speed monitoring is only required in exceptions. The
parameterization lies completely in the user’s own responsibility and should be
carried out with utmost care.

In the uncontrolled mode of the axis, a zero-speed monitoring of the axis motion is
provided by the FM 354 via the velocity evaluation.
These are special cases in which the MD45 voltage ramp is active:
S In the ”Controlling” mode:
Deceleration of an axis motion
S In all the other modes:
– Cancellation of drive enable during an axis motion
– Restart during an axis motion
– In case of all errors with error reaction ”All OFF”
– In case of some errors with error reaction ”Feed STOP” (see Section 11,
Error handling)
The evaluation is provided using an automatic mechanism implemented in the
software, which is intended to:
S quit the ”Machining running” status
S quit the position control with servo enable activated
For extraordinary exceptional cases of technologically required sequence of
motions or extraordinary dynamic behaviors of an axis, for which this automatic
mechanism cannot determine an axis standstill reliably, new machine data will be
introduced with which exact criteria can be parameterized to detect the end of the
motion.
MD54 Zero speed (see Table 5-4)
MD55 TimeOut time for zero-speed monitoring (see Table 5-4)

Note
MD54 and MD55 are zero (0) by default. Thus, the automatic zero-speed
monitoring is enabled – Principle of functioning as in earlier software versions.
A parameterization using values unequal to 0 can only be carried out using the
relevant table.
MD54 and MD55 act independently of each other, i.e. can be parameterized in 4
possible combinations.
The TimeOut time is started after the setpoint 0 has been reached at the setpoint
output of the FM 354, i.e. if MD45 is unequal to 0 after the voltage ramp has been
processed.

FM 354 Servo Drive Positioning Module


7-28 6ES7 354-1AH01-8BG0
Human-machine Interface 8
Chapter Overview

Section Section Header Page


8.1 Standard HMI (human machine interface) for the OP 07 and the 8-3
OP 17
8.2 Analysis of the user DB by the user program for operator control 8-17
8.3 Data block for status messages (DB-SS) 8-20

Summary
In this chapter you’ll find an overview of the operator control and monitoring capa-
bilities offered by the FM 354.
For operator control and monitoring of the FM 354, an operator panel can be con-
nected to the CPU via the MPI interface (see Figure 1-2).
The FM can service no more than three nodes simultaneously.
The module uses the SIMATIC interface (backplane bus) to communicate with the
control panel.

e.g. Text-based opera-


tor panel (OP)
Operator panel
Configured operator-
control screens

Operator control and monitor-


ing via the MPI interface

CPU FM 354
in data blocks:
Backplane bus S Machine data
User data S Increments
(user data block, S Tool offset data
technology func- S Traversing
tions, programs
see Section 6)
S Status messages

Fig. 8-1 Operator control and monitoring for the FM 354

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 8-1
Human-machine Interface

Operator control and monitoring of FM data/signals on the CPU 314


The data and signals that can be controlled and monitored at the control panel are
listed in the user data block. These data or signals must be processed by the user
program (for data and signals see Chapter 6 and Section 8.1).

What can I control on the FM 354?


Using the keyboard of the operator panel, you can change the data/signals in the
data blocks:
S Machine data DB No. 1200
S Increment sizes DB No. 1230
S Tool offset data DB No. 1220
S Traversing programs DB No. 1001...1199

What can I monitor on the FM 354?


The following data and signals can be displayed on the operator panel display:
S Machine data DB No. 1200
S Increment sizes DB No. 1230
S Tool offset data DB No. 1220
S Traversing programs DB No. 1001...1199
S Status messages DB No. 1000 (DB-SS) etc.
– Operating data, such as actual values
– Active NC blocks
– Linear measurements
– Actual value block change
– Check-back signals and error conditions
– Service data
The configuration package includes a pre-configured interface for the COROS
OP 07 and OP 17 operator panels.

FM 354 Servo Drive Positioning Module


8-2 6ES7 354-1AH01-8BG0
Human-machine Interface

8.1 Standard HMI (human-machine interface) for the OP 07


and the OP 17

Overview
This Section describes a preconfigured user interface, which you will need to
change according to your project (e. g. FM addresses, DB no.), for the following
COROS equipment (operator panels):
S OP 07
S OP 17
The tool to be used for this is the ”ProTool/Lite” configuring tool. You can use it to
modify, add or delete graphics.
The user interface is addressed to user DB No.1 in the CPU (target system 1, ad-
dress = 2) and to the DB-SS of the FM 354 (target system 2, address = 3).
The text field “FM user name” represented in the images can be renamed to a text
of your choice.
You can print out the entire configuration using ”ProTool/Lite”. This provides you
with detailed graphics descriptions.
You will find the preconfigured user interfaces op07_354.pdb und op17_354.pdb
in the following directory:
STEP7 Directory\EXAMPLES\FM354\zEn14_02_FM354_OP_EX

DB-SS
This data block for status messages (DB 1000) contains the control/checkback
signals, as well as the system data of the FM 354. The data of the DB-SS can only
be read.

Monitoring
The data for monitoring can be read and displayed directly in the DB-SS as well as
in the corresponding parameterized DBs of the FM 354.
The advantage of reading directly from the FM is that the values/signals do not
have to be read via the user program first.

Operator control
For operator control, the data and signals (including memory bits and values) are
written to the user DB of the user program.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 8-3
Human-machine Interface

User program
User data bock AW–DB is the interface for the OP.
When control signals, single functions and single commands are set in the
user data block via the OP, they are immediately transferred to the FM by
FC POS_CTRL.
The signals written in “Operator Control and Monitoring” (requests to transfer the
data with Write as per Table 8-3) must be evaluated accordingly by the user pro-
gram (taking into account any user–specific interlocks) before setting the Write or
Read requests.

FM 354 Servo Drive Positioning Module


8-4 6ES7 354-1AH01-8BG0
Human-machine Interface

8.1.1 Standard user interface for the OP 07

User interface of the OP 07


The following illustration provides you with an overview of the OP 07 user interface
(menu tree).
User name act. PIC7
operating mode
F 500000.000 OR 120
x +1000000.000 mm
PIC71 K1 Act.value IBN Diag. User K6 PIC73

PIC71 PIC72 PIC74


User name act. operat- Following error Free for user
ing mode Kv factor
x +1000000.000 mm DAC output val. SK for OP operating mode
x-Diff 1000000.000
Teach BA-E Auto Eist MD Eins User Offl Onl Trans

PIC73
PIC712 PIC714
Operator/travel errors
Error class
PIC713 Error no.
PIC723
<< Acknowledg Res >>
PIC722 status set PIC724
Servo enable Data error
MD no. Restart Axis Error class
Error no.
Value >> Free for user
<< Message >>
status set
Read Set active SW limit switch off Operating error
Parking axis Error class
Error no.
<<
<< Res >>
PIC711 Diagnostic interrupts
Teach In Byte 0: Byte 2:
Pr. no. Block Byte 3: Byte 8:
X +1000000.000 mm << Res >>
PIC712
set

F level 1
F level 2
Selection stage
Control SMR MDI

PIC7122 PIC7123 PIC7124


Vol. level1 mV SM free G
Vol. level2 mV SM no. X
Selection stage Free SM F
set

PIC713 PIC714

% 120 N 100 UP-Z 10 Set actual value


X +1000000.000 mm Value
X-Diff 1000000.000 X +1000000.000 mm
Selection Zero point offset

PIC7132 PIC7141
% N Zero point offset
Direction Value
Sum of 1000000.000
offsets
SAvor SArü set
Set zero point offset

Fig. 8-2 Menu tree of the OP 07 user interface

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 8-5
Human-machine Interface

Figure 8-2 describes the functions of the global function keys for the user interface
of the OP 07.

ESC key You can use this key to call up the previous screen of the higher
levels.

>> << Soft keys You can use these keys to call up the next inset screen within the
same screen (same screen number).

K1 Function key You can use this key to skip from any point in the menu tree to the
actual value display main screen (PIC71).

K6 Function key You can use this key to skip from any point in the menu tree to the
diagnostic main screen (PIC73).

Note
The screens of the user interface (see Figure 8-2 and description of each screen,
Table 8-1) contain display fields and input/output fields. These fields contain values
of configured variables.
S The display fields are addressed to the DB-SS (“Control 2,” DB1000) and are
read directly from the FM 354.
S The input/output fields are addressed to the user DB No.:1
(Control 1-CPU).
– Transmission of these values occurs from the OP 07 to the CPU into the
user DB. These values (if needed) must be transmitted to the FM 354 by
the user program.
– If certain values or control signals can be written only under the right condi-
tions (e.g. if axis is in HOLD mode or selection of a certain operating mode
is required), then the user program must ensure, by analyzing the response
signals, that these conditions are met.

FM 354 Servo Drive Positioning Module


8-6 6ES7 354-1AH01-8BG0
Human-machine Interface

Table 8-1 below describes the individual screens of the user interface.

Table 8-1 Description of the screens in the user interface

Screen name Screen Description


No.
Main screen PIC7 This screen is displayed to you after the OP 07 is enabled. The
FM354 values are display values. You can use the soft keys to call
up the following main screens:
S Softkey “Istw” → PIC71
S Softkey “IBN” → PIC72
S Softkey “Diag” → PIC73
S Softkey “Anw” → PIC74
Main screen, actual PIC71 The values on the screen are display values. You can use the soft
value display keys to call up the following screens:
S Softkey “Teach” → PIC711
S Softkey “BA-E” → PIC712
S Softkey “Auto” → PIC713
S Softkey “Eist” → PIC714
Main screen, startup PIC72 The FM 354 values (service data) are display values. You can use
the soft keys to call up the following screens:
S Softkey “MD” → PIC722
S Softkey “Eins” → PIC723
S Softkey “Anw” → PIC724
Main screen, diagnos- PIC73 This screen shows you the diagnostic interrupts and error mes-
tics sages for the FM 354 in four lower-level screens. The following are
displayed:
S Error class and error number for operator control and guidance
errors
S The bit numbers of the single diagnostic interrupt bytes
You can use the soft keys “Quit” and “Res” to acknowledge the er-
rors.
See Section 11.3 for diagnostic interrupts and error messages
User screens PIC74 You can use these screens to configure your own contents.
and
PIC724
Setting data for operat- PIC712 This screen contains input/output fields for the velocity levels or a
ing mode text field for selecting velocity level (selections 1 or 2 possible). You
can use the soft keys to call up the following screens:
S Softkey “Steu” → PIC7122
S Softkey “SMR” → PIC7123
S Softkey “MDI”→ PIC7124
Setting data for the PIC713 This screen contains only display fields. You can use the “Anwahl”
“Automatic” operating soft key to call up screen PIC 7132.
mode
Set actual value PIC714 The actual value display is a display field. The value for set an ac-
tual value appears in an input/output field. You can use the soft key
“NPVer” to call up the screen PIC7141. You can use the soft keys
“Iwrü” and “IWset” to execute functions.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 8-7
Human-machine Interface

Table 8-1 Description of the screens in the user interface, continued

Screen name Screen Description


No.
Machine data PIC722 This screen contains input/output fields. Input of values is password
protected. The values entered are in the user DB. You can use the
soft keys to set bits in the user DB:
S Soft key “lesen” – You can use this soft key to insert a memory
bit (in
the user DB) which causes the user program to read the item of
machine data whose number has been entered.
S Soft key “set” – You can use this soft key to set a bit which
causes the user program transfer to the FM 354 the number
entered under value for the item of machine data under MD No.
S Soft key “aktiv” – You can use this soft key (activate MD) to set a
memory bit (“activate MD” bit in the user DB) which is trans-
mitted
from the user program to the FM 354.
Each bit in the user DB which you set in this screen must be reset
by the user program following execution of the function.
Settings for startup PIC723 The fields of this screen which are identified by an “x” are display
fields. If the bit is set, you will see an x. If the bit is not set, the field
will be blank. The other fields are text entry fields in which you can
toggle between “x” and “ ”.
You can use the soft keys “<<” and “>>” to change between the
inset screens of this screen.
Set data for the “Con- PIC7122 This screen contains input/output fields for the control levels or a
trol” operating mode text field for control level selection (selections 1 or 2 possible).
Set data for the “incre- PIC7123 This screen contains input/output fields. The fields “SM-No.” and
mental mode, relative” “free SM” are addressed to the same address in the user DB. You
operating mode can use the SM No. to enter the values 1 to 100. The “free SM” field
is a text field and you can toggle back and forth between “x” and “”.
If you select “x”, this corresponds to the value 254 for free SM. The
value of the free SM is found in the user DB.
Set data for the “MDI” PIC7124 This screen contains input/output fields. The MDI data record must
operating mode be preassigned by the user program with the corresponding bits (G,
X, F bits are set) and possibly, with values for G, X and F. The entry
field behind G is a text field. There, you can select between the val-
ues 90 and 91.
Using the soft key “set” you can set a memory bit (in the user DB),
which must be analyzed by the user program. With modification of
this bit, the MDI block must be transmitted from the user DB to the
FM 354, and the bit must be reset.

FM 354 Servo Drive Positioning Module


8-8 6ES7 354-1AH01-8BG0
Human-machine Interface

Table 8-1 Description of the screens in the user interface, continued

Screen name Screen Description


No.
Program selection PIC132 This screen contains input/output fields. This field for direction is a
text field. It is upward and downward selectable. You can use the
soft keys to set bits in the user DB:
S Soft key “SAvor” - You can also use this soft key (automatic
block search forward) or “SArü” (automatic block search back-
ward) to set the corresponding bits in the user DB.
S Soft key “set” - you can use this soft key to set a memory bit (in
the user DB).
Teach In PIC711 This screen contains input/output fields. You can use the soft key
“set” to set a bit in the user DB.
The actual value display (X) is a display field.
Zero offset PIC7141 This screen features an input/output field.
The sum of the offsets (Sumn Ver) is a display field.
You can use the soft key “NPVset” to execute a function.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 8-9
Human-machine Interface

8.1.2 Standard user interface for the OP 17

User interface of the OP 17


The following illustration provides you with an overview of the OP 17 user interface
(menu tree).

Main screen
PIC7 K1 K2 K3 K4 K5 K6 Global function keys

F1 F2 F3 F4 F5 F6 F7 F8
User-specific screens

Diagnostics,
PIC77
error message

SK1 SK2
Group signal Alarms
PIC Z_MESS_EVENT PIC772

Startup PIC76

SK1 SK3
Startup settings Machine data
PIC761 PIC763

Operating mode selection PIC75

MDI block input PIC74

SK1
PIC741
MDI block on the fly

PIC73

Auto main screen


SK7
Part progr.1) Overview
SK1 SK2 SK4 SK5 (P-sel)
Current block Foll. block Program selection Teach In
PIC736
PIC731 PIC732 PIC734 PIC735
SK8
Part progr.1) Edit
(P-ed)
Parameters PIC72
PIC737

Free PIC71 1) Part progr. = traversing program for FM 354

Free – later FM selection, presently for user screens

Fig. 8-3 Menu tree of the OP 17 user interface

FM 354 Servo Drive Positioning Module


8-10 6ES7 354-1AH01-8BG0
Human-machine Interface

Figure 8-3 describes the functions of the global function keys for the user interface
of the OP 17.

ESC key You can use this key to call up the previous screen of the higher
level (the table of contents in the main screen).

K1 Function key You can use this key to jump from any point on the menu tree to the
main screen (PIC7).

K2 Function key You can use this key to jump from any point on the menu tree to the
diagnostics, error message screen (PIC77).

K3 Function key You can use this key to jump from any point on the menu tree to the
operating mode selection screen (PIC75).

K4 Function key OP 17 “Offline” operating mode selection


K5 Function key OP17 “Online” (normal) operating mode selection
K6 Function key OP 17 “Transfer” operating mode selection
F1 ... F8 F1 to F8 (local soft keys)

Note
The screens of the user interface (see Figure 8-3 and description of the individual
screens) contain display fields and input/output fields. These fields contain values
of configured variables.
S The display fields are addressed to the DB-SS (“Control 2,” DB1000) and are
read directly from the FM 354.
S The input/output fields are addressed to user DB No.: 1 (control 1-CPU).
– Transmission of these values occurs from the OP 17 to the CPU into the
user DB. These values (if needed) must be transmitted to the FM 354 by
the user program.
– If certain values or control signals can be written only under the right condi-
tions (e.g. if axis is in HOLD mode or selection of a certain operating mode
is required), then the user program must ensure, by analyzing the response
signals, that these conditions are met.
The pending errors are displayed in the errors line. More detailed error information
is provided on the screens “Diagnostics, Troubleshooting” and “Interrupt mes-
sages.”

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 8-11
Human-machine Interface

Description of the individual screens


The following illustration shows the screen layout of the preconfigured interface.

FM 354

Fig. 8-4 Screen layout of the preconfigured interface

The illustrations shown below (Fig. 8-5 to Fig. 8-19) provide you with the screen
content of the configured screens.

Para Autom MDI BA_An IBN Diag Anwen

Fig. 8-5 Main screen, PIC7

This screen is displayed to you after the OP 17 is enabled. The FM354 values are
display values. The soft keys (F1 - F8) are used to request the continuation
screens. The first and last soft keys (User) are kept free for the user to insert his/
her own screens (e.g. including additional FMs).

Tipp Steu Refpk SMR MDI AutoE Autom

Fig. 8-6 Operating mode selection, PIC75

This screen permits you to enter the operating mode, velocity levels or control lev-
els or the incremental value.

FM 354 Servo Drive Positioning Module


8-12 6ES7 354-1AH01-8BG0
Human-machine Interface

set

Fig. 8-7 Teach In PIC735

This illustration displays the actual value for you. You can enter the values for
Teach In.

MDIfl set

Fig. 8-8 MDI block entry PIC74

The fields identified by an X are text fields and can be toggled back and forth be-
tween “X” and “ ”. You can enter the values of the MDI block.

MDI set

Fig. 8-9 MDI block on the fly PIC741

Handling of the MDI block on the fly corresponds to that of the MDI block.

aktSA folSA %Wahl Teach P-sel P-ed


Fig. 8-10 Automatic main screen PIC73

This screen contains only display fields.


In the screens PIC736 ”Part program overview (P-sel)” and PIC737 ”Part program
Edit (P-ed)”, you can select programs and read/write traversing program blocks.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 8-13
Human-machine Interface

SAvor SArü set

Fig. 8-11 Program selection PIC734

This screen features input/output fields. It is upward and downward selectable.

folgSA

Fig. 8-12 Current block PIC731

This screen contains only display fields.

aktSA

Fig. 8-13 Continuation block PIC 732

This screen contains only display fields.

IWset IWrü Set ZPO

Fig. 8-14 Parameters, PIC72

The sum of the offsets and the actual value display are display fields.

FM 354 Servo Drive Positioning Module


8-14 6ES7 354-1AH01-8BG0
Human-machine Interface

Einst MD

Fig. 8-15 Startup PIC76

The FM 354 values (service data) are display values.

Fig. 8-16 Startup settings PIC761

The fields in which an “X” is entered are display fields.

lesen aktiv set

Fig. 8-17 Machine data PIC763

Value input is password protected.

Meld Alarm Res Quit

Fig. 8-18 Diagnostics, error message PIC77

This screen displays the FM 354 errors. The fields are display fields.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 8-15
Human-machine Interface

Meld Fehler Res

Fig. 8-19 Interrupt messages PIC772

This screen displays the FM 354 errors. The fields are display fields.

The screen “PICZ_MESS_EVENT” contains factory-supplied default “ProTool/Lite”


screens for the OP17.

FM 354 Servo Drive Positioning Module


8-16 6ES7 354-1AH01-8BG0
Human-machine Interface

8.2 Analysis of the user DB by the user program for operator


control

Overview
The Table below tells you which Write requests must be submitted by the user pro-
gram and which signals are written directly to the FM.

Table 8-2 Analysis of the user DB by the user program

OP 07/17 User program see PIC

Triggered by User
User DB, OP OP
Function DB,
DBX 07 17
DBX
499.5 FM 354 Diagnostic interrupt – 7
499.6 Data error
499.7 Operator control/traversing error
499.1 = 1 SK ”IWset” Transfer data for “Set actual value” from the user 38.7 714 72
DB to the FM
499.2 = 1 SK ”NPVset” Transfer data for “Set zero point offset” from user 39.1 7141
DB to the FM
37.6 = 1 SK ”IWrü” Transfer “Cancel setting of actual value” to the 714
FM
37.2 = 1 SK ”SAvor” Transfer “Block advance” to the FM 7132 734
37.3 = 1 SK ”SArü” Transfer “Block return” to the FM
498.3 = 1 SK ”set” Transfer data for “Program selection” from the 39.5
user DB to the FM
498.4 = 1 SK ”set” Transfer data for “Teach-in” from the user DB to 39.7 711 735
the FM
498.2 = 1 SK ”set” Transfer data for “MDI block entry” from the user 38.3 7124 74
DB to the FM
499.0 = 1 SK ”set” Transfer data for “MDI block on-the-fly” from the 38.4 – 741
user DB to the FM
34.0 TF ”Servo en- To change “Servo enable”, transfer yes/no to the 723 761
able” FM
34.6 TF ”park. To change “Parking axis”, transfer yes/no to the
axis” FM

SK = Softkey, TF = Text field


1) The relevant code for the operating mode (BA) is to be entered in DBB16 of the user DB
2) Code = 254 in DBB17 of the user DB
3) User DB, DBB196 = 1, DBB197 from DBW500+1, DBB198 = 1, DBB199 = 1
4) User DB, DBB196 = 1, DBB197 from DBW500+1, DBB198 = 1, DBB199 = 4, DBD200 of DBD502
5) User DB, DBBX499.5 must be acknowledged with DBX515.7, DBX399.6 and DBX399.7 must be acknowl-
edged with DBX515.6

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 8-17
Human-machine Interface

Table 8-2 Analysis of the user DB by the user program, continued

OP 07/17 User program see PIC

Triggered by User
User DB, OP OP
Function DB,
DBX 07 17
DBX
514.6 = 1 SK ”Jog” Transfer data for “Jog” mode and “Jog” mode1) to 38.0 – 75
the FM
514.0 = 1 SK ”Control” Transfer data for “Control” mode and “Control” 38.1
mode1) to the FM
514.1 = 1 SK ”Refpt” Transfer “Reference point approach” mode1) to
514.2 = 1 SK ”SMR” the FM 38.22)
Transfer data for “Incremental relative” mode and
514.3 = 1 SK ”MDI” “Incremental relative” mode1) to the FM
514.4 = 1 SK ”AutoE” Transfer “MDI” mode1) to the FM
514.5 = 1 SK ”Autom” Transfer “Automatic single block” mode1) to the
FM
Transfer “Automatic” mode1) to the FM
35.6 TF ”Software To change “Disable software limit switch”, trans- 723 761
limit switch fer yes/no to the FM
37.5 = 1 off” Transfer “Restart axis” to the FM 723
TF ”Restart
37.1 = 1 axis” Transfer “Delete distance to go” to the FM –
TF ”Delete
distance to
go”
498.1 = 1 SK ”read” Read MD No. from the user DB, retrieve its value 3) 722 763
from the FM, and enter that value in the user DB 39.3
43.3
37.0 = 1 SK ”active” Transfer “Active MD” to the FM
498.0 = 1 SK ”set” Transfer MD No. and its value from the user DB 4)
to the FM 39.3
515.7 = 1 SK ”Res” Error acknowledgement “Res” in the FM 354 5) 73 77
(diagnostic interrupt)
515.6 = 1 SK ”Ack” Error acknowledgement “Ack” in the FM 354
(data error, operator control/traversing error)

SK = Softkey, TF = Text field


1) The relevant code for the operating mode (BA) is to be entered in DBB16 of the user DB
2) Code = 254 in DBB17 of the user DB
3) User DB, DBB196 = 1, DBB197 from DBW500+1, DBB198 = 1, DBB199 = 1
4) User DB, DBB196 = 1, DBB197 from DBW500+1, DBB198 = 1, DBB199 = 4, DBD200 of DBD502
5) User DB, DBBX499.5 must be acknowledged with DBX515.7, DBX399.6 and DBX399.7 must be acknowl-
edged with DBX515.6

FM 354 Servo Drive Positioning Module


8-18 6ES7 354-1AH01-8BG0
Human-machine Interface

Variables in the user DB


The Table below contains the signals/data that must be entered in the user DB via
the OP (FM interface).
For a detailed description of the structure of the user DB, see Section 6.5.

Table 8-3 Variables for the user DB

Variable
User-DB Description User-DB
type
DBB17 BYTE Velocity or voltage level 1, 2 [BP] –
BOOL Single functions Internal
DBX34.0 Servo enable Write re-
DBX34.6 Parking axis quest
DBX35.6 Disable software limit monitoring
BOOL Single commands Internal
DBX37.0 Activate machine data Write re-
DBX37.1 Delete distance to go quest
DBX37.2 Automatic block advance
DBX37.3 Automatic block return
DBX37.5 Restart
DBX37.6 Undo set actual value
DBD140 DINT Zero offset DBX39.1
DBD144 DINT Set actual value DBX38.7
DBD156 DWORD Setpoint for incremental dimension DBX38.2
DBD160 DWORD Speed level 1 DBX38.0
DBD164 DWORD Speed level 2
DBD168 DWORD Voltage/frequency level 1 DBX38.1
DBD172 DWORD Voltage/frequency level 2
DBB176 STRUCT MDI block DBX38.3
to
DBB195
DBB222 STRUCT MDI block on-the-fly DBX38.4
to
DBB241
DBB242 BYTE Program selection – program number DBX39.5
DBB243 BYTE Program selection – block number
DBB244 BYTE Program selection – direction
DBB250 BYTE Teach in – program number DBX39.7
DBB251 BYTE Teach in – block number
DBW500 WORD MD No. –
DBD502 DINT/ MD value –
relev. MD
DBB506 BYTE SM No. –

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 8-19
Human-machine Interface

8.3 Data block for status messages (DB-SS)

Overview
The following table lists the parameters/data that can be read out during operation.

Table 8-4 Parameters/data of the DB–SS (DB No. 1000)


Byte Variable Value Significance of the variables Comment
type
0...35 DB header
36...59 Internal header information
Off- Variable Value Significance of the variables Comment
set1) type
24 8 x BOOL Control signals Byte 0
25 8 x BOOL Control signals Byte 1
26 2 x BYTE Control signals Byte 2, 3
28 2 x BYTE Control signals Byte 4, 5
30 8 x BOOL Checkback signals Byte 0
31 8 x BOOL Checkback signals Byte 1
32 BYTE Checkback signals Byte 2
33 8 x BOOL Checkback signals Byte 3
34 BYTE Checkback signals Byte 4
35 8 x BOOL Checkback signals Byte 5
36 12 x BYTE Reserved
48 DWORD Velocity level 1
52 DWORD Velocity level 2
56 DWORD Control level 1
60 DWORD Control level 2
64 DWORD Setpoint for incremental value
68 STRUCT MDI block struc- MDI block
ture
88 16 x BOOL Single functions
90 16 x BOOL Single commands
92 DINT Zero offset
96 DINT Set actual value
100 DINT Set actual value on the fly
104 16 x BOOL Digital inputs/outputs
106 STRUCT MDI block struc- MDI block on the fly
ture
126 BYTE Program selection Program number

1) A variable in the S7 protocol is addressed by the DB No. and, depending on data format, by the DBB, DBW
and DBD No. (offset in DB), as well.

FM 354 Servo Drive Positioning Module


8-20 6ES7 354-1AH01-8BG0
Human-machine Interface

Table 8-4 Parameters/data of the DB–SS (DB No. 1000), continued


Off- Variable Value Significance of the variables Comment
set1) type
127 BYTE Program selection Block number
128 2 x BYTE Program selection Direction, free
130 4 x BYTE Request application data Application data 1-4
134 BYTE Teach In Prog. no.
135 BYTE Teach In Block number
136 DINT Reference coordinate
140 4 x DINT Free
156 DINT Actual position Basic operating data
160 DINT Actual velocity Basic operating data
164 DINT Residual travel Basic operating data
168 DINT Target position Basic operating data
172 DINT Sum of current tool offset Basic operating data
176 DINT Rotational speed, rotary axis Basic operating data
180 DINT Free
184 DINT Free
188 STRUCT NC block struct. Active NC block
208 STRUCT NC block struct. Next NC block
228 DINT Code application 1 Application data
232 DINT Code application 2 Application data
236 DINT Code application 3 Application data
240 DINT Code application 4 Application data
244 DINT Actual position on leading edge Length measurement/
inprocess measure-
ment
248 DINT Actual position on trailing edge Length measurement
252 DINT Length measurement value Length measurement
256 DINT Act. value at external block change
260 DINT DAC value/frequency Servicing data
264 DINT Encoder actual value Servicing data
268 DINT Error pulses Servicing data
272 DINT Kv-factor Servicing data
276 DINT Following error Servicing data
280 DINT Following error limit Servicing data
284 DINT s Overshoot/Switch readjustment in Servicing data
Reference Point Approach mode

1) A variable in the S7 protocol is addressed by the DB No. and, depending on data format, by the DBB, DBW
and DBD No. (offset in DB), as well.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 8-21
Human-machine Interface

Table 8-4 Parameters/data of the DB–SS (DB No. 1000), continued


Off- Variable Value Significance of the variables Comment
set1) type
288 DINT Approach time Te (ms)/drive con- Servicing data
stant Ta (ms) in OL Control mode
292 8 x DINT Free
324 BYTE Override Additional operating
data
325 BYTE Part program no.
326 BYTE Part program block no. Additional operating
data
327 BYTE No. of callup subroutine loops Additional operating
data
328 BYTE G90/91 Active Additional operat. data
329 BYTE G60/64 Active Additional operat. data
330 BYTE G43/44 Active Additional operat. data
331 BYTE Active D No. Additional operat. data
332 8 x BOOL Status messages 1 Additional operating
332.1 S Speed limitation to limit value data
from MD
332.2 S Limitation to "10 V
332.3 S Limitation of min. acceleration
or min. deceleration in effect
333 8 x BOOL Free
334 2 x BYTE Free
336 4 x 8 x BOOL Diagnostics, system-specific
340 4 x BYTE Diagnostics, channel-specific Identifier
344 2 x 8 x BOOL Diagnostics, channel-specific Channel error
346 4 x 8 x BOOL Free
350 2 x BYTE Error number DS 162 Operator/travel error
352 BYTE Free
353 BYTE Free
354 2 x BYTE Error number DS 163 Data error
356 BYTE Free
357 BYTE Free
358 2 x BYTE Error number DS 164 Operator control error
360 BYTE Free
361 BYTE Free
362 32 x BOOL Process interrupt

1) A variable in the S7 protocol is addressed by the DB No. and, depending on data format, by the DBB, DBW
and DBD No. (offset in DB), as well.

FM 354 Servo Drive Positioning Module


8-22 6ES7 354-1AH01-8BG0
Human-machine Interface

The control and checkback signals in Table 8-4 can be the following signals:

Bit 7 6 5 4 3 2 1 0
Byte
Control signals:
24 BFQ/ TFB
FSQ
25 AF SA EFG QMF R+ R– STP ST
26 BA
27 BP
28 OVERR
29
Checkback signals:
30 PARA DF BF/FS TFGS
31 PBR T-L WFG BL SFG
32 BAR
33 PEH FIWS SRFG FR+ FR– ME SYN
34 MNR
35 AMF

The following table describes the control and checkback signals in German and
English.

Table 8-5 Control and checkback signals

German English Description


Control signals
TFB TEST_EN Switch P bus interface to “Start-up”
BFQ/FSQ OT_ERR_A Acknowledge operator control and traversing errors
ST START Start
STP STOP Stop
R– DIR_M Negative direction
R+ DIR_P Positive direction
QMF ACK_MF Acknowledgement for M function
EFG READ_EN Read enable
SA SKIP_BLK Skip block
AF DRV_EN Drive enable

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 8-23
Human-machine Interface

Table 8-5 Control and checkback signals, continued

German English Description


BA MODE_IN Mode Code
Jog 01
Control 02
Reference point approach 03
Incremental relative 04
MDI 06
Automatic 08
Automatic single block 09
BP MODE_TYPE Operating parameters Code
Speed levels 1 and 2
Voltage levels 1 and 2
Incremental dimension
selection 1...100, 254
OVERR OVERRIDE Override
Checkback signals
TFGS TST_STAT Switching of P bus interface completed
BF/FS OT_ERR Operator control/traversing errors
DF DATA_ERR Data error
PARA PARA Channel initialized
SFG ST_ENBLD Start enable
BL WORKING Execution in progress
WFG WAIT_EI Waiting for external enable
T-L DT_RUN Dwell time running
PBR PR_BACK Reverse program scanning
BAR MODE_OUT Active mode
SYN SYNC Channel synchronized
ME MSR_DONE Measurement completed
FR– GO_M Negative travel
FR+ GO_P Positive travel
SRFG ST_SERVO Servo enable status
FIWS FVAL_DONE On-the-fly setting of actual value completed
PEH POS_RCD Position reached. Stop.
MNR NUM_MF M function number
AMF STR_MF M function modification

FM 354 Servo Drive Positioning Module


8-24 6ES7 354-1AH01-8BG0
Description of Functions 9
Chapter Overview

Section Section Header Page


9.1 Control and checkback signals 9-2
9.2 Operating modes 9-14
9.3 System data 9-37
9.4 System of measurement 9-60
9.5 Axis type 9-61
9.6 Encoders 9-64
9.7 Position controller 9-74
9.8 Digital inputs/outputs (Read request in the user DB, DBX43.4) 9-85
9.9 Software limit switches 9-88
9.10 Process interrupts 9-89

Summary
This chapter describes the functions of the FM 354.
By calling up the appropriate functions (FCs) you can activate these functions by
way of the user program.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-1
Description of Functions

9.1 Control and checkback signals

Overview
FC POS_CTRL transfers the control signals from the user DB to the FM and trans-
fers the checkback signals from the FM to the user DB.

Bit 7 6 5 4 3 2 1 0
Byte
Control signals:
14 BFQ/ TFB
FSQ
15 AF SA EFG QMF R+ R– STP ST
16 BA
17 BP
18 OVERR
19
Checkback signals:
22 PARA DF BF/FS TFGS
23 PBR T-L WFG BL SFG
24 BAR
25 PEH FIWS SRFG FR+ FR– ME SYN
26 MNR
27 AMF

FM 354 Servo Drive Positioning Module


9-2 6ES7 354-1AH01-8BG0
Description of Functions

9.1.1 Control signals

Overview
The axis is operated and controlled by means of control signals.
Table 9-1 describes the control signals and their functions.
Table 9-1 Control signals

Symbol
Name Function
English German
TEST_EN TFB Sw./over Interrupts communication with the user program, and switches over
P-bus the P bus interface for operation with the start-up user interface.
interface
OT_ERR_A BFQ/ Ac- ... resets an error message. Before acknowledging the error, correct
FSQ knowl- its cause.
edge
operato/
travel
error
START ST Start ... starts movement in Automatic, MDI and Reference-point approach
modes.
STOP STP Stop ... interrupts movement or processing of the program.
... cancels reference point approach.
DIR_M R– Direc- ... moves axis in negative direction.
tion mi- S In Jogging and Control modes, moves axis in negative direction
nus (level-dependent).
S Starts movement in negative direction in Incremental relative and
Reference-point approach modes.
S Specifies direction of movement for rotary axes in MDI and Auto-
matic modes.
DIR_P R+ Direc- ... moves axis in positive direction.
tion plus S In Jogging and Control modes, moves axis in positive direction
(level-dependent).
S Starts movement in positive direction in Incremental relative and
Reference-point approach modes.
S Specifies direction of movement for rotary axes in MDI and Auto-
matic modes.
ACK_MF QMF Ac- ... only “acknowledge-driven” during M function output (seemachine
knowl- data list in Table 5-4, MD32).
edge M ... acknowledges receipt of M function. Program sequence can be
function continued.
READ_EN EFG Read-in ... prevents read-in (processing) of the next block.
enable ... has effect only in Automatic mode.
The read-in enable is required in order to read in the next traversing
block during program execution.
SKIP_BLK SA Skip ... skips identified blocks in the program.
block ... has effect only in Automatic mode.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-3
Description of Functions

Table 9-1 Control signals, continued

Symbol
Name Function
English German
DRV_EN AF Drive ... enables movement.
enable When the signal is reset, a rapid deceleration of the movement
takes place.
On MD 37.15 = 0 program execution, or the movement, is canceled
and the residual distance is deleted.
On MD 37.15 = 1 machining resumes after emergency stop
S Rapid deceleration of the movement.
S On axis standstill FR+ or FR– = 0; BL = 1
– if the drive remains activated and the servo enable active, the
axis is held in position control mode.
– if the drive is deactivated, the user must activate “follow-up”.
This deactivates zero speed control (the axis can be pushed
away).
S If an error occurs in this state (e.g. if the user starts a movement
without a start enable, etc.), an error response is initiated, e.g. the
residual distance is deleted, BL = 0, (a new path default must be
defined).
MODE_IN BA Operat- Operating mode (see Section 9.2) Code
ing Jogging 01
mode Open-loop control 02
Reference point approach 03
Incremental relative 04
MDI 06
Automatic 08
Automatic single block 09
MODE_ BP Mode ... selects speed levels in Jogging mode.
TYPE parame- ... selects voltage levels in Control mode.
ter
... selects increment in Incremental relative mode
(value 1...100 or 254).
OVERRIDE OVERR Override ... affects response of traversing movement. Range: 0-255%
... override has no effect in Control mode
S Velocity override
Range: 0-255%
Speed adjusted by percentage
Example: Override doubled from 100% to 200%
v

200 %
vact
100 %
vprog

t
– speed v is doubled
– acceleration and deceleration values are not affected
vprog Override
vact =
100
The positioning time is not cut in half.

FM 354 Servo Drive Positioning Module


9-4 6ES7 354-1AH01-8BG0
Description of Functions

Table 9-1 Control signals, continued

Symbol
Name Function
English German
OVERRIDE OVERR Override S Time override
If you parameterize the “time override” function in MD37, there
are two ranges:
– range 100-255%: speed override operates as described
above
– range 0-100%: time override operative
Speed, acceleration and deceleration are changed in such a way
that the time necessary for the traversing movement is directly
correlated with the override value.
Example: Cut override in half, from 100% to 50%
v

100 % vprog

50 % vact

t
– speed v is cut in half
– acceleration and deceleration are quartered

vprog Override a Override2 t 100


vact = aact = tact =
100 1002 Override

Positioning time is doubled.


Taking the override into account as a time override presupposes
the following additional condition:
If a traversing movement consists of multiple positioning blocks
with block change on-the-fly (the axis does not stop between
blocks), changing the override value affects only the speed. Ac-
celeration
and deceleration are additionally affected only after the axis
comes
to a stop (e.g. reversal of direction).
Note:
Time override has effect only in the MDI and Automatic modes.

Note
For further functions, settings and commands concerning open-loop control, see
Section 9.3.2 and Section 9.3.3.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-5
Description of Functions

9.1.2 Checkback signals

Overview
The checkback signals indicate the processing status of the axis and report it to
the user program.
Table 9-2 describes the checkback signals and their functions.

Table 9-2 Checkback signals

Symbol
English Ger- Significance Function
man
TST_STAT TFGS Sw./over P Communication with the user program is not possible, since the
bus interface P bus interface has been switched over for operation with the
complete start-up tool.
OT_ERR BF/FS Operator/ ... signaled to the user if an operator-control error or travel error is
travel error pending (e.g. unallowed control signal has been set, (R+) and
(R–) set simultaneously) An error message causes the move-
ment to be canceled.
see Chapter 11
DATA_ERR DF Data error ... is reported to the user when a data error occurs.
see Chapter 11
PARA PARA Parameterize ... module parameterized. All machine data applicable for control
of an axis are present on the module.
ST_ENBLD SFG Start enable ... signals that the FM 354 is ready for positioning and output.
S “Start enable” is set:
– if no static stop or error is pending and the drive enable is
pending
– if the mode setting and mode checkback match (after
mode change)
– if no axis functions (including M output, dwell time) are
active, or after functions have been completed
– for further processing of a function interrupted with unpro-
grammed stop
– in Automatic mode, after M0, M2, M30 or at end of block
in Automatic single-block mode
S “Start enable” is deleted:
– if a function has been started and is active, or
– if a start condition is active (stat.)
– if there is an error and an unprogrammed stop
– in follow-up mode
S Without Enable Start, none of the functions that can be oper-
ated with Travel Plus, Travel Minus and Start can be exe-
cuted.

FM 354 Servo Drive Positioning Module


9-6 6ES7 354-1AH01-8BG0
Description of Functions

Table 9-2 Checkback signals, continued

Symbol
English Ger- Significance Function
man
WORKING BL Processing ... indicates that a function has been started with Start or Travel
in progress Plus/Minus, and is active.
S “Processing in progress” is set with:
– “Jogging”, “Control” mode during the movement up to
standstill after cancelation of R+, R–
– Reference-point approach mode, during approach until
reference point is reached
– “MDI”, “Incremental relative mode”, during the positioning
process or while functions of the MDI block are being pro-
cessed
– Automatic mode, during processing of a traversing pro-
gram until the end of the program.
S “Processing in progress” is deleted:
– by errors and restarts
– by mode changes.
– after axis standstill
WAIT_EI WFG Wait for ex- ... takes effect only if a digital input has been parameterized by
ternal enable means of MD34 (see Section 9.8.1).
Set: if the enable input has not yet been set or has been reset
when a movement has been activated.
DT_RUN T-L Delay time ... only active in Automatic and MDI mode.
running As soon as a traversing block with a dwell time has been pro-
cessed, (T-L) is output during the programmed time period.
PR_BACK PBR Processing in ... is set after a Start in Automatic mode if a program is being
reverse processed in reverse.
MODE_OUT BAR Active mode The selected mode is not fed back until it is internally active. For
a mode change, for example, a movement must be stopped be-
fore another mode can become active (does not apply to switch-
ing between Automatic and Automatic single-block modes).
SYNC SYN Synchronism ... module is synchronized (see Section 9.6.3)
Required for axis motion in modes:
S Incremental Relative
S MDI
S Automatic
MSR_DONE ME End of meas. ... signals an executed measurement (see Section 9.3.10)

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-7
Description of Functions

Table 9-2 Checkback signals, continued

Symbol
English Ger- Significance Function
man
GO_P FR+ Travel ... means the axis is traveling in the direction of increasing actual
plus values or in the direction of voltage output “+“ in OL control
GO_M FR– Travel Minus mode.
... means the axis is traveling in the direction of decreasing ac-
tual values or in the direction of voltage output “–“ in OL control
mode.
S As soon as an active travel movement is pending, the mes-
sages (FR+) or (FR–) are output depending on the traversing
direction. They can only be pending as alternatives.
S “Travel Plus“ or “Travel Minus“ is actuated at the start of the
acceleration phase and remains active until the axis comes
to a standstill or the POS_ROD target area has been
reached.
ST_SERVO SRFG Servo enable S Feedback of servo enable status after single function has
status been activated
S See also Section 9.3.2 ”Servo enable”
S See also Section 11.1, error reaction ”Everything OFF”
FVAL_DONE FIWS Set actual ... set Actual value on-the-fly is executed.
value on-the- The signal is reset when “Set actual value on-the-fly” is activated
fly complete (see Section 9.3.6).
NUM_MF MNR M function M command 0...99
number
STR_MF AMF Change M ... is indicated simultaneously with the M function number.
function S If M functions are programmed in a traversing block, their
output is signaled by setting “Change M function.”
S “Change M function” remains pending until:
– the specified time has expired, for time-controlled M func-
tions
– the user has acknowledged, for acknowledgment-con-
trolled M functions.

FM 354 Servo Drive Positioning Module


9-8 6ES7 354-1AH01-8BG0
Description of Functions

Table 9-2 Checkback signals, continued

Symbol
English Ger- Significance Function
man
POS_RCD PEH Position S When the preset target position is reached correctly, (PEH) is
reached, actuated, and remains in effect until the next axis movement.
Stop (“PEH”) S “Target position reached correctly” means that during ap-
proach of the actual value to target position, a defined toler-
ance (PEH tolerance) must not be exceeded during a defined
time (PEH time watchdog). If this is not the case, an error is
signaled and positioning is interrupted.
S (PEH) is actuated only in the following modes and cases:
– Reference-point approach: If the reference point has
been reached in full (including reference-point shift).
– “MDI”, “Incremental relative”: If the preset position has
been reached.
– Automatic: If a traversing block has been positioned in full

and the axis remains motionless until the next traversing


movement.
S It is not set if no synchronization is available yet.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-9
Description of Functions

9.1.3 General handling information

Overview
Before data/settings can be transferred to the FM 354, an operating mode must be
active (e.g. “Jogging” mode = 1 and MODE = 1). That means that communication
with the FM 354 has been initiated and the FM 354 has access to valid machine
data.

Operating modes Relevant Relevant Required data/


(codes) control signals checkback signals settings
Jogging (01) [R+], [R–], [STP], [AF], [BL], [SFG], [FR+], [FR–], Speed levels 1, 2
[OVERR], [BP] = 1 or 2 [SYN], [WFG] (user DB, DBX38.0)
Servo Enable
(user DB, DBX34.0)
Control (02) [R+], [R–], [STP], [AF], [BP] [BL], [SFG], [FR+], [FR–], Voltage levels 1, 2
= 1 or 2 [WFG] (user DB, DBX38.1)
Reference point ap- [R+], [R–], [ST], [STP], [AF], [BL], [SFG], [FR+], [FR–], Servo Enable
proach (03) [WFG], [SYN], [PEH] (user DB, DBX34.0)
[OVERR]
Incremental relative [R+], [R–], [STP], [AF], [BL], [SFG], [FR+], [FR–], Speed levels 1, 2
(04) [OVERR], [BP] = 1...100 for [WFG], [SYN], [PEH] (user DB, DBX38.0)
increment table or 254 Servo Enable
(user DB, DBX34.0)
Setpoint for incremen-
tal dimension
(user DB, DBX34.2)
(only if BP = 254; if
BP is = 1 to 100, the
relevant incremental
dimensions must be
parameterized
MDI (06) [ST], [STP], [AF], [QMF], [BL], [SFG], [FR+], [FR–], MDI block
[OVERR] [WFG], [SYN], [PEH], (user DB, DBX38.3)
[AMF], [MNR], [T-L] Servo Enable (user
DB, DBX34.0)
Automatic (08) [ST], [SA], [EFG], [STP], [BL], [SFG], [FR+], [FR–], Program selection
Automatic single block [AF], [QMF], [OVERR] [WFG], [SYN], [PEH], (user DB, DBX39.5)
(09) [AMF], [T-L], [PBR], (assuming that the
[MNR] relevant traversing
program was parame-
terized)
Servo Enable
(user DB, DBX34.0)

Error condition:
S Reported via BF/FS – acknowledgement with BFQ/FSQ
S Reported via DF – acknowledgement with next correct data transfer
S Reported via diagnostic interrupt – acknowledgement with “Restart”
(user DB, DBX37.5)

FM 354 Servo Drive Positioning Module


9-10 6ES7 354-1AH01-8BG0
Description of Functions

Hints to the user


Here are a few hints for starting a movement and about the response of the
FM 354 to a change of the status of the S7-300 CPU:
It is assumed that the FM 354 has been parameterized correctly.
S First a mode must be set. The servo enable must subsequently be set in order
to prevent the axis from “running away,”.
S Before starting a movement in any mode, the relevant data (e.g. speed levels)
must be transferred and the override must be > 0.
S It is only possible to start the movement when the start enable is set and the
enable input is set (if parameterized).
Enable Start is set if:
– No error occurred
– Mode is active
– No Stop is called
– Drive enable is set
S A static Stop signal prevents all movements or block processing.
S Response of the FM 354 to transition of the S7-300 CPU from RUN to STOP
state:
– As described for Restart (see Section 9.3.3)
– The digital outputs are switched off
– Interface to the user program is switched off
S Response of the FM 354 to transition of the S7-300 CPU from STOP to RUN
state:
A cold restart of the module is executed.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-11
Description of Functions

Module control
The following table lists the control signals used to start a movement.
Prerequisite: Drive enable [AF] = 1, Stop [STP] = 0,
Start enable [SFG] = 1

Mode Parameters Command /


Activation of movement
Signal state
Jogging (mode = 01) Velocity level R+, R– / R+ or R– with “Level” = 1
BP = 1 = level 1 Level (R+ and R– simultaneously error)
BP = 2 = level 2
Open-loop control Frequency level R+, R– / R+ or R– with “Level” = 1
(mode = 02) BP = 1 = level 1 Level (R+ and R– simultaneously error)
BP = 2 = level 2
Reference point ap- – Start, R+, R– Direction as in MD
proach / Edge R+ or R– = 0/1 or Start = 0/1
(mode = 03) (speed as in MD)
Incremental relative BP = 1...100 R+, R– / R+ = 0/1 or R = 0/1
(mode = 04) BP = 254 Edge (speed level 1)
MDI (mode = 06) – Start / Edge Start = 0/1 (R+, R– relevant only for rotary
axis with absolute measure specified for
direction selection)
Automatic – Start / Edge Start = 0/1 (according to program preset-
(mode = 08) ting)
Automatic single – Start / Edge Start = 0/1
block (mode = 09)

Stat. pending start condition


“Processing in progress” remains active after the end of machining and there is no
start enable as long as the start condition is not reset.

Switching edge
(e.g. R+, R–, Start,
according to mode)

Processing in progress
Start enable

Axis movement with


preset path

Preset path executed

FM 354 Servo Drive Positioning Module


9-12 6ES7 354-1AH01-8BG0
Description of Functions

The following table lists the control signals used to interrupt/terminate a movement.

Mode Interrupt move- Continue movement Interrupt/


ment end movement, Stop
Jogging (mode = 01) Stop = 1 or Stop = 0 or R+ or R– with “Level” = 0
Enable input1) = 0 Enable input1) = 1 or mode change
Drive enable = 02)
Control (mode = 02) Stop = 1 or Stop = 0 or R+ or R– with “Level” = 0
Enable input1) = 0 Enable input1) = 1 or mode change
Drive enable = 02)
Reference point ap- – – Stop = 0/1 or ref. received or
proach mode change or enable input1) = 0
(mode = 03) Drive enable = 02)
Incremental relative Stop = 1 or Stop = 0 or Position reached or mode change
(mode = 04) Enable input1) = 0 Enable input1) = 1, Drive enable = 02)
with R+ or R–
MDI (mode = 06) Stop = 1 or Stop = 0 or Position reached or “block” pro-
Enable input1) = 0 Enable input1) = 1, cessed or mode change
with Start = 0/1 Drive enable = 02)
Automatic Stop = 1 or Stop = 0 or Program end or mode change
(mode = 08) Enable input1) = 0 Enable input1) = 1, New program selected after stop
with Start = 0/1 Drive enable = 02)
Automatic single Stop = 1 or Stop = 0 or Program end or mode change
block Enable input1) = 0 Enable input1) = 1, New program selected after stop
(mode = 09) with Start = 0/1 Drive enable = 02)

1) Prerequisite: Digital input defined in MD34; see Section 9.8.1


2) if MD37.15 not defined, see Table 9-1 Control signal [AF]

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-13
Description of Functions

9.2 Operating modes

Overview
The following modes are available on the FM 354:
S Jogging (ER) Code 01
S Open-loop control (STE) Code 02
S Reference point approach (REF) Code 03
S Incremental relative (SMR) Code 04
S MDI (Manual Data Input) Code 06
S Automatic (A) Code 08
S Automatic single block (AE) Code 09

Selecting the mode


FC POS_CTRL is called up in order to transfer the operating mode (code), which
the user program entered in the user data block, to the FM 354.
The axis is controlled by enabling and disabling appropriate control signals.

Checkback signal for mode


When the specification is allowed, the FM 354 feeds back the specified mode to
the user program. If this checkback mode matches the specified one, the mode is
active.

Changing modes
Changing modes triggers an internal stop.
If a mode change is attempted while a traversing movement is in progress, the
modes are not switched until the axis comes to a stop. The mode checkback is
performed after the movement in the old mode is completed.
This does not apply to changes between Automatic and Automatic Single-Block
mode.

FM 354 Servo Drive Positioning Module


9-14 6ES7 354-1AH01-8BG0
Description of Functions

9.2.1 Jogging

Overview
In Jogging mode, axis traversing movements are specified by way of the direction
keys (R+ or R–) and by speed.

Velocity
Before the axis can be moved, speeds (velocities) 1 and 2 must first be transferred
to the FM 354 (user DB, DBX38.0).
You can choose between two mutually independent velocities (level 1 and level 2)
with the mode parameter (BP).
The velocity can also be controlled using the override and can be changed during
the movement.

Name Lower input limit Upper input limit Unit


Speed 10 500 000 000 MSR/min

MSR stands for measurement system raster (see Section 5.3.1)

Handling by the user


The table below gives you an overview of how to handle this mode.

Triggering of Level selection Speed


movement, Direc-
tion (R)

R+ or R– BP = 1 Value for speed level 1


“level-controlled” BP = 2 Value for speed level 2

Note
Please see also Section 9.1.3!

Control actions
Prerequisites:
S The FM 354 has been initialized.
S The mode has been selected and acknowledged.
S Drive Enable [AF] is = 1 (control signal in user DB, DBX15.7)
S Stop [STP] is = 0 (control signal in user DB, DBX15.1)
S Servo Enable (RF) is = 1 (user DB, DBX34.0)
S Speed levels have been transferred.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-15
Description of Functions

Table 9-3 Control actions for “Jogging” mode (examples)

Signal name Level Explanation


Control action 1, enable “Jogging” mode
Control signal:
Mode [BA] The user initiates a [BA] command.
Checkback signals:
Active mode [BAR] The module returns [BAR] and [SFG].
Start enable [SFG]

Control action 2, move axis – positive direction


Control signals:
Direction plus [R+] When [SFG] and [AF] are active, [R+] is actuated.
Drive enable [AF]
Checkback signals:
Travel plus [FR+] The axis cancels the [SFG] and outputs messages
Start enable [SFG] [BL] and [FR+]
Processing in progr. [BL]
Control action 3, deactivate axis – positive direction
Control signal:
Direction plus [R+] [R+] is canceled
Checkback signals:
Travel plus [FR+] When the axis has come to a standstill by way of the
Start enable [SFG] deceleration ramp, the [BL] and [FR+] messages are
canceled and [SFG] is activated.
Processing in progr. [BL]
Before the axis comes to a standstill, it is possible to
define a new direction “through start”.
Control action 4, move axis – negative direction
Control signals:
Direction minus [R–] [R–] is actuated in combination with velocity level 2.
Velocity level [BP]
Checkback signals: The axis travels at velocity level 2, and returns [BL]
Travel minus [FR–] and [FR–]. The [SFG] signal is canceled.
Processing in progr. [BL]
Control action 5, switch over set-up velocity
Control signal:
Velocity level [BP] A switchover from [level 2 to level 1] causes a dynamic
transition between velocity levels 1 and 2.

FM 354 Servo Drive Positioning Module


9-16 6ES7 354-1AH01-8BG0
Description of Functions

Table 9-3 Control actions for “Jogging” mode (examples), continued

Signal name Level Explanation


Control action 6, ambiguous direction command (special situation)
Control signals:
Direction plus [R+] [R+] is actuated while the axis is traversing with [R–].
Direction minus [R–]
Checkback signals: The ambiguous direction command causes the axis to
Traverse minus [FR–] stop and [BF/FS] to be output. [FR–] and [BL] are re-
set.
Processing in progr. [BL]
Start enable [SFG]
Operator/travel error [BF/
FS] Only when [R+] is canceled and the error is acknowl-
edged [BFQ/FSQ] is [SFG] actuated again and a new
Control signals:
direction command can be initiated.
Direction minus [R–]
Error acknowledgement
[BFQ/FSQ]
Checkback signal:
Start enable [SFG]
Control action 7, cancel drive enable (special situation)
Control signal:
Drive enable [AF] [AF] is deactivated during the traversing movement.
Checkback signals:
Traverse minus [FR–] The axis is stopped immediately. [FR–] and [BL] are
Processing in progr. [BL] canceled.

Control action 8, reset during axis motion (special situation)


Single command Restart is defined during the traversing movement.
“Restart”, (DBX37.5)
Checkback signals: The axis is stopped immediately. [FR+] and [BL] are
Travel plus [FR+] reset.
Processing in progr. [BL] If incremental encoders are used, resynchronization is
necessary. (SYN is cleared)
Control action 9, change direction
Control signal:
Direction plus [R+] Only when [R+] is canceled is [SFG] reactivated.
Checkback signal:
Start enable [SFG]
Control action 10, change mode
Control signal:
Mode [BA] A new [BA] 1 is preselected during the traversing
Checkback signal: movement.
Active mode [BAR] The axis is stopped by way of the deceleration ramp.
[FR+] and [BL] are reset.
Travel plus [FR+]
Processing in progr. [BL]

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-17
Description of Functions

9.2.2 Open-loop control

Overview
In Control mode, voltages of various magnitudes are specified and then used to
perform a controlled movement. The direction of movement is determined by way
of direction keys (R+ or R–).
The actual value of the axis is updated at the same time.
With the position control disabled (servo enable = 0), follow-up mode is active in
the ”Control” mode.

Note
A closed-loop controller, which may have been activated by a servo enable, will be
interrupted while the voltage is being output. After the Jogging signals R+ or R–
have died off, control is referred to the new actual value, and reinstated after the
axis comes to a stop, if the controller enable is still active when the axis stops.

Voltage values
The voltage is specified in the user DB, DBX38.1.
You can choose between two mutually independent voltage values (level 1 and
level 2) with the mode parameter (BP).

Name Lower input limit Upper input limit Unit


Volts 0 10 000 mV

The values for the voltage levels can be changed during movement.

Handling by the user


The table below gives you an overview of how to handle this mode.

Triggering of Level selection Speed


movement, Direc-
tion (R)

R+ or R– BP = 1 Value for voltage level 1


“level-controlled” BP = 2 Value for voltage level 2

Note
Please see also Section 9.1.3!

Control actions
The control and checkback signals are handled in the same way as in “Jogging”
mode.

FM 354 Servo Drive Positioning Module


9-18 6ES7 354-1AH01-8BG0
Description of Functions

9.2.3 Reference point approach

Overview
In Reference-point approach mode, the direction keys (R+ or R–) or Start are used
to position the axis to a point (reference-point coordinate MD16) specified in the
machine data.
The axis is thus synchronized (see Section 9.6.3).
The override is set to 100% for the reducing speed.
An active zero offset or Set actual value is reset.

Machine data
The following table lists the machine data that is of significance for reference-point
approach:

MD Designation Value/Meaning Comments/


Unit
16 Reference- –1,000,000,000...+1,000,000,000 [MSR]
point coordinate
18 Type of reference-point 0 = direction +, zero pulse right
approach 1 = direction +, zero pulse left
2 = direction –, zero pulse right
3 = direction –, zero pulse left
4 = direction +, RPS center
5 = direction –, RPS center
8 = direction +, RPS edge
9 = direction –, RPS edge
27 Reference- –1,000,000,000...+1,000,000,000 [MSR]
point shift
28 Referencing speed 10...vmax (MD23) [MSR/min]
29 Reducing speed 10...x (see Machine data list, Table 5-4) [MSR/min]
34 Inputs 5 = reference point switch for Assigned
reference point approach depending
6 = reversing switch for reference point on input
approach

MSR stands for measurement system raster (see Section 5.3.1)

Handling by the user


When an absolute encoder is used, only the reference point coordinate defined as
a fixed point on the axis is approached in Reference-point approach mode.
When an incremental encoder is used, the user has two options for recording the
reference point:
S with connected reference-point switch (RPS)
S without connected reference-point switch (RPS).

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-19
Description of Functions

With reference point switch (RPS)


It is necessary to connect the reference point switch (RPS) to a digital input and
parameterize it in MD34.
Triggering of Sequence of motions
Type of refer-
movement, Direc- (reference point offset = 0)
ence-point ap-
tion for synchro- VA – referencing velocity
proach
nization (R) VR – reducing velocity
1st situation
VA VR
zero pulse to
right of RPS

– +

zero pulse RPS Ref. pt.


2nd situation
VA VR
zero pulse to left
of RPS

– +

RPS
3rd situation
R+ (“edge-con- RPS centered VA
trolled”) or Start (no zero pulse VR
necessary)

– +

RPS
4th situation
VA
RPS edge
(no zero pulse VR
necessary)

– +

RPS
1st situation equals R+ 2nd situation
see above mirrored
2nd situation equals R+ 1st situation mir-
see above rored
3rd situation equals R+ 3rd situation
R– (“edge-con- RPS centered mirrored
trolled”) or Start (no zero pulse
necessary)
4th situation equals R+ 4th situation
RPS edge mirrored
(no zero pulse
necessary)

FM 354 Servo Drive Positioning Module


9-20 6ES7 354-1AH01-8BG0
Description of Functions

When crossing the RPS, a signal length of ∆t w 2@FM cycle must be assured!

Using a reversing switch


If it is possible for the axis to be “behind” the reference point switch when you start
reference point approach, a reversing switch can be installed at the end of the axis
in the approach direction, in order to reverse the axis in the direction of the refer-
ence point switch.
On axis movements with referencing feed, a signal length of ∆t w 2@FM
cycle must be assured for the reversing switch!
Example

Axis position Approach direction from MD18

RPS Reference point Reversing Emergency


switch limit switch

The value for the reference-point shift (MD27) is traveled after the synchronization
point is reached.

Without reference-point switch (RPS)


The following table describes how a reference can be recorded without a refer-
ence-point switch.

Recording of syn- Sequence of movements


chronization
R+, R– 1. Instantaneous position is defined as reference point (reference-
or Start point coordinate).
2. Value for reference-point shift is traveled.

Note
Please see also Section 9.1.3!

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-21
Description of Functions

Control actions
Prerequisites:
S The FM 354 has been initialized.
S The mode has been selected and acknowledged.
S Drive Enable [AF] is = 1 (control signal in the user DB, DBX15.7)
S Stop [STP] = 0 (control signal in the user DB, DBX15.1)
S Servo Enable (RF) is = 1 (user DB, DBX34.0)

Table 9-4 Control actions for “Reference point approach” mode (examples)

Signal name Level Explanation


Control action 1, enable “Reference point approach” mode
Control signal:
Mode [BA] The user initiates a [BA] command.
Checkback signals:
Active mode [BAR] The module returns [BAR] and [SFG].
Start enable [SFG]

Control action 2, move axis – positive direction


Control signal:
Direction plus [R+] When [SFG] is active, [R+] or [Start] are actuated, for
Checkback signals: example.
Travel plus [FR+] The axis cancels [SFG], outputs the [BL] and [FR+]
messages and travels here in the positive direction
Start enable [SFG]
(defined in MD).
Processing in progress
An existing synchronization is reset.
[BL]
Synchronization [SYN]
Control action 3, reference point switch (RPS) reached
RPS When the RPS is reached, the velocity is reduced. The
Encoder zero marker encoder is synchronized when the zero marker is de-
tected. The axis is positioned by traversing through the
Checkback signals:
reference point offset to the reference point (the direc-
Travel plus [FR+] tion is reversed if necessary).
Travel minus [FR–]
Synchronized [SYN]

Control action 4, approach reference point


Checkback signals: When reference point is reached.
Travel minus [FR–] [FR–] is canceled.
Position reached, stop [PEH] is set.
[PEH] [BL] is also canceled.
Processing in progress [SFG] is set.
[BL]
Start enable [SFG]

FM 354 Servo Drive Positioning Module


9-22 6ES7 354-1AH01-8BG0
Description of Functions

Table 9-4 Control actions for “Reference point approach” mode (examples), continued

Signal name Level Explanation


Control action 5, ambiguous direction command (special situation)
Control signals:
Direction plus [R+] [R+] is defined although [R–] is active.
Direction minus [R–]
Checkback signals:
Travel minus [FR–] The ambiguous direction command causes the axis to
stop. [FR–] and [BL] are canceled, and an error is out-
Processing in progress
put.
[BL]
Control signals:
The [SFG] does not reappear until [R+] and [R–] have
Direction plus [R+]
been canceled].
Direction minus [R–]
Checkback signal:
Start enable [SFG]
Control action 6, cancel servo enable (special situation)
Single function
“Servo Enable” (DBX34.0) The “servo enable” is deactivated during the traversing
Checkback signals: movement.
Operator control/travel er-
ror [BF/FS] The axis is stopped immediately and outputs an error.
Travel minus [FR–] [FR–] and [BL] are canceled.
Processing in progr. [BL]
Control signal:
Acknowl. operator control/ When the error is acknowledged, the error message is
travel error [BFQ/FSQ] canceled and the start enable is activated.
Checkback signals:
Start enable [SFG]

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-23
Description of Functions

9.2.4 Incremental relative

Overview
In the Incremental Relative mode it is possible to execute single positionings over
relative distances using user-definable increments.
The traversing movement is triggered with the direction keys (R+ and R–).

Defining the position


The options available for defining the increment with the mode parameter are:
S Via the user program by defining a position for incremental mode
(user DB, DBX38.2)
The setpoint for the incremental dimension must be entered in the AW-DB,
DBD156, before the write order is initiated.
S Using the increment table; see Section 5.3.2
Speed level 1 (user DB, DBX38.0, see Section 9.2.1) is used as speed setpoint,
and can be modified while the movement is in progress.
On-the-fly position changes (e.g. changing of the position setpoint during the
course of a movement) is not possible.

Handling by the user


The table below gives you an overview of how to handle this mode.

Triggering of Increment selection Position,


movement, Direc- Distance to be traveled
tion (R)
BP = 254 in accordance with the setpoint
for incremental dimension
R+ or R– (user DB, DBX38.2)
BP = 1...100 as in SM table (DB-SM)

Position setting

Name Lower input limit Upper input limit Unit


Increment 0 1 000 000 000 MSR

MSR stands for measurement system raster (see Section 5.3.1)


Note the following when interrupting a movement with “Stop”:
S To continue movement in the same direction - the residual distance is pro-
cessed with the appropriate direction key.
S To continue movement with ”delete distance to go” (user DB, DBX37.1), the
remaining distance to go is deleted and the incremental dimension is again trav-
eled (provided the incremental dimension was not changed).
S To position in the opposite direction - the residual distance is deleted automati-
cally.

FM 354 Servo Drive Positioning Module


9-24 6ES7 354-1AH01-8BG0
Description of Functions

Note
Please see also Section 9.1.3!

Control actions
Prerequisites:
S The FM 354 has been initialized.
S The mode has been selected and acknowledged.
S The Drive Enable [AF] is = 1 (control signal in the user DB, DBX15.7)
S Stop [STP] = 0 (control signal in the user DB, DBX15.1)
S The Servo Enable (RF) is = 1 (user DB, DBX34.0)
S Speed levels have been transferred.
S The axis is synchronized.

Table 9-5 Control actions for “Incremental relative” mode (examples)

Signal name Level Explanation


Control action 1, enable “Incremental relative” mode
Control signal:
Mode [BA] The user initiates a [BA] command.
Checkback signals:
Active mode [BAR] The module returns [BAR] and [SFG].
Start enable [SFG]

Control action 2, define position


Transfer incremental di- When the incremental dimension has been transferred
mension (DBX38.2) and selected, [R+] can be specified.
Select increment (254)
Control signal:
Direction plus [R+]
Checkback signals:
e.g. Travel plus [FR+]
Start enable [SFG] The axis cancels the [SFG] and outputs messages
Processing in progress [BL] and [FR+]
[BL]

e.g. Travel plus [FR+] When the defined position has been reached, the axis
Processing in progress enables [PEH] and checkback signals [FR+] and [BL]
[BL] are reset.
In the ”Incremental mode relative”, [SFG] is already set
Position reached, stop
when the interpolator is ready (setpoint coincidence
[PEH]
reached). [BL] continues to be present if a new Start
([R+] or [R–] has been provided before [PEH] is
reached.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-25
Description of Functions

Table 9-5 Control actions for “Incremental relative” mode (examples), continued

Signal name Level Explanation


Control action 3, stop during positioning
Control signal: If Stop is enabled during positioning, the axis stops.
Stop [STP] [FR–] is reset, and [SFG] is activated. [PEH] is not
output, since positioning is not complete.
Checkback signals:
Before the axis comes to a standstill, it is possible to
Travel minus [FR–]
define a new direction “through start”.
Start enable [SFG]
Control action 4, error during traversing movement
Checkback signals: The axis moves.
Travel plus [FR+] An error is output during the traversing movement.
Processing in progress [FR+] and [BL] are canceled, and [BFQ/FSQ] is en-
[BL] abled.
Control signal:
Acknowledge operator
control/travel error [BFQ/
FSQ] When the error has been acknowledged, the start en-
Checkback signals: able is activated. The movement can be restarted with
Start enable [SFG] [R+].
Control signal:
Direction plus [R+]
Checkback signals: [FR+] and [BL] are activated.
Travel plus [FR+] [SFG] is canceled.
Processing in progress
[BL]
Control action 5, change mode
Control signal:
Mode [BA] [BA] is deactivated during the traversing movement.
Checkback signals:
Active mode [BAR] The axis is stopped by way of the deceleration ramp.
Travel plus [FR+] [FR+] and [BL] are reset.
Processing in progress
[BL]

FM 354 Servo Drive Positioning Module


9-26 6ES7 354-1AH01-8BG0
Description of Functions

9.2.5 MDI (Manual Data Input)

Overview
In the MDI mode it is possible to execute single positionings by way of traversing
blocks. These traversing blocks are provided by the user program.
The MDI block and MD block on-the-fly have an identical block structure.

MDI block
The structure of the MDI block is identical to that of the traversing blocks (see
Chapter 10 resp. Section 9.3.12) except that it has neither a program number nor a
block number.
The user program passes the “MDI block” (user DB, DBX38.3) to the FM 354, and
the block can then be executed. The block can be executed repeatedly, since it is
stored internally. The feedrate is override-dependent.
The MDI block remains in effect until it is overwritten with a new MDI block. A new
block can be transmitted while another block is being processed.

Table 9-6 MDI block (see Chapter 10 for command structure)

Name Lower input Upper input Unit


limit limit
Position X / –1,000,000,000 + 1,000,000,000 MSR from MD7
Dwell time t 2 100,000 ms
Speed F 10 500 000 000 MSR from MD7/min
G function group 1 G04 Dwell time
G90 Absolute

measure
G91 Chain measure
G function group 2 G30 100%
Override
G31 10% –
Acceleration/
to
Deceleration
G39 90%
M function group 1, 2, 3 M1...17
User func-
M19...96
tions
M99
M97, 98 Change signal –
programmed as digital
output
M2, M30 Not allowed

MSR stands for measurement system raster (see Section 5.3.1)


For rotary axes with absolute programming, the commands [R+], [R–] are defined
as direction commands. They must be available before positioning starts.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-27
Description of Functions

MDI block on-the-fly


The MDI block currently being processed is canceled when the user program out-
puts an “MDI block on-the-fly” (user DB, DBX38.4).
Transfer of “MDI block on-the-fly” interrupts the active “MDI block”. The new block
is executed immediately without “Start”.
The MDI block on-the-fly is not saved in the FM 354.
With software version 3.6 of the FM 354 and higher, the error ”Data cannot be
accepted at the time of transfer” (Class 4/No.1) is signaled when ”MDI block flying”
is provided and [BL] has already been reset or [PEH] =1.

Block structure
The following table shows the block structure of the MDI block.
X/t Position/dwell time programmed (fills in value 1)
G1...G2 G function group 1...2
M1...M3 M function group 1...3
F Speed programmed (fills in value 2)

Example1) Byte Data format Bit


7 6 5 4 3 2 1 0
0 0 Byte 0
0 1 Byte 0
Bits 0, 1, 4 set 2 8 bits 0 0 0 X/t 0 0 G2 G1
Bit 0 set 3 8 bits 0 0 0 0 M3 M2 M1 F
90 4 Byte G-function1
30 5 Byte G-function2
0 6 Byte 0
0 7 Byte 0
100,000 8 DINT 32-bit value 1
5,000 12 DINT 32-bit value 2
0 16 Byte M-function 1
0 17 Byte M-function 2
0 18 Byte M-function 3
0 19 Byte 0
1) Traversing block with absolute dimensions (G90), an end position of 100,000
DSG as per MD7, and a speed of 5,000 DSG/min.

Note:
When the assignment bit (byte 2 and byte 3) is not set, the associated values must
be deleted.

FM 354 Servo Drive Positioning Module


9-28 6ES7 354-1AH01-8BG0
Description of Functions

Handling by the user


The table below gives you an overview of how to handle this mode.

Triggering of movement Type of movement


as defined by “MDI block”
Start
(user DB, DBX38.3)
“MDI block on-the-fly” transmitted as defined by “MDI block on-the-fly”
to the FM 354 (user DB, DBX38.4)

Note
Please see also Section 9.1.3!

Control actions
Prerequisites:
S The FM 354 has been initialized.
S The mode has been selected and acknowledged.
S Drive Enable [AF] is = 1 (control signal in user DB, DBX15.7)
S Stop [STP] is = 0 (control signal in user DB, DBX15.1)
S Servo Enable (RF) is = 1 (user DB, DBX34.0)
S Axis is synchronized.

Table 9-7 Control actions for “MDI” mode (examples)

Signal name Level Explanation


Control action 1, define position
Transfer MDI block When the MDI block has been transferred, [ST] can be
(DBX38.3) initiated.
Control signal:
Start [ST]
Checkback signals:
e.g. Travel plus [FR+] The axis cancels the [SFG] and outputs messages
Start enable [SFG] [BL] and [FR+]
Processing in progr. [BL]

e.g. Travel plus [FR+] When the defined position has been reached, the axis
enables [PEH]; [SFG] and checkback signals [FR+]
Processing in progr. [BL]
and [BL] are reset.
Position reached, stop
[PEH]
Control action 2, change position during positioning
Transfer MDI block on- If a new “MDI block on-the-fly” is transferred during
the-fly (DBX38.4) positioning, the current positioning operation is can-
Checkback signals: celed immediately, and the new positioning operation is
started on-the-fly. In this case, for example, this causes
Travel plus [FR+]
the direction to be changed from [FR+] to [FR–].
Travel minus [FR–]

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-29
Description of Functions

Table 9-7 Control actions for “MDI” mode (examples), continued

Signal name Level Explanation


Control action 3, stop during positioning with new start signal for resumed positioning
Control signal: If Stop is enabled during positioning, the axis stops.
Stop [STP] [FR–] is reset, and [SFG] is activated. [BL] remains
active and [PEH] is not output, since positioning is not
Checkback signals:
complete.
Travel minus [FR–]
Start enable [SFG]
Control signal:
If [ST] is initiated again, [FR–] and [SFG] are reset and
Start [ST] positioning is completed.
Checkback signals: Before the axis comes to a standstill, it is possible to
Travel minus [FR–] define a new direction “through start”.
Start enable [SFG]
Control action 4, stop during positioning with new start signal and new MDI block
Control signal: If Stop is enabled during positioning, the axis stops.
Stop [STP] [FR+] is reset, and [SFG] is activated.
Checkback signals:
Travel plus [FR+] When a new MDI block has been transferred, [ST] is
enabled again. “Delete residual path” is also enabled.
Start enable [SFG]
Transfer MDI block
(DBX38.3)
Transfer “delete residual
path” (DBX37.1) The axis deletes the residual path of the old positioning
Control signal: operation, and starts executing the new traversing
block.
Start [ST]
Checkback signals:
[FR–] is enabled, and [SFG] is reset.
Travel minus [FR–]
Note:
If no new “MDI block” is transferred, execution of the
current “MDI block” is repeated from the start.
Without “delete residual path”, the interrupted position-
ing operation would be continued (see control action 3)

FM 354 Servo Drive Positioning Module


9-30 6ES7 354-1AH01-8BG0
Description of Functions

9.2.6 Automatic

Overview
In the Automatic mode (following-block mode), the FM 354 processes traversing
programs autonomously. These programs are created with “Parameterize FM 354”
(see Chapter 5, 5.3.4) and stored as a data block. The traversing programs contain
information about movement sequences and outputs (see Chapter 10).

Program selection
Programs are selected (user DB, DBX39.5) by way of the user program, by speci-
fying a program number and an optional block number, as well as the direction of
machining. A program can be selected only when other programs have been inter-
rupted or terminated or at the start of a program.
A selected program remains active until it is inactivated by selecting program num-
ber = 0, or overwritten by selecting another program.
If modifications are made to a preselected program, including the subprogram, pre-
selection of the program is canceled. You must then select the program again. A
modification can be made to a program when BL = 0 (start of program/end of pro-
gram) and on Stop.

Triggering Select program Type of movement


of move- (according to programmed blocks)
Block Processing
ment
No. direction
0 forward Start at beginning of program, process by as-
cending block number
0 reverse Start at end of program, process by descending
block number
Start
e.g. 30 forward Block search forward to block No. 30, by as-
cending block number
e.g. 30 reverse Block search in reverse to block No. 30, by de-
scending block number
1. Automatic block search forward to interrup-
Start with tion point
automatic
2. Positioning to interruption point (if a move-
block forward
ment was performed in another mode)
search for-
ward 3. Process the interrupted block and continue
the program
1. Automatic block search in reverse to inter-
Start with ruption point
automatic
2. Positioning to interruption point (if a move-
block reverse
ment was performed in another mode)
search in
reverse 3. Process the interrupted block and continue
the program

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-31
Description of Functions

User DB allocation

Data format Significance


Byte 0 Program number
Byte 1 Block number
Byte 2 Direction of machining: 0 = process forward
1 = process in reverse

Forward processing
The program processes the block numbers in ascending order.
Processing begins at Start, with the first block (specified block number = 0).
If processing is to begin at some other point of the traversing program, specify the
desired block number. Processing will take place by searching forward to this
block, then processing forward until the program end command is recognized.

Backward processing
The program processes the block numbers in descending order.
Processing begins at Start, with the last block (specified block number = 0).
If processing is to begin at some other point of the traversing program, specify the
desired block number. Processing will take place by searching back to this block,
then processing in reverse until the program beginning is recognized.

Note
If reverse processing is to execute the same sequence of movements as the for-
ward movement, the effects of the corresponding commands must be taken into
account in the programming. For example:
S M outputs should be written separately in a block;
note M output (MD32) and G60/G64.
S Note change between G60/G64 and G90/G91.
S Note start and end of tool offsets.
S M18 is not executed.
S M02 and M30 at the end of the program are not processed.

FM 354 Servo Drive Positioning Module


9-32 6ES7 354-1AH01-8BG0
Description of Functions

Block advance
The program is processed to the end point of the target block, including tool offset.
M commands and dwell times are output and the traversing movements are sup-
pressed.
When processing traversing programs with a forward block search, there are a
number of special cases:
S The external forward block search (G50) is not executed.
S Continuous travel with functions to set (G88, 89) or delete (G87) an actual
value on-the-fly is not executed.
S The blocks under G50, G87, G88, G89 (in the processing direction) should con-
tain a path in absolute coordinates.

Block return
Similar to block advance

Automatic block advance/backward


Automatic block advance/backward means that, after the interruption of an active
automatic program (by an operating mode change), you can continue execution
from this point of interruption in the appropriate direction of processing.
With forward block search, the interrupted program must previously have been go-
ing in the forward direction.
With block search in reverse, the interrupted program must previously have been
going in the reverse direction.
The command for automatic forward or reverse block search is evaluated in the
FM 354 at Start, and a forward or reverse block search to the interruption point is
executed in the ”Jog” mode at the velocity of stage 1. Positioning to the interruption
point takes place (if positioning has taken place previously in some other mode),
and then the interrupted block is processed, including any required output.

Control actions
Prerequisites:
S The FM 354 has been initialized.
S The mode has been selected and acknowledged.
S Drive Enable [AF] is = 1 (control signal in user DB, DBX15.7)
S Stop [STP] is = 0 (control signal in user DB, DBX15.1)
S Servo Enable (RF) is = 1 (user DB, DBX34.0)
S Axis is synchronized.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-33
Description of Functions

Table 9-8 Control actions for “Automatic” mode (examples)

Signal name Level Explanation


Control action 1, Automatic/Automatic single block mode
Control signals:
Mode [BA] The user initiates [BA] and [EFG].
Read-in enable [EFG]
Checkback signals:
Active mode [BAR] The module returns [BAR] and [SFG].
Start enable [SFG]
Control action 2, positioning by program selection
Program selection When [SFG] appears, the program can be activated by
(DBX39.5) [ST] when [EFG] is active.
Control signal:
Start [ST]
Checkback signals:
Travel plus [FR+] or Travel Processing commences, e.g. with a positioning opera-
minus [FR–] tion. [FR+] or [FR–] and [BL] are activated. [SFG] is
reset.
Start enable [SFG]
Processing in progress
[BL]
Control action 3, M function output
Checkback signals: 2nd M command If M function output is acknowledgement-driven, for
Change M function [AMF] example, the user program can continue to process
the [MNR] when [AMF] appears.
M function number [MNR]
Control signal:
M function output is complete. [QMF] acknowledges
Acknowledge M function
the M function, and [AMF] and [MNR] disappear.
[QMF]

Control action 4, M function output and positioning


Control signal: Block with M output (same as control action 3) and
Acknowledge M function position is started.
[QMF] The program is resumed on completion of the M func-
Checkback signals: tion output. [FR+] and [FR–] are deactivated and [PEH]
is reset.
Position reached, stop
[PEH]
Travel plus [FR+] or Travel
minus [FR–]

FM 354 Servo Drive Positioning Module


9-34 6ES7 354-1AH01-8BG0
Description of Functions

Table 9-8 Control actions for “Automatic” mode (examples), continued

Signal name Level Explanation


Control action 5, traversing block with dwell
Checkback signals: During processing of a traversing block with dwell, the
Travel plus [FR+] or Travel dwell time t0 [T-L] and [PEH] are output.
minus [FR–]
Dwell time running [T-L]
Position reached, stop
[PEH] t0

Control action 6, cancelation of the read-in enable during program execution (special situation)
Control signal: If [EFG] is canceled during program execution, the
Read-in enable [EFG] current block is processed up to the end, and program
execution is then suspended.
Checkback signals:
[FR+] and [FR–] are reset.
Travel plus [FR+] or Travel
minus [FR–] [PEH] is actuated.
Position reached, stop
[PEH]
Control action 7, resume program execution after read-in enable (special situation)
Control signal: The program resumes on [EFG].
Read-in enable [EFG]
Checkback signals:
Travel plus [FR+] or Travel [FR+] and [FR–] are reset.
minus [FR–] [PEH] is reset.
Position reached, stop
[PEH]
Control action 8, stop during positioning with new start signal for resumed positioning
(special situation)
Control signals: Interrupt with Stop
Stop [STP] [FR+] is cleared when the axis comes to a standstill,
Start [ST] and [SFG] is enabled (if Stop is not active). [PEH] re-
mains cleared, since the defined position has not yet
Checkback signals:
been reached.
Position reached, stop
Start clears [SFG] and enables [FR+] again.
[PEH]
[BL] remains enabled.
Travel plus [FR+]
Before the axis comes to a standstill, it is possible to
Start enable [SFG]
restart “through start”.
Processing in progr. [BL]
Control action 9, end of program reached
Checkback signals: The end of the program is indicated by the enabling of
Travel plus [FR+] or [PEH], output of M2, M30 and resetting of [BL].
Travel minus [FR–]
Processing in progress
[BL]
Position reached, stop
[PEH]
M function number [MNR]
Start enable [SFG]

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-35
Description of Functions

Table 9-8 Control actions for “Automatic” mode (examples), continued

Signal name Level Explanation


Control action 10, delete start signal and residual path (special situation)
Control signal: If “delete residual path” is also preselected on [ST], the
Start [ST] block interrupted by Stop is not executed up to the
end, but the next block is started immediately.
Transfer “delete residual
path” (DBX37.1)
Control action 11, positioning for rotary axis (special situation)
Control signals: If the axis is operated as a rotary axis, the FM always
Direction plus [R+] or attempts to select the shortest path during positioning.
direction minus [R–] This direction preference can be suppressed by speci-
fying [R+] or [R–].
Start [ST]
Control action 12, deactivate operating mode during program execution (special situation)
Control signal: If a new operating mode is selected during active pro-
Mode [BA] gram execution, the axis is stopped by way of the de-
celeration ramp.
Checkback signals:
[FR+] or [FR–] and [BL] are reset.
Old mode [BAR]
Travel plus [FR+] or
Travel minus [FR–]
Processing in progress
[BL]
New mode [BAR]

9.2.7 Automatic single block

Overview
Functions, same as “Automatic” mode
Whereas in “Automatic” mode the FM 354 automatically starts processing the next
block after completing a given block, in “Automatic single-block” mode the axis
waits for a new Start signal after processing each block that contains a traversing
path, dwell time or M command (except for blocks with G50, G88 or G89).
You can change between Automatic single-block and Automatic mode at any time,
without stopping the movement or interrupting the output.

FM 354 Servo Drive Positioning Module


9-36 6ES7 354-1AH01-8BG0
Description of Functions

9.3 System data

Overview
This chapter describes settings and functions that apply in multiple modes, and
that are likewise necessary in order to control and operate the FM 354, and data of
the FM available for checkback messages.
S Modify parameters/data (Write request in user DB, DBX39.3), Page 9-38
S Single functions (user DB, DBB34 and 35), Page 9-42
S Single commands (user DB, DBB36 and 37), Page 9-45
S Zero offset (Write request in user DB, DBX39.1), Page 9-48
S Set actual value (Write request in user DB, DBX38.7), Page 9-50
S Set actual value on-the-fly (Write request in user DB, DBX39.0), Page 9-51
S Request application data (Write request in user DB, DBX39.6), Page 9-52
S Teach-in (Write request in user DB, DBX39.7), Page 9-53
S Set reference point (Write request in user DB, DBX38.6), Page 9-53
S Measured values, Page 9-54
S Basic operating data (Read request in user DB, DBX42.0), Page 9-56
S Active NC block (Read request in user DB, DBX42.1),
next NC block (Read request in user DB, DBX42.2), Page 9-57
S Application data (Read request in user DB, DBX43.6), Page 9-58
S Actual value block change (Read request in user DB, DBX42.3), Page 9-58
S Service data (Read request in user DB, DBX42.4), Page 9-58
S Additional operating data (Read request in user DB, DBX43.5), Page 9-59
S Parameters/data (Read request in user DB, DBX 43.3), Page 9-59

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-37
Description of Functions

9.3.1 Modify parameters/data (Write request in user DB, DBX39.3)

Overview
You can use this function to modify parameters and data in the FM 354 data blocks
or to define parameters and data which can then be read out with a Read request
(user DB, DBX43.3) (see Section 9.3.17).

Structure of Write request


The following table shows which parameters or data can be changed or read by
setting the indicated codes.

Addr. in Data Sym-


Description
user DB format bol
196 Byte DB type 1 = MD 2 = SM 3 = TO 4 = NC (travers-
type ing program)
197 Byte data Info 1 MD No. SM No. TO No. (1...20) Progr. No.
number (5...45) (1...100) (1...199)
198 Byte number Info 2 Number of Number of 0 = Tool offset Block No.
of data MDs, con- SMs, con- complete (1...255)
secutive secutive 1 = Tool length
(1...5) (1...5) only
2 = Wear value
abs. only
3 = Wear value
add. only
199 Byte job type 1 = Read job parameters
2 = Write parameters
4 = Write parameters and save retentively
200 ... de- data S MD: Data format of machine data see Table 5-4 or
219 pends array S SM: Data format of increments see Table 5-5 (DWORD) or
on type
S WK: Data format of tool offset see Table 5-6 (DINT) or
S NC: Block format see Section 9.3.12 “Active NC block”

Example 1
The software limit switches (MD21, MD22) for the axis are to be set to the values
100 mm and 50,000 mm. These values are to remain in effect only until the unit is
shut down.
DB type =1
data number = 21
number of data =2
job type =2
data array
Byte 200 to 203 = 100,000 (MD21, DINT data format)
Byte 204 to 207 = 50,000,000 (MD22, DINT data format)
Bytes from 208 on =0
For activation of the machine data, see Section 9.3.3

FM 354 Servo Drive Positioning Module


9-38 6ES7 354-1AH01-8BG0
Description of Functions

Notes
Please note the following when changing the parameter data:
S Machine data
Machine data can always be modified. Once you have modified the machine
data, the machine data have to be reactivated (for single command, see Sec-
tion 9.3.3).
S Increments
Modifications can be made in all operating modes (even in “Incremental rela-
tive” mode) during movement. The modifications of the increments must always
be complete before a new movement is started in “Incremental relative” mode.
If this is not the case, the error message “incremental dimensions do not exist”
is output Cl. 2/No. 13.
S Tool offset data
Modifications can be made in all operating modes and during movement. If
modifications are made during starting or at block transitions when the tool
compensation is active (internal access to offset values), the error message
“tool offset value does not exist” is output Cl.3/No.35.
S Traversing programs
– Programs which are not selected can always be modified.
– If modifications are made to a preselected program, including the subpro-
gram, preselection of the program is canceled. You must then select the pro-
gram again. A modification can be made to a program when BL = 0 (start of
program/end of program) and on Stop.
Delete block: Specify the program no. and the block no. in the “data
field”. The other data/bits must not be assigned.
Insert block: The block number does not exist in the
selected program. The contents should be entered in
accordance with the “block format”.
Modify block: The block with the corresponding block number is
overwritten with the contents in accordance with
“block format”.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-39
Description of Functions

Example 2
Procedure for changing the actual value and the velocity in block 10 of traversing
program 1.
1. Submit job request to read the block. Enter the following values in the user DB:
DB type = 4
Number = 1
Number of data = 10
Job type = 1
Data array = 0
2. Set Write request (user DB, DBX39.3).
3. Following termination of the Write request (one cycle later), read out the block
by setting the Read request (user DB, DBX43.3).
4. Save the data read out from DBB 446 to 469 of the user DB in DBB196 to 219.
5. Enter the actual value in data array DBB208 to 211 in the user DB (data type
DINT).
6. Enter the velocity in DBB212 to 215 of the user DB (data type DINT).
7. Enter a 4 in DBB199 of the user DB (request) (retentive storing of the block).
8. Set Write request (user DB, DBX39.3).

FM 354 Servo Drive Positioning Module


9-40 6ES7 354-1AH01-8BG0
Description of Functions

Retentive storage of parameter data


Please note the following when using the function “Write parameters with retentive
storage” (byte 4, job type 4):
Retentive writing must only occur on demand (not cyclically)!
Retentive data are stored on FEPROM (maintenance-free, no battery required).
This memory has a physical limit for the possible number of delete/reprogram
cycles: minimum 105, typically 106. The possible number of delete/reprogram
cycles can be multiplied, from the user’s viewpoint, by providing a larger retentive
memory capacity (much larger than the parameter data memory) and organizing
the memory accordingly.

64 000  106 (typical)


Number of delete/ =
reprogram cycles Block size (in bytes), in which param-
eter data are modified

Block sizes:
DB Machine data 284 bytes
DB Increments 468 bytes
DB Tool offset data 308 bytes
DB Traversing programs 108 + (20 x no. of traversing blocks) bytes
Example:
Assuming a service life of 10 years and 24-hour operation, a typical limit = 106.

Parameteriza- DB size Number of possible delete/ Number of possible delete/


tion data reprogram cycles reprogram cycles per min-
ute
MD 284 by- 256  106 49
tes
Traversing pro- 508 by- 125.49  106 24
grams (20 tes
blocks)

Note
SDB w 1 000 (system data block, created for module replacement), contains pa-
rameter data which were valid at the time of start-up. If data/parameters are modi-
fied during operation and stored retentively on the FM, these data are not con-
tained in SDB w 1 000. These modifications are lost when the module is replaced,
and should be traceable in the user program.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-41
Description of Functions

9.3.2 Single functions (user DB, DBB34 and 35)

Overview
You can use this function to transfer single settings to the FM 354 and activate the
corresponding functions. These settings are:
S Length measurement
S Inprocess measurement
S Retrigger reference point
S Switch off enable input
S Follow-up mode
S Switch off software end position monitoring
S Switch off automatic drift compensation
S Servo enable
S Parking axis
S Simulation

Callup of single settings


The individual functions remain activated until they are reset.

Length measurement, inprocess measurement


Since both functions use the same digital input on the FM 354, only one function
can be executed at a time. In double activations, both functions are switched to
inactive. An error message is issued.
For function description, see Section 9.3.10

Retrigger reference point


A precondition for retrigger reference point is that the axis has been synchronized
by reference point approach.
With this setting, the axis resynchronizes upon overrunning the synchronization
point when the direction of travel is the same as the direction of reference point
approach. Regardless of the current speed, the reference point coordinates are
allocated to the current actual position, taking into account any active shift.
Any resulting change in the actual value causes no internal change of the target.
When crossing the RPS, a signal length of ∆t w 2@FM cycle must be assured!
When a Set Actual Value On-the-Fly is pending, activation of Retrigger Reference
Point is interlocked.

FM 354 Servo Drive Positioning Module


9-42 6ES7 354-1AH01-8BG0
Description of Functions

Start Target

– RPS +
Zero pulse Zero pulse for synchronization

Reference-point switch input of the FM 354

Hint to the user:


You can use Retrigger Reference Point, for example, to compensate for slippage
of the trolley in a high-bay warehouse during operation, without having to resyn-
chronize the axis with the Reference-Point Approach mode. When retriggering in
reference point approach with a zero pulse, be careful that the total slippage be-
tween the reference point switch and the stepper motor does not become so great
that the synchronizing zero pulse migrates to an “adjacent” zero pulse!

Switch off enable input


With the “switch off enable input” function, you can switch off evaluation of the en-
able input (see Section 9.8.1).

Follow-up mode
The “follow-up mode” function is used to cancel closed-loop control of the axis.
S For external movement of the axis, the actual value is tracked.
S This setting can be switched on or off only if “Processing in progress”=0.
(does not apply to MD37.15 ”Resume after Emergency Stop”)

Deactivate end position monitoring


You can use this function to deactivate monitoring of the software limit switches
(see Section 9.9).
It can be switched on or off only if “Processing in progress” = 0.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-43
Description of Functions

Deactivate automatic drift compensation


This function can be used to switch off the automatic drift compensation.
Automatic drift compensation means:
The drift is balanced to zero by an automatic matching of the analog actuating sig-
nal.
S The setting can be switched on or off if the axis is not in motion.
S Automatic drift compensation has no effect:
– in Control mode
– in the Follow-up Mode setting
– if there is no servo enable
– in the absence of a controller ready signal (if parameterized)
– if the axis is in motion.

Servo enable
You can use this function to:
S activate position control (the prerequisite for closed-loop-controlled operation
of the FM 354)
S to switch the signal through to the drive as indicated in MD37
S to provide control of stops between movements in the Control mode.

Parking axis
This function can be used to change over the measurement system while the com-
plete system is running.
With this setting:
S Encoder synchronization (SYN = 0) is deleted
S Pending error messages are deleted and no new ones are initiated (including
diagnostic interrupts) by the encoder when ”Parking Axis” is disabled.
S Digital outputs are inactive; analog voltage value: 0 V.
The setting can be switched on or off if “Processing in progress” = 0.

FM 354 Servo Drive Positioning Module


9-44 6ES7 354-1AH01-8BG0
Description of Functions

Simulation
You can use this function to:
S Test function sequences without the drive and measuring system.
A drive, if any connected, must be switched off.
S Evaluate all digital inputs (Caution, if you are going to simulate sequences that
use such signals, they should be connected to the inputs
of the FM 354 - e.g. for Reference-Point Approach).
S The servo simulates a controlled system; “Controller Ready” is not necessary.
S The setting can be switched on or off if “Processing in progress” = 0.
S All internal function sequences behave as in normal operation.
When the function is deactivated, the axis is reset internally (see Restart,
Section 9.3.3).

9.3.3 Single commands (user DB, DBB36 and 37)

Overview
You can use this function to transfer single commands to the FM 354. These com-
mands are:
S Activate machine data
S Delete residual distance
S Automatic block search in reverse
S Automatic block search forward
S Restart
S Undo set actual value

Callup of single commands


The single commands are activated when the corresponding data record is trans-
mitted to the FM 354.
The commands are deleted in the FM 354 after execution.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-45
Description of Functions

Activate machine data


Once you have downloaded the machine data (MD) or the MD block (from the pro-
gramming device), the machine data have to be activated. At the first parameter-
ization, the machine data is transferred automatically. In terms of effects, the FM
354 distinguishes between “K” and “E” machine data.

MD category Effect in FM 354 after activation


“K” “Reset” of the FM
S As long as “Reset” is in progress, it is not possible to
transfer other data
S For internal response, see Restart
“E” FM operating condition is maintained

For machine data, see Section 5.3.1.


This command is possible only when the axis is not in motion (“Processing in prog-
ress” = 0). An operating mode must be selected.
An MD block is likewise activated by switching on or off.

Delete residual path


You can use this command to delete a residual distance that remains after a job
has been canceled.
S Effective only in ”Incremental Relative”, ”MDI”, and ”Automatic” modes after a
stop (SFG = 1 and BL = 1). If processing is not interrupted with a stop, the ”De-
lete Distance to Go” request is suspended in the FM 354.
S On starting after a Delete Residual Distance in MDI mode, the active MDI block
is processed from the start.
S On starting after a Delete Residual Distance in Incremental Relative and Auto-
matic modes, processing continues with the following block.

Automatic block search forward


This command is described in Section 9.2.6.

Automatic block search backward


This command is described in Section 9.2.6.

FM 354 Servo Drive Positioning Module


9-46 6ES7 354-1AH01-8BG0
Description of Functions

Restart
You can use this command to reset the axis.
S The setpoint output is interrupted.
S The instantaneous processing status is canceled, and synchronization in incre-
mental encoders is deleted.
S Active compensation values are deleted.
S An acknowledge signal is issued for all errors.

Undo set actual value


You can use this command to reset coordinates modified with the functions “Set
actual value” and “Set actual value on-the-fly” to their original value (if the axis is
not in motion).

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-47
Description of Functions

9.3.4 Zero offset (Write request in the user DB, DBX39.1)

Function of zero offset


A selection, change or cancellation of a zero offset takes effect with the next posi-
tioning action. With a zero offset, the instantaneous shift of the coordinate system
is canceled, provided that a zero offset was already active and the specified shift
change (ZONPVnew – ZOold) was executed with the first positioning. All coordi-
nates and software limit switches, the reference point and the actual value are up-
dated accordingly.
The reference of the workpiece coordinate system is provided via the zero offset.
The actual values read from the FM 354 refer to the machine coordinate system.
The position specification in a traversing block is referred to the workpiece
coordinate system.
Example of a zero offset:

Machine Working range, Target posi- Working range,


axis Start = 0 tion = 120 End = 200

Actual
position =
Zero offset by –50 100
(shift of reference
point)

Workpiece Working range, Target posi- Working range,


coordinates Start = 50 tion = 120 End = 250

–50
Actual position = 150

– Zero point

Fig. 9-1 Zero offset

FM 354 Servo Drive Positioning Module


9-48 6ES7 354-1AH01-8BG0
Description of Functions

The zero offset can be deleted by:


S Transmitting shift value = 0
S Starting Reference-Point Approach mode
S Set reference point
S Eliminating axis synchronization (e.g. by a restart).

Rotary axis
The following restriction applies to a rotary axis:
Zero offset < Rotary-axis range. The actual value is normalized.
Example:

Range start/Range end 0/360° After shift value= –50°


Actual value 40°
Actual value 350°
Range start/
Range end 0/360°

The start and end of the range are shifted –50°.


Exceptions:
Int he “Incremental Relative”, “MDI” and “Automatic” modes, a zero offset is not
possible until the block has been processed (position reached, programmed stop
set), i.e., it is not possible when the axis is stationary after execution is interrupted
with an abnormal stop.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-49
Description of Functions

9.3.5 Set actual value (Write request in the user DB, DBX38.7)

Overview
You can use this function to assign a new value to the current actual value.

Function of set actual value


By transmitting the coordinates, the actual value is set to this value when the axis
is not in motion (after selecting “Processing in progress” = 0). The coordinates of
the software limit switches remain unchanged.
Example of setting actual value:

Machine Working range, Target posi- Working range,


axis Start = 0 tion = 120 End = 200

Actual posi-
Set actual
tion = 100
value to 150

Machine Working range, Target posi- Working range,


axis Start = 0 tion = 120 End = 200

Actual position = 150

Fig. 9-2 Set actual value

The coordinates can be reset to their original value by:


S Including synchronization in Reference Point Approach mode
S Set reference point
S Reset actual value
S Restart

FM 354 Servo Drive Positioning Module


9-50 6ES7 354-1AH01-8BG0
Description of Functions

9.3.6 Set actual value on-the-fly (Write request in the user DB,
DBX39.0)

Overview
You can use this function to assign a new value to the actual value by means of an
external event.

Function of set actual value on-the-fly


By transmitting the coordinates (new actual value), set actual value on-the-fly is
activated.
However, the Set Actual Value function is not triggered via the appropriate digital
input until “Processing in progress” = 1.
Set actual value on-the-fly can be activated again by transmitting Set actual value
on-the-fly again.
The coordinates can be reset to their original value by:
S Including synchronization in Reference Point Approach mode
S Set reference point
S Reset actual value
S Restart
Note:
For “set actual value on-the-fly” in “Automatic” mode, see Section 9.2.6

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-51
Description of Functions

9.3.7 Request application data (Write request in the user DB,


DBX39.6)

Overview
A selection of up to four display data items whose values can be read out with
“read application data” (see Section 9.3.13).
Code table:

Code Significance
0 No parameter request
1 Actual position
2 Actual velocity
3 Distance to go
4 Setpoint
5 Total current coordinate shift
6 Speed
16 DAC output value
17 Actual encoder value
18 Pulse errors
19 Kv factor
20 Following error
21 Following error limit
22 s overshoot/switch readjustment in Reference Point Approach mode
23 Approach time Te (ms)/drive constant Ta (ms) in Control mode

The code should be entered in CODE_AP1...AP4.


These values are always updated in the FM cycle.
The selection is stored on the FM, i.e. you need make the selection only once to
read the corresponding values cyclically afterwards (user DB, DBX43.6).

FM 354 Servo Drive Positioning Module


9-52 6ES7 354-1AH01-8BG0
Description of Functions

9.3.8 Teach in (Write request in the user DB, DBX39.7)

Overview
In a program block selected with the program number and block number, the cur-
rent actual position is entered as a position setpoint (Caution: This is an absolute
position).
The Teach-in facility is possible only in the following modes:
S Jogging
S Incremental Relative
S MDI
and while the axis is not in motion.
The program and the appropriate program block must be present on the FM 354
(see Parameterization, Chapter 5).

9.3.9 Set reference point (Write request in the user DB, DBX38.6)

Overview
You can use this function to synchronize the axis without reference point approach.

Function
With Set Reference Point, a position value at the instantaneous position of the
axis, indicated as a parameter, is accepted as an actual value.
For axes with an absolute encoder, the generated position reference is entered in
MD17. At a known axis position, the known actual position of the system of mea-
surement is transmitted to the FM 354 with Set Reference Point. This value is set
as the actual value of the axis. At the same time, this position reference is saved,
in that the assignment of the encoder actual value to the axis reference point is
calculated from the assignment of the set actual position to the encoder actual
value at this point of the axis; it is then entered in MD17.
”Set reference point” is not possible during machining ([BL] = 1) and will only come
into effect after machining ([BL] = 0).
This function is not effective in ”Automatic” mode (mode 08) or in ”Automatic
Single block” mode (mode 09).

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-53
Description of Functions

9.3.10 Measured values

Activating the measurement function


A ”length measurement” or ”in-process measurement” can be activated with
”Single Functions” (user DB, DBB34 and 35)”.
Since both functions use the same digital input of the FM 354, only one function
can be executed at a time. In double activations, both functions are switched to
inactive. An error message is issued.

Reading out the measurement function


You can read out measured values from the FM 354 in the result returned by
the “length measurement” and ”in-process length measurement” functions by
calling FC POS_MSRM and via Read request in the user DB, DBB43.7
(see Section 6.3.4).

Prerequisites
The following prerequisites must be fulfilled in order to execute the function “mea-
surement”:
1. Connect a bounce-free switching-signal encoder (touch probe) to a digital out-
put of the FM 354.
2. Parameterize Measurement for this input in MD34.

Function description
Measurement functions can be executed in all modes. An executed measurement
is signaled by the checkback signal “ME” and optionally also by a process inter-
rupt.
Inprocess measurement
The present actual position is captured at each rising edge of the touch probe. At
the same time, the axis movement is interrupted (servo-controlled braking).

Measurement taking place

Inprocess Measurement On

Measurement input

Process interrupt

S1
S1 – execution of measurement

FM 354 Servo Drive Positioning Module


9-54 6ES7 354-1AH01-8BG0
Description of Functions

Length measurement
The present actual position is captured at both the rising and the subsequent fal-
ling edge of the touch probe. In addition, the actually traveled distance (amount) is
calculated.

Length measurement On
Measurement input

Process interrupt
Measurement taking place

“Measured length value” ∆S


∆t
S1 – start of length measurement S1 S2
S2 – end of length measurement
∆S – Measured length value
∆t – minimum signal length at the digital input: w 2@FM cycle

The following response takes place with functions that change the current actual
value:
S Resynchronization in Reference-Point Approach mode:measured length con-
tains measurement-error message
S Set Reference Point:measured length contains measurement-error message
S Retrigger Reference Point:measured length is difference between edge posi-
tions
S Set Actual Value:measured length is actual traversed distance
Note
The zero offset function does not change the actual position of the axis, and is thus
not relevant for the above observations regarding the Length Measurement func-
tion.

Error messages
The following table lists the errors that can occur in the execution of the Measure-
ment function.

Error Significance
Travel er- The “Digital input not parameterized” error is signaled when a measurement function is
rors selected without a digital input having been parameterized (see Troubleshooting, Table
11-7, Class 3 No. 30).
Operator The “Measurement function undefined” error is signaled when both measuring functions
contr. errors are selected (see Troubleshooting, Table 11-6, Class 2 No. 16).
Measuring An erroneous length measurement is indicated by signaling back the length “–1.” Possible
error causes include:
S Resynchronization in the Reference-Point Approach mode while a measurement is in
progress
S Execution of the Set Reference Point function while a measurement is in progress
S Direction of travel at the falling edge is opposite to the direction of travel of the previous
rising edge

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-55
Description of Functions

Measurement checkback signals


The checkback signal ME (see Section 9.1) signals the status of function execu-
tion, as follows:

“ME” Inprocess measurement Length measurement


0 S the Length Measurement and Inpro- S the Length Measurement and Inpro-
cess Measurement functions are inac- cess Measurement functions are inac-
tive tive
S with Start after a prior measurement S with front edge of the touch probe sig-
nal after a prior measurement
1 With the front edge of the touch probe sig- With the back edge of the touch probe sig-
nal (= Inprocess Measurement is in progr.) nal (= Length Measurement is in progress)

In association with the ME checkback signal, the read-out measured values are
valid for the executed measurement process.

No. Value 0 Value “–1” All other posi- All other nega-
tive values tive values
1 the Length Measurement and Inprocess Actual position for rising touch-probe edge in Inpro-
Measurement functions are inactive cess Measurement and Length Measurement func-
tions
2 S the Length Measurement and Inprocess Actual position for falling touch-probe edge in
Measurement functions are inactive Length Measurement function
S always with the Inprocess Measurement
function
3 S the Length Measurement and Inprocess Erroneous Measured Nonexistent
Measurement functions are inactive length mea- length
S always with the Inprocess Measurement surement
function
S measured length 0 is actually possible,
because touch probe has been con-
nected while axis is stationary

9.3.11 Basic operating data (Read request in the user DB, DBX42.0)

Overview
The following display data are basic operating data:
S Actual position (MSR)
S Actual speed (MSR/min)
S Residual distance (MSR)
S Set position (MSR)
S Total of active coordinate shifts for tool offset, zero offset (MSR)
S Rotational speed (rotary axis only) (rpm)

FM 354 Servo Drive Positioning Module


9-56 6ES7 354-1AH01-8BG0
Description of Functions

9.3.12 Active NC block (Read request in the user DB, DBX42.1), next
NC block (Read request in the user DB, DBX42.2)

Active NC block
... are display data in “Automatic” mode
/ Skipped block
L Subprogram callup (fills in UP number)
P Number of callups for subprogram (fills in UP callup
number)
X/t Position/dwell time programmed (fills in value 1)
G1-G3 G function group 1-3
D Tool offset value number
M1-M3 M function group 1-3
F Speed programmed (fills in value 2)

Data for- Bit


Byte
mat 7 6 5 4 3 2 1 0
0 Byte NC program number
1 Byte NC block number
2 8-bit / L P X/t 0 G3 G2 G1
3 8-bit 0 0 0 D M3 M2 M1 F
4 Byte G function 1
5 Byte G function 2
6 Byte G function 3
7 Byte 0
8 DINT 32-bit value 1 (UP number, bytes)
12 DINT 32-bit value 2 (UP callup number, bytes)
16 Byte M function 1
17 Byte M function 2
18 Byte M function 2
19 Byte D function

Next NC block
as described in “active NC block”

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-57
Description of Functions

9.3.13 Application data (Read request in the user DB, DBX43.6)

Overview
The values requested with ”Request application data” (user DB, DBX42.3, see
Section 9.3.7) are returned by the FM 354 when the user submits the Read re-
quest (user DB, DBX43.6).

9.3.14 Actual value block change (Read request in the user DB,
DBX42.3)

Overview
The “actual value block change” function is described in Section 10.1, G50, G88,
G89.

9.3.15 Servicing data (Read request in the user DB, DBX42.4)

Overview
The following display data of the measuring circuit are servicing data:
S DAC output value [mV]
S Actual encoder value [MSR]
– Incremental encoder: (0...216 – 1) [encoder increments]
– Absolute encoder: Absolute value + encoder
S Missing pulses [pulses]
S Kv factor (position control loop gain)
S Following error [MSR]
S Following-error limit [MSR]
S s overshoot value/switch alignment in “Reference point approach” mode [MSR]
S Approach time Te [ms]/drive time constant Ta [ms] in “Open-loop control” mode

FM 354 Servo Drive Positioning Module


9-58 6ES7 354-1AH01-8BG0
Description of Functions

9.3.16 Additional operating data (Read request in the user DB,


DBX43.5)

Overview
The following display data are additional operating data:
S Override [%]
S NC traverse program no.
S NC block no.
S Callup SR loop no. counter
S G90/91 active, see Section 10.1
S G60/64 active, see Section 10.1
S G43/44 active, see Section 10.1
S D No. active, see Section 10.1
S Status messages 1 (data type: BOOL):
– Speed limitation to limit value from MD23
– Limitation to "10 V
– Limitation of minimum acceleration or minimum deceleration in effect
S Status messages 2 (data type: BOOL): not in use

9.3.17 Parameters/data (Read request in the user DB, DBX43.3)

Overview
This request is used to read the parameters and data modified by means of the
”Change parameters/data” function (Write request in the user DB, DBX39.3, see
Section 9.3.1).

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-59
Description of Functions

9.4 System of measurement

Overview
At the start of parameterization, you must fill in the basic machine data item sys-
tem of measurement (MD7). This item governs the input of values.

Variants of the system of measurement


You can set the system of measurement for the following three units:
S mm
S inches
S degrees

Input of machine data


All value inputs and all value ranges refer to the setting in the system of measure-
ment.

Internal processing of values


In “Parameterize FM 354” and in the FM 354 itself, values are processed in the
following base units:
S 0.001 0.001 mm
S 0.0001 inch
S 0.0001 degree

Examples
The sample values in the table below illustrate the relation between the system of
measurement and internal values:

System of mea- Internal val- Input at interface


surement ues
mm 10–3 mm 10 995@10–3 mm 10.995 mm
inches 10–4 inch 10,995@10–4 inch 1.0995 inch
degrees 10–4 degree 3,600,000@10–4 degree 360.0000 degree
10–2 degree 36,000@10–2 degree 360.00 degree

FM 354 Servo Drive Positioning Module


9-60 6ES7 354-1AH01-8BG0
Description of Functions

Note
The measurement system (MD7) must match the measurement system specified
in the other DBs.
The measurement system raster (MSR) is the smallest distance unit in the active
system of measurement.
If at some point you have failed to take this precaution:
1. Delete all data blocks (which do not match the measurement system) or clear
the memory of the FM 354 completely.
2. Modify the other data blocks on the PG.
3. Reload the data blocks to the FM 354.

9.5 Axis type

Overview
You can select the axis type with machine data item MD8. Choose either of the
following types:
S Linear axis
S Rotary axis

Linear axis
A linear axis moves between two range limits (traversing range min –109,
max 109). The range limits may be bounded by software limit switches (MD21,
MD22) to form the “working range.”
Linear axes have a limited traversing range. The limits are imposed by the:
S Resolution of the numerical scale
S The range covered by an absolute encoder.

Movement

M G

Motor Encoders

Fig. 9-3 Linear axis

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-61
Description of Functions

Rotary axis
With rotary axes, the actual value is reset to “0” after one revolution. Rotary axes
thus have an infinite traversing range.

0
9 999

5 000

Fig. 9-4 Rotary axis

Rotary axis end


Machine data item MD9 defines the value by which the FM 354 recognizes the end
of the rotary axis.
This value is the theoretical maximum that the actual value can reach. At this
value, display of the actual value switches back to 0.
The theoretical maximum, however, is never displayed, because it is physically
located in the same position as the start of the rotary axis (i.e. 0).
Example:
The following example in Figure 9-4 illustrates the behavior of the axis.
Assume you specify a value of 10,000 for the end of the rotary axis.
The value 10,000 will never be displayed. The display always rolls over from 9,999
to 0.
If the direction of rotation is negative, the display rolls over from 0 to 9,999.

FM 354 Servo Drive Positioning Module


9-62 6ES7 354-1AH01-8BG0
Description of Functions

Encoders on rotary axes


Rotary axes are subject to certain restrictions in the choice of encoder/gearbox/
motor, as shown in Figure 9-5. These restrictions arise from the need to reproduce
the actual position accurately over several revolutions when referencing (with in-
cremental encoders or on POWER OFF/ON with absolute encoders). See also
“Dependencies”, Section 5.3.1).

Encoder type?
Incremental encoder Absolute encoder

Type of Single-turn or
reference point approach? multi-turn encoder?

MD18 w 4 MD18 < 4 Single-turn Multi-turn

Any rotary axis Condition: Condition: Condition:


cycle
SRA = nSGZ SGZ = 2nSRA SGZ = 2nSRA
n = 1, 2, 3 n = 0, 1, 2 n = ...–2, –1, 0, 1, 2, ...

Examples:
Rotary axis cycle SRA
e.g.: 2
Encoder cycle SGZ rev
or or
e.g.: 4
rev

Fig. 9-5 Encoders on rotary axes

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-63
Description of Functions

9.6 Encoders

Overview
One of the following encoders must be connected to the measuring-system inter-
face of the FM 354 (see Fig. 1-4).
S Incremental encoder
S Absolute encoder (SSI)
Paths and positions are displayed in 10–3 mm, 10–4 inches or 10–4 degrees, as
selected with machine data item MD7.
The path resolution of the machine axis obtained by the encoder is calculated
within the FM from machine data MD11 to MD13.

Encoder selection
The prerequisite for achieving a given positioning accuracy is an n-fold improve-
ment in path resolution by the encoder.

Recommended values for n


Minimum Optimum Maximum
2 4 10

For that reason, when configuring a given specific application, select an encoder
that meets the desired positioning accuracy requirements.
The known design data for the machine axis and the desired measurement resolu-
tion A:

1
A=  Positioning accuracy [mm], [inches], [degrees]
n

yield a calculation of the necessary pulse number per encoder revolution according
to the following relationship (taking a metric measuring system as an example):

Incremental encoder Absolute encoder (SSI)


S [mm] S [mm]
IG = SG =
4 iGS A [mm] iGS A [mm]

FM 354 Servo Drive Positioning Module


9-64 6ES7 354-1AH01-8BG0
Description of Functions

The table below gives you an overview of the data used in this calculation and their
meaning. You will find the machine data (MD) assignments under “Function param-
eters”.

Sym- Significance
bol
IG Increments per encoder rotation (incremental encoder)
SG Number of steps per encoder revolution (absolute encoder)
S Distance per spindle or rotary table revolution [mm/rev], [inches/rev], [degrees/rev]
A Required resolution [mm], [inches], [degrees]
4 Pulse multiplication (constant)
iGS Ratio between encoder and mechanism -
Number of encoder revolutions

number of encoder revs number of encoder revs


or
spindle revolution or rotary table revs

If unusual numbers of pulses or steps result, the encoder with the next-higher
number of pulses or steps should be selected.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-65
Description of Functions

9.6.1 Incremental encoders

Overview
Incremental encoders serve to detect position values, supplying pulses that the
FM 354 adds up to form an absolute value. After the FM 354 is switched on, there
is an offset, which cannot be determined in advance, between the internal position
value and the mechanical position of the axis. In order to establish the position ref-
erence, the internal value must therefore be set to a predefined value at a specific
axis position. This value is stored in the machine data (MD) as a reference point
coordinate (see Section 9.2.3).

Incremental encoders
The following variant applications are possible:
S Rotary incremental encoder on linear axes
Encoders with one zero pulse per revolution may be used. The number of en-
coder pulses must be a multiple of ten or a power of two.
S Rotary incremental encoder on rotary axes
Encoders with one zero pulse per revolution may be used. The number of en-
coder pulses must be a multiple of ten or a power of two. With indirect encoder
mounting and reference point approach with a zero pulse (MD18 < 4), you must
ensure that the revolution of the rotary axis is divisible without remainder by the
cyclical zero pulse (see “Dependencies” Sections 5.3.1. and 9.5).
S Linear scales on linear axes
Scales may be used with at least one reference zero pulse, or with a cyclic zero
pulse.
In comparison to rotary incremental encoders, instead of the encoder revolution
a period of division is used as a basis here, corresponding for example to the
segment between two zero-mark pulses.

FM 354 Servo Drive Positioning Module


9-66 6ES7 354-1AH01-8BG0
Description of Functions

Function parameters
Table 9-9 shows you how to adapt the selected encoder to the FM 354.
Table 9-9 Function parameters – Incremental encoders

MD Designation Value/Meaning Comments/Unit


10 Encoder type 1 = Incremental encoder (Code number)
11 Displacement 1...1 000 000 000 [MSR]
per encoder rev- see Section 5.3.1, Dependencies (integer portion)
olution (division
period)
12 Residual dis- 0...232–1 [2–32MSR]
tance per en- see Section 5.3.1, Dependencies (fractional por-
coder revolution tion)
(division period)
13 Increments per 21...225 Entry according
encoder revolu- see Section 5.3.1, Dependencies to encoder rating
tion (division pe- plate
riod)
19.0 Direction adjust- 1 = invert measured value direction –
ment
20 Hardware moni- Entry for monitor-
toring ing to be
20.0 1 = Cable break switched on
20.2 1 = Pulse monitoring
20.3 1 = Voltage monitoring

MSR stands for measurement system raster (see Section 5.3.1)


Sample encoder adjustment
Encoder: Number of increments per revolution (MD13) = 2,500
(The FM 354 works by the principle of quadruple evaluation. This yields an FM-in-
ternal number of increments per revolution = 10,000.)
Machine design:
S Motor with 50:30 gear ratio on spindle with 10 mm pitch = 10,000 MSR
S Encoder on motor.
From this one can calculate the following traversing distance per encoder revolu-
tion:
50 spindle revolutions
Gear ratio: i = = 1.666666...
30 motor revolutions
Displacement per encoder revolution = i  10,000 MSR = 16,666.666... MSR

The following values are entered:

MD Value Unit
11 16 666 [10–3 mm]
12 0.666...  232 = 2,863,311,530 [2–32 10–3 mm]
13 2 500 [pulse/rev]

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-67
Description of Functions

Monitoring/error diagnostics
If MD20 = 0 is input, all monitoring functions are active.
Individual monitoring functions can be inactivated by entering 0 in the designated
bit of MD20.
You can deactivate the error messages using the single function “parking axis”
(see Section 9.3.2).

Table 9-10 Error diagnostics – Incremental encoder

Diagnosis Cause Error message


Cable break monitor- Signals of one track pair (A, A / B, B / N, The FM 354 responds with a diagnos-
ing N) do not behave as negations of one tic interrupt, external channel error
another. (see Troubleshooting, Table 11-4)
Pulse monitoring S In the case of decimal encoders (e.g. S If the contents of the missing–
1000 incr. per rotation), the pulse pulse memory (sum of all mod val-
rate between two zero pulses is not ues) exceed the value 7, the diag-
divisible mod 10 nostic interrupt ’external channel
S In the case of binary encoders (e.g. error’ (see Troubleshooting, Table
1024 incr. per rotation), the pulse 11-4) is generated.
rate between two zero pulses is not S The control signal ”Restart” clears
divisible mod 16 the missing-pulse memory.
In Reference-Point Approach mode, no Effect:
zero pulse is recorded after leaving the S Encoder cannot be synchronized.
reference-point switch within the path as
defined in MD11, 12.
S On leaving the reference-point
switch in Reference-Point Ap-
proach mode, the FM 354 will
travel no more than the distance of
one encoder revolution (MD11),
and needs the deceleration dis-
tance from the reducing speed.
Voltage monitoring Encoder power failure Diagnostic interrupt, external channel
error (see Troubleshooting, Table
11-4)

Warning
! Hardware monitoring functions should be skipped only for test purposes, since
positioning errors may destroy the machine.
Exception:
Pulse monitoring for encoders with non-cyclic zero pulse.

Encoder connection
See Section 4.5.

FM 354 Servo Drive Positioning Module


9-68 6ES7 354-1AH01-8BG0
Description of Functions

9.6.2 Absolute encoders (SSI)

Overview
Absolute encoders (SSI) have several significant advantages over incremental en-
coders:
S Longer cable lengths
S Reliable data capture by using a single-step GRAY code
S No encoder synchronization needed.

Absolute encoders (SSI)


You can use 13-bit single-turn encoders or 25-bit multi-turn encoders with the SSI
protocol (left-justified).
S Absolute encoder (SSI) on linear axes
Make sure the value range of the encoder is at least equal to the traversing dis-
tance of the axis.
S Absolute encoder on rotary axes
Make sure that the absolute value range captured by the encoder corresponds
to a ratio of 2x or 2–x to one revolution of the rotary axis, and that it encom-
passes at least one rotary axis revolution (see “Dependencies” Section 5.3.1
and Figure 9-5).

Function parameters
Table 9-11 shows you how to adapt the selected encoder to the FM 354.

Table 9-11 Function parameters – Absolute encoders (SSI)

MD Designation Value/Meaning Comments/Unit


10 Encoder type 3 = Absolute encoder (SSI 13 bit) GRAY Code
4 = Absolute encoder (SSI 25 bit) GRAY Code
13 = Absolute encoder (SSI 13 bit) Binary Code
14 = Absolute encoder (SSI 25 bit) Binary Code
11 Displacement 1...1 000 000 000 [MSR]
per encoder see Section 5.3.1, Dependencies (integer portion)
revolution (divi-
sion period)
12 Residual dis- 0...232–1 [2–32 MSR]
tance per en- see Section 5.3.1, Dependencies (fractional por-
coder revolution tion)
13 Increments per 21...225 Entry according
encoder revolu- see Section 5.3.1, Dependencies to encoder rating
tion (division pe- plate
riod)

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-69
Description of Functions

Table 9-11 Function parameters – Absolute encoders (SSI), continued

MD Designation Value/Meaning Comments/Unit


14 Number of revo- 0/1 = Single-turn encoder Only powers of 2
lutions of 21...212 for multi-turn encoder allowed
SSI encoder see Section 5.3.1, Dependencies
15 SSI baud rate 1 = 78,000 Baud (Code number)
2 = 156,000 Baud The baud rate
3 = 312,000 Baud depends on the
4 = 625,000 Baud cable length be-
5 = 1,250,000 Baud tween FM 354
and encoder
19. Direction adjust- 1 = invert measured value direction –
0 ment
20 Hardware moni- Entry for monitor-
toring ing to be
20. 1 = Error in absolute encoder switched on
1 1 = Voltage monitoring
20.
3

MSR stands for measurement system raster (see Section 5.3.1)

Sample encoder adjustment


Encoder: Number of increments per revolution (MD13) = 4096 = 212
Number of revolutions (MD14) = 256 = 28
Machine axis design:
S Motor with 50:30 gear ratio on spindle with 10 mm pitch = 10,000 MSR
S Encoder on motor.
From this one can calculate the following traversing distance per encoder revolu-
tion:

50 spindle revolutions
Gear ratio: i= = 1.666666...
30 motor revolutions
Displacement per = i  10,000 MSR = 16,666.666... MSR
encoder revolution

The following values are entered:

MD Value Unit
11 16 666 [10–3 mm]
12 0.666...  232 = 2,863,311,530 [2–32 10–3 mm]
13 4096 [puls/rev]
14 256 [rev]

FM 354 Servo Drive Positioning Module


9-70 6ES7 354-1AH01-8BG0
Description of Functions

Note
The encoder covers an absolute traversing distance of 256  16,666.666... MSR. In
the 10–3 mm system of measurement this corresponds to a maximum axis travers-
ing distance of 4,266.666... mm.

Monitoring/error diagnostics
If MD20 = 0 is input, all monitoring functions are active.
Individual monitoring functions can be inactivated by entering 0 in the designated
bit of MD20.
You can deactivate the error messages using the single function “parking axis”
(see Section 9.3.2).

Table 9-12 Error diagnostics – Absolute encoder

Diagnosis Cause Error message


Voltage monitoring Encoder power failure Diagnostic interrupt, external channel
error (see Troubleshooting, 11-4)
Error in absolute en- Error in protocol for data transfer be- Diagnostic interrupt, external channel
coder tween absolute encoder and FM 354 error (see Troubleshooting, 11-4)

Warning
! Hardware monitoring functions should be skipped only for test purposes, since
positioning errors may destroy the machine.
When voltage monitoring is deactivated and the power supply to the encoders or
the FM is switched off, an immediate failure in absolute value signaling can cause
drive movements if:
S an operating mode other than open-loop control is active
S and follow-up mode is deactivated
S and the servo enable is activated or not parameterized.

Encoder connection
See Section 4.5.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-71
Description of Functions

9.6.3 Synchronizing the encoders

Overview
When using incremental encoders, at switch-on there is an offset, which cannot be
determined in advance, between the internal position value in the FM and the me-
chanical position of the axis. To establish the position reference, the value internal
to the FM must be synchronized with the real position value of the axis. Synchro-
nization is performed by taking over a position value at a known point of the axis.
When using absolute encoders (SSI), at switch-on there is already a defined rela-
tionship between the position value internal to the FM and the mechanical position
of the axis. This reference can be adjusted by setting an absolute encoder align-
ment value (see Section 9.3.9, Setting the reference point).

Absolute encoder alignment


is the compensation value for numerical alignment of the internal FM position
value.

Reference point approach


is an operating mode used to position the axis at the reference point.

Reference point
is a fixed point on the axis. It is:
S The target coordinate in the Reference-Point Approach mode
S Removed from the synchronization point by the amount of the reference-point
shift, in axes with incremental encoders.

Reference point offset


Difference in distance between the synchronization point and the reference point.
The reference-point shift serves:
S for numerical measuring-system readjustment when an encoder is changed
S as a displacement reserve to brake the drive if the synchronization point is
overshot.

Reference point switch (RPS)


The reference point switch selects the synchronizing (encoder) zero marker on the
traversing path of the axis.
S It is also the signal encoder for a speed reduction before the synchronization
point is reached.
S It is connected to a digital input of the FM 354.

FM 354 Servo Drive Positioning Module


9-72 6ES7 354-1AH01-8BG0
Description of Functions

Synchronization point
is a defined point on the traversing path of the axis. It is defined by the mechanical
position of a reference-point switch or in association with a cyclic zero mark of an
incremental encoder.

Synchronization
Creating the position reference between the internal FM position value and me-
chanical position of the axis.

Measured value synchronization with incremental encoders


Irrespective of the approach direction, the synchronization point can be located on
the side of the lower or the higher actual position values in relation to the reference
point switch position. It is demarcated by the rising edge of a zero pulse or by the
reference point switch. This selection is made by the MD18 (together with the ap-
proach direction).
Example

zero pulse Axis direction +


RPS

Measurement grid Cyclical zero mark Synchronization point

With reference to the synchronization point, the reference point can be located on
the side of the lower or the higher position actual values. In the “reference point
approach” operating mode the machine axis additionally traverses this distance,
during its last phase of motion, once the synchronization point has been found.
Consequently, the axis halts the motion, in each instance, exactly on the reference
point.
Example
Variant 1 Axis direction +

RV +

Variant 2 Axis direction +

RV –

Measurement grid Cyclical zero mark Synchronization point


RV – Reference point offset Reference point

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-73
Description of Functions

9.7 Position controller

Overview
The closed-loop position controller performs the following tasks:
S guidance of the drive at the proper speed during execution of a movement
S precise approach of the axis to the programmed target position
S maintenance of the axis in position in the face of interfering factors.
The position controller is configured as a proportional-action controller. In its envi-
ronment are a number of function units that provide support by performing special
tasks within the complex of movement control, and that can be adapted to axis
conditions by means of a variety of machine data.
The diagram 9-6 gives you an overview of the function units and the machine data
acting upon them.

MD40 MD41 MD42 MD30, MD31 MD38 MD44 MD45 MD23 MD43

Interpolator Jolt Position Position +


v compari- D/A converter
t filter controller
son –

" 10 V
+ Drift MD19
MD21 MD22 MD19 compen-
– sation MD37

(setpoint) X3 X2
Following-error
error
monitoring to drive
from encoder

MD39 MD25
(actual value) MD26 MD24 (actuating value)

MD19 – Direction adjustment MD37 – Control signal Servo Bit 16


MD21 – Software limit switch - start MD38 – Positioning loop amplification
MD22 – Software limit switch - stop MD39 – Min. following error, dynamic
MD23 – Maximum speed MD40 – Acceleration
MD24 – Target range; position reached, MD41 – Deceleration
stop (PEH) MD42 – Jolt time
MD25 – Monitoring time MD43 – Set voltage, max.
MD26 – Idle range MD44 – Offset compensation
MD30 – Backlash compensation MD45 – Voltage ramp
MD31 – Directional reference, backlash

Fig. 9-6 Overview of position controller

FM 354 Servo Drive Positioning Module


9-74 6ES7 354-1AH01-8BG0
Description of Functions

Interpolator
The machine data for acceleration (MD40) and deceleration (MD41) can be used
to adapt the transition response of the command variable defined by the interpola-
tor to the transition response of the controlled system.

t
a

MD40
MD41 t

v – speed
a – acceleration
t – time

MD Designation Value/Meaning Unit


40 Acceleration 0 = without ramp
1...100,000 [103 MSR/s2]
41 Deceleration

For settings of MD40/41 see Section 7.3.4

Software limit switches


Software limit switches MD21 and MD22 (see Section 9.9) are used to limit the
working area.

MD Designation Value/Meaning Unit


21 Software limit switch, start –1 000 000 000...< +1 000 000 000 [MSR]
22 Software limit switch, stop see Section 5.3.1, Dependencies

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-75
Description of Functions

Jolt filter
Without jolt limitation the acceleration and deceleration act as abrupt variables. Jolt
limitation allows the break points of a ramp-like speed curve to be smoothed out for
both acceleration and deceleration. This yields particularly “soft” (jolt-free) accel-
eration and braking for certain positioning tasks, such as conveying of fluids.
Jolt time can be set in MD42 as the parameter for jolt limitation.

v Interpolator output signal Jolt filter output signal

MD42
t

r t

v – speed
a – acceleration
r – jolt
t – time

MD Designation Value/Meaning Unit


42 Jolt time 0...10,000 [ms]

FM 354 Servo Drive Positioning Module


9-76 6ES7 354-1AH01-8BG0
Description of Functions

Basic diagnostics in the position control loop


In servo-controlled mode, the manipulated variable is compared periodically with
the possible maximum values (10 V or maximum frequency). A violation of the
maximum limit is interpreted as follows:
No axis movement: “No drive movement” error message
(see Table 11-7, Class 3/No. 65)
Traverse in the opposite
direction: “Direction of drive rotation” error message
(see Table 11-5, Class 1/No. 11)
Correct travel direction: Oversteer message in status message 1
(see Section 9.3.16, Additional operating
data)
In all operating modes except Control mode, the “servo enable” signal is required
for the duration of every traversing movement, irrespective of the parameter defini-
tions. If the servo enable is not detected or is deactivated during the movement,
the “servo enable missing” message is triggered (see Table 11-5, Class 3/No. 61).
In all operating modes except Open-loop control mode, the “servo ready” signal is
required for the duration of every traversing movement when the parameter is ac-
tive (MD37.2). If the servo ready is not detected or is deactivated during the move-
ment, the “servo not ready” message is triggered (see Table 11-5, Class 3/No. 62).

Position approach
The following diagram shows position approach.

s Target range (PEH) (MD24)


Upper range
Position to be approached

Lower limit

Set

Actual
Monitoring time (MD25)
a b
c
t
t1 t2 t3

PEH - Position reached, stop


s – path
t – time

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-77
Description of Functions

On approach to a position, the monitoring time is activated:

Time Position monitoring


t1 (a) After the interpolator reaches the target position, the monitoring time (MD25)
for reaching the target range is started in the CL controller, after the overtravel
in the jolt filter dies down to the target range value (PEH on setpoint side).
t2 (b) Before the monitoring time expires, the actual position reaches the target
range. Positioning is completed. A PEH is signaled, and exact matching is
performed by the CL controller.
t3 (c) After the monitoring time expires, the actual position has not reached the tar-
get range (PEH).
Error message: “PEH Target Range Monitoring” (see Troubleshooting, Table
11-7, Class 3/No. 64)

MD Designation Value/Meaning Unit


24 Target range 0...1 000 000 [MSR]
25 Monitoring time 0 = no monitoring [ms], rounded to 2-ms steps
1...65 534

Following error monitoring


Axis standstill
A message is output on an axis standstill setpoint or deactivated servo enable if
disturbances cause the axis to move out of position.

MD Designation Value/Meaning Unit


26 Stationary range 0...1 000 000 [MSR]

The standstill zone is located symmetrically around the target approach position.

Approach position

Stationary range

When the tolerance window for idle is exceeded, the FM 354 signals a “Stationary
Range” error (see Troubleshooting, Table 11-5, Class 1/No. 12).

FM 354 Servo Drive Positioning Module


9-78 6ES7 354-1AH01-8BG0
Description of Functions

Axis moving
To monitor following error during movement, the FM 354 calculates the allowable
following error for the instantaneous traveling speed from the parameterized posi-
tioning loop amplification (MD38). Above the parameterized “Minimum following
error (dynamic),” a comparison is performed with the actual value for the following
error.

Calculated curve of dynamic following-error limit


∆s (Scalc) at which error is signaled.

Dynamic
monitoring in
effect (Idealized) curve of following
error according to KV

MD39
Actual curve of following error

∆s – following error vmax (MD23)


v
v – speed

MD Designation Value/Meaning Unit


39 Minimum following error 0 = no monitoring [MSR]
(dynamic) 1...1 000 000

When the calculated dynamic following-error limit is exceeded


(1.5fold of the idealized following error), the FM 354 signals the error ”Following
error too large” (see Troubleshooting, Table 11-7, Class 3/No. 66).
Exception:
If an axis standstill occurs above the “minimum dynamic following error”, the
error message described under Basic diagnostics “no drive movement” is output
(see Table 11-7, Class 3/No. 65).

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-79
Description of Functions

Position controller
The following error is calculated by periodical comparison of the set position de-
fined by the interpolator with the actual position of the axis detected by the en-
coder. From this error, the position controller calculates the actuating signal
needed for the drive in order to balance to a following error value of zero. The actu-
ating signal is provided via a D/A converter (DAC) as an analog signal at the FM
354 output.

Digital actual
Digital setpoint value

Digital following error = digital setpoint - digital actual value

Digital DAC value = digital following error  DAC factor

Digital

Analog

Voltage setpoint (manipulated value)

Position control loop gain


The positioning loop amplification (Kv factor) specifies at what speed of axis travel
a given following error sets in. The mathematical (proportional) relationship is:

Velocity v [103 MSR/min]


Kv = =
Following error ∆s [MSR]

Although the magnitude of the following error plays no dominant role for a single
axis, the Kv factor still affects the following important characteristics of the axis:
S Positioning accuracy and stopping control
S Uniformity of movement
S Positioning time

FM 354 Servo Drive Positioning Module


9-80 6ES7 354-1AH01-8BG0
Description of Functions

The following relationship applies for these characteristics:


The better the axis design, the greater the achievable Kv factor, and the better the
axis parameters from the technological viewpoint. The size of the Kv factor is espe-
cially affected by the time constants, backlash and spring components in the con-
trolled system. In real applications the Kv factor moves within the following band-
width:
S Kv = 0.2...0.5 poor-quality axis
S Kv = 0.5...1.5 good axis (normal case)
S Kv = 1.5...2.5 high-quality axis
The MD38 value is input with a resolution of 103, so that the following input value
results:

Velocity v [103 MSR/min]


MD38 = 103 Kv = 103 = 103 
 Following error ∆s [MSR]

MD Designation Value/Meaning Unit


38 Positioning loop ampli- 0...10,000 [(MSR/min)/MSR]
fication

Drift compensation
Thermal conditions will shift the zero error in the control loop during operation. This
effect is called drift. In a closed control loop with a proportional-action controller,
this results in a temperature-dependent positioning error. You can activate auto-
matic drift compensation with MD37, under which continuous balancing takes place
in the positioning control loop.
A basic compensation of the zero point error by means of the offet is required for
the optimum effect of the drift compensation
(see MD44, offset compensation).

MD Designation Value/Meaning Unit


37 Servo control signal 16 = automatic drift compensation active –

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-81
Description of Functions

Backlash compensation
Mechanical drive components as a rule have a certain amount of backlash (free
play).
Mechanical reversing backlash can be compensated with MD30. In an indirect
measuring system (with the encoder on the motor), the mechanical backlash is
traveled at each change of direction before any axis movement occurs. The result
is positioning errors.

– +

Spindle

Backlash

When the position encoder is situated on the machine part to be positioned (e.g.
on a saddle - direct arrangement), backlash adversely affects the achievable Kv
factor. On the other hand, if the position encoder is attached to the drive motor (in-
direct arrangement), a high Kv factor can be achieved, but at the cost of position
deviations that cannot be detected by the position controller. A backlash amount
entered in MD30 is applied as a correction by the position controller as a function
of the traveling direction at a given moment, thus achieving an approximate com-
pensation for backlash in positioning.
MD31 is used to label the “backlash-free” or “accurate-measurand” traveling direc-
tion of the axis. If MD31 = 0, the “backlash-free” direction is the one that matches
the direction of axis movement when synchronization is recorded. Depending on
MD18, this will correspond to the following association:
MD18 = 0, 2, 4, 8: Plus direction is backlash-free
MD18 = 1, 3, 5, 9: Minus direction is backlash-free

MD Designation Value/Meaning Unit


30 Backlash compensa- 0 to 1 000 000 [MSR]
tion
31 Directional reference 0 = as in reference point –
of backlash approach
(not for absolute encoders)
1 = positive
2 = negative

The backlash is traversed at a speed of 1% of the maximum possible speed


(MD23).

FM 354 Servo Drive Positioning Module


9-82 6ES7 354-1AH01-8BG0
Description of Functions

Other function options


The particulars of backlash compensation can be defined with MD52 and MD53.

MD Function Value/Description Unit


52 Speed for backlash 0
compensation Backlash traversing speed 1 % of MD23
1 to 1 00
Backlash traversing speed in % of MD23 [%]
53 Mode for backlash 0= Backlash compensation prior to positioning –
compensation 1= Backlash compensation during positioning
The backlash traversing speed is added to the
programmed speed for the traversing job
affected by override.

Note the following carefully:


S Backlash travel is not affected by override, and is uninterruptible.
S If the interdependencies of the MDs are violated, an error is reported with
”range violation” as its cause.
S Backlash compensation goes into effect prior to reference point approach.
S A change in MD30 (backlash) takes effect only after a traversing movement in a
backlash-free direction (MD31).
S In ”Open-loop control” mode, backlash is traversed with the preset voltage rat-
ing.
Offset compensation
The analog modules in the positioning control loop (D/A converter of the FM354
and closed-loop controller module of the drive) cause a zero error because of oper-
ating-voltage and component tolerances. The result is that at an internal digital
rotational-speed specification of zero in the FM 354, the drive motor will already be
running undesirably. As a rule, drive controllers have adjustment capabilities for
balancing. But by setting a voltage offset via MD44 the analog system can be bal-
anced at startup from the FM side.

MD Designation Value/Meaning Unit


44 Offset compensation –1,000...+1,000 [mV]

For calculation of the offset value, see Section 7.3.2, Drive interface.
Direction alignment
MD19 allows you to align the direction by defining an assignment between the volt-
age sign of the manipulated signal and the axis movement.

MD Designation Value/Meaning Unit


19.1 Direction adjustment 1 = invert analog value –

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-83
Description of Functions

Voltage ramp
A ramp–shaped voltage rise/drop can be defined in MD45 for the voltage output to
the drive when the position controller is inactive. This serves to limit acceleration
and thus power for the drive controller, and is preferable to setting options that may
be available on the drive, since it has no adverse effects on active position control.
The voltage ramp is active in the following situations:
S Continuously in Control mode
S Deceleration on cancelation of the drive enable [AF] (see Section 9.1.1)
S Deceleration on transition of CPU from RUN to STOP
S Deceleration on error response “Everything Off” (see Sections 11.1, Tab. 11-4
and 11-5)
S Class 3 errors/Nos. 62, 65 and 66 (see Table 11-7)

MD Designation Value/Meaning Unit


45 Voltage ramp 0...10,000,000 [mV/s]

D/A converter
Output of analog voltage setpoint

Velocity assignment and max. voltage setpoint


The manipulated signal calculated by the position controller is available internally
on the FM as a velocity setpoint (see position loop gain). To convert this value to
the analog actuating signal, a conversion factor (DAC factor) within the FM is nec-
essary. This factor is formed as the quotient of MD43 and MD23. MD23 contains
the configured maximum speed of the machine axis, and MD43 contains the volt-
age setpoint of the actuating signal to be output by the FM 354 for this purpose; as
a compromise between the highest possible resolution and adequate close-loop
control reserve, this voltage should lie between 8 V and 9.5 V.

Warning
! This assignment MUST be identical with the setting on the drive!

MD Designation Value/Meaning Unit


23 Maximum speed 10...500,000,000 [MSR/min]
43 Set voltage, max. 1,000...10,000 [mV]

FM 354 Servo Drive Positioning Module


9-84 6ES7 354-1AH01-8BG0
Description of Functions

9.8 Digital inputs/outputs (Read request in the user DB,


DBX43.4)

Overview
Four digital inputs and four digital outputs of the FM 354 can be used specifically to
a given application.
The conventions and parameterization for this purpose are defined in the machine
data MD34 to MD36.
The signals are processed in the FM cycle.
The signal status of the digital inputs and outputs can be recognized by readback
(user DB, DBX43.4).

Function parameters
Table 9-13 shows you the functions assigned to each digital I/O.

Table 9-13 Function parameters for digital I/Os

MD Designation Data type, bit array/meaning


34 Digital inputs1) I0 I1 I2 I3
0 8 16 24 = External start2)
1 9 17 25 = Enable input
2 10 18 26 = External block change
3 11 19 27 = Set actual value on-the-fly
4 12 20 28 = Measurement (inprocess
measurement,
length measurement2))
5 13 21 29 = Reference point switch for
reference point approach2)
6 14 22 30 = Reversing switch for
reference point approach2)
35 Digital outputs1) Q0 Q1 Q2 Q3
0 8 16 24 = Position reached, stop
1 9 17 25 = Aaxis movement forwards
2 10 18 26 = Axis movement backwards
3 11 19 27 = Change M97
4 12 20 28 = Change M98
5 13 21 29 = Start enable
7 15 23 31 = Direct output

1) see Section 5.3.1, Dependencies


2) Signal lengthw 2@FM cycle

Level adjustment

MD Designation Value/Meaning Comments


36 Input adjustment 8 = I0 inverted Front edge always activates
9 = I1 inverted the function
10 = I2 inverted
11 = I3 inverted

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-85
Description of Functions

9.8.1 Function description of digital inputs

External start
The control signals of the axis include the start signal which triggers a positioning
operation in “Reference point approach”, “MDI” and “Automatic” modes. A logical
OR is established with the “External Start” digital input and the control signal (ST).
External start is connected to digital input I1.

Example
ST 1
w1 3
Control signal (Start)
dig. “External start” input 2

Input I1 not inverted (MD36) Input I1 inverted (MD36)

1
2

Minimum signal length at the digital input: w 2@FM cycle

Enable input
The enable input signal must be set, if defined in MD34, for a positioning operation/
movement/output of the axis to take place. A reset stops the movement (external
movement enable).
S In the Jogging and Control modes, the movement of the axis proceeds as long
as the AND link continues between the control signal (R+/R–) and the enable
input.

Example
R+ or R– 1
3
& Positioning
2
Enable

1
2

S In the other modes, note the following:


If the enable input is still not enabled after a start edge, the start edge is stored
internally and “waiting for enable” is indicated by the checkback signals. When
the input is set, movement begins and the stored Start edge is deleted (a Stop
likewise deletes the stored Start edge).

FM 354 Servo Drive Positioning Module


9-86 6ES7 354-1AH01-8BG0
Description of Functions

External block change


see Chapter 10

Set actual value on-the-fly


see Chapter 10 and Section 9.3.6

Measurement
see Section 9.3.10

Reference point switch for reference point approach


see Section 9.2.3

Reversal switch for reference point approach


see Section 9.2.3

9.8.2 Function description of digital outputs (Write request in the


user DB, DBX39.4)

Output of PEH, FR+, FR–, SFG


The following checkback signals: position reached, stop (PEH), axis movement
forward (FR+), axis movement in reverse (FR–), and enable Start (SFG), are addi-
tionally output via digital outputs. The output assignment is parameterized by way
of MD35.

Output of change M97 or M98


The change M-function (AMF) checkback signal for the M functions M97 and M98
is output as a digital output. It allows these M functions (switching signals) to be
applied without being delayed by the user cycle time.

Direct output
Outputs Q0...Q3 (D_OUT1...D_OUT4), which are defined in MD35 as “direct out-
put”, can be used directly by the user program (user DB, DBX39.4) and can also
be controlled by the FM 354.
Since the same memory is used in the user DB for Write request (user DB,
DBX39.4) and Read request (user DB, DBX43.4), the jobs cannot be used simulta-
neously in the cycle.

Note
The outputs are subject to deactivation on module errors of error classes with the
response “Everything Off”.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-87
Description of Functions

9.9 Software limit switches

Overview
To limit the working range, entries in the machine data (MD21 and MD22) specify
the start and stop limit switches. These limit switches are active at synchronization
of the axis.
If the limit switches are not needed, values lying outside the possible working
range should be entered in the machine data (MD21 and M22), or monitoring
should be switched off via the user program.

Warning
! The software limit switches do not replace the hardware limit switches for EMER-
GENCY STOP responses.

Effect of software limit switches in modes


“Jogging mode”
At the limit switch the traveling movement is stopped in the limit-switch position,
and an error is signaled.
“Control mode”
If the actual value is beyond the end position, the traveling movement is stopped
and an error is signaled. The limit-switch position is overshot by the amount of the
necessary deceleration distance.
“Reference-point approach” mode
No effect.
“Incremental relative”, “MDI”, “Automatic mode”
Movement is stopped, or not even started, as soon as read-in of the set position
reveals that the position lies outside the working range. An error is signaled.
The following special cases exist:
S Continuous travel (–) for set actual value on-the-fly (G88 see Chapter 10)
S Continuous travel (+) for set actual value on-the-fly (G89 see Chapter 10)

Effect of software limit switches in tracking mode


If the actual value is beyond the end position, an error is signaled.

FM 354 Servo Drive Positioning Module


9-88 6ES7 354-1AH01-8BG0
Description of Functions

Response after error


Leaving end position or traveling into working range after error
1. Acknowledge the error message!
2. Travel to the working range with the “Jogging”, “Control”, “Incremental Relative”
or “MDI” mode.

Rotary axis
The end position of MDstart may be greater than MDstop.
When traveling into the working range (e.g. end position was previously switched
off), the shortest path is always chosen.
If both default values are parameterized the software limit switches are inactive.

9.10 Process interrupts

Overview
Process interrupts are interrupts that quickly signal states in the current process to
the user program.
The appropriate setting in the machine data (MD5) specifies which signals are to
be quickly communicated to the user program.

Process-interrupt generation
The process interrupt is generated by way of machine data item MD5:

MD Designation Significance
5 Process-interrupt genera- 0 = Position reached
tion (data type - bit field) 1 = Length measurement completed
3 = Change block on-the-fly
4 = Inprocess Measurement

Hint to the user


You must program the interrupt processing routine in OB40.
The prerequisite is that process-interrupt signaling must have been activated as
part of the environment definition (see Chapter 5).
J

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 9-89
Description of Functions

FM 354 Servo Drive Positioning Module


9-90 6ES7 354-1AH01-8BG0
Writing Traversing Programs 10
Chapter Overview

Section Section Header Page


10.1 Traversing blocks 10-2
10.2 Program execution and direction of machining 10-16
10.3 Block transitions 10-16

Overview
To execute the desired operations of the machine axis (sequence, position, etc.) in
“Automatic” mode, the FM 354 needs certain information. This information is pro-
grammed with “Parameterize FM 354” (traversing program creation) in the form of
a traversing program, based in principle on DIN 66025.

Traversing programs
Each traversing program is stored under a program number.
A traversing program consists of not more than 100 traversing blocks.
The program number and traversing blocks are converted to an internal format
(see Section 9.3.12), are stored in the appropriate data block, and are transferred
to the module. Where they are administered.
The possible number of programs depends on the amount of memory available
(max. 16 Kbytes) and on the length of the individual programs.
Program length in bytes: 108 + (20 x no. of traversing blocks)

Program name
Any program can be assigned a name (optional).
The program name may have up to 18 characters, and is saved with the program.

Program number
Programs may be numbered from % 1 to % 199.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 10-1
Writing Traversing Programs

Traversing block
A traversing block contains all the data required to perform a machining step.

Program structure
A program consists of several blocks. Each block number occurs only once, and
numbers are arranged in ascending order.
A sample program structure follows:

/ N G1 G2 G3 X/t F M1 M2 M3 D L P

5 90 500 000 100 000 10 Start of


program =
6 91 ... ... lowest
... block
7
. number
.
.
45
End of pro-
46 2 gram =
M2 or M30

10.1 Traversing blocks

Block structure
The following Figure gives you an overview of the structure of traversing blocks.

/ N G1 G2 G3 X/t F M1 M2 M3 D L P

/ – Identifier for skipped block


N – Block number
G1 – G function of first function group
G2 – G function of second function group see Table 10-1
G3 – G function of third function group
X/t – Position/dwell time
F – Speed
M1 – M function of first function group
M2 – M function of second function group see Table 10-2
M3 – M function of third function group
D – Tool offset number
L – Call a program as a subprogram
P – Number of subprogram calls

FM 354 Servo Drive Positioning Module


10-2 6ES7 354-1AH01-8BG0
Writing Traversing Programs

Skip block /
Program blocks which are not to be executed every time the program runs can be
identified as skippable blocks by an oblique “/ ”. When the program is being pro-
cessed, the “Skip block” control signal can be used to decide whether skippable
blocks are to be skipped. The last block may not be skipped.

Block number N
The program is executed in ascending order of block numbers, from 1 to 255, or in
descending order if executed in reverse.

G function group 1...3


In each traversing block only one G function may be entered from each G function
group.
The following figure shows an example.

/ N G1 G2 G3 X/t F M1 M2 M3 D

10 90 34 43 100 000 400 00 10

G functions
Table 10-1 lists the possible G functions and the individual G function groups.

Table 10-1 G functions

G No. G Function G Function


group
041) Dwell time
87 Turn off measuring system shift for Set Actual Value On-the-Fly
881) Continuous travel for (–) for Set Actual Value On-the-Fly
1
891) Continuous travel for (+) for Set Actual Value On-the-Fly
90 Absolute measure
91 Increment size
30 100% override on acceleration/deceleration
31 10% override on acceleration/deceleration
32 20% override on acceleration/deceleration 2
.. ..
39 90% override on acceleration/deceleration

1) These G functions take effect only on a block-by-block basis. The other G functions remain
active until canceled explicitly.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 10-3
Writing Traversing Programs

Table 10-1 G functions, continued

G No. G Function G Function


group
43 Tool offset (+)
44 Tool offset (–)
501) External block change 3
60 Block change – exact positioning
64 Set actual value on-the-fly, continuous-path mode

1) These G functions take effect only on a block-by-block basis. The other G functions remain
active until canceled explicitly.

G30, G90 and G64 are the initial settings after the start of the program.

Dwell G04
A traversing block with dwell can only contain M functions and the time parameter
apart from this G function.
The following applies for dwell time:

Lower input Upper input


Name Unit
limit limit
Dwell time 2 100 000 ms

Input values are rounded upwards in FM cycle steps (2ms). Dwell times take effect
block after block only.

Block change G60, G64 (approach conditions)


With G60, the exact programmed position is approached and the feed movement
is stopped (exact stop block change).
G64 causes the next block to be processed immediately as soon as the point of
deceleration is reached (change block on-the-fly).
G60 and G64 are mutually exclusive and self-maintaining.
M commands have no effect on G64 operation.
(For a detailed description, see Section 10.3).

External block change (G50) with delete residual path


The “external block change” function causes a block change on-the-fly triggered by
a digital input. The fast input must be parameterized with the “External block
change” function by way of machine data item MD34.
The function takes effect only on a block-by-block basis (no effect on G60 and
G64).

FM 354 Servo Drive Positioning Module


10-4 6ES7 354-1AH01-8BG0
Writing Traversing Programs

Example of external block change


The following figures show the program structure and program flow of an example
of “External block change.”

/ N G1 G2 G3 X/t F M1 M2 M3 D

10 50 10 000 1 000
20 12 000 1 300

F
N10 N20
1 300
1 000

ÍÍ
E X
10 000 12 000

E – digital input
ÍÍ X

Notes to the example of external block change


The axis travels until a signal change from 0 to 1 takes place at the digital input.
This triggers two reactions:
S A block change on-the-fly, and thus immediate processing of block N20.
S Storage of the actual position at the time of this signal change to “Actual value
block change.” This position is also the starting position for any subsequent
chain-measure programming.
Depending on the situation, N20 is processed as follows:
S If the block position in N20 is less than the actual position at the time when the
digital input is received (reversal of direction), the equipment is stopped so that
the position can then be approached in the opposite direction.
S If no position is programmed in block N20, movement is braked, the functions
programmed in N20 are executed, and processing then moves on to the next
block (except if the block contains M0, M2 or M30).
S If the programmed path in block N20 is less than the deceleration distance, the
programmed position is overshot and then positioned by a reversal of direction.
If no signal change occurs at the digital input, the target position of N10 is ap-
proached, with the following additional response:
When the target position is reached, the error message “Digital input not actuated”
is output (see Table 11-5, Class 2 No. 15).

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 10-5
Writing Traversing Programs

Set actual value on-the-fly G87, G88, G89


The “Set actual value on-the-fly” function is programmed and triggered by a digital
input; the block change occurs on the fly and the actual value is set to a new di-
mension (programmed coordinate) at the same time. The digital input must be
parameterized with the “Set actual value on-the-fly” function by way of machine
data item MD34.

Example of set actual value on-the-fly


The following figures show the program structure, program flow and actual-value
curve for an example of “Set actual value on-the-fly.”

/ N G1 G2 G3 X/t F M1 M2 M3 D

10 90 100 400 000


15 89 (88) 50 200 000
20 90 300 400 000
25 87 400 400 000

V
N10 N15 N20 N25

t
Reversal of direc-
I tion

Í t

I
N10 N15 N25

X System of
0 50 100 150 200 250 300 350 400 measurement
normal
N20

System of X
measurement
0 50 100 150 200 250 300 350 400
shifted

I – digital input

FM 354 Servo Drive Positioning Module


10-6 6ES7 354-1AH01-8BG0
Writing Traversing Programs

Notes to the example of set actual value on-the-fly


This changes blocks on-the-fly from N10 to N15, with G89 causing movement in a
positive direction and G88 causing movement in a negative direction at the speed
programmed in N15.
The axis now travels in the specified direction until a positive edge change occurs
at the digital input. This triggers the following responses:
S Block change on-the-fly and immediate processing of block N20
S Set actual value on-the-fly to the block position from N15 (50 in the example),
and resulting shift of the coordinate system
S Save current actual value.
The programmed position in block N20 refers to the shifted coordinate system.
At the block change from N20 to N25, G87 cancels the shift of the coordinate sys-
tem and causes reference-measure programming to the block position
of N25.
The saved actual value can be read out with “Actual value block change.”
The shift of the coordinate system is maintained until it is canceled by G87 or by a
mode change. It is possible to use the existing shift of the coordinate system in
different programs. The coordinate system can be shifted again without previously
canceling an existing coordinate system shift.
G88, G89 can be programmed multiple times. The shift in each case refers
to the original state. The software limit switches are always shifted concurrently.
If the signal change of the digital input does not occur, the axis runs until it reaches
the limit switch.

Note
The G functions G87, G88 and G89 take effect only on a block-by-block basis and
must be reselected if necessary.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 10-7
Writing Traversing Programs

Dimensions G90, G91


The traversing movement at a specific point can be described by
S Reference-measure input (absolute measure input) G90 or
S Incremental input (relative measure input) G91

You can switch back and forth at will between reference-measure and incremental
input.
The status at startup is reference-measure programming, G90.
G90 and G91 are modal.

Absolute dimensioning G90


Absolute dimensioning is the method used to specify dimensions that generally
refer to the coordinate system.

/ N G1 G2 G3 X/t F M1 M2 M3 D
90 20 100

Programmed Actual position


Position

0 10 20 30 40 50 mm

Fig. 10-1 Reference-measure input G90

Note
To ensure precise reproduction of the program, the first block should contain refer-
ence-measure programming.

FM 354 Servo Drive Positioning Module


10-8 6ES7 354-1AH01-8BG0
Writing Traversing Programs

Incremental dimensioning G91


Incremental dimensioning is the method used to specify incremental dimensions
that refer to the last actual position.

/ N G1 G2 G3 X/t F M1 M2 M3 D
91 –30 100

Programmed Actual position


Position

0 10 20 30 40 50 mm

Fig. 10-2 Incremental input G91

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 10-9
Writing Traversing Programs

Axis as rotary axis


If the axis is operated as a rotary axis, the measuring system must be adjusted in
such a way that the measurement scale refers to the full circle (e.g. 0_ and 360_).
S Reference-measure input G90
In a full circle with 360_, reference-measure programming (G90) has the pecu-
liarity that there are always two options for reaching the set position.

Option 1 Option 2
Set position 0_ Actual position Set position 0_ Actual position
315_ 45_ 315_ 45_

270_ 90_ 270_ 90_

225_ 135_ 225_ 135_


180_ 180_
with direction R+ specified

/ N G1 G2 G3 X/t F M1 M2 M3 D
10 90 315 100

Fig. 10-3 Rotary axis

Option 1:
With G90, the axis autonomously always takes the shortest path to reach the
set position of 45_, going via 0_ to 315_.
Option 2:
The control signals (R+) or (R–) force the respective direction of the axis - in
this example 45_ via 180_ to 315_. (R+) or (R–) must already be pending when
positioning is activated (START).

Note
The direction (R+) or (R–) must be specified sufficiently in advance. A traversing
direction cannot be forced on a traversing block that is already active, or on the
traversing blocks (up to 4) that have already been calculated in advance in G64
operation.
Operation with option 1 or option 2 is at the user’s discretion.

S Incremental input G91


With incremental programming G91, the direction of rotation of the rotary axis is
defined by the sign of the position setpoint. Multiple rotations can be pro-
grammed by setting a value > 360_ as the position setpoint.

FM 354 Servo Drive Positioning Module


10-10 6ES7 354-1AH01-8BG0
Writing Traversing Programs

Acceleration override G30...G39


The acceleration override is used to control acceleration and deceleration during
positioning movements. The acceleration and deceleration values are set by ma-
chine data. G30 through G39 in the traversing block can be used to achieve a per-
centage reduction in both values. These functions are modal.
G Function
30 100% override for acceleration/deceleration
31 10% override for acceleration/deceleration
to
39 90% override for acceleration/deceleration
Changing the acceleration override in the program prevents block change on-the-
fly. Consequently G60 response is forced in the preceding block.
The acceleration override is turned off by:
S Mode changes
S Resetting the axis with a Restart (single command)
S Changing or ending the program.

Tool compensation G43, G44


Tool compensation allows you to continue using an existing machining program,
even when the tool dimensions have changed.
Tool offset is selected with G43 or G44, as applicable, and the tool offset number
D1...D20. Tool offset is turned off with G43 or G44, as applicable, and the tool off-
set number D0.
A total of 20 tool offset storage areas and tool wear storage areas are available.
The values are loaded to the module with the “Tool offset data” data block and are
saved permanently. When selected, changed or turned off, the tool offset is not
taken into account until the next positioning action.
A selected tool offset is maintained in effect until it is either turned off or replaced
with a new one. Likewise a mode or program change, or the end of a program, will
turn tool offset off.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 10-11
Writing Traversing Programs

Variants in tool offset


Tool offset is made up of two correction-value components:
S Tool length offset
The tool length offset is the actual tool length from tool zero to the tool tip.
S Tool length wear value
The tool length wear value allows the change in tool length due to wear to be
compensated in two ways:
Absolutely: by specifying a fixed wear value
Additively: by adding an “offset value” to the current tool length wear
value contents.

Tool new Tool wear a Tool wear b

ÉÉ
ÉÉ Tool zero
ÉÉ ÉÉ
DVadd DV
DL DVabs

Fig. 10-4 Tool offset

Notes to the figure:


The tool offset thus consists of the tool length offset and the tool length wear value:
D = DL – DV
DV = DVabs + DVadd
D – Tool offset
DL – Tool length offset (positive or negative)
DV – Tool length wear value (positive or negative)
DVabs – Wear, absolute (positive or negative)
DVadd – Wear, additive (positive or negative)DVadd

If the additive wear is modified on–line, the FM computes the new absolute wear
and resets the additive wear to zero.

FM 354 Servo Drive Positioning Module


10-12 6ES7 354-1AH01-8BG0
Writing Traversing Programs

Direction of tool offset


The functions G44 (–) and G43 (+) correct the position value in such a way that the
tool tip reaches the programmed set position.
S Negative tool offset G44
As a rule, the tool points to the workpiece in a negative direction. With the in-
feed adjustment, the positioning value (traversing path) becomes smaller.
Referred to the measuring system, the following position is thus approached:
Xms = Xset + (D)
Xms – Position of measuring system
Xset – Programmed set position
D – Tool offset
S Positive tool offset G43
The positioning value (traversing path) becomes greater with the infeed adjust-
ment. The position value is corrected by:
Xms = Xset – (D)
To program a tool offset in the traversing block, at least the tool length offset must
be input. If no correction is to be applied even when the function has been se-
lected, the tool length offset and tool length wear value must be preset to 0.
A tool length wear value can be deleted by an absolute input of 0.

Position X
Positions may be input with a negative or positive sign. The plus sign on positive
values may be omitted.

Lower input Upper input


Name Unit
limit limit
Position – 1,000,000,000 + 1,000,000,000 MSR from MD7

Speed F
The input speed is calculated against the override. If the speed value is numeri-
cally greater than the maximum allowed speed, it is limited to the magnitude of the
machine data item. Speeds are self-maintaining and need to be re-input only when
changed.

Lower input Upper input


Name Unit
limit limit
Speed 10 500 000 000 MSR from MD7/min

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 10-13
Writing Traversing Programs

M functions
Up to three M functions can be programmed in one traversing block, with any as-
signment of M1, M2 and M3. The output sequence of the M functions is always
M1³M2³M3 (for information about output see Section 9.1).
The following figure shows an example.

/ N G1 G2 G3 X/t F M1 M2 M3 D

10 90 34 43 100 000 400 00 10 11 12 1

Table 10-2 M functions

M No. M Function M Function


group
0 Stop at end of block
2, 30 End of program
1, 3...17 User functions
18 Endless loop (skip back to start of program)
1, 2, 3
19...29, User functions
31...96
97, 98 Change signal programmable as digital output
99 User functions

M0, M2, M18 and M30 are always output at the end of the traversing movement.
M0, M2, M18 and M30 are mutually exclusive within a single block.

Stop at end of block M0


If M no. 0 is programmed in a traversing block, the program stops at the end of the
traversing block and M0 is output. Only a new START edge causes the traversing
program to be continued.

End of program M2, M30


If M2 or M30 is programmed in a block, then after positioning is complete the M
function is output with a subsequent programmed stop and a jump back to the start
of the program. The Start edge can restart the program. M2 or M30 is always the
last output in the block.
If the program is called up as a subprogram, the action skips to the main program.
In this case M2 or M30 is not output.

FM 354 Servo Drive Positioning Module


10-14 6ES7 354-1AH01-8BG0
Writing Traversing Programs

Infinite loop M18


M18 is always output as the last M function in the block.
Two cases are distinguished:
S M function M18 is output like any other M function. Only after the block has
been processed all the way to the end (including M18) does the axis skip back
to the start of the program.
S If M function M18 is programmed alone in the last block of a traversing pro-
gram, the M function is not output, and the axis immediately skips back to the
start of the program.

Change signal programmable as digital output M97, M98


If M97 or M98 is programmed in a block, the M function output proceeds via the
digital outputs as defined in machine data item MD35, in the same way as the
checkback signals.

Tool offset number D


Twenty tool offset numbers (D1 – D20) are available. D0 in conjunction with G43 or
G44 causes the tool offset to be switched off. The offset values must previously
have been loaded to the module. Nonstandard offset values have a value 0.

Subprogram call P, L
A block with a subprogram call (P is the “number of calls”, L is the “program num-
ber”) cannot contain any further information.

Name Lower input limit Upper input limit


P = Number of subprogram callup 1 250

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 10-15
Writing Traversing Programs

10.2 Program execution and direction of machining

Forward processing
As a rule, programs are processed by ascending block number.

Reverse processing
If programs are processed in reverse, the effects of commands must be taken into
account in the programming:
S Commands are self-maintaining (G90, G91, G60, G64, G30...G39)
S Active tool offset (G43, G44, D0...D20)
S Change of coordinate systems via G87, G88, G89.
For these reasons, a distinction can be made between forward processing and re-
verse processing, in terms of both geometry and block transition response.

10.3 Block transitions

Overview
This chapter describes the influence of certain commands on block transitions.

Exact positioning - G60


G60 mode is overlaid with G50 and G88 to G89 (force block change on-the-fly).
The program advances to the next block when the target range is reached.
The influence of M functions is as indicated in machine data item MD32.

Output of M function before positioning

Case 1 V Ni Ni+1

ÉÉÉÉ
ÉÉ
M

ÉÉÉÉ
ÉÉ
ÉÉÉÉ
ÉÉ t

FM 354 Servo Drive Positioning Module


10-16 6ES7 354-1AH01-8BG0
Writing Traversing Programs

Output of M function during positioning


Case 2 V Ni Ni+1

(”long block”)

ÉÉÉÉÉÉ
M

ÉÉÉÉÉÉ
ÉÉÉÉÉÉNi Ni+1
t

(”short block”)

Output of M function after positioning


Case 3 V
Ni

M
Target range

ÉÉÉÉÉÉ
ÉÉÉÉÉÉ t

Change block on-the-fly - G64 (standard case)


Changing from one traversing block to the next proceeds without stopping the axis.
The acceleration and braking function is calculated for multiple blocks when the
G64 function is programmed. The number of blocks processed in advance is three.
When the block changes, the feed rate is changed in such a way that a higher
speed from a preceding block is never carried over into the next block, and a
higher speed from a following block never goes into effect while a given block is
still traversing its own path. This means that acceleration does not begin until the
starting point of the block, and deceleration to a lower speed for a following block is
initiated as with G60. When the speed of the following block is reached, the resid-
ual distance in the current block is processed at the feed rate of the following
block.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 10-17
Writing Traversing Programs

Sample programming (standard case)


The following figure shows a sample program with the programming flow.

/ N G1 G2 G3 X/t F M1 M2 M3 D
5 90 64 10 000 100 00
10 20 000
15 30 000 200 00
20 40 000 150 00
25 64 30 000 100 00

V
N5 N10 N15 N20 N25

3
4
1 2

1 – Block N10 is started at the point of deceleration of N5.


2 – N15 is started at the point of deceleration of N10. Acceleration to the
higher traversing speed begins when the set position of N10is reached.
3 – N20 is started at a lower traversing speed at the braking point of N15.
4 – In a change of traversing direction, the axis brakes until it comes to a
standstill and waits until the actual value of the encoder has reached the
target range.
5 – When the target range is reached, the axis accelerates in the opposite
direction up to the traversing speed of the new block.

To be able to approach a position correctly, the axis must calculate the point of de-
celeration. The relevant parameters for this calculation are the residual traversing
distance, the deceleration value and the current traversing speed.
The point of deceleration is also the earliest possible time for a block change.

FM 354 Servo Drive Positioning Module


10-18 6ES7 354-1AH01-8BG0
Writing Traversing Programs

Change block on-the-fly - G64 (deceleration)


There are a number of conditions that may delay or prevent a block change on-the-
fly. Here a distinction is necessary between the case in which this type of block
change is suppressed intentionally, and the case in which the selected function
does not permit a block change on-the-fly.
S Block change on-the-fly is suppressed:
– By removing the Enable read-in control signal - this stops program process-
ing at the end of the current block. To continue the program, the enable must
be re-input.
– By output of the M function before or after positioning.
– By M function M0 (stop at end of block). To continue the program, the
START control signal must be reset.
– By a block with a dwell time.
– By processing a program in the Automatic/Single Block mode. Each block
must be activated individually.
– By a change in the acceleration override.
S Functions that themselves prevent block change on-the-fly:
– M functions (during positioning).

V 1 V 2 V 3

t t t
M
M M

ÉÉÉ
ÉÉÉ t
ÉÉÉÉ
ÉÉÉÉ ÉÉÉÉÉ
ÉÉÉÉÉ t t

1 – Since the M output is completed at the point of deceleration, a block


change takes place on-the-fly.
2 – The M output is not yet complete at the point of deceleration. The axis
begins to brake. At the end of the M output, the axis returns to speed
(transition on-the-fly from deceleration ramp to acceleration ramp).
3 – Axis comes to a complete standstill and waits for the end of M output.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 10-19
Writing Traversing Programs

Influence of M function on block change on-the-fly


Machine data can specify the output time for M functions:
S M function is output before or after positioning with a block change
M-function output and positioning proceed in alternation.
– M function output before positioning causes exact-positioning response in
the preceding block.
– M function output after positioning causes exact-positioning response within
the block.
S M function is output during positioning
M-function output and positioning proceed simultaneously.
The following figure shows a sample program with M function output “during
positioning”.

/ N G1 G2 G3 X/t F M1 M2 M3 D

5 90 10 000 100 00 10
10 20 000 20
15 30 000 30 40
20 60 40 000 97

V
N5 N10 N15 N20

1 2 3 4

X
10 000 20 000 30 000 40 000
M No.

10 20 30 40 97

1 – Output of M10 is not position-dependent, since no relevant position for


a position-dependent M function is present.
2 – At the block change from N5 to N10, output is prepared. The axis
the M function does not proceed until the actual position has reached the
programmed position of N5.
3 – If two M functions are programmed in a traversing block, the first
M function is output depending on position, followed by the second
M function.
4 – The change signal for M97 or M98 is output with the G64 block
transition (digital output) if the actual position has reached the
programmed position of the block. The actual position runs behind
the set position (difference = overtravel).

FM 354 Servo Drive Positioning Module


10-20 6ES7 354-1AH01-8BG0
Troubleshooting 11
Chapter Overview

Section Section Header Page


11.1 Error classes and module responses 11-3
11.2 Error messages 11-4
11.3 Error lists 11-9

Overview
The FM 354 provides diagnostics for the following:
S I/Os
S Module processes
This chapter “Troubleshooting” describes the different types of errors, their cause,
effect and elimination.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 11-1
Troubleshooting

Error localization
The FM 354 distinguishes between
S Errors which trigger a diagnostic interrupt in the CPU, and
S Errors which the module reports by way of checkback messages.
In the event of diagnostic interrupt, STATUS LEDs light up in addition.

CPU FM 354
RAM
Diagnostic External
OB 82 interrupt channel
Call SFC 52 errors
Diag- Write diagnostic interrupt infor- “Binary”
nostic mation External
Callup in user diagnostic in-
backup FC POS_DIAG errors
program P bus terrupt infor-
of CPU
mation
OB 1 Other Internal
error message errors
FC POS_CTRL
SSL
Other er-
.
. Diagnos- rors, oper-
. tic backup ating er-
error his- rors
DB-SS tory
User DB K bus

MPI

OP

Parameterize FM 354 STEP 7-Info


SSL – System Status List
PG (STEP 7) SFC – System Function
DB-SS – Data block for status messages

Fig. 11-1 Overview of diagnostics/errors

Error evaluation by software


The following manuals describe how to include diagnostics-capable modules in
your user program, and how to evaluate the diagnostic messages:
S Programming manual System Software for S7-300/400; Program Design (OB
Types, Diagnostic Interrupt OB 82)
S Reference manual System Software for S7-300/400; System and Standard
Functions
A basic description of the diagnostic system of the S7-300 can be found in the user
manual Standard Software for S7 and M7, STEP 7.

FM 354 Servo Drive Positioning Module


11-2 6ES7 354-1AH01-8BG0
Troubleshooting

11.1 Error classes and module responses

Overview
The FM 354 contains monitoring circuits which are active during startup or during
continuous operation. Errors occurring during those times are reported to the sys-
tem and to the user program.
The table below lists the error classes and their meaning.
Table 11-1 Error classes, overview

Message Error Class Response Significance


...are hardware faults in the module which are discovered
by diagnostics routines (e.g. memory errors).
Internal errors
(see Section 6.3.3 for diagnostic interrupt data and error list,
Table 11-4)
...are errors which can occur due to faulty module connec-
tion (e.g. parameters for initialization of module MP station
External errors numbers are missing or are incorrect).
Diagnostic Everything
(see Section 6.3.3 for diagnostic interrupt data and error list,
interrupt OFF
Table 11-4)
...are measurement system errors or errors which can occur
by connecting the digital outputs or during operation (oper-
External ating errors) of the FM 354 (e.g. cable break, incremental
channel errors value encoder).
(see Section 6.3.3 for diagnostic interrupt data and error list,
Table 11-4 and 11-5)
... are errors (operator/travel errors) which can occur during
Operator con-
Feed operator inputs to the FM 354 (e.g. direction signals R+ and
trol and travel
STOP R– set at the same time, see Error List, Tables 11-6 and
Checkback errors
11-7).
signals
... are errors (data, machine data and traversing program
Data errors Warning! errors) which are detected on interpretation of invalid data
(see Error List, Table 11-8).

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 11-3
Troubleshooting

Error response
Each error message triggers an appropriate response.

Table 11-2 Overview of internal error responses

Error re- Significance


sponse
Everything S Stop movement by way of voltage ramp (MD45)
OFF S Disable digital outputs
S Deactivate servo enable
S SYN is cleared after the error has been acknowledged with Restart
S No new travel jobs possible
Feed STOP S Stop movement by controlled deceleration
S Travel job is canceled and terminated.
S Measured data acquisition and position control are continued.
S No new travel jobs possible
Warning S Message only
S Movement and control of axes not affected

11.2 Error messages

Introduction
The following approaches to error localization are available for the FM 354:
S Error display by LEDs
S Error messages to the system and to the user program

11.2.1 Fault indication by LED

Status and error displays


The FM 354 features the following status and error displays:

SF

DC 5V
DIAG

Fig. 11-2 Status and error displays of the FM 354

FM 354 Servo Drive Positioning Module


11-4 6ES7 354-1AH01-8BG0
Troubleshooting

Significance of the status and error displays


The status and error displays are explained in the order in which they are arranged
on the FM 354.

Table 11-3 Status and error displays

Display Significance Explanations


SF (red) Group errors This LED indicates an error condition in the FM 354.
LED-ON Diagnostic interrupt (internal error, external error or external chan-
nel error)
To eliminate the error see Error List, Table 11-4.
5 V DC (green) Power supply This LED indicates that the hardware is ready for operation.
switched on If not illuminated, this may indicate one of the following condi-
tions:
S Your line voltage is not OK.
S Load current supply is faulty.
S Module is incorrectly connected.
S Your control circuit is configured incorrectly (sum of rated and
starting currents is too great), or
S The module is faulty.
DIAG (yellow) Diagnostics This LED indicates the various diagnostic conditions.
LED-ON Diagnostic interrupt (external channel error).
To eliminate the error see Error List, Table 11-4.
LED-blinking If this LED blinks when the LED “SF” is simultaneously activated,
this indicates a system error. If this occurs, then please consult the
appropriate sales department. The exact circumstances which re-
sulted in the error are of major importance in this case.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 11-5
Troubleshooting

11.2.2 Diagnostic interrupts

Overview
Internal errors, external errors and external channel errors are indicated to an inter-
rupt-capable system by means of diagnostic interrupts (see diagnostic interrupt
data in Tables 11-4, 11-5 and Section 6.3.3). This presupposes that the diagnostic
interrupt message was activated at the time of configuration (see Chapter 5). If the
system is not interrupt-capable, the diagnostic interrupt information must be read
out cyclically with FC POS_DIAG.

Error Class Coding Message


Internal errors Byte-.Bit-No. 0.1 LED “SF”
Group error byte 2, 3
External errors Byte-.Bit-No. 0.2 LED “SF” and “DIAG”

External channel errors Byte-.Bit-No. 0.2, 0.3 LED “SF” and “DIAG”
Group error byte 8

A diagnostic interrupt is reported by the FM 354 as ”incoming” or ”outgoing”.

Diagnostic interrupt
Message to the CPU (precondition: interrupt message activated Message in the Entry in diag-
(see Section 5.2) “troubleshooting” nostic buffer
display of “Para-
No OB 82 ex- OB 82 OB 1 meterize FM 354”
ists  CPU Menu: Test >
switches to Enters the Enters the Calls FC Troubleshooting
STOP diagnostic in- diagnostic in- POS_DIAG
formation in the formation in
diagnostic the user DB
buffer of the starting at ad-
CPU (4 bytes) dress 70 and
and calls SFC calls FC
52 POS_DIAG

Interrupt acknowledgement
If processing is to continue after a diagnostic interrupt, then Restart after the error
has been remedied (user DB, DBX37.5).
Internal errors cannot be acknowledged. External errors are self-acknowledging.

FM 354 Servo Drive Positioning Module


11-6 6ES7 354-1AH01-8BG0
Troubleshooting

11.2.3 Error messages in checkback signals

Overview
Operator/travel errors [BF/FS] and data errors/machine data errors/traversing pro-
gram errors [DF], are communicated to the user by way of checkback signals (FC
POS_CTRL call) and operating errors by means of diagnostic interrupts (see Sec-
tion 6.3.3). The error-specification is stored in the form of an error number (see
error list in Table 11-6...11-8).
Error acknowledgement
Set/clear control signal [BFQ/FSQ]
or
on message [DF]  write a new write job

Note
Invalid data are not accepted. The original data are retained.

Reading out the error number


The errors are identified by the detail event class (DEKL) and the detail event num-
ber (DENR).

Error technology class DEKL DENR Message


Operating error 1 1...n Diagnostic interrupt
Operator errors 2 1...n Checkback signals
Travel errors 3 1...n Checkback signals
Data error 4 1...n Checkback signals
Machine data errors 5 1...n or
Data block
Traversing program errors 8 1...n

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 11-7
Troubleshooting

11.2.4 Message in data block

Overview
Please note the following for direct access to DBs (e.g. using an OP).
If data errors/machine data errors/traversing program errors are detected when the
parameters are written to the data block (e.g. in the parameterization tool), an error
message is stored in the data block. The error-specification is stored in the form of
an error number in the corresponding data block (see error list in Table 11-8). The
error message occurs each time the data block is written to until the cause has
been eliminated.
It is recommended to scan the error message after every write operation.

11.2.5 Viewing the diagnostic buffer (PG/PC)

Overview
The last five error messages are stored in the diagnostic buffer.
There are two ways of proceeding:
1. In the S7 SIMATIC Manager select the menu File > Open > Accessible
Nodes.
2. In the Accessible Nodes window, select the MPI address of your module.
3. You can view the diagnostic buffer in the menu Target system > Module sta-
tus.
or
1. Open your project in the S7 SIMATIC Manager.
2. Select the menu View > Online.
3. In the dialog box, select the FM 354 and the associated program.
4. You can view the diagnostic buffer in the menu Target system > Module sta-
tus

FM 354 Servo Drive Positioning Module


11-8 6ES7 354-1AH01-8BG0
Troubleshooting

11.3 Error lists

Note
In the following tables, please note:
The module response described under “Effect” refers to the error-specific module
response. The error response described in Table 11-2 occurs in addition.

11.3.1 Diagnostic interrupts

Overview
The diagnostic interrupts are listed according to error class in Tables 11-4, 11-5.

Table 11-4 Diagnostic interrupt

Byte. Error message, Message/


Bit error analysis and elimination Display
0.1 Internal errors Error response: “Everything Off”, as in Table 11-2
2.1 Communication disturbance
SF
(8031)
Cause MPI/K-bus communication fault caused by unknown event DC5V
DIAG
Effect
Elimination S Check connection
S Check programming device/CPU
S Switch module on/off
S Replace module
2.3 Internal time monitoring circuit (Watchdog)
(8033)
Cause S Pronounced noise conditions on the FM 354
S Errors in the FM 354
Effect S Deactivate entire FM 354
S LED indicators: SF: On
DIAG: Flashing cycle

Elimination S If this manual is observed, the errors should not occur


However, should this still be the case, please consult the re-
sponsible sales department. When doing so, it is vitally impor-
tant to also report the exact circumstances leading to the error.
S Replace the FM 354
Note: (xxxx) value = Hexadecimal notation in diagnostic buffer

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 11-9
Troubleshooting

Table 11-4 Diagnostic interrupt, continued

Byte. Error message, Message/


Bit error analysis and elimination Display
0.1 Internal errors Error response: “Everything Off”, as in Table 11-2
2.4 Internal module power supply failure
(8034) SF
Cause S Drastic voltage dip DC5V
S FM 354 power supply faulty DIAG

Effect Deactivate entire FM 354


Elimination S Check FM 354 power connection
S If FM 354 power supply defective, replace FM 354
3.2 FEPROM error
(8042) SF
Cause Memory for firmware code faulty DC5V
DIAG
Effect
Elimination Replace the FM 354
3.3 RAM errors
(8043)
Cause S Faulty RAM data memory
S Faulty flash-EPROM data memory
Effect
Elimination Replace the FM 354
3.6 Process interrupt lost
(8046)
Cause S A process interrupt event was detected by the FM 354 and can-
not be reported, because the same event has not yet been ac-
knowledged by the user program/CPU.
S Faults on backplane bus
Effect
Elimination S Incorporate OB40 into user program
S Check bus connection of the module
S Deactivate using MD5 process interrupt
S Switch module on/off
0.2 External errors Error response: “Everything Off”, as in Table 11-2
0.6 Module not parameterized
SF
(8006)
Cause No MPI parameterization data received from the CPU DC5V
DIAG
Effect MPI interface is initialized with default values. MPI address = 12
Elimination Check parameterization, see S7-300 description

Note: (xxxx) value = Hexadecimal notation in diagnostic buffer

FM 354 Servo Drive Positioning Module


11-10 6ES7 354-1AH01-8BG0
Troubleshooting

Table 11-4 Diagnostic interrupt, continued

Byte. Error message, Message/


Bit error analysis and elimination Display
0.2, 0.3 External channel errors Error response: “Everything Off”, as in Table 11-2
8.0 Cable break, incremental encoder
SF
(8090)
Cause S Measurement system cable not plugged in or sheared off DC5V
DIAG
S Encoder without internode signals
S Incorrect pin connection
S Cable too long
Effect
Elimination S Check encoder and measurement system cable
S Observe limit values
S Using the MD20, monitoring can be temporarily skipped, at the
responsibility of the owner/operator.
8.1 Error, absolute encoder
(8091)
Cause Telegram traffic between FM 354 and the absolute encoder (SSI) is
faulty or is disrupted:
S Measurement system cable not plugged in or sheared off
S Unauthorized type of encoder (only allowable per MD10)
S Encoder incorrectly set (programmable encoder)
S Telegram length (MD13, MD14) incorrectly specified
S Encoder delivers erroneous values
S Noise interference on measurement system cable
S Baud rate set too high (MD15)
Effect
Elimination S Check encoder and measurement system cable
S Check telegram traffic between encoder and FM 354
S Using the MD20, monitoring can be temporarily skipped, at the
responsibility of the owner/operator.

Note: (xxxx) value = Hexadecimal notation in diagnostic buffer

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 11-11
Troubleshooting

Table 11-4 Diagnostic interrupt, continued

Byte. Error message, Message/


Bit error analysis and elimination Display
0.2, 0.3 External channel errors Error response: “Everything Off”, as in Table 11-2
8.2 Erroneous pulses, incremental encoder or zero reference mark missing
(8092) SF
Cause The pulses generated by the encoder are monitored for missing DC5V
pulses (Section 9.6.1). This monitoring feature does not include a DIAG
comparison with the parameter specifications in MD 13.
S Encoder monitoring circuit has discovered erroneous pulses
S In “reference point approach” operating mode, no zero reference
mark came within one encoder revolution after the reference point
switch was passed.
S Encoder faulty: does not deliver the specified number of pulses
S Interference on the measurement system cable
Effect
Elimination S Check encoder and measurement system cable
S Observe limit values
S Observe rules on shielding and grounding
S Using the MD20, monitoring can be temporarily skipped, at the
responsibility of the owner/operator.
8.3 Voltage monitoring, encoder
(8093)
Cause S Short-circuit in encoder supply cable (5 V incrementally, 24 V
SSI)
S Failure of module internal encoder supply unit
Effect
Elimination S Check connections
S Replace FM 354 if encoder cable ok
S Using the MD20, monitoring can be temporarily skipped, at the
responsibility of the owner/operator.
8.7 For operating errors, see Table 11-5
(8097)

Note: (xxxx) value = Hexadecimal notation in diagnostic buffer

FM 354 Servo Drive Positioning Module


11-12 6ES7 354-1AH01-8BG0
Troubleshooting

Table 11-5 Operating errors

Error message, Message/


Cl. No.
error analysis and elimination Display
Operating errors Error response: “Everything Off”, as in Table 11-2
1 (01) 1 (01) Software limit switch, beginning is passed Diagnostic
interrupt
Cause Limit switch passed: in “Control” or “Correction” operating
mode
Effect S The limit switch position is passed by the necessary
stopping distance.
S Set actual value is not executed.
Elimination S Following acknowledgment of the error, it is possible to
traverse to the working range.
S Alter value of software limit switch (MD21)
S Switch off monitoring limit switch occasionally!
(With the limit switches (MD21/22) disabled,
! the travel range limits are established by the
maximum allowable values for the limit
switches).
1 (01) 2 (02) Software limit switches, end is passed Diagnostic
interrupt
Cause Limit switch passed: in “Control” or “Correction” operating
mode
Effect S The limit switch position is passed by the necessary
stopping distance.
S Set actual value is not executed.
Elimination S Following acknowledgment of the error, it is possible to
traverse to the working range.
S Alter value of software limit switch (MD22)
S Switch off monitoring limit switch occasionally!
(With the limit switches (MD21/22) disabled,
! the travel range limits are established by the
maximum allowable values for the limit
switches).
1 (01) 3 (03) Beginning of traversing range passed Diagnostic
interrupt
Cause When operating in “Control” operating mode with soft limits
disabled, the traversing range beginning was passed.
Effect The limit switch position is passed by the necessary stop-
ping distance.
Elimination Following acknowledgment of the error, it is possible to
traverse to the working range.
Cl. = Detail event class, No. = Detail event number
Note: Value (xx) = Hexadecimal notation of the error number

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 11-13
Troubleshooting

Table 11-5 Operating errors, continued

Error message, Message/


Cl. No.
error analysis and elimination Display
Operating errors Error response: “Everything Off”, as in Table 11-2
1 (01) 4 (04) Traversing range end passed Diagnostic
interrupt
Cause When operating in “Control” operating mode with soft limits
disabled, the traversing range beginning was passed.
Effect The limit switch position is passed by the necessary stop-
ping distance.
Elimination Following acknowledgment of the error, it is possible to
traverse to the working range.
1 (01) 11 (0B) Drive, direction of rotation Diagnostic
interrupt
Cause Drive turns in wrong direction (reported only when setpoint
voltage is "10 V)
Effect
Elimination S Check drive
S Check or correct MD19
S Following “Restart” continue working using the user
program
1 (01) 12 (0C) Zero speed control range Diagnostic
interrupt
Cause The zero speed control range was exited in the following
instances:
S Servo Enable deactivated
S On an axis stillstand in the PEH target area
S In ”Open-loop control” mode with no traversing com-
mand
S Other causes: Same as ”Direction of rotation, drive”,
Class 1/No. 11
Effect
Elimination S Check electrical and mechanical drive disable (termi-
nals, connecting cables, control element functions)
S Match MD26
1 (01) 90...99 System errors Diagnostic
(5A...63) interrupt
Cause Internal errors in the module
LED
Effect Undefined effects possible
“DIAG”
Elimination If this manual is observed, the errors should not occur blinking
However, should this still be the case, please consult the
responsible sales department. When doing so, it is vitally
important to also report the exact circumstances leading to
the error.
Cl. = Detail event class, No. = Detail event number
Note: Value (xx) = Hexadecimal notation of the error number

FM 354 Servo Drive Positioning Module


11-14 6ES7 354-1AH01-8BG0
Troubleshooting

11.3.2 Error messages

Overview
The errors are listed in Tables 11-6...11-8 according to error class.

Table 11-6 Operator errors


Error message, Message/
Cl. No.
error analysis and elimination Display
Operator errors Error response : “Feed STOP” see Table 11-2
2 (02) 1 (01) Operating mode not allowed CBS
Cause The operating mode selected is not allowed.
Effect
Elimination Select an allowed operating mode
2 (02) 4 (04) Incorrect operating mode parameters CBS
Cause In the “Jogging” and “Control” operating modes, the se-
lected velocity or control level is not 1 or 2. In incremental
operation the set
value number is not allowed (1 - 100, and 254 permitted).
Effect
Elimination Set operating mode parameters to an allowable value.
2 (02) 5 (05) Start enable missing CBS
Cause A travel command was given in the absence of a start
enable (start, external start, R+/R–)
Effect
Elimination Restore travel command and wait for start enable
2 (02) 9 (09) Axis is not synchronized CBS
Cause Synchronization of the axes is necessary in the “Incre-
mental, relative,” “MDI” and “Automatic” operating modes.
Effect
Elimination Execute reference point approach
2 (02) 11 (0B) Direction specification not allowed CBS
Cause In operating modes “Jog,” “Control” or “Incremental, rela-
tive” the direction settings R+/R- are active at the same
time. With “Reference point operation” the direction set-
ting no longer agrees with the startup direction specified
in the MD.
Effect
Elimination Correct the direction parameters
Cl. = Detail event class, No. = Detail event number, CBS = checkback signals, DB = data block
Note: Value (xx) = Hexadecimal notation of the error number

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 11-15
Troubleshooting

Table 11-6 Operator errors, continued


Error message, Message/
Cl. No.
error analysis and elimination Display
Operator errors Error response : “Feed STOP” see Table 11-2
2 (02) 12 (0C) Axis movement not possible CBS
Cause With an unacknowledged error, no drive enable or stop, a
traverse command was triggered.
Effect
Elimination Restore traverse command and switch acknowledge error
or Stop to inactive, or give drive enable.
2 (02) 13 (0D) Incremental value not in place CBS
Cause The setpoints defined by the operating mode parameters
are missing or a change in incremental dimensions oc-
curred when the operating mode started.
Effect
Elimination Parameterize and read in setpoint parameters
2 (02) 14 (0E) No program preselected CBS
Cause No program preselected at “Start.”
Effect
Elimination First preselect program then start.
2 (02) 15 (0F) Digital input not activated CBS
Cause The programmed target was reached in a block with ex-
ternal block change (G50).
Effect
Elimination Check programming (MD34) and connection of digital
input.
2 (02) 16 (10) Measurement function undefined CBS
Cause Length measurement and inprocess measurement se-
lected simultaneously
Effect No measurement function effective.
Elimination Reselect one of the two measurement functions.
2 (02) 21 (15) Activate machine data not allowed CBS
Cause “Machining in progress” is still active (observe Section
7.3.1)
Effect Activate machine data not executed
Elimination Terminate processing, repeat activation
Cl. = Detail event class, No. = Detail event number, CBS = checkback signals, DB = data block
Note: Value (xx) = Hexadecimal notation of the error number

FM 354 Servo Drive Positioning Module


11-16 6ES7 354-1AH01-8BG0
Troubleshooting

Table 11-6 Operator errors, continued


Error message, Message/
Cl. No.
error analysis and elimination Display
Operator errors Error response : “Feed STOP” see Table 11-2
2 (02) 22 (16) On-the-fly MDI block inoperative CBS
Cause MDI block inactive or already executed
Effect On-the-fly MDI block is not being processed
Elimination Delete error message and initiate execution as MDI block.
Cl. = Detail event class, No. = Detail event number, CBS = checkback signals, DB = data block
Note: Value (xx) = Hexadecimal notation of the error number

Table 11-7 Travel errors

Error message, Message/


Cl. No.
error analysis and elimination Display
Travel errors Error response : “Feed STOP” see Table 11-2
3 (03) 1 (01) Software limit switch, beginning CBS
Cause Limit switch approached: in “Jog” operating mode, in “Au-
tomatic” operating mode if G88/89, without switching
signal from the corresponding digital input.
The axis is located to the left of the software limit switch
because of actual value set.
Effect S Axis movement is stopped at the limit switch position.
S Set actual value is not executed.
Elimination S Following acknowledgment of the error, it is possible to
traverse to the working range.
S Alter value of software limit switch (MD21)
S Switch off monitoring limit switch occasionally!
(With the limit switches (MD21/22)
! disabled, the travel range limits are
established by the maximum allowable
values for the limit switches).
Cl. = Detail event class, No. = Detail event number, CBS = checkback signals, DB = data block
Note: Value (xx) = Hexadecimal notation of the error number

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 11-17
Troubleshooting

Table 11-7 Travel errors, continued

Error message, Message/


Cl. No.
error analysis and elimination Display
Travel errors Error response : “Feed STOP” see Table 11-2
3 (03) 2 (02) Software limit switch, end CBS
Cause Limit switch approached: in “Jog” operating mode, in “Au-
tomatic” operating mode if G88/89, without switching
signal from the corresponding digital input.
The axis is located to the right of the software limit switch
because of actual value set.
Effect S Axis movement is stopped at the limit switch position.
S Set actual value is not executed.
Elimination S Following acknowledgment of the error, it is possible to
traverse to the working range.
S Alter value of software limit switch (MD22)
S Switch off monitoring limit switch occasionally!
(With the limit switches (MD21/22) disabled,
! the travel range limits are established by the
maximum allowable values for the limit
switches).
3 (03) 3 (03) Traversing range beginning approached CBS
Cause S During traversing with soft limit switches disabled, the
traversing range beginning was approached.
S The axis is located to the left of the traversing range
beginning because of actual value set.
(Traversing range: "109 or from range covered by
absolute encoder)
Effect S Axis movement is stopped at the traversing range limit.
S Set actual value is not executed.
Elimination Travel in the opposite direction
3 (03) 4 (04) Traversing range end approached CBS
Cause S During traversing with soft limit switches disabled, the
traversing range end was approached.
S The axis is located to the left/right of the traversing
range end because of actual value set.
(Traversing range: "109 or from range covered by
absolute encoder)
Effect S Axis movement is stopped at the traversing range limit.
S Set actual value is not executed.
Elimination Travel in the opposite direction
Cl. = Detail event class, No. = Detail event number, CBS = checkback signals, DB = data block
Note: Value (xx) = Hexadecimal notation of the error number

FM 354 Servo Drive Positioning Module


11-18 6ES7 354-1AH01-8BG0
Troubleshooting

Table 11-7 Travel errors, continued

Error message, Message/


Cl. No.
error analysis and elimination Display
Travel errors Error response : “Feed STOP” see Table 11-2
3 (03) 5 (05) Target position not within traversing range CBS
Cause S The position to be approached is outside the working
range limited by the software limit switches.
S The rotary axis programming is specified as a refer-
ence value which does not fall within the positive com-
plete circle.
Effect
Elimination S Correct position to be approached.
S Alter value of software limit switch (MD)
S Switch off monitoring limit switch occasionally!
(With the limit switches (MD21/22) disabled,
! the travel range limits are established by the
maximum allowable values for the limit
switches).
3 (03) 23 (17) Target velocity zero CBS
Cause S Zero was entered as programmed velocity.
S No feed was programmed for positioning.
Effect
Elimination Input an allowable velocity value
3 (03) 28 (1C) M2/M30 missing CBS
Cause S In the last program, block, no M2, M30 or M18 is pro-
grammed.
S The last program, block is a skip block.
Effect
Elimination Per causes
3 (03) 30 (1E) Digital input not parameterized CBS
Cause For traversing with set actual value on the fly (G88, G89),
external block change (G50) or measurement, no digital
input necessary for that purpose is parameterized.
Effect The functions are not started.
Elimination Parameterize the digital inputs by way of MD34.
3 (03) 35 (23) Tool offset value not in place CBS
Cause No tool offset values are available on the FM 354 or tool
offsets are accessed and modified when an override is
active.
Effect
Elimination Parameterize and read in tool offset values
Cl. = Detail event class, No. = Detail event number, CBS = checkback signals, DB = data block
Note: Value (xx) = Hexadecimal notation of the error number

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 11-19
Troubleshooting

Table 11-7 Travel errors, continued

Error message, Message/


Cl. No.
error analysis and elimination Display
Travel errors Error response : “Feed STOP” see Table 11-2
3 (03) 36 (24) Set actual value on the fly, incorrect value CBS
Cause Value is no longer within the range"109
Effect
Elimination Input a correct value
3 (03) 37 (25) MDI-block on the fly, incorrect syntax CBS
Cause Incorrect M or G commands or incorrect block structure
Effect
Elimination Input a correct MDI block
3 (03) 38 (26) MDI block on the fly, incorrect velocity CBS
Cause Velocity not within the range between > 0 and max. allow-
able traverse velocity (500,000,000 MSR/min)
Effect
Elimination Input a correct MDI block
3 (03) 39 (27) MDI block on the fly, incorrect position or dwell time CBS
Cause Position or dwell time is outside allowable values.
Position: "109 MSR
Dwell time: > 100,000 ms
Effect
Elimin. Input a correct MDI block
3 (03) 40 (28) MDI block on the fly erroneous CBS
Cause Incorrect block syntax
Effect
Elimination Input a correct MDI block
3 (03) 61 (3D) Controller enable missing CBS
Cause Traverse command of the or Removal of controller enable
axis without controller en- during “Processing in prog-
able (except for “Control” ress”
operating mode)
Effect No axis movement or Axis is stopped via decelera-
tion ramp MD41 (the Servo
Enable is maintained until
axis comes to a standstill)
Elimination Set controller enable by way of user program
Cl. = Detail event class, No. = Detail event number, CBS = checkback signals, DB = data block
Note: Value (xx) = Hexadecimal notation of the error number

FM 354 Servo Drive Positioning Module


11-20 6ES7 354-1AH01-8BG0
Troubleshooting

Table 11-7 Travel errors, continued

Error message, Message/


Cl. No.
error analysis and elimination Display
Travel errors Error response : “Feed STOP” see Table 11-2
3 (03) 62 (3E) Controller not ready for operation CBS
Cause Axis started without or “Controller ready message”
“Controller ready mes- canceled whilst “processing
sage” in progress”.
Effect No axis movement or Axis is stopped via voltage
ramp (MD45) with actual
value transfer after axis
comes to rest (internally
like follow-up mode)
Elimination S Check drive/connecting cables
S Analysis of the “Controller ready” message can be
disabled by MD37!
3 (03) 64 (40) PEH target area monitoring CBS
Cause Following conclusion of the setpoint value specification to
the position controller, the target area is not reached within
the specified time.
Effect
Elimination S Check drive
S Match MD24, MD25
3 (03) 65 (41) No drive movement CBS
Cause S Axis standstill at maximum drive control signal ("10 V)
S on violation of the defined following error limit
Effect S Deceleration of the drive via voltage ramp (MD45)
S Actual value transfer (internally like ”follow-up mode”)
Elimination S Check drive/connecting cables
S Check controller enable signal between FM 354 and
drive
3 (03) 66 (42) Following error too great CBS
Cause Excessive following error during axis movement
Effect Deceleration of the drive via voltage ramp (MD45)
Elimination S Check drive
S Check MD23, MD43
Cl. = Detail event class, No. = Detail event number, CBS = checkback signals, DB = data block
Note: Value (xx) = Hexadecimal notation of the error number

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 11-21
Troubleshooting

Table 11-8 General data errors, machine data errors, traversing program errors

Error message, Message/


Cl. No.
error analysis and elimination Display
General data errors Error response: “Warning” see Table 11-2
4 (04) 1 (01) Data at time of transmission unacceptable CBS
Cause Data not transmitted in appropriate operating mode or
DB
Effect Data not accepted
Elimination Transmit data in appropriate operating mode
4 (04) 2 (02) Velocity level 1 incorrect CBS
Cause Velocity not within the range between > 0 and max. allow- or
able traverse velocity (500,000,000 MSR/min) DB
Effect Velocity does not become effective
Elimination Input an allowed velocity value
4 (04) 3 (03) Velocity level 2 incorrect CBS
Cause Velocity not within the range between > 0 and max. allow- or
able traverse velocity (500,000,000 MSR/min) DB
Effect Velocity does not become effective
Elimination Input an allowed velocity value
4 (04) 4 (04) Voltage level 1 incorrect CBS
Cause Voltage specified does not fall within the range of "10 V or
DB
Effect Voltage does not become effective
Elimination Input an allowed voltage value
4 (04) 5 (05) Voltage level 2 incorrect CBS
Cause Voltage specified does not fall within the range of "10 V or
DB
Effect Voltage does not become effective
Elimination Input an allowed voltage value
4 (04) 6 (06) Preset incremental value too high CBS
Cause Incremental value is greater than 109 MSR or
DB
Effect Original incremental value is retained
Elimination Input an allowable incremental value
4 (04) 7 (07) MDI block, incorrect syntax CBS
Cause Incorrect M or G commands or incorrect block structure or
DB
Effect Original MDI block is retained
Elimination Input a correct MDI block
Cl. = Detail event class, No. = Detail event number, CBS = checkback signals, DB = data block
Note: Value (xx) = Hexadecimal notation of the error number

FM 354 Servo Drive Positioning Module


11-22 6ES7 354-1AH01-8BG0
Troubleshooting

Table 11-8 General data errors, machine data errors, traversing program errors, continued

Error message, Message/


Cl. No.
error analysis and elimination Display
General data errors Error response: “Warning” see Table 11-2
4 (04) 8 (08) MDI block, incorrect velocity CBS
Cause Velocity not within the range between > 0 and max. allow- or
able traverse velocity (500,000,000 MSR/min) DB
Effect Original MDI block is retained
Elimination Input a correct MDI block
4 (04) 9 (09) MDI block, position or dwell time incorrect CBS
Cause Position or dwell time falls outside the allowable values or
Position: "109 MSR DB
Dwell time: > 100,000 ms
Effect Original MDI block is retained
Elimination Input a correct MDI block
4 (04) 10 (0A) Zero offset value, offset value incorrect CBS
Cause Value falls outside the range "109 MSR or
DB
Effect Does not become effective
Elimination Input a correct value
4 (04) 11 (0B) Set actual value, actual value incorrect CBS
Cause Actual value falls outside the software limit switches or or
outside the range "109 MSR DB
Effect Set actual value does not become effective
Elimination Input a correct value
4 (04) 12 (0C) Set reference point value, reference point incorrect CBS
Cause Value falls outside the range "109 MSR or
DB
Effect Set reference point does not become effective
Elimin. Input a correct value
4 (04) 13 (0D) Digital output not possible CBS
Cause Output not available for direct output of the user program or
DB
Effect Output is not executed
Elimination S Correct user program
S Correct parameterization of the output assignment
within the MD35 to the desired assignment
4 (04) 14 (0E) Request application data incorrect CBS
Cause Incorrect request code or
DB
Effect Old application data are retained
Elimination Request code 0-6, 16-23 and 25 possible
Cl. = Detail event class, No. = Detail event number, CBS = checkback signals, DB = data block
Note: Value (xx) = Hexadecimal notation of the error number

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 11-23
Troubleshooting

Table 11-8 General data errors, machine data errors, traversing program errors, continued

Error message, Message/


Cl. No.
error analysis and elimination Display
General data errors Error response: “Warning” see Table 11-2
4 (04) 15 (0F) Teach In, program number incorrect CBS
Cause The program was not parameterized or read in. or
DB
Effect Teach In is not executed
Elimination Parameterize and read in program or correct program
number
4 (04) 16 (10) Teach In, block number incorrect CBS
Cause The block number in the program selected is not in place. or
DB
Effect Teach In is not executed
Elimination Specify correct block number
4 (04) 17 (11) Teach In, dwell time or subprogram-request in block CBS
Cause The block number in the program selected is not in place or
or incorrect block number was selected. DB
Effect Teach In is not executed
Elimination Specify correct block number
4 (04) 18 (12) Teach In, no axis stoppage CBS
Cause Axis is still in motion or
DB
Effect Teach In is not executed
Elimination Stop axis and repeat task
4 (04) 40 (28) Transmit non-relevant data CBS
Cause The data (data blocks) transmitted are unknown to the FM or
354 DB
Effect Data not accepted
Elimination Correct user program
4 (04) 81 (51) Programmable modules communication: unauthorized DB type CBS
82 (52) Programmable modules communication: Info 1 incorrect or
83 (53) Programmable modules communication: Info 2 incorrect
DB
84 (54) Programmable modules communication: unauthorized task
85 (55) Programmable modules communication: data errors
Cause Incorrect data
Effect Task is not executed
Elimination Correct and retransmit
Cl. = Detail event class, No. = Detail event number, CBS = checkback signals, DB = data block
Note: Value (xx) = Hexadecimal notation of the error number

FM 354 Servo Drive Positioning Module


11-24 6ES7 354-1AH01-8BG0
Troubleshooting

Table 11-8 General data errors, machine data errors, traversing program errors, continued

Error message, Message/


Cl. No.
error analysis and elimination Display
General data errors Error response: “Warning” see Table 11-2
4 (04) 120 (78) Measurement system grid deviates CBS
Cause The measurement system in the DBs “NC, SM, TO” does or
not agree with MD7. DB
Effect DB does not become effective and is stored non-reten-
tively
Elimination Correct and retransmit
4 (04) 121 (79) Incorrect DB type in the module CBS
Cause An incorrect type of DB has been transmitted into the FM or
354 DB
Effect DB does not become effective and is stored non-reten-
tively
Elimination Delete DB, correct and retransmit
4 (04) 122 (7A) DB type or DB no. already exists CBS
Cause DB type already exists or
DB
Effect DB does not become effective and is stored non-reten-
tively
Elimination Delete corresponding DB prior to transmission
4 (04) 123 (7B) NC program number already exists CBS
Cause NC program number already exists or
DB
Effect DB does not become effective and is stored non-reten-
tively
Elimination Prior to transmission, delete corresponding DB with the
program number
4 (04) 124 (7C) Parameter “Save” incorrect CBS
Cause Coding not 0 or 1 or
DB
Effect DB does not become effective and is stored non-reten-
tively
Elimination Coding not 0 or 1
4 (04) 125 (7D) DB memory filed CBS
Cause The available memory is assigned or
DB
Effect DB does not become effective and is stored non-reten-
tively
Elimination Delete unnecessary programs (DBs) or compress
memory by way of parametering interface
Cl. = Detail event class, No. = Detail event number, CBS = checkback signals, DB = data block
Note: Value (xx) = Hexadecimal notation of the error number

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 11-25
Troubleshooting

Table 11-8 General data errors, machine data errors, traversing program errors, continued

Error message, Message/


Cl. No.
error analysis and elimination Display
General data errors Error response: “Warning” see Table 11-2
4 (04) 126 (7E) Allowable program length exceeded CBS
Cause Number of blocks too high or
DB
Effect DB does not become effective and is stored non-reten-
tively
Elimination Correct program and retransmit
4 (04) 127 (7F) Writing parameters/data is not possible CBS
Cause Axis does not come to a stop or
DB
Effect Parameters/data do not become effective
Elimination Stop axis
4 (04) 128 (80) Incorrect module identification CBS
Cause DBs which do not belong to the module were transmitted or
(no identification 354) DB
Effect DB does not become effective and is stored non-reten-
tively
Elimination Transmit the DBs belonging to the FM 354
4 (04) 129 (81) Incremental value, incorrect value CBS
Cause Value range outside "109 or
DB
Effect Incremental value not effective
Elimination Transmit correct value
4 (04) 130 (82) Tool offset, incorrect value CBS
Cause Value range outside "109 or
DB
Effect Tool offset not effective
Elimination Transmit correct value
4 (04) 131 (83) Not possible to insert block CBS
Cause Memory full or
DB
Effect Function is not executed
Elimination Delete unnecessary DBs and repeat function
4 (04) 132 (84) Not possible to delete block CBS
Cause Block does not exist, no “assignment bits (bytes 2 and 3) or
enabled in block (when data available). DB
Effect Function is not executed
Elimination Check program and repeat function with correct block
number
Cl. = Detail event class, No. = Detail event number, CBS = checkback signals, DB = data block
Note: Value (xx) = Hexadecimal notation of the error number

FM 354 Servo Drive Positioning Module


11-26 6ES7 354-1AH01-8BG0
Troubleshooting

Table 11-8 General data errors, machine data errors, traversing program errors, continued

Error message, Message/


Cl. No.
error analysis and elimination Display
General data errors Error response: “Warning” see Table 11-2
4 (04) 144(90) SDB cannot be loeaded CBS
Cause Module not at standstill or
DB
Effect SDB is rejected
Elimination Stop module and retry load operation.
4 (04) 145(91) SDB user data error CBS
Cause SDB contains value error or
DB
Effect SDB is rejected
Elimination Generate SDB with parameter assignment tool and retry
load operation

Machine data errors Error response: “Warning” see Table 11-2


5 (05) 7 (07) Measurement system CBS
Cause The measurement system grid (MSR) entered does not or
agree with the MSR in the other DBs of the module. DB
Effect DB does not become effective and is stored non-reten-
tively
Elimination S Check MSR and correct as necessary
S When making correct input, delete the other DBs on
the module before retransmitting.
5 (05) 8 (08) Type of axis CBS
Cause No linear or rotary axis parameterized or
DB
Effect DB does not become effective and is stored non-reten-
tively
Elimination Correct and retransmit
5 (05) 9 (09) Rotary axis CBS
Cause Impermissible value range or dependency violation or
(see Section 5.3.1) DB
Effect DB does not become effective and is stored non-reten-
tively
Elimination Correct and retransmit
5 (05) 10 (0A) Encoder type CBS
Cause Unacceptable type of encoder or
DB
Effect DB does not become effective and is stored non-reten-
tively
Elimination Correct and retransmit
Cl. = Detail event class, No. = Detail event number, CBS = checkback signals, DB = data block
Note: Value (xx) = Hexadecimal notation of the error number

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 11-27
Troubleshooting

Table 11-8 General data errors, machine data errors, traversing program errors, continued

Error message, Message/


Cl. No.
error analysis and elimination Display
Machine data errors Error response: “Warning” see Table 11-2
5 (05) 11 (0B) Travel per encoder revolution CBS
12 (0C) Distance to go per encoder revolution or
13 (0D) Increments per encoder revolution
DB
14 (0E) Number of revolutions, absolute encoder
Cause S Impermissible value range or
S dependency violation on no. 11, 12, 13
(see Section 5.3.1)
Effect DB does not become effective and is stored non-reten-
tively
Elimination Correct and retransmit
5 (05) 15 (0F) Baud rate, absolute encoder CBS
Cause Unacceptable baud rate or
DB
Effect DB does not become effective and is stored non-reten-
tively
Elimination Correct and retransmit
5 (05) 16 (10) Reference point coordinates, absolute encoder adjustment CBS
17 (11) or
Cause Unacceptable value range
DB
Effect DB does not become effective and is stored non-reten-
tively
Elimination Correct and retransmit
5 (05) 18 (12) Type of reference point travel CBS
Cause Unacceptable type of reference point travel or
DB
Effect DB does not become effective and is stored non-reten-
tively
Elimination Correct and retransmit
5 (05) 19 (13) Direction matching undefined CBS
Cause Direction matching undefined or
DB
Effect DB does not become effective and is stored non-reten-
tively
Elimination Correct and retransmit
5 (05) 20 (14) Disable hardware monitoring undefined CBS
Cause Disable hardware monitoring undefined or
DB
Effect DB does not become effective and is stored non-reten-
tively
Elimination Correct and retransmit
Cl. = Detail event class, No. = Detail event number, CBS = checkback signals, DB = data block
Note: Value (xx) = Hexadecimal notation of the error number

FM 354 Servo Drive Positioning Module


11-28 6ES7 354-1AH01-8BG0
Troubleshooting

Table 11-8 General data errors, machine data errors, traversing program errors, continued

Error message, Message/


Cl. No.
error analysis and elimination Display
Machine data errors Error response: “Warning” see Table 11-2
5 (05) 21 (15) Software limit switch, begin CBS
22 (16) Software limit switch, end or
23 (17) Maximum velocity
DB
24 (18) Target range (PEH)
25 (19) Monitoring time
26 (1A) Stoppage area
27 (1B) Reference point offset
28 (1C) Referencing velocity
29 (1D) Reducing velocity
30 (1E) Backlash compensation
Cause S Impermissible value range or
S dependency violation on no. 21, 22, 28, 29
(see Section 5.3.1)
Effect DB does not become effective and is stored non-reten-
tively
Elimination Correct and retransmit
5 (05) 31 (1F) Backlash vector reference CBS
Cause Backlash vector reference undefined or
DB
Effect DB does not become effective and is stored non-reten-
tively
Elimination Correct and retransmit
5 (05) 32 (20) Type of output, M-function CBS
Cause Type of output, M-function not defined or
DB
Effect DB does not become effective and is stored non-reten-
tively
Elimination Correct and retransmit
5 (05) 33 (21) Output time, M-function CBS
Cause Unacceptable value range or
DB
Effect DB does not become effective and is stored non-reten-
tively
Elimination Correct and retransmit
5 (05) 34 (22) Digital inputs CBS
Cause Inputs undefined or defined more than once or
DB
Effect DB does not become effective and is stored non-reten-
tively
Elimination Correct and retransmit
Cl. = Detail event class, No. = Detail event number, CBS = checkback signals, DB = data block
Note: Value (xx) = Hexadecimal notation of the error number

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 11-29
Troubleshooting

Table 11-8 General data errors, machine data errors, traversing program errors, continued

Error message, Message/


Cl. No.
error analysis and elimination Display
Machine data errors Error response: “Warning” see Table 11-2
5 (05) 35 (23) Digital outputs CBS
Cause Outputs undefined or defined more than once or
DB
Effect DB does not become effective and is stored non-reten-
tively
Elimination Correct and retransmit
5 (05) 36 (24) Input adapter CBS
Cause Input adapter undefined or
DB
Effect DB does not become effective and is stored non-reten-
tively
Elimination Correct and retransmit
5 (05) 38 (26) Positioning circuit amplification CBS
39 (27) Minimum following error, dynamic or
40 (28) Speed-up
DB
41 (29) Slow-down
42 (2A) Jerk time
43 (2B) Set voltage, max.
44 (2C) Offset compensation
45 (2D) Voltage ramp
Cause Unacceptable value range
Effect DB does not become effective and is stored non-reten-
tively
Elimination Correct and retransmit
5 (05) 52 (34) Velocity for backlash compensation CBS
53 (35) Backlash compensation mode or
Cause Impermissible value range or dependency violation DB
(see Section 5.3.1).
Effect DB does not become effective and is stored non-retenti-
vely.
Elimination Correct and retransmit.
5 (05) 96 (60) Software limit unacceptable CBS
Cause With linear axes: or
Software begin limit switch greater than software limit DB
switch end
with rotary axes:
Software begin/end limit switches not within rotary axis
cycle and not at maximum input value.
Effect DB does not become effective and is stored non-reten-
tively
Elimination Correct and retransmit
Cl. = Detail event class, No. = Detail event number, CBS = checkback signals, DB = data block
Note: Value (xx) = Hexadecimal notation of the error number

FM 354 Servo Drive Positioning Module


11-30 6ES7 354-1AH01-8BG0
Troubleshooting

Table 11-8 General data errors, machine data errors, traversing program errors, continued

Error message, Message/


Cl. No.
error analysis and elimination Display
Machine data errors Error response: “Warning” see Table 11-2
5 (05) 97 (61) Limitation, software limit with absolute encoder CBS
Cause Travel distance between software limit switch begin and or
end is greater than the absolute value range of the en- DB
coder.
Effect DB does not become effective and is stored non-reten-
tively
Elimination Correct and retransmit
5 (05) 99 (63) Impermissible actual value evaluation factor CBS
Cause Impermissible relationship in the assignments for distance or
per encoder revolution (MD11, 12) and increments per DB
encoder revolution (MD13) (see Section 5.3.1).
Effect DB does not become effective and is stored
non-retentively.
Elimination Correct and retransmit.
5 (05) 102 (66) Limitation, software limit for linear axis CBS
Cause For encoder resolutions < 1 MSR, the permissible or
traversing range in the ratio of MSR to increments is DB
limited (e.g. for 0.5 µm per enc. pulse to 0.5@109 MSR)
(see Section 5.3.1).
Effect DB does not become effective and is stored
non-retentively.
Elimination Correct and retransmit.

Traversing program errors Error response: “Warning” see Table 11-2


8 (08) 1 (01) Program selection, subroutine error CBS
Cause The subroutine requested in the program is not in place or
on the FM 354. DB
Effect Program selection is not executed
Elimination S Parameterize and read in program, correct as neces-
sary
S Select another program
Cl. = Detail event class, No. = Detail event number, CBS = checkback signals, DB = data block
Note: Value (xx) = Hexadecimal notation of the error number

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 11-31
Troubleshooting

Table 11-8 General data errors, machine data errors, traversing program errors, continued

Error message, Message/


Cl. No.
error analysis and elimination Display
Traversing program errors Error response: “Warning” see Table 11-2
8 (08) 8 (08) Program selection, program number not in place CBS
Cause The program was not parameterized, not in place on the or
FM 354. DB
Effect Program selection is not executed
Elimination S Parameterize and read in program, correct as neces-
sary
S Select another program
8 (08) 9 (09) Program selection, block number missing CBS
Cause The block number is missing in the program selected or
DB
Effect Program selection is not executed
Elimination S Correct program
S Select different block number
8 (08) 10 (0A) Program, block number unacceptable CBS
Cause Block number missing or outside of the number range or
DB
Effect Program is not stored
Elimination Correct program
8 (08) 11 (0B) Program selection, direction specification incorrect CBS
Cause Direction specification incorrect or
DB
Effect Program selection is not executed
Elimination Correct program selection and repeat.
8 (08) 12 (0C) Program selection unacceptable CBS
Cause Another program was preselected during a movement or
DB
Effect Program selection is not executed
Elimination Use STOP to stop program in progress, or repeat pro-
gram selection at end of program.
8 (08) 20 (14) Error, program number CBS
Cause Program numbers in the blocks incorrect or
DB
Effect Program is not stored
Elimination Correct program, per cause
8 (08) 21 (15) No block in program CBS
Cause No block in program or
DB
Effect Program is not stored
Elimination Correct program, per cause
Cl. = Detail event class, No. = Detail event number, CBS = checkback signals, DB = data block
Note: Value (xx) = Hexadecimal notation of the error number

FM 354 Servo Drive Positioning Module


11-32 6ES7 354-1AH01-8BG0
Troubleshooting

Table 11-8 General data errors, machine data errors, traversing program errors, continued

Error message, Message/


Cl. No.
error analysis and elimination Display
Traversing program errors Error response: “Warning” see Table 11-2
8 (08) 22 (16) Error, block number CBS
Cause Block number value range incorrect or
DB
Effect Program is not stored
Elimination Correct program
8 (08) 23 (17) Block number sequence incorrect CBS
Cause Block number not in ascending order or
DB
Effect Program is not stored
Elimination Correct program
8 (08) 24 (18) G function 1 unacceptable CBS
Cause S The number programmed as G function 1 is not al- or
lowed. DB
S In block, other data besides M-functions were pro-
grammed with dwell time (G04).
Effect Program/block not stored
Elimination Correct program, per cause
8 (08) 25 (19) G function 2 unacceptable CBS
Cause The number programmed as G function 2 is not allowed. or
DB
Effect Program/block not stored
Elimination Correct program, per cause
8 (08) 26 (1A) G function 3 unacceptable CBS
Cause S The number programmed as G function 3 is not al- or
lowed. DB
S External block change (G50) was programmed in a
block together with continuous operation for setting
actual value
on the fly (G88/89).
S A tool offset (G43, G44) was called up without D num-
ber.
S In selecting a D number, the direction specification is
missing for the tool offset (G43, G44).
Effect Program/block not stored
Elimination Correct program, per cause
Cl. = Detail event class, No. = Detail event number, CBS = checkback signals, DB = data block
Note: Value (xx) = Hexadecimal notation of the error number

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 11-33
Troubleshooting

Table 11-8 General data errors, machine data errors, traversing program errors, continued

Error message, Message/


Cl. No.
error analysis and elimination Display
Traversing program errors Error response: “Warning” see Table 11-2
8 (08) 27 (1B) M function unacceptable CBS
Cause S The number programmed as M function is not al- or
lowed. DB
S At least two of the M functions M0, M2, M18, M30,
which cancel each other out, are found in one block.
Effect Program/block not stored
Elimination Correct program, per cause
8 (08) 28 (1C) Position/dwell time missing CBS
Cause S No dwell time specified in block with G04. or
S Target position missing with external block change DB
(G50).
S No new actual value programmed for the function con-
tinuous operation with setting actual value on the fly
(G88/89).
Effect Program/block not stored
Elimination Correct program, per cause
8 (08) 29 (1D) Incorrect D-NO (>20) CBS
Cause The number for tool offset is greater than 20 or
DB
Effect Program/block not stored
Elimination Correct program, per cause
8 (08) 30 (1E) Error, subroutine CBS
Cause Subroutine without callup number or
DB
Effect Program is not stored
Elimination Correct program, per cause
8 (08) 31 (1F) Velocity missing CBS
Cause No velocity was programmed or
DB
Effect Program/block not stored
Elimination Correct program, per cause
8 (08) 32 (20) Error, callup subroutine CBS
Cause Block syntax for callup subroutine is incorrect or
DB
Effect Program is not stored
Elimination Correct program, per cause
Cl. = Detail event class, No. = Detail event number, CBS = checkback signals, DB = data block
Note: Value (xx) = Hexadecimal notation of the error number

FM 354 Servo Drive Positioning Module


11-34 6ES7 354-1AH01-8BG0
Troubleshooting

Table 11-8 General data errors, machine data errors, traversing program errors, continued

Error message, Message/


Cl. No.
error analysis and elimination Display
Traversing program errors Error response: “Warning” see Table 11-2
8 (08) 33 (21) D function unacceptable CBS
Cause Block syntax for invoking a D function is incorrect or
DB
Effect Program is not stored
Elimination Correct program, per cause
8 (08) 34 (22) Incorrect program length CBS
Cause Maximum block number exceeded or
DB
Effect Program is not stored
Elimination Correct program, per cause
Cl. = Detail event class, No. = Detail event number, CBS = checkback signals, DB = data block
Note: Value (xx) = Hexadecimal notation of the error number

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 11-35
Troubleshooting

FM 354 Servo Drive Positioning Module


11-36 6ES7 354-1AH01-8BG0
Technical Specifications A
Overview
This chapter describes the technical data for the FM 354 positioning module.
S General technical data
S Dimensions and weight
S Load memory
S Encoder inputs
S Setpoint output
S Digital inputs
S Digital outputs

General technical data


General technical data include:
S Electromagnetic compatibility
S Shipping and storage conditions
S Ambient mechanical and climate conditions
S Data on insulation testing, protection class and degree of protection
This information contains standards and test values with which the S7-300 com-
plies, or according to whose criteria the S7-300 was tested.
The general technical data are described in the manual “Installing an S7-300.”

UL/CSA certifications
The following certifications are on record for the FM 354:
UL Recognition Mark
Underwriters Laboratories (UL) in compliance with
UL Standard 508, File E 164110
CSA Certification Mark
Canadian Standard Association (CSA) in compliance with
Standard C 22.2 No. 142

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 A-1
Technical Specifications

FM approval
The FM approval is on record for the FM 354:
FM certification in accordance with Factory Mutual Approval Standard Class Num-
ber 3611, Class I, Division 2, Group A, B, C, D.

Warning
! Potential for personal injury and property damage.
In areas where there is a risk of explosion, personal injury and property damage
may occur if you disconnect plugs while the S7-300 is in operation.
In areas where there is a risk of explosion, always cut off power to the S7-300 be-
fore disconnecting plugs.

Warning
! WARNING - NEVER DISCONNECT WHILE CIRCUIT IS LIVE
UNLESS LOCATION IS KNOWN TO BE NONHAZARDOUS

CE marking
Our products are in compliance with the EU Guideline 89/336/EEC “Electromag-
netic Compatibility” and the harmonized European standards (EN) which it embo-
dies.
The EC Declaration of Conformity in accordance with Article 10 of the EU Guide-
line referenced above is contained in this manual (see Chapter A).

Application
SIMATIC products are designed for application in an industrial environment.

Application Requirement concerning


Noise emission Noise immunity
Industry EN 50081-2 : 1993 EN 61000-6-2 : 1999

Observe installation guidelines


SIMATIC products meet the requirements, provided you observe the installation
guidelines set forth in the manuals during installation and operation.

FM 354 Servo Drive Positioning Module


A-2 6ES7 354-1AH01-8BG0
Technical Specifications

Power ratings
Technical data: Power ratings
Table A-1 Power ratings

Supply voltage 20.4...28.8 V


Power consumption from 24 V 0.35 A
Power loss 8W
Startup current 2.2 A
Power consumption from 5 V back- 100 mA
plane bus

Dimensions and weights


Technical data for dimensions and weights:
Table A-2 Technical data: dimensions and weight

Dimensions W H D (mm/in) 80 125 118


Weight (g/lb) approx. 550 / 1 lb, 3.3 oz

Memory for parameter data


RAM memory 16 Kbytes FEPROM for retentive storage of parameter data

FM cycle
2 ms

Encoder inputs
Technical data for encoder inputs:
Table A-3 Technical data: encoder inputs

Position detection S Incremental


S Absolute (SSI)
Signal voltages Inputs: 5 V per RS422
Encoder supply voltage S 5.2 V/300 mA
S 24 V/300 mA
Input frequency and line length S Max. 1 MHz wih 10 m conductor length shielded
for incremental encoder S Max. 500 kHz with 35 m conductor length shielded
Data transm. rates and line S Max. 1.25 Mbit/s with 10 m conductor length shielded
length for absolute enc. (SSI) S Max. 125 kbit/s with 100 m conductor length shielded

Drive port
Table A-4 Technical data: setpoint output

Rated voltage range –10...10 V


Output current –3...3 mA

D/A converter resolution see Section 4.2.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 A-3
Technical Specifications

Digital inputs

Table A-5 Technical data: digital inputs

Number of inputs 5 (including controller ready)


Supply voltage 24 V DC
(allowable range: 20.4...28.8 V)
Electrical isolation No
Input voltage S 0 Signal: –3...5 V
S 1 Signal: 11...30 V
Input current S 0 Signal: ≤ 2 mA
S 1 Signal: 6...15 mA
Input delay (DI1...4) S 0 → 1 Signal: typ. 15 µs
S 1 → 0 Signal: typ. 150 µs
Connecting a 2-conductor sensor Possible

Digital outputs

Table A-6 Technical data: digital outputs

Number of outputs 4
Supply voltage 24 V DC
(allowable range: 20.4...28.8 V)
Electrical isolation No
Output voltage S 0 Signal: Residual current max. 2 mA
S 1 Signal: (Power supply –3 V)
Output current on signal “1”
S at ambient temperature of
40_C
– Rated value 0.5 A (total current 2 A)
– Permissible value range 5 mA...0.6 A (over power supply range)
– Lamp load max. 5 W
S at ambient temperature of
60_C
– Rated value 0.1 A (total current 0.4 A)
– Permissible value range 5 mA...0.12 A (over power supply)
Short circuit protection Yes
Switching rate S Resistive load: max. 100 Hz
S Inductive load: max. 0.25 Hz

FM 354 Servo Drive Positioning Module


A-4 6ES7 354-1AH01-8BG0
EC Declaration of Conformity B

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 B-1
EC Declaration of Conformity

Appendix A to EC Declaration of Conformity No. E002


A12: Typical system configuration
FM positioning module (FM354 for servo drive) / SIMODRIVE 611A

Metal cabinet
SIMATIC S7–300

PS CPU FM SM
307 314 354 374

Fil– SIMODRIVE
ter 611
**)

Machine bed

*)

LG
Choke coil
TG

Mains terminal

*) For I/R module and UE module, 28kW


**) Filter in module assembly or separate

S All components which are approved in accordance with the ordering document for a com-
bined FM positioning module / SIMODRIVE 611A plant meet the requirements of the
89/336/EEC directive when operated together.
S For conformity to standards, please see Appendix C
Note:
Only the basic measures for compliance with the Directive 89/336/EEC as they apply to a
typical system configuration are shown in the sketch.
In addition and in particular when deviating from this system configuration, please note the
installation instructions for correct system installation to comply with EMC criteria, as detailed in
the product documentation and the EMC installation guidelines for SINUMERIK; SIROTEC,
SIMODRIVE (Order No.: 6FC 5297-0AD30-0BPV).

FM 354 Servo Drive Positioning Module


B-2 6ES7 354-1AH01-8BG0
EC Declaration of Conformity

Appendix C to EC Declaration of Conformity No. E002


Compliance of the products with Council Directive 89 / 336 / EEC including amendments
91 / 263 / EEC, 92 / 31 / EEC, 93 / 68 / EEC and 93 / 97 / EEC has been verified by an inspec-
tion in accordance with the following product standards, basic technical specifications and the
listed specifications contained therein. Different Standards criteria apply to SINUMERIK, SIMO-
TION, SIMATIC, SIROTEC and SIMODRIVE.

C1 SINUMERIK product category (except 810D), SIMOTION, SIMATIC, SIROTEC:

Basic technical specification on emitted interference in an industrial environment:


EN 50081-2 1)

Basic standards: Area tested:


EN 55011 + A1 + supplementary sheet. 1 2) Radio interference

Basic technical specification on emitted interference in an industrial environment:


EN 61000-6-2 3)

Basic standards: Area tested:


EN 61000-4-2 + A1 4) Static discharge
EN 61000-4-3 + A1 5) Radio-frequency radiation (amplitude-modulated)
EN 61000-4-4 6) Rapid transients (bursts)
EN 61000-4-6 7) RF radiation on lines
EN 61000-4-8 8) Magnetic fields with power engineering frequencies
EN 61000-4-11 9) Voltage dips and breaks in voltage supply

C2 Product category SIMODRIVE, SINUMERIK 810D:

Product Standard: Area tested:


EN 61800-3 + A11 10) Variable-speed electrical drives;
EMV-product standard including special test
methods

C3 Standards also satisfied:

1) VDE 0839 Teil 81-2 6) VDE 0847-Teil 4-4


IEC 61000-4-4
2) VDE 0875 Teil 11 + supplementary sheet 1 7) VDE 0847 Teil 4-6
IEC / CISPR 11 + A1 + 28 IEC 61000-4-6
3) VDE 0839 Teil 6-2 8) VDE 0847 Teil 4-8
IEC 61000-6-2 IEC 61000-4-8
4) VDE 0847 Teil 4-2 + A1 9) VDE 0847 Teil 4-11
IEC 61000-4-2 + A1 IEC 61000-4-11
5) VDE 0847 Teil 4-3 10) VDE 0160 Teil 100
IEC 61000-4-3 + A1 IEC 61800-3
J

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 B-3
EC Declaration of Conformity

FM 354 Servo Drive Positioning Module


B-4 6ES7 354-1AH01-8BG0
UDT (User DB) C
Table C-1 UDT (User DB)

Absolute
Variable Data Type Comment
address
General addresses
0 MOD_ADR INT Module address
2...13.5 Reserved
13.6 MODE_BUSY BOOL Execution started
13.7 POS_REACHED BOOL Position
Control signals
14.0 Reserved
14.1 TEST_EN BOOL Switch to P bus Start-up
14.2 Reserved
14.3 OT_ERR_A BOOL Acknowledge operator/traversing error
14.4...14.7 Reserved
15.0 START BOOL Start
15.1 STOP BOOL Stop
15.2 DIR_M BOOL Negative direction
15.3 DIR_P BOOL Positive direction
15.4 ACK_MF BOOL Acknowledge M function
15.5 READ_EN BOOL Read-in enable
15.6 SKIP_BLK BOOL Block skip
15.7 DRV_EN BOOL Drive enable
16 MODE_IN BYTE Operating mode
17 MODE_ TYPE BYTE Operating mode parameters
18 OVERRIDE BYTE Override
19...21 Reserved
Checkback signals
22.0 Reserved
22.1 TST_STAT BOOL Switch to P bus completed
22.2 Reserved
22.3 OT_ERR BOOL Operator/traversing error
22.4 DATA_ERR BOOL Data error

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 C-1
UDT (User DB)

Table C-1 UDT (User DB), Fortsetzung

Absolute
Variable Data Type Comment
address
22.5...22.6 Reserved
22.7 PARA BOOL Channel parameterizell
23.0 ST_ENBLD BOOL Start enable
23.1 WORKING BOOL Machining in progress
23.2 WAIT_EI BOOL Wait for external enable
23.3...23.4 Reserved
23.5 DT_RUN BOOL Dwell in progress
23.6 PR_BACK BOOL Reverse prog. scan
23.7 Reserved
24 MODE_OUT BYTE Active operating mode
25.0 SYNC BOOL Channel synchronized
25.1 MSR_DONE BOOL End of measurement
25.2 GO_M BOOL Negative travel
25.3 GO_P BOOL Positive travel
25.4 ST_SERVO BOOL Servo enable status
25.5 FVAL_DONE BOOL On-the-fly setting of actual value completed
25.6 Reserved
25.7 POS_RCD BOOL Position reached. Stop.
26 NUM_MF BYTE M function number
27.0...27.3 Reserved
27.4 STR_MF BOOL M function strobe signal
27.5...33 Reserved
Initiation signals for single settings
34.0 SERVO_EN BOOL Controller enable
34.1 GAUG_FLY BOOL On-the-fly measuring
34.2...34.5 Reserved
34.6 PARK_AX BOOL Parking axis
34.7 SIM_ON BOOL Simulation on
35.0...35.1 Reserved
35.2 MSR_EN BOOL Length measurement
35.3 REF_TRIG BOOL Retrigger reference point
35.4 DI_OFF BOOL Enable input disabled
35.5 FOLLOWUP BOOL Follow-up mode
35.6 SSW_DIS BOOL Software limit positions disabled
35.7 DRIFT_OFF BOOL Autom. drift compensation disabled

FM 354 Servo Drive Positioning Module


C-2 6ES7 354-1AH01-8BG0
UDT (User DB)

Table C-1 UDT (User DB), Fortsetzung

Absolute
Variable Data Type Comment
address
Initiation signals for single commands
36 Reserved
37.0 MD_EN BOOL Activate MD
37.1 DELDIST_EN BOOL Delete residual distance
37.2 SEARCH_F BOOL Automatic block advance
37.3 SEARCH_B BOOL Automatic block return
37.4 Reserved
37.5 RESET_AX BOOL Restart
37.6 AVALREM_EN BOOL Rescind setting of actual value
37.7 Reserved
Initiation signals for Write requests
38.0 VLEV_EN BOOL Speed levels 1, 2
38.1 CLEV_EN BOOL Voltage levels 1, 2
38.2 TRG254_EN BOOL Setpoint for incremental dimension
38.3 MDI_EN BOOL MDI block
38.4 MDIFLY_EN BOOL On-the-fly MDI block
38.5 Reserved
38.6 REFPT_EN BOOL Set reference point
38.7 AVAL_EN BOOL Set actual value
39.0 FVAL_EN BOOL On-the-fly setting of actual value
39.1 ZOFF_EN BOOL Zero offset
39.2 Reserved
39.3 PARCH_EN BOOL Modify parameters/data
39.4 DIGO_EN BOOL Digital outputs
39.5 PROGS_EN BOOL Program selection
39.6 REQAPP_EN BOOL Request application data
39.7 TEACHIN_EN BOOL Teach-in
40...41 Reserved
Initiation signals for Read requests
42.0 OPDAT_EN BOOL Basic operating data
42.1 ACT_BL_EN BOOL Active NC block
42.2 NXT_BL_EN BOOL Next NC block
42.3 BLEXT_EN BOOL Actual value block change
42.4 SERVDAT_EN BOOL Service data
42.5 OC_ERR_EN BOOL Operating error no.
42.6...43.2 Reserved

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 C-3
UDT (User DB)

Table C-1 UDT (User DB), Fortsetzung

Absolute
Variable Data Type Comment
address
43.3 PARRD_EN BOOL Parameter/data
43.4 DIGIO_EN BOOL Dig. inputs/outputs
43.5 OPDAT1_EN BOOL Additional operating data
43.6 APPDAT_EN BOOL Application data
43.7 MSRRD_EN BOOL Read measured values
Ready signals (for Initiation signals, single settings)
44.0 SERVO_D BOOL Controller enable
44.1 GAUG_FLY_D BOOL On-the-fly measuring
44.2...44.5 Reserved
44.6 PARK_AX_D BOOL Parking axis
44.7 SIM_ON_D BOOL Simulation on
45.0...45.1 Reserved
45.2 MSR_D BOOL Length measurement
45.3 REF_TRIG_D BOOL Retrigger reference point
45.4 DI_OFF_D BOOL Enable input disabled
45.5 FOLLOWUP_D BOOL Follow-up mode
45.6 SSW_DIS_D BOOL Software limit positions disabled
45.7 DRIFT_OFF_D BOOL Autom. drift compensation disabled
Ready signals (for Initiation signals, single commands)
46 Reserved
47.0 MD_D BOOL Activate MD
47.1 DELDIST_D BOOL Delete residual distance
47.2 SEARCH_F_D BOOL Automatic block advance
47.3 SEARCH_B_D BOOL Automatic block return
47.4 Reserved
47.5 RESET_AX_D BOOL Restart
47.6 AVALREM_D BOOL Rescind setting of actual value
47.7 Reserved
Ready signals (for Initiation signals for Write requests)
48.0 VLEV_D BOOL Speed levels 1, 2
48.1 CLEV_D BOOL Voltage levels 1, 2
48.2 TRG254_D BOOL Setpoint for incremental dimension
48.3 MDI_D BOOL MDI block
48.4 MDIFLY_D BOOL On-the-fly MDI block
48.5 Reserved
48.6 REFPT_D BOOL Set reference point

FM 354 Servo Drive Positioning Module


C-4 6ES7 354-1AH01-8BG0
UDT (User DB)

Table C-1 UDT (User DB), Fortsetzung

Absolute
Variable Data Type Comment
address
48.7 AVAL_D BOOL Set actual value
49.0 FVAL_D BOOL On-the-fly setting of actual value
49.1 ZOFF_D BOOL Zero offset
49.2 Reserved
49.3 PARCH_D BOOL Modify parameters/data
49.4 DIGO_D BOOL Digital outputs
49.5 PROGS_D BOOL Program selection
49.6 REQAPP_D BOOL Request application data
49.7 TEACHIN_D BOOL Teach-in
50...51 Reserved
Ready signals (for Initiation signals for Read requests)
52.0 OPDAT_D BOOL Basic operating data
52.1 ACT_BL_D BOOL Active NC block
52.2 NXT_BL_D BOOL Next NC block
52.3 BLEXT_D BOOL Actual value block change
52.4 SERVDAT_D BOOL Service data
52.5 OC_ERR_D BOOL Operating error read
52.6 OT_ERR_D BOOL Operator/traversing error read
52.7 DA_ERR_D BOOL Data error read
53.0...53.2 Reserved
53.3 PARRD_D BOOL Parameter/data
53.4 DIGIO_D BOOL Dig. inputs/outputs
53.5 OPDAT1_D BOOL Additional operating data
53.6 APPDAT_D BOOL Application data
53.7 MSRRD_D BOOL Read measured values
Error signals (for Initiation signals, single settings)
54.0 SERVO_ERR BOOL Controller enable
54.1 GAUG_FLY_ERR BOOL On-the-fly measuring
54.2...54.5 Reserved
54.6 PARK_AX_ERR BOOL Parking axis
54.7 SIM_ON_ERR BOOL Simulation on
55.0...55.1 Reserved
55.2 MSR_ERR BOOL Length measurement
55.3 REF_TRIG_ERR BOOL Retrigger reference point
55.4 DI_OFF_ERR BOOL Enable input disabled
55.5 FOLLOWUP_ERR BOOL Follow-up mode

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 C-5
UDT (User DB)

Table C-1 UDT (User DB), Fortsetzung

Absolute
Variable Data Type Comment
address
55.6 SSW_DIS_ERR BOOL Software limit positions disabled
55.7 DRIFT_OFF_ERR BOOL Autom. drift compensation disabled
Error signals (for Initiation signals, single commands)
56 Reserved
57.0 MD_ERR BOOL Activate MD
57.1 DELDIST_ERR BOOL Delete residual distance
57.2 SEARCH_F_ERR BOOL Automatic block advance
57.3 SEARCH_B_ERR BOOL Automatic block return
57.4 Reserved
57.5 RESET_AX_ERR BOOL Restart
57.6 AVALREM_ERR BOOL Rescind setting of actual value
57.7 Reserved
Error signals (for Initiation signals for Write requests)
58.0 VLEV_ERR BOOL Speed levels 1, 2
58.1 CLEV_ERR BOOL Voltage levels 1, 2
58.2 TRG254_ERR BOOL Setpoint for incremental dimension
58.3 MDI_ERR BOOL MDI block
58.4 MDIFLY_ERR BOOL On-the-fly MDI block
58.5 Reserved
58.6 REFPT_ERR BOOL Set reference point
58.7 AVAL_ERR BOOL Set actual value
59.0 FVAL_ERR BOOL On-the-fly setting of actual value
59.1 ZOFF_ERR BOOL Zero offset
59.2 Reserved
59.3 PARCH_ERR BOOL Modify parameters/data
59.4 DIGO_ERR BOOL Digital outputs
59.5 PROGS_ERR BOOL Program selection
59.6 REQAPP_ERR BOOL Request application data
59.7 TEACHIN_ERR BOOL Teach-in
60...61 Reserved
Error signals (for Initiation signals for Read requests)
62.0 OPDAT_ERR BOOL Basic operating data
62.1 ACT_BL_ERR BOOL Active NC block
62.2 NXT_BL_ERR BOOL Next NC block
62.3 BLEXT_ERR BOOL Actual value block change
62.4 SERVDAT_ERR BOOL Service data

FM 354 Servo Drive Positioning Module


C-6 6ES7 354-1AH01-8BG0
UDT (User DB)

Table C-1 UDT (User DB), Fortsetzung

Absolute
Variable Data Type Comment
address
62.5 OC_ERR_ERR BOOL Operating error read
62.6 OT_ERR_ERR BOOL Operator/traversing error read
62.7 DA_ERR_ERR BOOL Data error read
63.0...63.2 Reserved
63.3 PARRD_ERR BOOL Parameter/data
63.4 DIGIO_ERR BOOL Dig. inputs/outputs
63.5 OPDAT1_ERR BOOL Additional operating data
63.6 APPDAT_ERR BOOL Application data
63.7 MSRRD_ERR BOOL Read measured values
64...65 Reserved
Processing status of FC POS_CTRL
66 JOB_ERR INT Error code SFC 58/59 (FC POS_CTRL)
68.0 JOBBUSY_WR BOOL Write job active
68.1 IMPO_WR BOOL Write request not possible
68.2 JOBBUSY_RD BOOL Read job active
68.3 IMPO_RD BOOL Read request not possible
68.4...69.0 Reserved
69.1 JOBRESET BOOL Reset status/error
69.2...69.7 Reserved
Diagnosealarmdaten (FC POS_DIAG)
70.0 MDL_DEFECT BOOL Module/group errors (coming and going)
70.1 INT_FAULT BOOL Internal error/hardware error (group error DBB72, 73)
70.2 EXT_FAULT BOOL External error
70.3 PNT_INFO BOOL External channel error (group error bytes 78)
70.4...70.5 Reserved
70.6 NO_CONFIG BOOL Module not initialized
70.7 Reserved
71 MDL_TYPE BYTE Module type class for FM 453 = 08H / Channel in-
formation available
72.0 Reserved
72.1 COMM_FAULT BOOL Communication error (K bus)
72.2 Reserved
72.3 WTCH_DOG_FLT BOOL Response from watchdog timer
72.4 INT_PS_FLT BOOL Internal supply voltage to the module failed (NMI)
72.5...73.1 Reserved
73.2 EPROM_FLT BOOL FEPROM error

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 C-7
UDT (User DB)

Table C-1 UDT (User DB), Fortsetzung

Absolute
Variable Data Type Comment
address
73.3 RAM_FLT BOOL RAM error
73.4...73.5 Reserved
73.6 HW_INTR_FLT BOOL Process interrupt lost
73.7 Reserved
74 POS_ID BYTE FM pos. ID (74H)
75 LEN_INFO BYTE Length of the diagnostic information (16)
76 CHEN_NO BYTE Number of channels (1)
77.0 CH_ERR_VE1 BOOL Channel error vector
77.1...77.7 Reserved
78.0 CAB_BR1 BOOL Cable break (incremental position encoder) for chan-
nel
78.1 ERR_ABE1 BOOL Error in absolute position encoder for channel
78.2 ERR_PU1 BOOL No increm. Error pulses or zero mark for channel
78.3 VO_ENC1 BOOL Voltage monitor f. sensor for channel
78.4...78.6 Reserved
78.7 OC_ERR_EN1 BOOL Operating error for channel
79...85 Reserved
86 OC_ERR_NO BYTE Error number (DS 164) – Detail event class
87 OC_REE_CL BYTE Error number (DS 164) – Detail event number
88...89 Reserved
90 OT_ERR_NO BYTE Error number (DS 162) – Detail event class
91 OT_ERR_CL BYTE Error number (DS 162) – Detail event number
92...93 Reserved
94 DA_ERR_NO BYTE Error number (DS163) – Detail event class
95 DA_ERR_CL BYTE Error number (DS163) – Detail event number
96 DIAG_ERR INT Error code FC POS_DIAG (return code SFC 51)
98 MSRM_ERR INT Error code FC POS_MSRM (return code SFC 59)
100 ARRAY Internal, Reserved
[100 ..139]
BYTE
Data for the requests
140 ZOFF DINT Zero offset
144 AVAL DINT Set actual value
148 FVAL DINT On-the-fly setting of actual value
152 REFPT DINT Set reference point
156 TRG254 DWORD Setpoint for incremental dimension
160 VLEVEL_1 DWORD Speed level 1

FM 354 Servo Drive Positioning Module


C-8 6ES7 354-1AH01-8BG0
UDT (User DB)

Table C-1 UDT (User DB), Fortsetzung

Absolute
Variable Data Type Comment
address
164 VLEVEL_2 DWORD Speed level 2
168 CLEVEL_1 DWORD Voltage level 1
172 CLEVEL_2 DWORD Voltage level 2
MDI block
176 MDIB STRUCT MDI block
+ 0...+1 Reserved
+ 2.0 G_1_EN BOOL G function group 1
+ 2.1 G_2_EN BOOL G function group 2
+ 2.2...+ Reserved
2.3
+ 2.4 X_T_EN BOOL Position/ dwell
+ 2.5...+ Reserved
2.7
+ 3.0 V_EN BOOL Speed
+ 3.1 M_1_EN BOOL M function group 1
+ 3.2 M_2_EN BOOL M function group 2
+ 3.3 M_3_EN BOOL M function group 3
+ 3.4...+ Reserved
3.7
+4 G_1_VAL BYTE G function no. of group 1
+5 G_2_VAL BYTE G function no. of group 2
+ 6...+ 7 Reserved
+8 X_T_VAL DINT Value for position/dwell
+ 12 V_VAL DINT Value for speed
+ 16 M_1_VAL BYTE M function no. of group 1
+ 17 M_2_VAL BYTE M function no. of group 2
+ 18 M_3_VAL BYTE M function no. of group 3
+ 19 Reserved
END_STRUCT
Modify parameter/data
196 PAR_CHAN STRUCT Modify parameter/data
+0 TYP BYTE DB type
+1 NUMB BYTE Number
+2 COUN BYTE Quantity
+3 JOB BYTE Request

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 C-9
UDT (User DB)

Table C-1 UDT (User DB), Fortsetzung

Absolute
Variable Data Type Comment
address
+4 DATA ARRAY Data array, structure/data type of Write data as per
[200 ..219] bytes 1 to 4 of this structure
BYTE
END_STRUCT
Digital inputs/outputs (for read and write)
220.0 D_IN0 BOOL Digital input 0
220.1 D_IN1 BOOL Digital input 1
220.2 D_IN2 BOOL Digital input 2
220.3 D_IN3 BOOL Digital input 3
220.4...7 Reserved
221.0 D_OUT0 BOOL Digital output 0
221.1 D_OUT1 BOOL Digital output 1
221.2 D_OUT2 BOOL Digital output 2
221.3 D_OUT3 BOOL Digital output 3
221.4...7 Reserved
On-the-fly MDI block
222 MDI_F STRUCT On-the-fly MDI block
+ 0...+ 1 Reserved
+ 2.0 G_1_EN BOOL G function group 1
+ 2.1 G_2_EN BOOL G function group 2
+ 2.2...+ Reserved
2.3
+ 2.4 X_T_EN BOOL Position/dwell
+ 2.5...+ Reserved
2.7
+ 3.0 V_EN BOOL Speed
+ 3.1 M_1_EN BOOL M function group 1
+ 3.2 M_2_EN BOOL M function group 2
+ 3.3 M_3_EN BOOL M function group 3
+ 3.4...+ Reserved
3.7
+4 G_1_VAL BYTE G function no. of group 1
+5 G_2_VAL BYTE G function no. of group 2
+ 6...+ 7 Reserved
+8 X_T_VAL DINT Value for position/dwell
+ 12 V_VAL DINT Value for speed
+ 16 M_1_VAL BYTE M function no. of group 1

FM 354 Servo Drive Positioning Module


C-10 6ES7 354-1AH01-8BG0
UDT (User DB)

Table C-1 UDT (User DB), Fortsetzung

Absolute
Variable Data Type Comment
address
+ 17 M_2_VAL BYTE M function no. of group 2
+ 18 M_3_VAL BYTE M function no. of group 3
+ 19 Reserved
END_STRUCT
Program selection
242 PROG_NO BYTE Program number
243 BLCK_NO BYTE Block number
244 PROG_DIR BYTE Direction of processing
245 Reserved
Request for application data
246 CODE_AP1 BYTE Application data 1
247 CODE_AP2 BYTE Application data 2
248 CODE_AP3 BYTE Application data 3
249 CODE_AP4 BYTE Application data 4
Teach-in
250 TEA_PROG_NO BYTE Program number
251 TEA_BLCK_NO BYTE Block number
252 FELD2_INTERN ARRAY Internal, Reserved
[252...309]
BYTE
Basic operating data
310 ACT_VAL DINT Actual position
314 SPEED DWORD Actual speed
318 REM_DIST DINT Residual distance
322 SET_POS DINT Setpoint position
326 SUM_OFST DINT Sum of active coordinate offset, tool offset, zero off-
set
330 TRAV_SPE DWORD Rotational speed
334...338 Reserved
Active NC block
342 ACT_BL STRUCT Active NC block
+0 PROG_NO BYTE Program number
+1 BLCK_NO BYTE Block number
+ 2.0 G_1_EN BOOL G function group 1
+ 2.1 G_2_EN BOOL G function group 2
+ 2.2 G_3_EN BOOL G function group 3
+ 2.3 Reserved

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 C-11
UDT (User DB)

Table C-1 UDT (User DB), Fortsetzung

Absolute
Variable Data Type Comment
address
+ 2.4 X_T_EN BOOL Position/dwell
+ 2.5 SR_L_EN BOOL No. of UP calls
+ 2.6 SR_N_EN BOOL UP call
+ 2.7 SKIP_EN BOOL Block skip
+ 3.0 V_EN BOOL Speed
+ 3.1 M_1_EN BOOL M function group 1
+ 3.2 M_2_EN BOOL M function group 2
+ 3.3 M_3_EN BOOL M function group 3
+ 3.4 TO_EN BOOL Tool offset
+ 3.5...+ Reserved
3.7
+4 G_1_VAL BYTE G function no. of group 1
+5 G_2_VAL BYTE G function no. of group 2
+6 G_3_VAL BYTE G function no. of group 3
+7 Reserved
+8 X_T_VAL DINT Value for position/dwell
+ 12 V_VAL DINT Value for speed
+ 16 M_1_VAL BYTE M function no. of group 1
+ 17 M_2_VAL BYTE M function no. of group 2
+ 18 M_3_VAL BYTE M function no. of group 3
+ 19 TO_VAL BYTE Tool offset no.
END_STRUCT
Next NC block
362 NXT_BL STRUCT Next NC block
+0 PROG_NO BYTE Program number
+1 BLCK_NO BYTE Block number
+ 2.0 G_1_EN BOOL G function group 1
+ 2.1 G_2_EN BOOL G function group 2
+ 2.2 G_3_EN BOOL G function group 3
+ 2.3 Reserved
+ 2.4 X_T_EN BOOL Position/dwell
+ 2.5 SR_L_EN BOOL No. of UP calls
+ 2.6 SR_N_EN BOOL UP call
+ 2.7 SKIP_EN BOOL Block skip
+ 3.0 V_EN BOOL Speed
+ 3.1 M_1_EN BOOL M function group 1

FM 354 Servo Drive Positioning Module


C-12 6ES7 354-1AH01-8BG0
UDT (User DB)

Table C-1 UDT (User DB), Fortsetzung

Absolute
Variable Data Type Comment
address
+ 3.2 M_2_EN BOOL M function group 2
+ 3.3 M_3_EN BOOL M function group 3
+ 3.4 TO_EN BOOL Tool offset
+ 3.5...+ Reserved
3.7
+4 G_1_VAL BYTE G function no. of group 1
+5 G_2_VAL BYTE G function no. of group 2
+6 G_3_VAL BYTE G function no. of group 3
+7 Reserved
+8 X_T_VAL DINT Value for position/dwel
+ 12 V_VAL DINT Value for speed
+ 16 M_1_VAL BYTE M function no. of group 1
+ 17 M_2_VAL BYTE M function no. of group 2
+ 18 M_3_VAL BYTE M function no. of group 3
+ 19 TO_VAL BYTE Tool offset no.
END_STRUCT
Application data
382 APP1 DINT Application data 1
386 APP2 DINT Application data 2
390 APP3 DINT Application data 3
394 APP4 DINT Application data 4
Actual value block change
398 BLCK_EXT DINT Actual value block change
Service data
402 OUT_VAL DINT DAO output value
406 ENC_VAL DINT Actual sensor value
410 PULS_ERR DINT Missing pulses
414 KV_FA DINT Kv factor
418 FOLL_ERR DINT Following error
422 FERR_LIM DINT Following error limit
426 OSC_ERR DINT Setpoint overshoot value/switch adjustment
430 DR_TIME DINT Approach time/response time constant
Additional operating data
434 OVERRIDE1 BYTE Override
435 PROG_NO1 BYTE NC traversing program no.
436 BLCK_NO1 BYTE NC block no.

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 C-13
UDT (User DB)

Table C-1 UDT (User DB), Fortsetzung

Absolute
Variable Data Type Comment
address
437 LOOP_NO1 BYTE UP call counter
438 G90_91 BYTE Active G90/91
439 G60_64 BYTE Active G60/64
440 G43_44 BYTE Active G43/44
441 TO_NO BYTE Active D number
442.0 Reserved
442.1 LIM_SP BOOL Speed limit
442.2 LIM_10 BOOL Limited to "10 V
442.3 LIM_SU BOOL Acceleration/deceleration limit
442.4... Reserved
445
Parameter/data
446 PAR_RD STRUCT Parameter/data
+0 TYP BYTE DB type
+1 NUMB BYTE Number
+2 COUN BYTE Quantity
+3 JOB BYTE Request
+4 DATA1 ARRAY Array, structure/data type according to data, to be
[450 ..469] read as per bytes 1 to 4 of this structure
BYTE
END_STRUCT

470 ARRAY Internal, Reserved


[470...485]
BYTE
Measured values
486 BEGIN_VAL DINT Initial value or on-the-fly measured value
490 END_VAL DINT Final value
494 LENGTH_VAL DWORD Measured length value
Operator control and monitoring
498 USR STRUCT Operator control and monitoring
+ 0.0 BITC_0 BOOL Write MD
+ 0.1 BITC_1 BOOL Read MD
+ 0.2 BITC_2 BOOL MDI block transferred
+ 0.3 BITC_3 BOOL Prog. sel. transferred
+ 0.4 BITC_4 BOOL Teach-in transferred
+ 0.5 BITC_5 BOOL Incremental dimension transferred

FM 354 Servo Drive Positioning Module


C-14 6ES7 354-1AH01-8BG0
UDT (User DB)

Table C-1 UDT (User DB), Fortsetzung

Absolute
Variable Data Type Comment
address
+ 0.6 BITC_6 BOOL Speed levels transferred
+ 0.7 BITC_7 BOOL Voltage levels transferred
+ 1.0 BITC_8 BOOL MDI block transferred on-the-fly
+ 1.1 BITC_9 BOOL Set actual value transferred
+ 1.2 BITC_10 BOOL Zero offset transferred
+ 1.3...+ Reserved
1.4
+ 1.5 BITC_13 BOOL Diagnostic interrupt
+ 1.6 BITC_14 BOOL Data error
+ 1.7 BITC_15 BOOL Operator/traversing error
+2 MD_NO WORD MD number
+4 MD_VALUE DINT MD value
+8 INC_NO BYTE Incremental dimension number
+9 Reserved
+ 10 PICT_NO WORD Display number
+ 12 KEY_CODE WORD Keyboard code
+ 14...+15 Reserved
+ 16.0 BITA_0 BOOL Open-loop control mode
+ 16.1 BITA_1 BOOL Approach to reference point
+ 16.2 BITA_2 BOOL Incremental mode (relative)
+ 16.3 BITA_3 BOOL MDI
+ 16.4 BITA_4 BOOL Auto/single block mode
+ 16.5 BITA_5 BOOL Auto mode
+ 16.6 BITA_6 BOOL Jog mode
+ 16.7... Reserved
+17.5
+ 17.6 BITA_14 BOOL Acknowledge error
+ 17.7 BITA_15 BOOL Acknowledge diagnostic interrupt
END_STRUCT

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 C-15
UDT (User DB)

FM 354 Servo Drive Positioning Module


C-16 6ES7 354-1AH01-8BG0
List of Abbreviations D
AS Automation system
BA Mode
BA “A/AE” “Automatic/Automatic single block” mode
BA “REF” “Reference point approach” mode
BA “SM” “Incremental approach” mode
BA “STE” “Open-loop control” mode
BA “T” “Jogging” mode
BP Mode parameter
BR Binary result
CPU Central Processing Unit of the SIMATIC S7
DB Data block
DBB Data block byte
DBX Data block bit
DB-MD Data block for machine data
DB-NC Data block for traversing programs
DB-SM Data block for increments
DB-SS Data block for status messages
DB-WK Data block for tool offset data
DEKL Detail event class
DENR Detail event number
DP Distributed I/O
EMC Electromagnetic compatibility
EN Enable (input parameter in LAD representation)
ENO Enable Output (output parameter in LAD representation)
EPROM Erasable programmable read-only memory
ESD Electrostatic sensitive device
EXE External pulse shaper
FB Function block

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 D-1
List of Abbreviations

FC Function
FEPROM Flash EPROM: Read/Write memory
FM Function module
HEX Hexadecimal
HMI Device for operating and monitoring of a process
I Input parameter
IM Interface module (SIMATIC S7)
I/Q Throughput parameter (initialization parameter)
LAD Ladder program
LED Light Emitting Diode
MDI Manual Data Input
MLFB Machine-readable order designation
MPI Multi Point Interface
MSR Measurement system raster
OB Organization block
OP Operator panel
PG Programming device
PLC Programmable controller
PS Power Supply (SIMATIC S7)
PWM Pulse width modulation
Q Output parameter
RFG Controller enable
RPS Reference point switch
S7-300 PLC of medium performance range
SDB System data block
SFC System Function Call (integrated fucntions)
SM Signal module (SIMATIC S7, e.g. input/output module)
SSI Synchronous Serial Interface
STEP 7 Programming device software for SIMATIC S7
STL Statement list
SZL System status list
TF Technology function
UP User program
J

FM 354 Servo Drive Positioning Module


D-2 6ES7 354-1AH01-8BG0
Index
A connecting cables, 4-4
measurement system cable, 4-4, 4-13
absolute dimensioning, 10-8
MPI connecting cable, 4-4
absolute encoder alignment, 9-72
setpoint cable, 4-4, 4-8
absolute encoders, 4-9
control, 9-10
absolute encoders (SSI), 9-69
Control signals, 6-13, 6-14
acceleration, 9-75, 9-76
control signals, 8-23, 9-2, 9-3
acceleration override, 10-11
COROS equipment (operator panels), 8-3
active NC block, 9-57
Creating the AW–DB, 6-4
actual value block change, 9-58
CSA certification, A-1
additional operating data, 9-59
application, A-2
application area, 1-2
application data, 9-58 D
request, 9-52 data blocks, 5-7
Automatic, 9-10, 9-31 increments, 5-8, 5-19
Block advance, 9-33 machine data, 5-7, 5-9
block return, 9-33 status messages, 8-3, 8-20
program selection, 9-31 system data block, 5-8
automatic tool offset data, 5-8, 5-20
backward processing, 9-32 traversing programs, 5-8, 5-22
forward processing, 9-32 data errors, 11-3
Automatic single block, 9-10 data management, 9-41
automatic single block, 9-36 deactivate-software end position monitoring,
axis type, 9-61 9-43
linear axis, 9-61 delete residual path, 9-46
rotary axis, 9-62 diagnostic buffer, 11-8
rotary axis end, 9-62 Diagnostic data, 6-24
Diagnostic information, 6-24
diagnostic interrupts, 11-6, 11-9
B external channel errors, 11-6
external errors, 11-6
backlash compensation, 7-26, 9-82
internal errors, 11-6
basic operating data, 9-56
Operating errors, 11-13
block change, 10-4
diagnostics/errors (overview), 11-2
digital inputs, 4-15, 9-85, 9-86, A-4
enable input, 9-86
C external block change, 10-4
CE marking, A-2 external start, 9-86
checkback signals, 8-23, 9-2, 9-6 measurement, 9-54
closed–loop control, 2-2 reference point switch for REF, 9-20
Communication between the CPU and the FM reversing switch for REF, 9-21
354, 6-6 set actual value on–the–fly, 9-51
configuration, 5-4 set actual value on-the-fly, 10-6
configuring the interrupts, 5-5 digital outputs, 4-18, 9-85, 9-87, A-4
Connecting an OP, 6-8 direct output, 9-87

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 Index-1
Index

dimensions, 10-8 FC POS_INIT (FC 0) – Initialization, 6-11


dimensions of the FM 354, A-3 FC POS_MSRM (FC 3) – read measured val-
direction alignment, 9-83 ues, 6-26
direction of machining, 9-32 FM approval, A-2
Distributed configuration, 6-8 FM cycle, 9-21, 9-42, 9-55, 9-85, 9-86, A-3
drift compensation, 7-26, 9-81 follow–up mode, 9-43
deactivation, 9-44 following error monitoring, 9-78
drive enable, 9-4 front connector, 1-7, 4-14
drive time constant, 7-16, 7-20 connecting cables, 4-20
drive unit, 4-7, 7-13 wiring the front connector, 4-20
dwell, 10-4 front connectors, 4-4
front–panel elements, 1-7, 1-8
LED indicators, 1-8
E
EMC guidelines, 4-2
encoder, 7-13 G
actual encoder value, 9-58 G functions, 10-3
encoder inputs, A-3
encoders, 4-8, 4-10, 9-64
absolute encoders, 4-9, 9-69 I
connecting the encoders, 4-12
I/O interface, 4-14
incremental encoders, 4-9, 9-66
incremental dimensioning, 10-9
error class, 11-3
incremental encoders, 4-9, 9-66
external channel errors, 11-3
measured value synchronization, 9-73
external errors, 11-3
Incremental relative, 9-10
internal errors, 11-3
incremental relative, 9-24
error evaluation , 7-9
increments, 5-19
error list, 11-9
inprocess measurement, 9-54
data errors, 11-22
Installing the FM 354, 3-3
external channel errors, 11-11
interfaces, 4-14
external errors, 11-10
I/O interface-interfaces, 4-14
internal errors, 11-9
interpolator, 9-75
machine data errors, 11-27
Interrupt processing, 6-27
Operating errors, 11-13
Interrupts, 6-27
operator errors, 11-15
Evaluating a diagnostic interrupt, 6-28
travel errors, 11-17
Evaluating a process interrupt, 6-28
traversing program errors, 11-31
Interrupt processing, 6-27
error messages, 11-4
Lost process interrupts, 6-28
LED indicators, 11-4
interrupts, 9-89
Error messages from the FM, 6-22
error response, 11-4
Evaluating a diagnostic interrupt, 6-28
Evaluating a process interrupt, 6-28 J
Executing mode control, 6-13 Job request status, 6-16
external block change, 10-4 Jogging, 9-10, 9-15
jolt filter, 7-21, 9-76

F
FC POS_CTRL (FC 1) – data interchange, L
6-13 length measurement, 9-55
FC POS_DIAG (FC 2) – read diagnostic inter- linear axis, 9-61
rupt data, 6-23 Lost process interrupts, 6-28

FM 354 Servo Drive Positioning Module


Index-2 6ES7 354-1AH01-8BG0
Index

M override, 9-15, 9-19


acceleration override, 10-11
M functions, 10-14
time override, 9-5
machine data, 5-9
velocity override, 9-4
activate, 9-45
activation, 7-12
dependencies, 5-16
input limits, 7-3 P
interdependencies, 7-3 Parameterizable zero-speed monitoring, 7-28
machine data list, 5-11 parameterization, 5-24
MDI (Manual Data Input), 9-10, 9-27 parameterizing, 5-1
measured values, 9-54 parameters/data, 9-59
inprocess measurement, 9-54 parking axis, 9-44
length measurement, 9-55 path resolution, 9-64
measurement, 9-54 ports, 1-7, 1-8, 4-5, 4-8
mode parameter, 9-15, 9-18 drive interface, 4-5
mode parameter , 9-24 drive -port, 1-8
Modify parameters/data, 9-38 drive-port, 1-7
module replacement, 5-8 I/O-port, 1-7, 1-8
MPI connection, 1-4 measurement system interface, 4-8
measurement system-port, 1-7, 1-8
SIMATIC bus connector-port, 1-7, 1-8
N position approach, 9-77
position control, 9-80
next NC block, 9-57
assessment criteria, 7-19
backlash compensation, 9-82
D/A converter, 9-84
O direction alignment, 9-83
offset compensation, 9-83 drift compensation, 9-81
OP 07 menu tree, 8-5 following error, 9-58, 9-80
OP 17 menu tree, 8-10 interpolator, 9-75
open–loop control, 9-18 jolt filter, 9-76
Operating control mode, 6-19 offset compensation, 7-14, 9-83
operating modes, 9-14 position approach, 9-77
Automatic, 9-31 position control loop gain, 9-58, 9-80
automatic single block, 9-36 position controller diagnostics, 7-24, 9-77
incremental relative, 9-24 velocity assignment, 9-84
Jogging, 9-15 voltage ramp, 9-84
MDI, 9-27 position control , offset compensation, 7-26
open–loop control, 9-18 Position control circuit, 7-19
reference point approach, 9-19 position control loop gain, 9-58, 9-80
operator control and monitoring, 8-1, 8-3 position controller, 7-17, 9-74
data blocks, 8-1 positioning, 2-1, 7-18
user data, 8-1 approach time, 9-58, 9-78
operator control and travel errors, 11-3 assessment criteria, 7-19
optimization (machine axis), 7-6 positioning accuracy, 9-64
position control, 7-16, 7-19, 7-21 status messages, 9-59
Override, 9-4 power ratings, A-3

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 Index-3
Index

process interrupts, 9-89 S


processing in progress, 9-7
safety rules, 4-1
Processing read and write requests, 6-13, 6-15
EMERGENCY OFF devices, 4-1
program selection, 9-31
Sample applications, 6-40
Block return, 9-33
service data, 7-9
forward block search, 9-33
servicing data, 9-58
Programming the technological functions, 6-1
Servicing Read requests, 6-19
Communication between the CPU and the
Servicing Write requests, 6-18
FM 354, 6-6
servo enable, 9-44, 9-77
Fundamentals, 6-3
servo ready, 9-77
Interface, user data blocks, 6-3
Set actual value, 9-19, 9-47
Sample applications, 6-40
undo set actual value, 9-47
Structure of a user program, 6-7
set actual value, 9-50
Symbolic programming, 6-4
set actual value on–the–fly, 9-51
Testing the user program, 6-8
set actual value on-the-fly, 10-6
Writing the user program, 6-9
set actual value on–the–fly, 9-51
Putting into operation, with the parameteriza-
Set actual value on-the-fly, 9-8
tion tool, 6-10
set actual value on-the-fly, 10-6
Set breakpoint, 6-8
Set reference point, 7-24, 7-26
R set reference point, 9-53
read data SIMATIC Manager, 5-4
active NC block, 9-57 simulation, 9-45
actual value block change, 9-58 Single commands, 6-21, 6-22
additional operating data, 9-59 single commands, 9-45
application data, 9-58 activate machine data, 9-46
basic operating data, 9-56 automatic block advance/return, 9-33
next NC block, 9-57 delete residual path, 9-46
parameters/data, 9-59 restart, 9-47
servicing data, 9-58 undo set actual value, 9-47
read–in enable, 9-3 Single functions, 6-22
reference point, 9-72 single functions, 9-42
Reference point approach, 9-10 deactivate software-end position monitor-
reference point approach, 9-19 ing, 9-43
reducing velocity, 7-24 follow–up mode, 9-43
referencing velocity, 7-24 inprocess measurement, 9-42
reference point coordinates, 7-23 length measurement, 9-42
reference point offset, 9-72 parking axis, 9-44
reference point switch, 7-23, 9-20 retrigger reference point, 9-42
switch alignment, 7-23, 9-58 servo enable, 9-44
reference point switch , 9-72 simulation, 9-45
reference-point coordinate, 7-26 switch off enable input, 9-43
removing the FM 354, 3-4 Single settings, 6-21
Replacing modules, 3-5 slots for the FM 354, 3-2
restart, 9-47 software limit switches, 7-26, 9-88
retrigger reference point, 9-42
reversing switch, 9-21
rotary axis, 9-27, 9-49, 9-62
rotary axis end, 9-62

FM 354 Servo Drive Positioning Module


Index-4 6ES7 354-1AH01-8BG0
Index

Standard function blocks, 6-5 traversing block, 9-27


FC POS_CTRL (FC 1) – data interchange, traversing blocks, 10-2
6-13 axis as rotary axis, 10-10
FC POS_DIAG (FC 2) – read diagnostic block change, 10-4
interrupt data, 6-23 block structure, 10-2
FC POS_INIT (FC 0) – Initialization, 6-11 G functions, 10-3
FC POS_MSRM (FC 3) – read measured M functions, 10-14
values, 6-26 traversing programs, 5-22, 9-31
Overview, 6-5 block transitions, 10-16
start enable, 9-6 direction of processing, 10-16
Starting the axis, 7-13 input, 5-23
Startup, 7-6 program name, 10-1
Status signals, 6-13, 6-14 program number, 10-1
Structure of a user program, 6-7 program structure, 10-2
Signal processing, 6-7 traversing block, 10-2
switch off enable input, 9-43 traversing blocks, 10-2
Symbolic programming, 6-4
synchronization, 9-19, 9-72, 9-73
absolute encoder alignment, 9-72 U
measured value synchronization, 9-73
UL certification, A-1
reference point, 9-72
user data, 8-1
reference point approach, 9-72
User data block, 6-29
reference point offset, 9-72
reference point switch, 9-72
synchronization point, 9-73
system data, 9-37 V
measured values, 9-54 velocity levels, 9-15
Modify parameters/data, 9-38 velocity override, 9-4
set actual value, 9-50 voltage levels, 9-18
set actual value on–the–fly, 9-51 voltage ramp, 9-84
set reference point, 9-53
single commands, 9-45
single functions, 9-42 W
zero offset, 9-48
weights, A-3
system data block, 5-8, 5-25
wiring an FM 354, 4-3
system of measurement, 9-60
wiring the FM 354, 4-1
system overview, 1-4
wiring up the front connector, 4-20
components, 1-4
write data
data handling, 1-6
request application data, 9-52
Teach in, 9-53
Writing the user program, 6-9
T writing traversing programs, 10-1
Teach in, 9-53
testing (machine axis), 7-6
time override, 9-5 Z
tool compensation, 10-11
zero offset, 9-19, 9-48
tool offset data, 5-20
zero pulse, 7-23
Trace, 7-10

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 Index-5
Index

FM 354 Servo Drive Positioning Module


Index-6 6ES7 354-1AH01-8BG0
To
Siemens AG
A&D MC BMS
P. O. Box 3180
D-91050 Erlangen
Federal Republic of Germany

Tel. +49 (180) 50 50 222


Fax +49 (9131) 98 2176
email: [email protected]

From:
Your name: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Your job: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Your company: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Address: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Telephone: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Please tick the branch of industry in which you work:

r Automotive r Pharmaceuticals
r Chemical r Plastics processing
r Electrical r Paper
r Food r Textiles
r Process control r Transportation
r Machine construction r Other _ _ _ _ _ _ _ _ _ _ _ _ _
r Petrochemical industry
$

FM 354 Servo Drive Positioning Module


6ES7 354-1AH01-8BG0 1
Comments/suggestions
Your comments and suggestions will help us to improve the quality and user friendliness of our
documentation. Please fill in this questionnaire at the next opportunity and send it back to us at
Siemens.

Title of the manual: FM 354 Servo Drive Positioning Module


Order No. of the manual: 6ES7 354-1AH01-8BG0

Please indicate your personal assessment of this document by entering “1” = good to “5” = bad
in response to the following questions.

1. Do the contents of the document meet your needs?


2. Was the information you needed easy to find?
3. Was the text easy to understand?
4. Were you satisfied with the depth of technical information provided?
5. How would you assess the quality of diagrams and tables?

If you have encountered specific problems, please describe them on the following lines:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

FM 354 Servo Drive Positioning Module


2 6ES7 354-1AH01-8BG0

You might also like