mae10-e.pdf

(2826 KB) Pobierz
Titel aus Datei-Info
Controlled Positioning of an Axis with Stepper Motor
Using the Example of a "Cutting-to-Length" Process
incl. HMI Configuration (S7-200, EM253, FM-STEPDRIVE,
SIMOSTEP type 1FL3, TD200)
Micro Application Example 10
V1.0 (Edition 03/2003)
Structure of the document
Micro Application Examples
The Fast Track to an
Optimized Solution
404961718.001.png
Liability
Siemens AG does not accept liability of any kind for damages arising from
the use of this application, except where it is obliged to by law, in cases
such as damage to items used for personal purposes, personal injury,
willful damage or gross negligence.
Warranty
The program examples given are specific solutions to complex tasks which
were worked on by Customer Support. We must also point out that it is not
possible in the current state of the technology to exclude all errors in
software programs under all conditions of use. The program examples were
prepared according to the best of our knowledge. However, we cannot
accept any liability beyond the standard guarantee for Class C software in
accordance with our General Terms of Sale for Software Products for
Automation and Drive Technology". The program examples can be
purchased on the Internet as single licenses. They may not be transferred
to a third party.
Controlled Positioning of an Axis with Stepper Motor Using the Example of a "Cutting-to-Length" Process
incl. HMI Configuration
Table of Contents
The Automation Task................................................................................. 8
2
The Automation Solution ........................................................................ 10
2.1
2.1.1
Hardware components ............................................................................... 12
2.1.2
Software components ................................................................................ 12
2.2
Application software components .............................................................. 13
3
Basic performance data .......................................................................... 14
3.1
General ...................................................................................................... 14
3.2
Example for using the calculation matrix shown in chapter 3.3 ................. 15
3.3
Calculation matrix....................................................................................... 16
3.3.1
Acceleration time [ms]................................................................................ 16
3.3.2
Delay .......................................................................................................... 16
3.4
Selected, measured times for verifying the calculated values ................... 18
Function Mechanisms ............................................................................. 21
4.1
Description of entire solution structure....................................................... 21
4.1.1
Control unit (S7-CPU 222 and positioning module EM 253) ...................... 22
4.1.2
Control of the FM STEPDRIVE and the SIMOSTEP stepper motor .......... 24
4.1.3
4.2
Program and data structure ....................................................................... 34
4.2.1
Organization block " STEP1_MAIN " ......................................................... 35
4.2.2
Subroutine " STEP1_MOTION " ................................................................ 36
4.2.3
Subroutine "STEP1_MSELECT" ................................................................ 38
4.2.4
Subroutine "STEP1_PSELECT" ................................................................ 39
4.2.5
Subroutine "STEP1_FCUT" ....................................................................... 40
4.2.6
Subroutine "STEP1_STATUS"................................................................... 41
4.2.7
Variables used in the program ................................................................... 41
Installation of Hardware and Software................................................... 47
5.1
Hardware configuration .............................................................................. 47
5.1.1
Installation of the S7-200 CPU and the EM253 positioning module .......... 48
5.1.2
Installation of the FM STEPDRIVE ............................................................ 48
5.1.3
Electrical connection of the components.................................................... 49
5.2.1
Software installation ................................................................................... 56
Rev. A - Endgültig 04.04.2003
3/81
5.2
Transfer of the application code to the S7-200 CPU.................................. 56
404961718.002.png
Controlled Positioning of an Axis with Stepper Motor Using the Example of a "Cutting-to-Length" Process
incl. HMI Configuration
5.2.2
Parameter setting for the FM STEPDRIVE ................................................ 57
6
Operator Control via Text Display TD200 .............................................. 58
6.1
Automatic/jog mode ................................................................................... 58
6.2
Selecting and setting profiles ..................................................................... 60
6.3
Display of status information ...................................................................... 61
6.4
Setting the first cut ..................................................................................... 62
Explanation of the main parts of the S7-Micro/Win program............... 64
7.1
Details on the sub-program STEP1_MOTION ........................................... 65
7.2
Details on the sub-program STEP1_PSELECT ......................................... 71
8
Modifying the S7-Micro/Win Program .................................................... 77
8.1
Changing the parameters for motion.......................................................... 77
8.2
Increasing the number of profiles............................................................... 79
8.3
Changing the feedrate................................................................................ 80
8.4
Use of other motor versions ....................................................................... 81
Rev. A - Endgültig 04.04.2003
4/81
404961718.003.png
Controlled Positioning of an Axis with Stepper Motor Using the Example of a "Cutting-to-Length" Process
incl. HMI Configuration
Preamble
The application described in this document is used for the »controlled
positioning of an axis with a stepper motor using the example of a
cutting-to-length process, including HMI configuration« and it belongs
to the group of controlled positioning procedures.
Basically, these procedures can be broken down into "controlled" and
"closed-loop controlled" positioning processes. In contrast to controlled
positioning systems, control units used for closed-loop controlled
positioning must be continuously provided with in-process information on
the current position.
The application for controlled positioning described here requires the
following component types:
S7-222 CPU
EM 253 POSITION
FM STEPDRIVE
SIMOSTEP 2Nm (stepper motor)
TD200 text display unit.
The SIMOSTEP stepper motor mentioned above is also available in other
versions with different ratings; the application described here refers to a
type of stepper motor which is quite common on the market.
In combination with exactly the components as stated above, the
application described in this document offers a Plug&Play solution for
linear axes and also includes primary performance data verified under
load.
But you may also select other products from the specified product types
(e.g. SIMOSTEP 4Nm instead of 2Nm) that meet best your specific
purpose: our detailed description of the function mechanisms and of the
user program will help you to choose functional features that suit your
individual requirements (e.g. with regard to the HW components used).
Furthermore, we give answers to frequently asked questions which will help
you to reach your goal step by step (see chapter 8 "Modifying the S7
Micro/Win Program"), e.g. on "how to proceed, if you wish to use another
type of stepper motor with different ratings".
Rev. A - Endgültig 04.04.2003
5/81
404961718.004.png
Zgłoś jeśli naruszono regulamin