Professional Documents
Culture Documents
Introductory
Information
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Introductory
Information
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Introductory
Information
Task
Extractor
- Electrical travel
- Eject pneumatically
SIMOTION - Basic
Information
Product feed
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Package (empty)
Package (full)
Palletizer
Carton
erector
Conveyor belt
Sensor
Task:
Introductory
Information
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Packages with a protruding machine part are used on a conveyor belt (drive 1).
An empty package is detected by a sensor and should be removed with an
extractor (drive 2). The removal itself is performed pneumatically. When an
emergency off switch is pressed, all drives should be stopped immediately. The
current position of the conveyor belt should be displayed on the operator panel.
The machine diagrams show a machine part, the implementation in
SIMOTION is shown in the following slides.
The solution concept shows only one of many possible solutions. This
particular solution was selected to use as many different SIMOTION
functions as possible:
Cam with CamTool
Gearbox synchronism
Camming
Output cams
Virtual master axis
etc.
Siemens AG 2011. All Rights Reserved.
Industry Sector
Introductory
Information
HMI
SIMOTION SCOUT
D435
Task
SIMOTION - Basic
Information
Program Conception
Profibus DP
Carton erector *
Feed *
Create Project
SINAMICS Configuration
SIMOTION Configuration
Transport
ET 200 *
MICROMASTER 420 *
SIMOTION Programming
Extractor
1 FK7
Introductory
Information
Stop
Run
Startup Task
Task
SIMOTION - Basic
Information
Program Conception
Run
Background Task
Background Task
Motion Tasks
Motion Task 1
Synchronous Tasks
Call Motion
Tasks (sequential
tasks)
Motion Task 2
Motion Task 20
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Task 2
Task 5
Interrupt Tasks
Run
Stop
Monitor the
emergency
off criteria
Response to
process
signals
3
Shutdown Task
Introductory
Information
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Central topic for SIMOTION: Which job do I solve in which task or which
tasks are particularly suitable for specific jobs.
In the example, the background task is used to start sequential tasks
(MotionTasks).
The sequential tasks are used to implement processes and to start
movements.
The UserInterruptTask initiates an incorrect part handling depending on an
external signal.
The IPOsynchronousTask task monitors a protective door.
Another central question in SIMOTION:
Which program sections are programmed cyclically and which are programmed
sequentially. The same result can often be achieved in both ways. For motion
commands, SIMOTION supports the programming in the cyclical context. The
monitoring of the status of a motion command is performed by the system when
sequential programming is used (nextCommand:=WHEN_MOTION_DONE).
Siemens AG 2011. All Rights Reserved.
Industry Sector
Introductory
Information
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
To simplify the understanding, the comparison on a sample task follows: Pos should move
to Target; the Finished variable is set to TRUE when the position is reached.
Sequential Task:
_pos ( axis:= Pos,
position:= Ziel,
nextCommand:= WHEN_MOTION_DONE)
Advance
command
Program processing stops until
the target position is reached
Fertig:= TRUE;
Cyclical Task:
Query status
pos. command
Pos_status:=
_getStateOfAxisCommand ( Pos,
PosCommandID)
Technology objects
Task
SIMOTION device
SIMOTION - Basic
Information
Program Conception
I/O variables
Create Project
SINAMICS Configuration
Unit variables
SIMOTION Configuration
SIMOTION Programming
FB variables
Siemens AG 2011. All Rights Reserved.
Industry Sector
Technology objects
SIMOTION device
Task
SIMOTION - Basic
Information
Program Conception
I/O variables
Create Project
Unit variables
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
FC variables
FB variables
Current situation
Introductory
Information
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Drives
Parameterization SINAMICS
Axis configuration
Master axis
Conveyorbelt
Extractor
Output cam configuration
Cam configuration
Form
Parameterization
Programming, parameterization
and test
WinCC flexible connection
Creation of a hardware
configuration
Siemens AG 2011. All Rights Reserved.
Industry Sector
Positioning axis
Rotary axis (modulo)
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Gearbox synchronism
Real axis - pusher
Following axis
Linear axis
Camming
Cam - extractor
Not cyclical
Siemens AG 2011. All Rights Reserved.
Industry Sector
Startup Task
Introductory
Information
Task
Initialization - ST
Background Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Introductory
Information
Motion Task 2
Startup
Motion Task 3
Task
SIMOTION - Basic
Information
Background
Motion Task 4
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
User Interrupt
SIMOTION Programming
Motion Task 2
Motion Task 3
Device-global variables
Introductory
Information
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
None
Unit-global variables
Velocity of the leading axis
Open protective door
Program end
Operating mode
Local variables
None
Variables are named in accordance with the instructions from the applications style guide V1.01 for SIMOTION
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Introductory
Information
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Note: The drive parameter p0864 at power units with DRIVE-CLiQ have
to be wired to the operation signal of the infeed. In all other cases the
operating signal have to be wired to a digital input (e.g. CU). The chosen
DI is now linked with p0864 via BICO.
Drive 1 to Connection X1
Introductory
Information
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Summary
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Insert drive
Introductory
Information
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
After entering the name of the extractor (eject) the configuration wizard
has to be repeated for drive 2. Shown below are just the dialogs that
differ in comparison to drive 1.
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Introductory
Information
Task
SIMOTION - Basic
Information
For the SIMOTION D training case (single phase connection) the drive
parameter p0210 has to be set from 600V to 345V.
Access via expert list.
This must be carried out for both drives.
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Introductory
Information
The ratio of bus data cycle clock to servo cycle clock to interpolator
cycle clock (IPO) should be 1 : 1 : 1.
The bus data cycle clock is given
by HW config.
(here: DP cycle Tdp).
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
The reduction
of interpolator 2
(IPO_2) can be
chosen freely.
Rotary axis
Virtual axis
Siemens AG 2011. All Rights Reserved.
Industry Sector
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Rotary axis
Electrical axis
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Linear axis
Electrical axis
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
By real leading axis (e.g. conveyorbelt) you can choose the setpoint or the actual
value as the set value.
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
MasterAxis
Introductory
Information
Task
SIMOTION - Basic
Information
No modifications
Conveyorbelt
Position control
Speed precontrol
activated
Program Conception
DSC activated; Kv = 50
Create Project
SINAMICS Configuration
Ejector
Position control
SIMOTION Configuration
Speed precontrol
activated
SIMOTION Programming
DSC activated; Kv = 50
Automatic controller
setting
Via Controller setting
you can reach the automatic
controller setting
Note: The parameterization in this masks has to be done offline.
Conveyorbelt
Introductory
Information
Task
SIMOTION - Basic
Information
Ejector
Homing mode: Encoder zero mark only
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Output cam and track will be added in the directory Output Cam under the relevant
axis (Ejector).
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Activate output
Introductory
Information
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
iboProtDoor
iboStartBelt
start conveyorbelt
(input 1)
iboEject
ib16DigCU
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Introductory
Information
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Programming
Introductory
Information
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Function
Definition of all unit global variables in the INTERFACE field only in one
ST-unit.
Ensures easy exportability of global variables.
Prevent confusing cross-references (links or USES).
Retain variables and HMI variables are also declared on a separate
source.
Siemens AG 2011. All Rights Reserved.
Industry Sector
Programming
Introductory
Information
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Function
With the program pInit in the ST-unit pDefInit the variables will be set to
a defined value at startup.
The ST-unit pInit is to assign to the StartupTask.
The StartupTask is executed at every change of the operating state of the
SIMOTION control from STOP to RUN.
Basic Procedure
Introductory
Information
Task
SIMOTION - Basic
Information
Always when variables from pDefInit are used in an other source (e.g.
pAuto), pDefInit have to be assign to this source.
This connection can be configured in the tab Connections.
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Introductory
Information
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Function
For fault handling of technological objects
(e.g. axis).
In principle, an empty program can be used. Thus, the SIMOTION control wont
STOP if errors occurs.
Note: During the commissioning and troubleshooting, it is advisable to acknowledge
as few alarms directly. These alarms often give clues of misconduct.
Siemens AG 2011. All Rights Reserved.
Industry Sector
Introductory
Information
Task
SIMOTION - Basic
Information
Program Conception
Access to I/Os of the drives only when the drive components have also
been ramped up (after Power On)
e.g. onboard inputs of the CU
Test in the program for valid accesses of the I/O variables
Is to be done in all cyclic tasks (e.g. via the variable gboDriveActive)
Alternatively, you can work directly with replacement values of the I/O variables
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Introductory
Information
Task
SIMOTION - Basic
Information
Program Conception
Create Project
gi16Mode = 0
homing
SINAMICS Configuration
gi16Mode = 1
automatic
SIMOTION Configuration
SIMOTION Programming
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
SIMOTION - Basic
Information
Depending on the gi16Mode variable, the sTaskSel variable will be assigned the
value MotionTask_1 or MotionTask_2, respectively.
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
You can query the task state with the system function _GetStateOfTaskId
(command library task system). The reported state is always clearly and
consistently.
This is a significant advantage over an application-locking by using boolean
variables.
The variable sTaskSel contains the task whose state is to be queried.
The return value is a DWORD (b32TaskState) that can be processed bitwise.
In Network 6 is a bitwise AND link of the return value with the value 16#0022.
This corresponds to the OR link of the two states TASK_STATE_STOPPED and
TASK_STATE_SUSPENDED.
SIMOTION Configuration
SIMOTION Programming
The result of the bit AND logical operation is evaluated in this network.
Task
If the return value is larger than 16#0000, the associated task must be restarted
(boGo = TRUE).
SIMOTION - Basic
Information
If the return value matches 16#0000, boGo becomes FALSE. This bypasses
restarting the task. Jump label is end (network 9).
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Task
To start the task the system function _restartTaskId (command library task
system) is used. This function can only be used to MotionTasks.
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
A jump label can be switched on or off. To do this you have to select the label and
switch it on or off via the toolbar or the menu.
SIMOTION Configuration
SIMOTION Programming
Task
SIMOTION - Basic
Information
Introductory
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
Aktueller Wert
zur Laufzeit
SIMOTION Programming
Create Project
i32RetResetAxis := _resetAxis
(Axis := MasterAxis);
SINAMICS Configuration
i32RetResetAxis := _resetAxis
(Axis := Conveyorbelt);
SIMOTION Configuration
i32RetResetAxis := _resetAxis
(Axis := Ejector);
SIMOTION Programming
Homing:
Introductory
Information
Task
Enable Conveyorbelt
SIMOTION - Basic
Information
Enable Ejector
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Introductory
Information
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Introductory
Information
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Task
Enable MasterAxis
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Introductory
Information
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
SIMOTION Configuration
SIMOTION Programming
Create Project
Select variables
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Start D435
Start trace
iboStartBelt from 0 to 1
Introductory
Information
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Segment 3
Segment 1
Segment 2
Introductory
Information
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Introductory
Information
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Introductory
Information
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
System variables
Technology objects
Task
SIMOTION device
SIMOTION - Basic
Information
Program Conception
Create Project
D435
I/O-variables
SINAMICS Configuration
SIMOTION Configuration
Unit variables
SIMOTION Programming
Ethernet
Data exchange
Example needs a
display resolution of
1280x1024
Siemens AG 2011. All Rights Reserved.
Industry Sector
Introductory
Information
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Introductory
Information
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Introductory
Information
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
IP address: 169.254.11.1
Subnet mask: 255.255.0.0
Save and compile
Close HW Config
Siemens AG 2011. All Rights Reserved.
Industry Sector
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming
Introductory
Information
Task
SIMOTION - Basic
Information
Program Conception
Create Project
SINAMICS Configuration
SIMOTION Configuration
SIMOTION Programming