ConfigurationExample_x7_V1d0_allgemein_en.pdf

(3303 KB) Pobierz
Controlled positioning with S7-1200 via
pulse interface
S7-1200 CPU 1214C and servo drive with pulse interface
Configuration Example x7 y August 2009
Applikationen & Tools
Answers for industry.
1366317687.072.png 1366317687.083.png 1366317687.094.png 1366317687.104.png 1366317687.001.png 1366317687.012.png 1366317687.023.png 1366317687.026.png
Warranty, liability and support
Warranty, liability and support
Note
The application examples are not binding and do not claim to be
complete regarding configuration, equipment and any eventuality. The
application examples do not represent customer-specific solutions. They
are only intended to provide support for typical applications. You are
responsible for ensuring that the described products are used correctly.
These application examples do not relieve you of the responsibility to use
sound practices in application, installation, operation and maintenance.
When using these application examples, you recognize that we cannot be
made liable for any damage/claims beyond the liability clause described.
We reserve the right to make changes to these application examples at
any time without prior notice. If there are any deviations between the
recommendations provided in these application examples and other
Siemens publications – e.g. Catalogs – the contents of the other
documents have priority.
We do not accept any liability for the information contained in this
document.
Any claims against us – based on whatever legal reason – resulting from
the use of the examples, information, programs, engineering and
performance data etc., described in this Application Example shall be
excluded. Such an exclusion shall not apply in the case of mandatory
liability, e.g. under the German Product Liability Act
(“Produkthaftungsgesetz”), in case of intent, gross negligence, or injury of
life, body or health, guarantee for the quality of a product, fraudulent
concealment of a deficiency or breach of a condition which goes to the root
of the contract (“wesentliche Vertragspflichten”). However, claims arising
from a breach of a condition which goes to the root of the contract shall be
limited to the foreseeable damage which is intrinsic to the contract, unless
caused by intent or gross negligence or based on mandatory liability for
injury of life, body or health. The above provisions do not imply a change of
the burden of proof to your detriment.
It is not permissible to transfer or copy these application examples or
excerpts thereof without express authorization from Siemens Industry
Sector.
For questions about this document, please use the following e-mail
address:
Controlled positioning with S7-1200 via pulse interface
V1.0, Entry ID: 38391227
2
1366317687.027.png
 
Table of Contents
Table of Contents
1
Automation Task.. ........................................................................................... 4
1.1
Application environment ... ................................................................................ 4
1.2
Component list.. ................................................................................................ 5
2
Automation Solution ... ................................................................................... 7
2.1
Wiring diagram.. ................................................................................................ 7
2.2
Control signals between S7-1200 and servo drive .. ......................................... 9
2.3
2.4
2.5
Calculating the maximum motor frequency ... ................................................. 13
2.6
2.7
Enable/disable the axis (MC_Power).. ............................................................ 15
2.8
Acknowledging error (MC_Reset)... ................................................................ 16
2.9
Manual moving – jog mode (MC_MoveJOG) ... .............................................. 16
2.10
2.11
Homing (MC_Home) ... .................................................................................... 18
2.12
Interrupting orders (MC_Halt) .. ....................................................................... 20
2.13
Absolute positioning (MC_MoveAbsolute) .. .................................................... 21
2.14
Relative positioning (MC_MoveRelative) .. ...................................................... 22
3
Configuration .. .............................................................................................. 23
3.1
Installing and wiring hardware .. ...................................................................... 23
3.2
Parameterizing the servo drive ... .................................................................... 23
3.3
3.4
Parameterizing technology object "Axis" .. ...................................................... 24
3.5
Loading software .. .......................................................................................... 27
3.6
3.7
Operator control with WinCC Runtime HMI ... ................................................. 31
4
Code Elements .. ............................................................................................ 33
5
History .. ......................................................................................................... 34
6
Appendix ... .................................................................................................... 35
Controlled positioning with S7-1200 via pulse interface
V1.0, Beitrags-ID: 38391227
3
1 Automation Task
1.1 Application environment
1
Automation Task
1.1
Application environment
An axis connected via a servo motor is to be moved with servo drive, using
a pulse interface of a S7-1200 CPU1214C. Both the servo drive and the
S7-1200 CPU have an individual internal pulse counter each, whose count
represents the current position. Before moving to an absolute position, the
counter of the S7-1200 CPU has to be synchronized to the physical
position of the axis. The emergency stop function of the servo drive,
including alarm message, acts as a safety measure.
Figure 1-1
5
Circuit breaker
L1
N
L+
M
6-8
Servo
drive
3
1
2
2
12
10
11
4
The task comprises absolute positioning irrespective of starting position
and velocity ( Figure 1-2) . Das S7-1200 Technologieobjekt „Achse“ mit den
zugehörigen „PLCopen - Motion Control“ Funktionsbausteinen stellt dabei
die notwendigen Funktionen zur Verfügung.
On the basis of the stored
acceleration "a" and deceleration"d" [mm/s 2 ]
velocity in "v" [mm/s]
target position " " in [mm],
the moved distance s in [mm] is calculated on the basis of the current
starting position " " and the target position " " is approached.
Controlled positioning with S7-1200 via pulse interface
V1.0, Entry ID: 38391227
4
1366317687.028.png 1366317687.029.png 1366317687.030.png 1366317687.031.png 1366317687.032.png 1366317687.033.png 1366317687.034.png 1366317687.035.png 1366317687.036.png 1366317687.037.png 1366317687.038.png 1366317687.039.png 1366317687.040.png 1366317687.041.png 1366317687.042.png 1366317687.043.png 1366317687.044.png 1366317687.045.png 1366317687.046.png 1366317687.047.png 1366317687.048.png 1366317687.049.png 1366317687.050.png 1366317687.051.png 1366317687.052.png 1366317687.053.png 1366317687.054.png 1366317687.055.png 1366317687.056.png 1366317687.057.png 1366317687.058.png 1366317687.059.png 1366317687.060.png 1366317687.061.png 1366317687.062.png 1366317687.063.png 1366317687.064.png 1366317687.065.png 1366317687.066.png 1366317687.067.png 1366317687.068.png 1366317687.069.png 1366317687.070.png 1366317687.071.png 1366317687.073.png 1366317687.074.png 1366317687.075.png 1366317687.076.png 1366317687.077.png 1366317687.078.png 1366317687.079.png 1366317687.080.png 1366317687.081.png 1366317687.082.png 1366317687.084.png 1366317687.085.png 1366317687.086.png 1366317687.087.png 1366317687.088.png 1366317687.089.png 1366317687.090.png 1366317687.091.png 1366317687.092.png 1366317687.093.png 1366317687.095.png
 
1 Automation Task
1.2 Component list
Figure 1-2
V
a
S
d
Time
1.2
Component list
Products
Table 1-1 Control components
Components
No.
MLFB / order number
Note
1.
PM1207 Power supply
1
6ES7 214-1AB22-0XB0
2.
S7-1200 CPU1214C
1
6ES7 214-1AB22-0XB0
DC/DC/DC
Table 1-2 Drive components
Components
No.
Note
3. Servo drive
1
Control signals (DC 24V)
Pulse interface (Pulse)
Travel direction (Sign)
Enabling of servo drive (Enable Servo)
Resting of alarms (Alarm Clear)
Emergency stopp (EMC Servo)
Feedback signals (DC 24V)
Servo ready for travel (Servo Ready)
Alarm event occurred (Alarm)
Target position reached (In Position)
The CPU1214C can generate a maximum
output frequency of 100 kHz. The drive has to
parameterized so that the maximum motor
speed can be reached at 100 kHz pulse
frequency.
4. Servo motor
1
Accessory
Table 1-3
Components
No.
Order number
Note
5.
230 V connection with fusing
1
L,N
6.
limit switch
2
Specialist dealer
Operated
mechanically
7.
Reference end-position switch
1
Specialist dealer
Inductive
8.
Emergency stop circuit-breaker
1
Specialist dealer
9.
Ethernet connecting cables
1
6XV1870-3RH20
PC <-> Control
Controlled positioning with S7-1200 via pulse interface
V1.0, Beitrags-ID: 38391227
5
1366317687.096.png 1366317687.097.png 1366317687.098.png 1366317687.099.png 1366317687.100.png 1366317687.101.png 1366317687.102.png 1366317687.103.png 1366317687.105.png 1366317687.106.png 1366317687.107.png 1366317687.108.png 1366317687.109.png 1366317687.110.png 1366317687.111.png 1366317687.112.png 1366317687.113.png 1366317687.114.png 1366317687.002.png 1366317687.003.png 1366317687.004.png 1366317687.005.png 1366317687.006.png 1366317687.007.png 1366317687.008.png 1366317687.009.png 1366317687.010.png 1366317687.011.png 1366317687.013.png 1366317687.014.png 1366317687.015.png 1366317687.016.png 1366317687.017.png 1366317687.018.png 1366317687.019.png 1366317687.020.png 1366317687.021.png 1366317687.022.png 1366317687.024.png 1366317687.025.png
 
Zgłoś jeśli naruszono regulamin