Simatic Easy Motion Control: First Steps in Commissioning
Simatic Easy Motion Control: First Steps in Commissioning
2003
SIMATIC
Easy Motion Control
Safety Guidelines
This manual contains notices intended to ensure personal safety, as well as to protect the products and
connected equipment against damage. These notices are highlighted by the symbols shown below and
graded according to severity by the following texts:
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 can result if proper precautions are not taken.
Caution
indicates that property damage can result if proper precautions are not taken.
Notice
draws your attention to particularly important information on the product, handling the product, or to a
particular part of the documentation.
Qualified Personnel
Only qualified personnel should be allowed to install and work on this equipment. Qualified persons
are defined as persons who are authorized to commission, to ground and to tag circuits, equipment, and
systems in accordance with established safety practices and standards.
Correct Usage
Warning
! This device and its components may only be used for the applications described in the catalog or the
technical description, and only in connection with devices or components from other manufacturers
which have been approved or recommended by Siemens.
This product can only function correctly and safely if it is transported, stored, set up, and installed
correctly, and operated and maintained as recommended.
Trademarks
SIMATIC®, SIMATIC HMI® and SIMATIC NET® are registered trademarks of SIEMENS AG.
Third parties using for their own purposes any other names in this document which refer to trademarks
might infringe upon the rights of the trademark owners.
Siemens AG
Bereich Automation and Drives
Geschäftsgebiet Industrial Automation Systems © Siemens AG 2001-2003
Postfach 4848, D- 90327 Nuernberg Technical data subject to change.
Getting Started
Introduction
Using an IM 178-4 as an example of a distance measurement and output module,
this primer leads you through six commissioning steps to a working application. It
allows you to familiarize yourself with the basic functions of Easy Motion Control.
Depending on your experience, it will take between one and two hours of your
time.
At the end of this primer, you will find information on testing in simulation mode
without hardware and drive.
Requirements
The following requirements must be fulfilled:
• You must have configured and wired an S7 station consisting of a power
supply module, CPU with DP connection and a locally connected IM 178-4 as
well as your drive together with encoder.
• For installation and wiring of the IM 178-4, see the "IM 178-4 Drive Interface"
manual.
Wiring includes connecting the enable input of your power unit to a digital
output of the IM 178-4 (see step 5.9).
• STEP 7 (≥ V5.0 + Service Pack 3) is correctly installed on your programming
device.
• Your programming device is connected to the CPU.
• You have set up a project for your S7 station.
• You are in possession of the Easy Motion Control software product.
• You are familiar with the STEP 7 configuration package, particularly with the
SIMATIC Manager and the LAD/STL/FBD-Editor.
• You have provided safety limit switches and EMERGENCY STOP switches to
safeguard the safety of operating staff and the system itself.
Getting Started
Warning
! Injury may occur to persons and property.
Uncontrolled travel motions during commissioning and operation can cause
severe injury to persons and property.
To avoid injury to persons and objects, take the following precautions:
• Install an EMERGENCY STOP switch in the vicinity of the computer. This is
the only way to ensure that the system is reliably switched off in the event of a
hardware or software failure.
• Install safety limit switches with direct control over the power units of all drives.
• Ensure that nobody has access to anywhere of the system where there are
moving parts.
Configuration of Example
DP
Enabling
Safety Power +/- 10 Volt
Device Unit
PC/PG
Working
Stations
Movement
M Encoder
Motor
Safety Limit
Switch Easy Motion Control with
configuration software,
blocks and manual
Getting Started
Functionality of Example
You generate a user program allowing you to move your axis in jogging mode.
Parameter
Parameterize the other settings according to the connected encoder.
Getting Started
3.3 In the "New" window, open the block container of your project.
3.4 Under "Object Name", enter a DB that does not yet The dialog is opened for
exist in your project, e.g. DB1. This DB is regenerated parameterizing the DB.
with "OK".
UDT AXIS_REF is thereby copied from the library
"EMC2 Easy Motion Control" into the "Blocks"
container of your project.
Note: You should not then delete this UDT AXIS_REF
or change the UDT number.
3.5 Enter all parameters corresponding to your axis. You will find an explanation of parameters
in the configuration software's online help (F1 key).
In the "Commissioning" register, the configuration software offers help in determining
parameters.
• "Set encoder polarity"
• "Set drive polarity"
• "Axis distance per encoder revolution" and
• "Max. axis velocity"
see step 4.
3.6 Save the axis DB that has just been parameterized in The DB is generated and
your offline database organization. parameterized.
Getting Started
Warning
! The start-up aids described here cause your axis to move. Faulty wiring or
parameterization results in incorrect speed or polarity. You must therefore make
sure that your system cannot be damaged by being moved, e.g. using safety limit
switches which switch your drive off.
The axis is commissioned without a user program and only functions if nothing
else is accessing the analog output channel controlling your drive.
4.3 Use the "wiring test" to check the wiring of your The axis is moved.
encoder and analog output and if necessary set the The parameters "Set encoder
encoder or drive polarity. polarity" and "Set drive polarity" are
Press the "Wiring test" button and follow the adjusted so as to ensure correct
instructions in Wizard. direction of control action of the
position control loop.
4.4 "Distance measurement" allows you to determine the The axis is moved.
parameter "Axis distance per encoder revolution".
"Distance measurement" is only necessary if you do
not know what distance your axis covers in one
The parameter "Axis distance per
encoder revolution.
encoder revolution" is set correctly.
Press the "Distance measurement" button and follow
the instructions in Wizard.
4.5 "Velocity measurement" allows you to determine the The axis is moved.
parameter "Maximum axis velocity".
"Velocity measurement" is only necessary if you do not
know what maximum axis velocity your axis reaches.
Press the button "Velocity measurement" and follow
the instructions in Wizard. The parameter "Maximum axis
velocity" is set correctly.
4.6 Save the axis DB in your offline database organization.
Getting Started
5.2 From the "Blocks" container of the "EMC2 Easy Motion Control" library, copy the blocks
• FC Mc_Init (function for initializing all blocks)
• FB EncoderIM178 (input driver for IM 178-4)
• FB MC_MoveJog (travel block for jogging mode)
• FB MC_Control (control block)
• FB OutputIM178 (output driver for IM 178-4)
into your project's "Blocks" container.
5.3 Insert the new FC1 in your project, giving it the symbolic name "GetStarted". Open it with the
KOP/AWL/FUP Editor e.g. in the generation language KOP.
5.4 In FC GetStarted, insert calls of the blocks specified in Step 5.2 in the sequence indicated.
5.5 Interconnect the following parameters of the blocks with the axis DB
• Parameter axis with DB_Axis.Ax.
• Parameter Init with DB_Axis.Ax.Init.Ixx.
Ixx in this case stands for one of the parameters I0 to I31. Interconnect each Parameter
Init with exactly one initialization bit in the axis DB which is not used by any other FB.
e.g. EncoderIM178 with DB_Axis.Ax.Init.I0, MC_MoveJog with DB_Axis.Ax.Init.I1 etc.
5.6 Ensure a conditional launch of FC MC_Init, e.g. by placing a make contact with M100.0 in
front of the parameter EN in the ladder diagram symbol.
5.7 Reset the condition for launching FC MC_Init (reset M100.0).
5.8 Interconnect the "EnableDrive" input of FB Output IM178 with the "DriveEnabled" output of
FB MC_Control.
5.9 Interconnect the digital output which you use to enable your power unit with the
"DriveEnabled" output of FB MC_Control.
5.10 Give symbolic names to the instance DBs of the launched FBs. For this, in the context menu
to FB call (right mouse button on FB call), open the menu entry "Edit symbols".
5.11 Save the FC GetStarted that has just been generated. The position control program is
generated but is not yet launched.
5.12 In the OB35 time interrupt, launch FC GetStarted that The position control program is
has been generated above. called using timer control.
Save OB35.
5.13 In OB100 startup, set the condition for launching The position control program is
FC MC_Init in FC GetStarted (e.g. M100.0 see initialized in CPU startup.
Step 5.6).
Save OB100.
Getting Started
Getting Started
Step Job
2 Not applicable.
3.5 Only change the following parameters once you have recreated the axis DB.