You are on page 1of 310

be

n.
ve
eu
ul
t.k
en
ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

st

be
@

n.
en

ve
eu
so
.la

ul
.k
lo

nt
ge

e
an

ud
st
@

DI-VIRTCOM
en

6,75$,1
so

7UDLQLQJIRU,QGXVWU\
.la
lo
ge

Totally Integrated Automation in the Digital Enterprise


– Virtual Commissioning for Machines
an

VLHPHQVFRPVLWUDLQ
1 Virtual commissioning – Introduction

be
n.
ve
2 Virtual Controller PLCSIM Advanced

eu
SITRAIN

ul
Training for Industry
3 Introduction to NX

t.k
en
Totally Integrated
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

Automation in the ud 4 Introduction to NX MCD

be
Digital Enterprise –
st
Virtual Commissioning

n.
@

for Machines

ve
en

5 Mechanical Concept

Course DI-VIRTCOM eu
so

ul
.la

t.k

Signal coupling between PLCSIM Adv.


6
lo

and NX MCD
en
ge

ud
an

Name:
st

Virtual Commissioning with NX MCD and


7
Course from: to: PLCSIM Advanced
@

Trainer:
en

Training site:

8 Introduction to SIMIT
so

This document was produced for training purposes.


SIEMENS assumes no responsibility for its contents. The
.la

reproduction, transmission, communication or use exploitation


of this document or its contents is not permitted without
express written consent authority. Offenders will be liable to
lo

damages. Non-compliances with this prohibition make the


offender inter alia liable for damages.
9
ge

Copyright © Siemens AG 2018. All rights, including


particularly the rights created by to file a by patent and/or
other industrial property right application and/or cause the
an

patent and/or other industrial property right to be granted


grant or registration of a utility model or design, are reserved.

SITRAIN courses on the internet: www.siemens.com/sitrain 10


Course folder Version: V15.00.00
be
n.
ve
eu
ul
.k
Virtual commissioning –

nt
Introduction
de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
SITRAIN © Siemens AG 2018 Course: DI-VIRTCOM
st

n.
@

ve
Contents Page
en

eu
Overview / Definition of Digital Twins ................................................................................................ 3
Fundamental approach of digitalization ............................................................................................ 4
so

Basis of the Digital Twins ................................................................................................................. 6


ul
Process chain from product design to start of production Interdependent processes instead of
.la

t.k

separate domains ................................................................................................................. 7


Tool chain in the Digitalization Experience Lab ................................................................................ 8
lo

en

Digital Twin of production ................................................................................................................. 9


Digital twins of machines lead to faster commissioning, reduced costs and risks ............................. 11
ge

The Digital Twin of a machine is a combination ............................................................................... 12


ud

The digital twin of a machine is a combination .................................................................................. 14


an

Creating the digital twin – Step 1 – .................................................................................................. 15


st

Creating the digital twin – Step 2 – .................................................................................................. 16


Creating the digital twin – Step 3 – .................................................................................................. 17
@

Benefits of Virtual Commissioning .................................................................................................... 18


The virtual environment depends on the inspection question ............................................................ 20
en

The Siemens Portfolio offers virtual commissioning solution scenarios for all analysis levels ............ 21
The Siemens Portfolio offers virtual commissioning solution scenarios for all analysis level .............. 23
Logic test with hardware setup ......................................................................................................... 24
so

Logic test with integrated simulation capabilities ............................................................................... 25


No simulation-specific changes ....................................................................................................... 26
.la

PLCSIM Advanced as basis for software-in-the-loop ........................................................................ 27


The Siemens Portfolio offers virtual commissioning solution scenarios for all analysis level .............. 28
lo

Interaction of mechanics and automation .......................................................................................... 29


ge

NX Mechatronics Concept Designer ................................................................................................ 30


PLCSIM Advanced addresses software-in-the-loop approaches ....................................................... 31
an

The appropriate co-simulation is determined ................................................................................... 32


Mapping of the machine functionality in the ..................................................................................... 33

SITRAIN DI-VIRTCOM
Training for Industry Page 1
Contents Page
Examples of realization .................................................................................................................... 34
Portfolio for VC for production cell .................................................................................................... 38

be
Simulation: as much as necessary and as little as possible! .............................................................. 39
Virtual commissioning reduces the risks for real commissioning ....................................................... 40

n.
Your benefit – .......................................................................................................................... 41

ve
eu
ul
.k
nt
de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

u
st

be
@

n.
ve
en

eu
so

ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 2
Overview / Definition of Digital Twins
Visualization of the product, plant and operations

be
Digital Twin Digital Twin Digital Twin

n.
Product Production Performance

ve
eu
Virtual Virtual Real Real
product production production product
Automation

ul
t.k
en
Collaboration platform
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 3 Virtual commissioning – Introduction

ve
@

Digital image – to begin with, the Siemens definition of a Digital Twin

eu
en

Version 1
ul
so

t.k
la

en
o.

ud
g el

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 3
Fundamental approach of digitalization
Connecting the virtual with the physical world

be
Digital Twin Digital Twin Digital Twin
Product Production Performance

n.
Insights from performance with MindSphere

ve
Verification Validation

eu
Virtual Virtual Real Ideal Real
product production production delivery product
Automation
Specification Commissioning

ul
t.k
Continuous improvement

en
Collaboration platform
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud
The digital visualization supports the verification of requirements and closed control loops across
domain boundaries.

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
st
Page 4 Virtual commissioning – Introduction

ve
@

eu
Overview slide
en

Domains: Product development, production planning/system development,


production execution and product (result)
ul
.k
so

Version 1
nt
.la

de
lo

u
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 4
Fundamental approach of digitalization
Vision: Ideal delivery of the product (quality/costs/date)

be
Digital Twin Digital Twin Digital Twin

n.
Product Production Performance

ve
Insights from performance with MindSphere

eu
Verification Validation Testing
Virtual Virtual Real Ideal Real
production

ul
product production Automation
delivery product
Specification Commissioning Production

t.k
Continuous improvement

en
Collaboration platform
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
The goal is to obtain the optimal operating point for production and logistic processes, the vision
expresses pursuit of the ideal process and the ideal result.
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM

n.
Page 5 Virtual commissioning – Introduction
@

ve
en

eu
so

ul
t.k
.la

en
lo
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 5
Basis of the Digital Twins

be
Overall digital platform provides central data storage and a
foundation for collaboration

n.
ve
eu
ul
t.k
en
ud
Collaboration platform
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

Data storage, data distribution, workflows and management of versions within one single system
st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
@

Page 6 Virtual commissioning – Introduction

n.
en

ve
Examples: Product design, requirement management, production planning, production
process, machine construction/system development, resource management,
so

eu
material and components, work plan and list of parts, production equipment,
document management
.la

ul
Central data management including metadata on an object basis with integrated
workflows for using data – jointly and in parallel – over the complete product
.k
lo

lifecycle
nt
ge

e
an

ud
st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 6
Process chain from product design to start of production

be
Interdependent processes instead of separate domains

n.
Digital Twin Digital Twin Digital Twin
Product Production Performance

ve
eu
Real

ul
Virtual Virtual Ideal Real
product production production delivery product
Automation

t.k
Design:

en
Requirement Mechatronic Mechanical Virtual Physical
management concept Electrical commissioning commissioning
Automation

ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

Standardization

Use of lean management methods and consistent digitalization improve productivity


st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 7 Virtual commissioning – Introduction
@

n.
ve
en

eu
so

ul
.la

.k
lo

nt
ge

e
ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 7
Tool chain in the Digitalization Experience Lab
based on the Siemens software portfolio

be
Digital Twin Digital Twin Digital Twin

n.
Product Production Performance

ve
eu
Virtual Virtual Real Real
product production production product

ul
Automation

t.k
NX, NX MCD, NX LD, Process Simulate
ECAD TIA Portal, Automation Designer, PLC Sim Adv.

en
Plant Simulation
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

Teamcenter
ud

be
NX Mechatronics NX Line Designer
not Siemens
Concept Designer software
st

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 8 Virtual commissioning – Introduction

ve
@

eu
en

ul
so

t.k
.la

en
lo

ud
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 8
Digital Twin of production
Excursion: NX based construction for machinery and plant engineering

be
Digital Twin
Product

n.
ve
eu
Virtual
product

ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
Integrated software suite for product development for 3D design of components, machines and
ud
production lines

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
st
Page 9 Virtual commissioning – Introduction

ve
@

Here: Inventor part (CAD data) – prepared in the brownfield of the machinery supplier. The machine code

eu
(machine program) is automatically generated as DigiTwin CAM (post) processor. For a new product
launch, the machine program code can be written in advance (independently).
en

ul
The data created also serves as a basis for production engineering: Automated
t.k
Engineering allows us to generate the PLC code automatically which can then be used for
so

virtual commissioning. This saves a lot of time and money. Even the behavior of real
controllers can be simulated this way.
en
.la

This is what we call the Digital Twin of the production.


ud
lo
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 9
Digital Twin of production
Simulation of the plant based on NX models –
From concept to the final model

be
Digital Twin Digital Twin

n.
Product Production

ve
eu
Virtual Virtual
product production

ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

Draft/ concept study → final model

be
ud
Simulation of components, machines and facilities (production lines) using NX Mechatronics Concept Designer
→ Approach is already realized at the DEL from concept phase spanning over all steps of development

n.
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 10 Virtual commissioning – Introduction

ve
@

eu
en

ul
so

t.k
.la

en
lo

ud
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 10
Digital twins of machines lead to faster commissioning,
reduced costs and risks

be
n.
How can we speed up the
commissioning of machines?

ve
What levers can be used to lower the risks
and costs during the commissioning?

eu
How can unplanned machine

ul
behavior be avoided?

t.k
How can mechanical or software failures
be identified at an early stage? The digital twin of a machine

en
• Can be used for virtual testing, machine
optimization and operator training
The most efficient way to speed up commissioning • Allows to identify errors at an early stage
in the product life cycle
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud
of production plants, while simultaneously improving • Saves time and costs when it comes
production quality, is to use a simulation of the machine. to the actual commissioning
We call this the Digital Twin of the machine

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 11 Virtual commissioning – Introduction
@

n.
ve
en

eu
so

ul
.la

.k
lo

nt
ge

e
ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 11
The Digital Twin of a machine is a combination
of different simulation models

be
n.
Digital Twin Physical and Electrical model Automation

ve
kinematic and behavioral model
= model model of the

eu
machine

Active components PLC program logic and


Mechanical components

ul
(e.g. drives, valves) visualization
and peripheral

t.k
behavior/response

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM

n.
Page 12 Virtual commissioning – Introduction
@

ve
eu
en

ul
so

t.k
.la

en
lo

ud
ge

st
an

@
en
so
la
l o.
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 12
The Digital Twin of a machine is a combination
of different simulation models

be
Digital Twin Physical and Electrical model Automation
kinematic and behavioral model

n.
model model of the machine
Mechanical components Components and peripheral PLC program logic and

ve
behavior/response visualization

NX Mechatronics Concept SIMIT V10 PLCSIM Advanced V2.0


Designer (NX MCD)

eu
The SIMIT simulation program allows Simulation software to emulate S7
Simulation software for mechatronic automation applications to be subject 1500 controllers
machine concepts as basis for virtual to comprehensive tests. • Open interface using I/O scan
validation • Sensors and actuators to SIMIT V10 or NX MCD V12
• Process attributes and properties • Startup, shutdown

ul
• Movement
• Material flow • Temperature and pressure and fault/error handling
• Collision check • Hydraulics and pneumatics • Communication simulation

t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

The integrated software landscape makes it possible to simulate and

be
validate machines – from simple to complex requirements
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
st
Page 13 Virtual commissioning – Introduction

ve
@

eu
en

ul
t.k
so

en
.la

ud
lo
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 13
The digital twin of a machine is a combination
of different simulation models

be
n.
Digital Twin Physical and Electrical and Automation
kinematic model behavioral model model

ve
Mechanical components Component and Logic of the PLC program
peripheral behavior and visualization

eu
NX Mechatronics Concept
SIMATIC Machine Simulator V1.0
Designer (NX MCD)
Software bundle for virtual commissioning

ul
Simulation software for mechatronic
machine concepts acting as the basis including the simulation tools
for the virtual validation

t.k
SIMIT V10 PLCSIM Advanced V2.0

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud
The integrated software landscape makes it possible to simulate and validate machines –
ranging from simple to complex requirements

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 14 Virtual commissioning – Introduction

n.
@

ve
en

eu
so

ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 14
Creating the digital twin – Step 1 –
Physical and kinematic model with NX MCD

be
Digital Twin Physical and Electrical and Automation
kinematic model behavioral model model

n.
ve
NX Mechatronics Concept
SIMIT V10 PLCSIM Advanced V2.0
Designer (NX MCD)

eu
NX MCD – Creation of the machine concept

ul
• Creation of mechanical model

t.k
of machine by using CAD-Data
• Physical and kinematic enrichment
of machine components like motion,

en
gravity or collisions
• Different design alternatives can be
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

simulated and validated in an easy way

be
ud

n.
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 15 Virtual commissioning – Introduction

ve
@

eu
en

ul
so

t.k
la

en
o.

ud
g el

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 15
Creating the digital twin – Step 2 –
Electrical and behavioral model with SIMIT

be
Digital Twin Physical and Electrical and Automation

n.
kinematic model behavioral model model

ve
NX Mechatronics Concept
SIMIT V10 PLCSIM Advanced V2.0
Designer (NX MCD)

eu
ul
SIMIT – simulation for engineering and operation

t.k
• Distributed I/O (peripherals) is emulated within behavior SIMIT Simulation
modeling, i.e. sensors and actuators, process features, Platform
temperature and pressure, hydraulics
• Enabling co-simulations

en
• Alternatively, testing with real hardware and connection
SIMIT Real Virtual
of 3rd party applications with SIMIT Unit possible
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

Unit controller controller

ud Hardware-in-the-loop Software-in-the-loop

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM

n.
Page 16 Virtual commissioning – Introduction
@

ve
eu
en

ul
so

t.k
.la

en
lo

ud
ge

st
an

@
en
so
la
l o.
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 16
Creating the digital twin – Step 3 –
Automation model with PLCSIM Advanced

be
Digital Twin Physical and Electrical and Automation
kinematic model behavioral model model

n.
NX Mechatronics Concept

ve
SIMIT V10 PLCSIM Advanced V2.0
Designer (NX MCD)

eu
PLCSIM Advanced – Emulation of S7-1500 controllers

ul
• Extensive function simulation including communication,
know-how protected blocks, safety and web server

t.k
• Public interfaces for exchange of data with customized
co-simulation or test software Data

API
• Support of multiple and distributed instances for
simulation of multiple controllers on a PC/in the network

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
• Virtual Time Management and synchronization S7 communication,
OPC UA, Softbus

ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM

ve
Page 17 Virtual commissioning – Introduction
st

eu
@

ul
en

t.k
so

en
.la

ud
lo

st
ge

@
an

en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 17
Benefits of Virtual Commissioning

be
Time to Market

n.
1 2 3 4 5

ve
Production Machine Machine Machine Machine
Planning Engineering Commissioning Operation Service

eu
ul
Planning Machine Engineering (office) Manufacturing area Operation

t.k
Mechanic Electric Automation Real Com-
Design Design missioning

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

Targets ud

be
• Shorten the Time to Market and Improving the Quality
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM

n.
Page 18 Virtual commissioning – Introduction
@

ve
en

eu
so

ul
.k
.la

nt
lo

de
ge

u
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 18
Benefits of Virtual Commissioning

be
1 Production
Planning 2 Machine
Engineering 3 Machine
Commissioning 4 Machine
Operation 5 Machine
Service

n.
ve
Virtual Commissioning
Process

eu
Automation
Manufacturing area

ul
Planning Real Com- Operation
Virtual Com-
missioning

t.k
Electric Design missioning

en
Mechanic Design
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud • Shorten the Time → Parallel working,

be
• Improving the Quality → sharing data during whole process
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM

n.
Page 19 Virtual commissioning – Introduction
@

ve
en

eu
so

ul
t.k
.la

en
lo
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 19
The virtual environment depends on the inspection question

be
n.
Interaction of mechanics
Logic of control and automation

ve
components PLC and HMI

eu
Interaction of multiple

ul
components in cell,
plant or line

t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud
Virtual commissioning = Import, test and modify engineering data in a virtual environment

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM

n.
Page 20 Virtual commissioning – Introduction
@

ve
eu
en

ul
so

t.k
.la

en
lo

ud
ge

st
an

@
en
so
la
l o.
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 20
The Siemens Portfolio offers virtual commissioning solution
scenarios for all analysis levels

be
n.
Validation of the interaction
Complexity & planning certainty

of different components
Validation of automation
within a line, plant or cell
Digitalization Readiness

ve
logic and component
behavior of a machine
Linebuilder, end customer, SI
Validation of the controller
OEM

eu
logic and visualization

approx. 95% of all TIA Portal


programmer

ul
t.k
en
Workflow Level
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
VC for controller and HMI VC for machines VC for production cell,
ud line or plant

n.
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 21 Virtual commissioning – Introduction

ve
@

eu
en

ul
so

t.k
la

en
o.

ud
g el

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 21
The Siemens Portfolio offers virtual commissioning solution
scenarios for all analysis levels

be
Validation of the interaction

n.
Complexity & planning certainty

of different components
Validation of automation
within a line, plant or cell
Digitalization Readiness

logic and component

ve
behavior of a machine
• PLCSIM Advanced
Validation of the controller • TECNOMATIX Process
• PLCSIM Advanced
logic and visualization Simulate

eu
+ NX MCD
(→ BASIC VC)
• PLCSIM
• PLCSIM Advanced
• PLCSIM Advanced

ul
• TIA Portal HMI Simulation
+ NX MCD + SIMIT
(→ ADVANCED VC)

t.k
en
Workflow Level
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
VC for controller and HMI VC for machines VC for production cell,
ud line or plant

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
st
Page 22 Virtual commissioning – Introduction

ve
@

eu
en

ul
t.k
so

en
.la

ud
lo
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 22
The Siemens Portfolio offers virtual commissioning solution
scenarios for all analysis level

be
n.
Validation of the interaction

ve
Complexity & planning certainty

of different components
Validation of automation
within a line, plant or cell
Digitalization Readiness

logic and component


behavior of a machine
Linebuilder, end customer, SI

eu
Validation of the controller
OEM
logic and visualization

ul
approx. 95% of all TIA Portal
programmer

.k
nt
de
Workflow Level
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

VC for controller and HMI VC for machines VC for production cell,


u line or plant

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 23 Virtual commissioning – Introduction

n.
@

ve
en

eu
so

ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 23
Logic test with hardware setup

be
Previously

n.
Verification of logic using
a demo setup:

ve
− Inflexible

eu
− Only manual test possible
− Limited scale
due to hardware overhead

ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 24 Virtual commissioning – Introduction
st

ve
@

eu
ul
en

t.k
so

en
.la

ud
lo

st
ge

@
an

en
so
la
l o.
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 24
Logic test with integrated simulation capabilities
of the TIA Portal

be
HMI simulation PLCSIM to test the controller

n.
as integral part of the HMI simulation PLCSIM logic in the TIA Portal
in the TIA Portal in the TIA Portal
TIA Portal

ve
✓ Free option
✓ No adaptation work

eu
✓ Ideal for manual testing of clear
control logic

ul
t.k
BUT, no consideration of:
− the communication
− technology

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 25 Virtual commissioning – Introduction

n.
@

ve
en

eu
so

ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 25
No simulation-specific changes

be
to the STEP 7 program needed

n.
SIMATIC
Real S7-PLCSIM Advanced

ve
controller

eu
ul
t.k
It supports SIMATIC
No simulation-specific changes to S7-1500 Controller:
✓ Standard

en
the STEP 7 program needed
✓ Failsafe
✓ Technology
✓ ET200SP CPU

ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 26 Virtual commissioning – Introduction
@

n.
ve
en

eu
so

ul
la

t.k
o.

en
g el

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 26
PLCSIM Advanced as basis for software-in-the-loop

be
Real world Virtual world

n.
S7-1500 hardware controller PLCSIM Advanced
Virtual S7-1500 controller PLCSIM

ve
Controller

Advanced
as basis for
"Software-

eu
in-the-Loop"

ul
API Previous approach without
PLCSIM Advanced: HiL

t.k
(Hardware-in-the-Loop) with
Process

Co-simulation ▪ Co-Simulation

en
▪ SIMIT Unit
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

▪ real S7-1500 controller

be
ud

n.
DI-VIRTCOM
st
SITRAIN © Siemens AG 2018
Page 27 Virtual commissioning – Introduction

ve
@

eu
en

ul
so

t.k
.la

en
lo

ud
ge

st
an

@
en
so
la
l o.
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 27
The Siemens Portfolio offers virtual commissioning solution

be
scenarios for all analysis level

n.
ve
Validation of the interaction
Complexity & planning certainty

of different components
Validation of automation
within a line, plant or cell
Digitalization Readiness

logic and component

eu
behavior of a machine
Linebuilder, end customer, SI
Validation of the controller
• PLCSIM Advanced OEM
logic and visualization
+ NX MCD

ul
(→ BASIC VC)
approx. 95% of all TIA Portal
programmer

.k
• PLCSIM Advanced
+ NX MCD + SIMIT
(→ ADVANCED VC)

nt
de
Workflow Level
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

VC for controller and HMI


u VC for machines VC for production cell,
st
line or plant

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
@

Page 28 Virtual commissioning – Introduction

n.
en

ve
eu
so
.la

ul
t.k
lo
ge

en
an

ud
st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 28
Interaction of mechanics and automation

be
n.
• How many inputs and outputs

ve
does my controller require?
• Is the timing in my machine

eu
correct?
• Does the machine react
correctly in case of error?

ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Virtual commissioning – Introduction

ve
Page 29
st

eu
@

ul
en

t.k
so

en
.la

ud
lo

st
ge

@
an

en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 29
NX Mechatronics Concept Designer

be
is a tool for designing and evaluating machine concepts

n.
NX Mechatronics Concept Designer Profile

ve
• Market launch 2010
Target customers • Current version V12

eu
• Mainly Machine tool/production machine MCD
manufacturers

ul
• Certain special-purpose machine manufacturers

.k
Application scenarios

nt
• Machine design including assessment of machine concepts
• Machinery engineering and simulation (mechanical systems)

de
• Change design and implementation with traceability
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

u
st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
@

Page 30 Virtual commissioning – Introduction

n.
en

ve
so

eu
.la

ul
t.k
lo
ge

en
an

ud
st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 30
PLCSIM Advanced addresses software-in-the-loop
approaches

be
Hardware-in-the-loop Software-in-the-loop
SiL is the(virtual
Co-simulation more flexible
machine model) approach

n.
ve
Co-simulations form
✓ Test without hardware investment properties
and responses of machines
✓ A variety of models can be connected

eu
and plants
via PLCSIM Advanced API
✓ Simulation resources can be distributed

ul
VS.
to several computers and people
Automation

t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud Virtual controller

be
Real controller & simulation unit Real HMI device SIMATIC S7-PLCSIM Advanced Simulated HMI in TIA Portal
st
DI-VIRTCOM

n.
SITRAIN © Siemens AG 2018
Page 31 Virtual commissioning – Introduction

ve
@

eu
en

ul
so

t.k
la

en
o.
el

ud
g

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 31
The appropriate co-simulation is determined
by the application

be
n.
Universal Machines Robot cells (above Material flow Process simulation
all Automotive) simulations

ve
NX Mechatronics TECNOMATIX TECNOMATIX

eu
PLCSIM Advanced Concept Designer Process Simulate Plant Simulation SIMIT

Siemens portfolio

ul
A
P
I
Third partyoffers
Siemens

t.k
PLCSIM Advanced
Universal V.A. Automotive Technology-oriented
• An integrated software landscape applications

en
• Implemented
C/C++
interfaces to PLCSIM Advanced
...and many more
• Presales & Consulting Support
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

C/C++ application WinMOD


ud Matlab Simulink

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 32 Virtual commissioning – Introduction

n.
@

ve
en

eu
so

ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 32
Mapping of the machine functionality in the
NX Mechatronics Concept Designer

be
n.
Mechatronic model Automation with TIA Portal

ve
Software-
in-the-loop

eu
ul
NX Mechatronics PLCSIM

t.k
Concept Designer Advanced
= virtual machine model = controller to be tested

en
• PLCSIM Advanced
(API)
• OPC UA & DA
• Simulation of the machine • Simulation PLC, HMI and I/O
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

• TCP & UDP


• Improvement of the mechanical
design
ud
• Shared Memory • Engineering of the automation tasks

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 33 Virtual commissioning – Introduction
@

n.
ve
en

eu
so

ul
.la

.k
lo

nt
ge

e
ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 33
Examples of realization

be
Virtual commissioning at a glance

n.
Real World Virtual World

ve
Hardware Virtual Controller
Installation and operation of the
Hardware- Software- 1 assets in a virtual environment

eu
in-the-loop in-the-loop Process Simulation

Test of the real control with the

ul
2 virtual machine
Program Validation
Devices SIMIT Behavior Simulation

t.k
Test of the real machine with
Real Behavior 3 virtual control
Operation Validation

en
Operation Simulation

Connection of the real control


4 with the real machine

ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

Live Operation

The connection of digital and physical world works in all possible combinations
st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 34 Virtual commissioning – Introduction
@

n.
ve
en

eu
so

ul
.la

.k
lo

nt
ge

e
ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 34
Examples of realization

be
Virtual commissioning at a glance

n.
Real World Virtual World

ve
Hardware Virtual Controller
Installation and operation of the
Hardware- Software- 1 assets in a virtual environment

eu
in-the-loop in-the-loop Process Simulation

Test of the real control with the


2

ul
virtual machine
Program Validation
Devices SIMIT Behavior Simulation

t.k
Test of the real machine with
Real Behavior 3 virtual control
Operation Validation

en
Operation Simulation

Connection of the real control


4 with the real machine

ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

Live Operation

The connection of digital and physical world works in all possible combinations
st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 35 Virtual commissioning – Introduction
@

n.
ve
en

eu
so

ul
la

t.k
o.

en
g el

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 35
Examples of realization
Virtual commissioning at a glance

be
Real World Virtual World

n.
Hardware Virtual Controller

ve
Installation and operation of the
Hardware- Software- 1 assets in a virtual environment
in-the-loop in-the-loop Process Simulation

eu
Test of the real control with the
2 virtual machine
Program Validation

ul
Devices SIMIT Behavior Simulation
Test of the real machine with

t.k
Real Behavior 3 virtual control
Operation Simulation Operation Validation

en
Connection of the real control
4 with the real machine
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

Live Operation

ud

be
The connection of digital and physical world works in all possible combinations
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM

n.
Page 36 Virtual commissioning – Introduction
@

ve
eu
en

ul
so

t.k
.la

en
lo

ud
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 36
Examples of realization
Virtual commissioning at a glance

be
Real World Virtual World

n.
Hardware Virtual Controller

ve
Installation and operation of the
Hardware- Software- 1 assets in a virtual environment
in-the-loop in-the-loop Process Simulation

eu
Test of the real control with the
2 virtual machine

ul
Program Validation
Devices SIMIT Behavior Simulation

t.k
Test of the real machine with
Real Behavior 3 virtual control
Operation Simulation Operation Validation

en
Connection of the real control
4 with the real machine
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

Live Operation

ud

be
The connection of digital and physical world works in all possible combinations
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM

n.
Page 37 Virtual commissioning – Introduction
@

ve
en

eu
so

ul
t.k
.la

en
lo
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 37
Portfolio for VC for production cell

be
Virtual machine model

Electrical and
Automation model
Physical & kinematic model behavior model

n.
→ Logic of PLC program and
→ Mechanical components → Component (e.g. drives) and
visualization
periphery behavior

ve
BASIC VC

eu
for SIMATIC NX Mechatronic Concept Designer* PLCSIM Advanced* PLCSIM Advanced

S7-1500
applications * Not always required

ul
t.k
ADVANCED VC PLCSIM Advanced
for high-end NX Mechatronic Concept Designer SIMIT

en
OEMs Controller hardware
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
st
Page 38 Virtual commissioning – Introduction

ve
@

eu
en

ul
t.k
so

en
la
o.

ud
l
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 38
Simulation: as much as necessary and as little as possible!

be
50% 80% 100% 50% 80% 100%

PLC code quality


Time expenditures

n.
ve
eu
Very
Very high
high quality
quality PLC
PLC code
code
can
can be
be ensured
ensured with
with 80%
80%
degree
degree ofof detail
detail in
in the
the virtual

ul
virtual
model
model ofof the
the machine.
machine.

t.k
Degree of detail of the virtual model Degree of detail of the virtual model

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
Pareto effect, 80-to-20 rule, states that 80% of the results are achieved with 20% of the invested input.
The remaining 20% of the results require 80% of the work. ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
st
Page 39 Virtual commissioning – Introduction

ve
@

eu
en

ul
t.k
so

en
.la

ud
lo
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 39
Virtual commissioning reduces the risks for real commissioning

be
n.
Without virtual commissioning With virtual commissioning
Increased unexpected problems: Problem scenarios are known

ve
• Time required Best case: Error cause already eliminated

eu
• Personnel requirements Development strategies already developed

ul
• Material requirements Personnel is trained accordingly

.k
Spare material is already available
And that with inter-

nt
national projects ...

de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

=> Incalculable costs => Calculable costs


u
st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 40 Virtual commissioning – Introduction
@

n.
ve
en

eu
so

ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 40
Your benefit –
Quality and speed up, cost and risk down

be
• Optimizing the controller project and machine functionality
Quality
in a virtual environment

n.
ve
• Less time for commissioning at end-customer plant
Speed
• Parallelization of mechanical and automation engineering

eu
• The sooner you optimize, the more you can save
Cost
• Reduced commissioning costs

ul
t.k
• Reduced risk for real commissioning
Risk
• Fewer operation faults in real plant

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

• "Laboratory" for creating alternative control concepts


Flexibility

be
ud
• Evaluation of machine modifications during operation

n.
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 41 Virtual commissioning – Introduction

ve
@

eu
en

ul
so

t.k
la

en
o.

ud
g el

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 41
be
n.
ve
eu
ul
t.k
Virtual Controller

en
PLCSIM Advanced
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
SITRAIN © Siemens AG 2018 Course: DI-VIRTCOM
st

n.
@

ve
Contents Page

eu
en

Learning objectives ................................................................................................................................. 2


PLCSIM Advanced is a virtual S7-1500 controller ............................................................................. 3
ul
so

Licensing concept ................................................................................................................................. 4


SIMATIC PLCSIM Advanced is the virtual controller of SIMATIC S7-1500 ........................................ 5
.k
Supported firmware ................................................................................................................................. 6
.la

nt

PLCSIM vs. PLCSIM Advanced – functional differences ................................................................... 7


With PLCSIM Advanced multiple and distributed instances can be created ...................................... 8
lo

de

Definition of the term virtual time and its use cases ........................................................................... 9
ge

Impact of the manipulation of the virtual time .................................................................................... 10


u

Different time-based synchronization modes in between Co-Simulation and PLCSIM Advanced ....... 11
st
an

Using PLCSIM Advanced within the TIA Portal ................................................................................. 12


PLCSIM Advanced ................................................................................................................................. 13
@

PLCSIM Advanced Control Panel ..................................................................................................... 16


PLCSIM Advanced ................................................................................................................................. 19
PLCSIM Advanced Control Panel ..................................................................................................... 21
en

Visual feedback of the status of the instances ................................................................................... 23


PLCSIM Advanced Control Panel ..................................................................................................... 24
so

PLCSIM Advanced ................................................................................................................................. 25


PLCSIM Advanced API .................................................................................................................... 26
.la

Exercise: Work with PLCSIM Advanced and a ready ....................................................................... 27


Addition Information ................................................................................................................................. 28
lo

Scenarios of VC for controller and HMI ............................................................................................ 29


ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 1
Learning objectives

be
Participants should ...

n.
… become familiar with the advantages of the virtual controller.

... become familiar with the difference between PLCSIM and PLCSIM Advanced.

ve
... become familiar with the API of the virtual controller.

... be able to set the block attribute simulation.

eu
... be able to load and start a PLCSIM Advanced instance.

ul
... be able to control the behavioral model of the machine with a co-simulation.

t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
DI-VIRTCOM
st
SITRAIN © Siemens AG 2018
Page 2 PLCSIM Advanced

ve
@

eu
en

ul
so

t.k
.la

en
lo

ud
ge

st
an

@
en
so
la
l o.
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 2
PLCSIM Advanced is a virtual S7-1500 controller
incl. C/F/T und ET200SP PLC incl. F

be
Virtual

n.
controller

ve
S7-1500
S7-1500C

eu
ul
S7-1500T(F)

t.k
ET 200SP(F)
Mapping of the real

en
CPU
S7-1500F controller
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM

n.
Page 3 PLCSIM Advanced
@

ve
en

eu
so

ul
.k
.la

nt
lo

de
ge

u
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 3
Licensing concept

be
Licensing concept overview PLCSIM Adv. V1.0

n.
PLCSIM Advanced can be upgrade to the newest version
with an upgrade key.

ve
Upgade

One license enables up to two PLCSIM Advanced New


instances on one PC.

eu
PLCSIM Adv. V2.0
Licensing possibilities:
Instance 1 Instance 2
▪ Floating License

ul
▪ Trial: free 21 day trial as download:
https://support.industry.siemens.com/cs/ww/en/view/10

t.k
9754093

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM

n.
Page 4 PLCSIM Advanced
@

ve
eu
en

ul
so

t.k
.la

en
lo

ud
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 4
SIMATIC PLCSIM Advanced is the virtual controller of
SIMATIC S7-1500

be
Benefit: Comprehensive simulation of controller functionality

n.
ve
A virtual controller
… for extensive function simulation including communication,
know-how protected blocks, Safety and web server

eu
Data

ul
Includes a documented public interface

API
… for exchange of data (I/Os, bit memory, DBs, timers) with

t.k
customized co-simulation or test software
S7 communication,
OPC UA, Softbus

en
Support of multiple and distributed instances
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

… for simulation of multiple controllers


on a PC/in the network
ud

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM

n.
Page 5 PLCSIM Advanced
@

ve
en

eu
so

ul
.k
.la

nt
lo

de
ge

u
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 5
Supported firmware

be

n.
FW 2.5

ve
… FW 2.1

eu
FW 2.0 FW 2.0

FW 1.8 PLCSIM Adv. V1.0 FW 1.8 PLCSIM Adv. V2.0

ul
t.k
Strategy

en
PLCSIM Adv. V2.0 supports the firmware 2.5 which was released with TIA Portal V15 and all earlier firmware releases
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

up to firmware 1.8.

ud
Higher firmware versions will be supported with future PLCSIM Advanced versions adequately.

be
st

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 6 PLCSIM Advanced

ve
@

eu
en

ul
so

t.k
.la

en
lo

ud
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 6
PLCSIM vs. PLCSIM Advanced – functional differences

be
n.
S7-1200 (F)/
PLCSIM / S7-1500 (F/T) / PLCSIM Advanced

ve
API
up to 2 Multiple instances up to 16

eu
Distributed instances
OPC UA

ul
Web server
Process diagnostics

.k
( ) Traces
Virtual S7-1500 controller

nt
Integrated controller simulation ( ) Motion
in STEP 7 in TIA Portal via softbus S7 communication Applications:
• Functional test of the STEP 7

de
via softbus Open User communication program – also in the context of a
Use case:
( ) know how protected blocks plant/machine
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

• Functional test and validation of the


• Operator training
STEP 7 program Virtual time

u
Connection of real PLCs/HMIs
• Virtual commissioning / Factory
Acceptance Test (FAT)
st
DNS use

be
SITRAIN © Siemens AG 2018 Virtual memory card DI-VIRTCOM
@

Page 7 PLCSIM Advanced

n.
ve
en

Traces: For PLCSIM Basic they can be monitored in the TIA Portal; for PLCSIM Advanced they can
also be monitored in the Web server.

eu
so

Motion: For PCLSIM Baisc the axes are always in simulation mode. For PLCSIM Advanced, you
can also operate the axes in "Real" mode.
ul
.la

Know-How-Protected-Blocks: With PLCSIM Basic currently only 1500 PLCs are supported
t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 7
With PLCSIM Advanced multiple and distributed instances

be
can be created
▪ Support of multiple instances; any desired

n.
number of virtual controllers can be
connected to each other; PC1 S7-1500 S7-1500

ve
recommendation: Instance 1 Instance 2
WinCC Panel
▪ one free core (PLC cernel) per instance PC
▪ 4 GB RAM for one instance Uhr

eu
▪ 4 instances on a PC with 8 GB RAM
(16 instances can technically be started
on one PC)

ul
▪ Support of distributed instances
▪ for load distribution PC2 Co-Simulation S7-1500

.k
STEP 7
Instance 3
▪ communication via TCP/IP
▪ Connection of real devices (HMIs /

nt
PC
Uhr
controllers) is possible
▪ connection of real I/Os is not possible

de
Virtual time
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

u
slow fast
st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 8 PLCSIM Advanced
@

n.
ve
en

eu
so

ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 8
Definition of the term virtual time and its use cases

be
n.
▪ Gradual debugging of the STEP 7 program
▪ Synchronisation of PLCSIM Advanced with Co-

ve
Simulation Tools
At different synchronization points the virtual cyclic cyclic
controller can be paused to read / manipulate data OB OB

eu
OB 1 OB 1
of the process image (freeze-state)
▪ User program is not executed any longer
▪ Virtual time is stopped

ul
▪ No OBs are running, no timers PLCSIM Advanced API
▪ Virtual controller is in a state with consistent

t.k
input and output data
Co-Simulation

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM

n.
Page 9 PLCSIM Advanced
@

ve
en

eu
so

ul
t.k
.la

en
lo
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 9
Impact of the manipulation of the virtual time

be
End of 1.
OB1 cycle
▪ Manipulation of the virtual time
▪ Slow motion (scaling factor < 1): Slow Motion

n.
cyclic cyclic
e.g. scaling factor 0.5 = virtual time is slowed down by OB OB
50% OB 1 OB 1

ve
→ Cyclic OBs are called less frequently during a OB1
cycle
▪ Fast mode (scaling factor > 1):
PLCSIM Advanced API

eu
e.g. scaling factor 2 = virtual time runs twice as fast
→ Cyclic OBs are called more frequently during a
OB1 cycle

ul
Note: OB1 always runs at the same speed and only End of 1.
OB1 cycle
depends on the performance of the PC → if you change

t.k
the scaling factor, more or fewer cycle control points are Fast mode
cyclic cyclic cyclic
reached within a fixed time period
OB OB OB
OB 1 OB 1

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud PLCSIM Advanced API

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
st
Page 10 PLCSIM Advanced

ve
@

eu
en

ul
t.k
so

en
.la

ud
lo
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 10
Different time-based synchronization modes in between Co-
Simulation and PLCSIM Advanced

be
▪ Synchronization modes:

n.
▪ synchronization at each cycle control point
(beginning of OB1)

ve
cyclic cyclic
▪ synchronization at each cyclic OB OB 1
OB
OB 1
OB
▪ synchronization at each cycle control point

eu
and each cyclic OB
▪ Timespan mode: after a defined timespan x
the synchronization takes places at the next PLCSIM Advanced API

ul
cycle control point and / or cyclic OB

t.k
Co-Simulation

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
st
Page 11 PLCSIM Advanced

ve
@

eu
en

ul
t.k
so

en
.la

ud
lo
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 11
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

SITRAIN
an an
g

Training for Industry


ge el
lo o.
.la la
so so
en en
@ @
st st within the TIA Portal
ud ud

Page 12
en en
Using PLCSIM Advanced

t.k t.k
ul ul
eu eu
ve ve
n. n.
be be

DI-VIRTCOM
PLCSIM Advanced

be
How to simulate with PLCSIM Advanced within TIA Portal

n.
ve
To use a STEP 7 project with PLCSIM Advanced, the ability to simulate the blocks must first be enabled in
the project properties in the Protection tab.

eu
1 2

ul
t.k
en
3
Compiling the project activates the ability to simulate the blocks

ud
→ If the project already includes know-how protected blocks, these must be
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

unlocked by entering a password and then these blocks need to be


compiled individually.
st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
@

Page 13 PLCSIM Advanced

n.
en

ve
so

eu
.la

ul
lo

.k
ge

e nt
an

ud
st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 13
PLCSIM Advanced
Checking the ability to simulate specific blocks

be
n.
The ability to simulate specific

ve
blocks can be checked by means of
the block properties under
"Compilation".

eu
(display field – no input field!)

ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 14 PLCSIM Advanced
@

n.
ve
en

eu
so

ul
.la

.k
lo

nt
ge

e
ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 14
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

SITRAIN
an an
g

Training for Industry


ge el
lo o.
.la la
so so

Control Panel
en en
@ @ PLCSIM Advanced
st st
ud ud

Page 15
en en
t.k t.k
ul ul
eu eu
ve ve
n. n.
be be

DI-VIRTCOM
PLCSIM Advanced Control Panel

be
for the PLCSIM Adv. Instance Management

n.
Tray icon in the taskbar

ve
▪ Right-click starts the Control
Panel of PLCSIM Advanced

eu
ul
.k
nt
Notes:
The Control Panel is optional and is not required for

de
operation of PLCSIM Advanced via the API.
The Control Panel is available in English in version V1.0.
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

u
st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 16 PLCSIM Advanced
@

n.
ve
en

Selection of communication interfaces


Can only be set globally (but not for each instance individually)

eu
so

ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 16
PLCSIM Advanced Control Panel
Setting of the communication interface

be
Selecting the communication interface

n.
• PLCSIM → Softbus
• PLCSIM Virtual Eth. Adapter →
TCP/IP

ve
eu
Softbus PLCSIM Virtual Ethernet Adapter
▪ The communication between different instances is ▪ Multiple instances can communicate with each other

ul
limited to a local PC. over distributed computers.
▪ STEP 7 needs to be installed on the same computer. ▪ STEP 7 can be installed on another computer.

t.k
▪ OPC UA and Web server communication are not ▪ OPC UA and Web server communication are supported.
supported. ▪ Real PLCs/ real HMIs can be connected.

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

▪ Real PLCs / real HMIs cannot be connected.

be
▪ Real Open User Communication
▪ Simulated Open User Communication
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 17 PLCSIM Advanced

ve
st

eu
@

OUC-Open User Communication: : TCP/IP frames are sent - customer-specific (e.g. email support)
ul
en

t.k
so

en
.la

ud
lo

st
ge

@
an

en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 17
PLCSIM Advanced Control Panel
Setting of the communication interface and the virtual time

be
n.
Selecting the network adapter for
distributed communication
<Local> disables the PLCSIM virtual switch

ve
and disconnects the instances from the
real network = local TCP/IP

eu
communication.

ul
Setting of the virtual time:

t.k
▪ 100 = 100x faster than PC clock
▪ 0.01 = 100x slower than PC clock

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
st
Page 18 PLCSIM Advanced

ve
@

eu
en

ul
t.k
so

en
.la

ud
lo
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 18
PLCSIM Advanced
Distributed operation – Virtual Switch

be
To use the PLCSIM Virtual Switch across multiple
computers, it must be enabled in a real network

n.
adapter via:
▪ Control panel

ve
▪ System control

eu
ul
Note:

t.k
You have to ensure that the
PLCSIM Virtual Switch is enabled

en
in only one network adapter (if a
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
computer has more than one
ud network adapter).

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
st
Page 19 PLCSIM Advanced

ve
@

eu
en

ul
t.k
so

en
.la

ud
lo
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 19
PLCSIM Advanced

be
Distributed operation – Download from TIA Portal
Download directly via Virtual Ethernet

n.
When PLCSIM Virtual Switch is enabled
for a real network adapter Adapter
(TIA Portal and PLCSIM Advanced are (TIA Portal and PLCSIM Advanced are

ve
located on different computers) located on the same computer)

eu
ul
t.k
en
ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 20 PLCSIM Advanced
@

n.
ve
en

eu
so

ul
.la

.k
lo

nt
ge

e
ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 20
PLCSIM Advanced Control Panel

be
Creating virtual controllers (PLCSIM Softbus)

n.
ve
eu
Creating the virtual controllers; definition of
• Instance name; when the name already

ul
exists in the directory of the Virtual SIMATIC
Memory Card, a drop down menu opens up

.k
to select the already known controller.
• PLC type (unspecified 1500/ET200SP PLC)

nt
de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

u
st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
@

Page 21 PLCSIM Advanced

n.
ve
en

eu
so

ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 21
PLCSIM Advanced Control Panel
Creating virtual controllers (PLCSIM Virtual Eth. Adapter)

be
n.
ve
Creating the virtual controllers; definition of

eu
• Instance name; when the name already
exists in the directory of the Virtual SIMATIC
Memory Card, a drop down menu opens up

ul
to select the already known controller.
• IP address; each virtual PLC needs a unique

t.k
IP address
• Subnet mask

en
• PLC type (unspecified 1500/ET200SP CPU)
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
st
Page 22 PLCSIM Advanced

ve
@

eu
en

ul
.k
so

nt
.la

de
lo

u
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 22
Visual feedback of the status of the instances

be
n.
ve
eu
• Up to16 instances can be started
• Selected instances can be activated and
deactivated

ul
• Selected instances can be started / stoped
• A Memory Reset can be performed for

.k
selected instances

nt
de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

u
st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 23 PLCSIM Advanced
@

n.
ve
en

eu
so

ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 23
PLCSIM Advanced Control Panel
General settings

be
• Activation and setting of the Runtime
Manager Port for distributed instances
• Is saved and therefore identical after a

n.
restart.

ve
• Storage location of the SIMATIC
Memory Card data of the virtual PLCs

eu
• The STEP 7 user program, the
hardware configuration and the
retentive data are saved on the virtual

ul
SIMATIC Memory Card.

t.k
• Setting of Balloon Messages

• Link to the manual

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
• Exit Control Panel
• All local instances are closed. ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 24 PLCSIM Advanced
st

ve
@

eu
ul
en

t.k
so

en
.la

ud
lo

st
ge

@
an

en
so
la
l o.
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 24
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

SITRAIN
an an

API

Training for Industry


ge ge
lo lo
.la .la
so so
en en
@ @ PLCSIM Advanced
st st
ud u

Page 25
en de
t.k nt
.k
ul ul
eu eu
ve ve
n. n.
be be

DI-VIRTCOM
PLCSIM Advanced API

be
n.
Real world Simulation system

ve
Simulation Runtime
S7-1500 PLCSIM Advanced
Hardware Controller Virtual S7-1500 Controller

eu
Simulation Runtime Runtime external
Manager API Application
Controller

ul
Runtime
Instance
API

t.k
Virtual
Process

Controller
Co-Simulation

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM

n.
Page 26 PLCSIM Advanced
@

ve
User interfaces (API)
en

eu
Through the user interfaces PLCSIM Advanced enables the interaction with external
applications, for example, own C++/C# programs or software for the simulation of
production machines and systems.
so

ul
You access the simulation Runtime via the Runtime API. The Simulation Runtime Manager
manages the runtime instances. The runtime instances load the libraries of the virtual
.k
.la

controller.
nt

Runtime API
lo

de

The Runtime API provides the interface to an external application. These include functions
with which you can, for example, create instances, change the mode of the virtual
ge

controller and exchange I/O data.


u
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 26
Exercise: Work with PLCSIM Advanced and a ready
Co-Simulation

be
sensorStartPos sensorBeltStart sensorBeltDest sensorEndPos

n.
Visualization on the

ve
Robot arm 1 Robot arm 2
PC / VM HMI
moveBeltActive releaseActive
PLCSIM Advanced

eu
Simulation Runtime Transport belt 1 Transport belt 2
C#-Programm setOnBeltActive setOffBeltActive

Simulation Runtime Runtime


Co- (Package down)
Manager API
Simulation

ul
restartActive acknowledgeActive

Runtime
Instance

.k
STEP 7 TIA Portal
Virtual Co-Simulation

nt
WinCC Runtime
Controller
external
application

de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

PLCSIM Softbus

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 27 PLCSIM Advanced

n.
@

ve
en

eu
so

ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 27
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

SITRAIN
Page 28
an an

Training for Industry


ge ge

SITRAIN © Siemens AG 2018


lo lo
.la .la
Addition Information

so so
en en
@ @
st st
ud ud

Page 28
en en
t.k t.k
ul ul
eu eu
ve ve
n. n.
be be
PLCSIM Advanced
DI-VIRTCOM

DI-VIRTCOM
Scenarios of VC for controller and HMI

be
n.
Replacement of hardware test setup released
With SIMATIC S7- PLCSIM Advanced

ve
• using comprehensive simulation of controller functionality
• testing via TIA Portal tools. e.g. watchtables, simulated HMI / HMI
runtime etc.

eu
• Application example:
https://support.industry.siemens.com/cs/de/de/view/109739660

ul
Automatic programm code testing released

t.k
With SIMATIC S7- PLCSIM Advanced and test application
• using data exchange over API for automatic testing of function

en
blocks
• testing via customer specific test application
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

• General test application „S7UnitTest“ for basic automated tests is

udprovided via SIOS:


https://support.industry.siemens.com/cs/ww/de/view/109746405

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM
PLCSIM Advanced

n.
Page 29
@

ve
en

eu
so

ul
t.k
la
o.

en
el

ud
g
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 29
DI-VIRTCOM

be
Inhaltsverzeichnis

n.
ve
eu
2. Virtual Controller PLCSIM Advanced.................................................................... 2-2

ul
2.1. PLCSIM Advanced ................................................................................................................ 2-2

t.k
2.2. STEP 7 (TIA Portal) program ................................................................................................ 2-3

en
2.3. Programming in Visual Studio............................................................................................... 2-5
2.3.1. Integrating the API library ..................................................................................................... 2-5
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

2.3.2. Overview user interface ........................................................................................................ 2-6


2.4. ud
Operating the Application Example ...................................................................................... 2-7

be
2.4.1. Switching on virtual controller ............................................................................................... 2-7
st
2.4.2. Loading TIA Portal project into the virtual controller ............................................................. 2-9

n.
2.4.3. Starting WinCC Runtime ..................................................................................................... 2-12
2.4.4. Starting the co-simulation ................................................................................................... 2-13
@

ve
2.4.5. Restarting the conveyor system.......................................................................................... 2-14
2.4.6. Simulating an error .............................................................................................................. 2-15
2.4.7. Removing and acknowledging error ................................................................................... 2-16

eu
en

2.4.8. Stopping the co-simulation .................................................................................................. 2-17


2.4.9. Switching off virtual controller ............................................................................................. 2-17
2.4.10. Closing application .............................................................................................................. 2-18
ul
so

2.4.11. Error handling...................................................................................................................... 2-19


.k
.la

nt
lo

e
ge

ud
an

st
@
en
so
.la
lo
ge
an

DI-VIRTCOM - Virtual Controller PLCSIM Advanced


Trainingsunterlage, V15.00.00 2-1
DI-VIRTCOM

2. Virtual Controller PLCSIM Advanced

be
n.
2.1. PLCSIM Advanced

ve
With S7-PLCSIM Advanced as independent simulation system, the created user program can

eu
be simulated and tested on a virtual controller.
The Runtime API of S7-PLCSIM Advanced provides user interfaces for access to the simulation
runtime. These user interfaces offer the following options via a program (for example, C#

ul
program):

t.k
• Creation of a runtime instance of a virtual controller.
• Changing the mode of the virtual controller.

en
• Exchanging I/O data with a co-simulation.
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st

n.
@

ve
en

eu
so

ul
t.k
.la

en
lo
ge

ud
an

st
@
en
so
.la
lo
ge
an

DI-VIRTCOM - Übungsgeräte und Adressierung


2-2 Trainingsunterlage, V15.00.00
DI-VIRTCOM

be
2.2. STEP 7 (TIA Portal) program

n.
A STEP 7 program created in STEP 7 V14 controls a conveyor system. For a comprehensive

ve
function test, the STEP 7 program is loaded via S7-PLCSIM Advanced into a virtual S7-1500
controller. This controller interacts via the API with a co-simulation (system simulation), in order

eu
to validate the STEP 7 program in the context of the system.
The material handling system to be controlled consists of two transport belts and two robot
arms. The following input and output tags are defined so that the controller communicates with

ul
the material handling system:

t.k
Table 1-1: Input and output tags

en
Tags Data Type Description
type

ud
sensorStartPos BOOL Input Sensor signal: Starting position
sensorBeltStartPos BOOL Input Sensor signal: Starting position transport
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

st belt 1
sensorBeltDest BOOL Input Sensor signal: Target position transport
belt 1
@
sensorEndPos BOOL Input Sensor signal: End position
BOOL

be
setOnBeltActive Output Control signal: Enable robot arm 1
moveBeltActive BOOL Output Control signal: Enable transport belt 1
en

setOffBeltActive BOOL Output Control signal: Enable robot arm 2

n.
releaseActive BOOL Output Control signal: Enable transport belt 2
so

ve
acknowledgeActive BOOL Output Control signal: Acknowledge error
restartActive BOOL Output Control signal: Restart system
.la

eu
The according control signal is activated based on the active sensor signals. For transport belt 1
lo

ul
(moveBeltActive) a monitoring time of 5 s is configured. If the package does not reach the target
ge

position within this time, an error for a fallen down package is shown (“Package down”). You
.k

can then restart the system or acknowledge the error when you put the package back on the
transport belt 1.
t
an

en

Figure 1-1: Overview of the conveyor system


ud
st

Robot arm 2
@

releaseActive

Transport belt 2
en

ctive
so
.la

The visualization of the system is simulated with WinCC Runtime. The system can be monitored
lo

and controlled in WinCC Runtime via an HMI screen:


• Restart (restartActive)
ge

• Acknowledge error (acknowledgeActive)


an

DI-VIRTCOM - Virtual Controller PLCSIM Advanced


Trainingsunterlage, V15.00.00 2-3
DI-VIRTCOM

be
C# program

n.
In the external application (C# program) the following is programmed:
• Functions of the user interface (Runtime API) in order to interact with the virtual

ve
controller of S7-PLCSIM Advanced.
• System simulation of the conveyor system (co-simulation).

eu
The co-simulation reacts to the control signals (outputs) of the virtual controller and simulates all
required sensor signals (inputs) for the simulation of the sequential control.

ul
For the exchange of the I/O data the Runtime API writes and reads from the memory area that
is synchronized on the cycle control point with the internal process image of the virtual S7-1500

t.k
controller.

en
Table 1-2: Data exchange
Virtual Controller Data exchange Co-Simulation

ud
setOnBeltActive  setOnBeltActive
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

moveBeltActive st  moveBeltActive
setOffBeltActive  setOffBeltActive
releaseActive  releaseActive

be
@

acknowledgeActive  acknowledgeActive
restartActive  restartActive

n.
sensorStartPos  sensorStartPos
en

sensorBeltStart  sensorBeltStart

ve
sensorBeltDest  sensorBeltDest
so

sensorEndPos  sensorEndPos
eu
.la

With the co-simulation you can simulate or remove errors, for example, drop a package or place
ul
a dropped package back on transport belt 1.
lo

t.k
ge

Note The machines of the conveyor system are simulated in a non-realistic way in the
en

co-simulation. The movements are only simulated by a time constant.


an

ud
st
@
en
so
.la
lo
ge
an

DI-VIRTCOM - Übungsgeräte und Adressierung


2-4 Trainingsunterlage, V15.00.00
DI-VIRTCOM

be
2.3. Programming in Visual Studio

n.
The Visual Studio project included facilitates your access to programming a S7-PLCSIM

ve
Advanced application with a co-simulation.
In the Visual Studio project some basic functions are already programmed, for example,

eu
switching on virtual controller and exchanging I/O data. With this Visual Studio project you can
develop your applications further.

ul
2.3.1. Integrating the API library

t.k
Note For the path to be updated in the included project you have to delete the existing

en
reference to the library “Siemens.Simatic.Simulation.Runtime.Api.x64” and
integrate it again.

ud
Table 2-3: Integrating the API library
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

No.
st Action
1. Create a reference in the project for the S7-PLCSIM Advanced library. It is located in the
@
following directory in “…\Program Files (x86)\Common Files\Siemens\PLCSIMADV\API”.
2. Set the property “Copy Local” of the reference to “True”.

be
en

n.
so

ve
.la

eu
lo

ul
ge

t.k
an

en
ud
st
@
en
so
.la
lo
ge
an

DI-VIRTCOM - Virtual Controller PLCSIM Advanced


Trainingsunterlage, V15.00.00 2-5
DI-VIRTCOM

2.3.2. Overview user interface

be
In graphical user interface of the external application, commands (1) are integrated to interact

n.
with the virtual controller (PLC Instance) and the co-simulation.
The list box (2) shows info and error messages. The text field (3) shows the respective status.

ve
Figure 2-2: GUI

eu
ul
3 3

t.k
en
1 1
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
2

n.
@

ve
en

eu
so

ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

DI-VIRTCOM - Übungsgeräte und Adressierung


2-6 Trainingsunterlage, V15.00.00
DI-VIRTCOM

be
2.4. Operating the Application Example

n.
Note In order to start the PLCSIM Advanced simulation via the

ve
“CoSimulationPlcSimAdv” application, you do not have to start the control panel
of PLCSIM Advanced.

eu
2.4.1. Switching on virtual controller

ul
Table 2-4: Switching on virtual controller

t.k
No. Action
1. Unzip the file “109739660_PLCSIM_Advanced_COSIM_APPL_V10.zip”. Open

en
“CoSimulationPlcSimAdv > bin > Release”. Start the application
“CoSimulationPlcSimAdv.exe”.
The user interface of the application opens. You can see the information that the instance

ud
“TransportControl” has been registered in the status list.
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

st
@

be
en

n.
ve
so

eu
.la

2. Optional: Start the Windows Task Manager and check the started process of the Runtime
ul
Manager in “Processes”.
lo

.k
ge

t
en
an

ud
st
@
en
so
.la
lo
ge
an

DI-VIRTCOM - Virtual Controller PLCSIM Advanced


Trainingsunterlage, V15.00.00 2-7
DI-VIRTCOM

be
No. Action
3. Click on the “POWER ON” button in the user interface to start the virtual controller.

n.
ve
• The instance of the virtual controller is started. If no program has been loaded in the
virtual controller, the virtual controller is in “Stop” mode.

eu
ul
t.k
en
ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

Note
st

be
If you have started the application before and have already loaded a program in the
virtual controller, an automatic upload from the virtual SIMATIC memory card takes
place and the virtual controller is in “Run” mode.
@

n.
4. Optional: Start the Windows Task Manager and check the started process of the Runtime
Instance in “Processes”.

ve
en

eu
so

ul
.la

.k
lo

nt
ge

e
ud
an

st
@
en
so
.la
lo
ge
an

DI-VIRTCOM - Übungsgeräte und Adressierung


2-8 Trainingsunterlage, V15.00.00
DI-VIRTCOM

2.4.2. Loading TIA Portal project into the virtual controller

be
Note In order to load the TIA Portal project into the virtual controller, first you have to
switch on the virtual controller.

n.
ve
Table 2-5: Loading TIA Portal project into the virtual controller
No. Action

eu
1. Open the TIA Portal project “109739660_Transport” from the download included
“109739660_PLCSIM_Advanced_S7_PROJ_V10.zip”.

ul
2. 1. Select the PLC_1 from the project navigation.
2. Open the “Online” menu.

t.k
3. Select “Extended download to device…”.

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st

n.
ve
@

eu
en

ul
so

t.k
la

en
o.

ud
l
ge

st
an

@
en
so
.la
lo
ge
an

DI-VIRTCOM - Virtual Controller PLCSIM Advanced


Trainingsunterlage, V15.00.00 2-9
DI-VIRTCOM

be
No. Action
3. Set “PLCSIM” as “PG/PC interface” and click on “Start search”.

n.
ve
eu
ul
t.k
en
ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

st

be
@

n.
ve
en

4. Select the simulated CPU and click “Load”.

eu
so

ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

DI-VIRTCOM - Übungsgeräte und Adressierung


2-10 Trainingsunterlage, V15.00.00
DI-VIRTCOM

No. Action

be
5. For the message that follows, click on “Load”.

n.
ve
eu
ul
.k
nt
de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
6.
u
Enable the “Start all” option box and click on “Finish”.
st

n.
@

ve
en

eu
so

ul
t.k
.la

en
lo
ge

ud

7. After the download, check whether the virtual controller has changed to the “Run” mode.
an

st
@
en
so
.la
lo
ge
an

DI-VIRTCOM - Virtual Controller PLCSIM Advanced


Trainingsunterlage, V15.00.00 2-11
DI-VIRTCOM

be
2.4.3. Starting WinCC Runtime
Table 2-6: Starting WinCC Runtime

n.
No. Action

ve
1. Select the HMI_1 in TIA Portal in the project navigation

eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
2. Click on “Start simulation” in the toolbar of the TIA Portal.
@

n.
ve
• After the compilation, the WinCC Runtime of the SIMATIC HMI starts.
en

eu
so

ul
.la

.k
lo

nt
ge

e
ud
an

st
@
en
so
.la
lo
ge
an

DI-VIRTCOM - Übungsgeräte und Adressierung


2-12 Trainingsunterlage, V15.00.00
DI-VIRTCOM

be
2.4.4. Starting the co-simulation

n.
Note Set the virtual controller to “Run” mode to operate the co-simulation.

ve
Table 2-7: Starting the co-simulation
No. Action

eu
1. Click “START” in the user interface of the application to start the co-simulation.

ul
t.k
en
ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

st

be
@

n.
ve
en

• The co-simulation places a package at the starting position and the conveyor
system starts moving. Once a package has been transported away, a new crate is

eu
placed at the starting position.
so

ul
.la

t.k
lo

en
ge

ud
an

st
@
en

2. Verify the function of the conveyor system in the simulated HMI screen.
so
.la
lo
ge
an

DI-VIRTCOM - Virtual Controller PLCSIM Advanced


Trainingsunterlage, V15.00.00 2-13
DI-VIRTCOM

be
2.4.5. Restarting the conveyor system

n.
Table 2-8: Restarting system

ve
No. Action

eu
1. Click the “Restart” button in the simulated HMI screen.

ul
t.k
en
ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

st
@

be
en

n.
• The co-simulation places the package back at the starting position and the
so

controller is initialized. Transportation is restarted.

ve
.la

eu
lo

ul
ge

t.k
an

en
ud
st
@
en
so
.la
lo
ge
an

DI-VIRTCOM - Übungsgeräte und Adressierung


2-14 Trainingsunterlage, V15.00.00
DI-VIRTCOM

2.4.6. Simulating an error

be
Note Set the virtual controller to “Run” mode to operate the co-simulation.

n.
Table 2-9: Simulating an error

ve
No. Action
1. To simulate the falling off of a package from transport belt 1, click on the “SIMULATE

eu
ERROR” button in the user interface of the application during an active co-simulation.

ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
• An activated error simulation is displayed by a red font color.

n.
@

ve
en

2. Verify the following states in the simulated HMI screen:


eu
so

• The package does not reach its target position before the second robot arm within
ul
the configured monitoring time
• The “Error: Package down” is show.
.la

.k
nt
lo

e
ge

ud
an

st
@
en
so

3. You have the following options to remove the error:


• Restarting the
la

• Removing and acknowledging error


l o.
ge
an

DI-VIRTCOM - Virtual Controller PLCSIM Advanced


Trainingsunterlage, V15.00.00 2-15
DI-VIRTCOM

2.4.7. Removing and acknowledging error

be
Note Set the virtual controller to “Run” mode to operate the co-simulation.

n.
Table 2-10: Removing and acknowledging error

ve
No. Action
1. In the user interface of the application, click on “PACKAGE OK”. This simulates manual

eu
picking up and placing the package on transport belt 1.

ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st

n.
@

ve
2. Verify that the package has been placed in front of the second robot arm.
en

eu
so

ul
t.k
.la

en
lo
ge

ud
an

st
@

3. Click the “Acknowledge” button in the simulated HMI screen to acknowledge the error and
to continue the transport.
en
so

4. Check whether the transport is continued and the font of the “SIMULATE ERROR” in the
user interface appears in black again.
.la
lo
ge
an

DI-VIRTCOM - Übungsgeräte und Adressierung


2-16 Trainingsunterlage, V15.00.00
DI-VIRTCOM

2.4.8. Stopping the co-simulation

be
Note Set the virtual controller to “Run” mode to operate the co-simulation.

n.
ve
Table 2-11: Stopping the co-simulation
No. Action

eu
1. In the user interface of the application, click on the “STOP” button.

ul
.k
nt
de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
u
st

n.
@

• The co-simulation is stopped in the current step.

ve
eu
en

Note
When you stop the co-simulation while the package is on transport belt 1, the
ul
so

monitoring time for transport belt 1 can be exceeded in the controller. As a result,
the error of a fallen down package is displayed. In this case, restart the conveyor
t.k

system,, to resynchronize the co-simulation and the system control.


.la

en
lo

2.4.9. Switching off virtual controller


ud
ge

Table 2-12: Switching off virtual controller


st
an

No. Action
1. Click the “POWER OFF” button in the user interface of the application.
@
en
so
.la
lo
ge

2. Optional: Check whether the virtual controller is switched off and the process of the
an

Runtime Instance in the Windows Task Manager has been ended.

DI-VIRTCOM - Virtual Controller PLCSIM Advanced


Trainingsunterlage, V15.00.00 2-17
DI-VIRTCOM

be
2.4.10. Closing application

n.
Table 2-13: Closing application

ve
No. Action
1. In the user interface of the application, click on the “EXIT” button or the “close” icon to

eu
close and exit the application.

ul
t.k
en
ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

st
2. Optional: Check whether the process of the Runtime Manager and the Runtime Instance
in the Windows Task Manager has been ended.

be
@

n.
en

ve
so

eu
.la

ul
lo

t.k
ge

en
an

ud
st
@
en
so
.la
lo
ge
an

DI-VIRTCOM - Übungsgeräte und Adressierung


2-18 Trainingsunterlage, V15.00.00
DI-VIRTCOM

be
2.4.11. Error handling

n.
In the list box of the user interface the errors are shown with a note indicating the cause.

ve
Figure 2-3: List box

eu
ul
t.k
en
ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

st

be
@

n.
en

ve
eu
so
.la

ul
.k
lo

nt
ge

e
an

ud
st
@
en
so
.la
lo
ge
an

DI-VIRTCOM - Virtual Controller PLCSIM Advanced


Trainingsunterlage, V15.00.00 2-19
be
n.
ve
eu
ul
.k
nt
de
Introduction to NX
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

u
st
SITRAIN © Siemens AG 2018 Course: DI-VIRTCOM

be
@

n.
en

ve
Contents Page
Learning objectives ................................................................................................................................. 3
so

Virtual commissioning
Installation eu
..........................................................................................................................
.................................................................................................................................
4
5
.la

ul
User interface – General .................................................................................................................. 6
User interface ribbon and toolbar ..................................................................................................... 7
t.k
lo

Assembly Navigator ................................................................................................................................. 8


Creating a new component ............................................................................................................... 9
ge

en

Task profile ................................................................................................................................. 10


Sketch of the baseplate .................................................................................................................... 11
an

ud

Creating a sketch ................................................................................................................................. 12


Extruding sketch .................................................................................................................................. 13
st

Holes in the baseplate................................................................................................................................. 14


Subtractive extrusion ................................................................................................................................. 15
@

Align view ................................................................................................................................. 16


Exercise: Designing a bracket .......................................................................................................... 17
Additional task: Creating a baseplate ................................................................................................ 21
en

Additional task: Creating a roller ....................................................................................................... 26


General help ................................................................................................................................. 31
so

Context-sensitive help................................................................................................................................. 32
Help – Setting the target language ................................................................................................... 33
.la

Task profile ................................................................................................................................. 34


Creating an assembly ....................................................................................................................... 35
lo

Assembly Editor ................................................................................................................................. 36


Inserting a component ...................................................................................................................... 37
ge

Assembly constraint ………...................................................................................................................... 38


Moving components ................................................................................................................................. 39
an

SITRAIN DI-VIRTCOM
Training for Industry Page 1
Contents Page
Pattern Component ........................................................................................................................... 40
Exercise: Assembling an assembly from components ...................................................................... 41

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
st

ve
@

eu
en

ul
t.k
so

en
.la

ud
lo
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 2
Learning objectives

be
Participants should ...

n.
… become familiar with the NX user interface

... become familiar with the possibilities of the NX help function

ve
... generate simple sketches and be able to extrude these

... be able to add components to assemblies

eu
... be able to move components

ul
... be able to create constraints between models

t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
st
Page 3 Introduction to NX

ve
@

eu
en

ul
t.k
so

en
la
o.

ud
l
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 3
Virtual commissioning

be
NX platform – Overview

n.
ve
eu
ul
.k
nt
de
▪ Integrated design solution ▪ Multi-discipline simulation and ▪ Process planning and optimization
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

▪ Simulation & validation optimization ▪ Resource planning and optimization


▪ Managed development environment
u
▪ System level modeling and simulation ▪ Production planning and optimization
st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
@

Page 4 Introduction to NX

n.
en

ve
so

eu
.la

ul
t.k
lo
ge

en
an

ud
st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 4
Installation

be
Ordering

n.
Installation file for
download
NX Support sends a

ve
batch file

Installation on the PC

eu
Run the batch file on the
installation PC
→ Return the .txt file to

ul
the support contact

t.k
You receive license

en
file.lic;
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

select this when


installing the License

be
Manager
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
st
Page 5 Introduction to NX

ve
@

eu
Installation and license
After ordering NX, you receive a login for the installation files. You can then install the files
en

on the engineering PC. You require a valid license to run the programs. You obtain a batch
ul
file through an NX support contact. You must run this on the engineering PC. You obtain a
.txt file as result. You return this file to your NX support contact, and he returns the license
t.k
so

linked to the PC. You embed this license in the License Manager. NX can now be run.
en
.la

ud
lo
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 5
User interface – General

be
n.
Fast access – symbol bar

ve
Ribbon bar

eu
Upper border bar

ul
Tab area

t.k
Resource bar

en
Graphic area

ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
@

Page 6 Introduction to NX

n.
ve
en

eu
so

ul
la

t.k
o.
el

en
g

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 6
User interface ribbon and toolbar

be
Full screen mode

Command search

n.
Minimize ribbon

ve
NX context help

eu
ul
t.k
Gallery Dropdown menu

en
Group Additional commands
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
Additional groups
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM

ve
Page 7 Introduction to NX
st

eu
@

Ribbon
To make it simpler to use the user interface, you can adapt the ribbon bar and menus using
dialog window Customize.
ul
en

You have the following options:


t.k
• Drag the commands from one logical collection into another.
• Display or hide buttons, groups, galleries and commands in the ribbon bar.
so

en

• Display or hide the complete ribbon bar.


• Create your own tabs, groups and galleries.
.la

ud
lo

st
ge

@
an

en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 7
Assembly Navigator

be
Columns in the main
window:
Identifies a specific
component and displays the

n.
hierarchical tree.

ve
Component nodes:
Displays information that
refers to the individual
components.

eu
Preview window:

ul
Displays the saved part
preview for the selected
component.

t.k
Dependencies:
Displays the dependencies

en
between the higher-level and
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

lower-level (subordinate)
elements for a selected

be
assembly or individual
subnodes.
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
st
Page 8 Introduction to NX

ve
@

eu
Assembly Navigator
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:assy_navigator_an_overview
en

ul
t.k
so

en
.la

ud
lo
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 8
Creating a new component

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
DI-VIRTCOM
st
SITRAIN © Siemens AG 2018
Page 9 Introduction to NX

ve
@

eu
File New dialog box
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#goto:working_with_files:fil_new_d
en

Open a new file in native NX


ul
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:xid1128416:index_working_with_files:id12710
so

t.k
93:fil_new_ht
.la

en

New part file


https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:xid1128416:index_working_with_files:id12710
93:v1_fil_new_ov
lo

ud
ge

st
an

@
en
so
la
l o.
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 9
Task profile

be
n.
Part 1

ve
eu
Part 2 Part 3

ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM

n.
Page 10 Introduction to NX
@

ve
Task profile
en

eu
The components must first be created before creating an assembly. In the following you
learn how to sketch components and then extrude them.
More specifically, you will design a bracket that will then be used to attach a roller. The
so

ul
baseplate and the roller are supplied preconfigured; however, you can create them in
additional tasks.
t.k
.la

en
lo
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 10
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

SITRAIN
Page 11
an an

Training for Industry


ge ge

SITRAIN © Siemens AG 2018


lo lo
.la .la
Sketch of the baseplate

so so
en en
@ @
st st
ud u

Page 11
en de
t.k nt
.k
ul ul
eu eu
ve ve
n. n.
be be
DI-VIRTCOM
Introduction to NX

DI-VIRTCOM
Creating a sketch

be
n.
ve
eu
ul
.k
nt
de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

u
st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
@

Page 12 Introduction to NX

n.
en

ve
The Direct Sketch and the Sketch task environment groups offer two modes to create
and edit sketches.
Direct sketch
eu
so

• The sketch commands are provided in a Direct Sketch group under the Home tab. The
commands, with which most basic sketches can be generated, are immediately visible
.la

ul
in the group. Extended commands are available through the More gallery.
t.k
lo
ge

en
an

ud

• To generate a sketch using the Direct Sketch commands, click in the design
application and other applications under the Home tab on command Sketch → Direct
Sketch group
st

Use the Direct Sketch group for the following tasks:


@

• Create or edit a sketch in the Assembly, Shape Studio or Sheet Metal applications.
• Display the effects of the sketch changes for the model in real time
en

Additional information:
so

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:id1010982
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 12
Extruding sketch

be
n.
ve
eu
ul
.k
nt
de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

u
st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
@

Page 13 Introduction to NX

n.
en

ve
Extrude
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:create_features_feat_extrude
so

eu
.la

ul
t.k
lo
ge

en
an

ud
st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 13
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

SITRAIN
Page 14
an an

Training for Industry


ge ge

SITRAIN © Siemens AG 2018


lo lo
.la .la
Holes in the baseplate

so so
en en
@ @
st st
ud u

Page 14
en de
t.k nt
.k
ul ul
eu eu
ve ve
n. n.
be be
DI-VIRTCOM
Introduction to NX

DI-VIRTCOM
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

SITRAIN
Page 15
an an

Training for Industry


ge ge

SITRAIN © Siemens AG 2018


lo l o.
.la la
Subtractive extrusion

so so
en en
@ @
st st
ud ud

Page 15
en en
t.k t.k
ul ul
eu eu
ve ve
n. n.
be be
DI-VIRTCOM
Introduction to NX

DI-VIRTCOM
Align view

be
Right-click in the Select the view in the upper
graphics area frame bar

n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
st
Page 16 Introduction to NX

ve
@

eu
Orient to a standard view
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:ui_use_orient_view_ht
ul
en

t.k
so

en
.la

ud
lo
ge

st
@
an

en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 16
Exercise: Designing a bracket

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 17 Introduction to NX

n.
@

ve
en

Task profile
Design a bracket that will subsequently hold the roll. Take all of the necessary dimensions

eu
from the drawing above. To do this, first sketch and extrude the baseplate. You can then
so

design the upright plate located on the baseplate. Below the baseplate, sketch a circle that
ul
you can then also subsequently extrude. To design the hole in the upright plate, sketch a
circle on this. Extrude a circle – in this case, use the subtractive technique. As a result, you
.la

t.k

obtain a bracket with a pin and a hole for the roll.


lo

en
ge

ud
an

st
@
en
so

A detailed description on how to do this is provided on the following pages.


.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 17
Description of what has to be done
- Open NX, and create a new model with the name "conveyor_bracket".
- Save the model in your own workshop folder.

be
- Create a new sketch.

n.
ve
eu
ul
- Create a square as base element.
Method: With 2 points

t.k
Input mode: Parameter mode

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
st

ve
@

- Exit the sketch.

eu
en

- Extrude the square. ul


so

.k
nt
.la

de
lo

u
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 18
Description of what has to be done
- Create an additional square on the left-hand side of the base element.

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
- From the square, extrude the long side of the bracket.

n.
@

ve
en

eu
so

ul
t.k
la
o.

en
el

ud
g
an

st
@

- On the base side of the bracket, sketch a circle and extrude this
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 19
Description of what has to be done
- Now sketch a circle on the long side of the bracket

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud
- Extrude the circle, use the subtractive method to create a hole.

n.
st

ve
@

eu
en

ul
so

t.k
.la

en
lo

ud
ge

- Your model should now look like this:


st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 20
Additional task: Creating a baseplate

be
n.
ve
eu
ul
.k
nt
de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 21 Introduction to NX

n.
@

ve
Task profile
en

Design the baseplate on which other elements will be subsequently mounted. Take all of

eu
the necessary dimensions from the drawing above. Sketch and extrude the baseplate.
so

Sketch a circle below the baseplate. You can copy the circle using the "Pattern Feature"
ul
function. Then extrude the circle using the subtractive technique so that a hole is created in
the plate Repeat this process for all 4 circles.
.la

t.k
lo

en
ge

ud
an

st
@
en
so

A detailed description on how to do this is provided on the following pages.


.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 21
Description of what has to be done
- Open NX, and create a new model with the name "conveyor_baseplate".
- Sketch the square for the baseplate.

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
st

ve
- Extrude the square.
@

eu
en

ul
so

t.k
.la

en
lo

ud
ge

st
an

@
en
so
la
l o.
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 22
Description of what has to be done
- Your model should look like this

be
n.
ve
eu
ul
t.k
- Sketch a circle on the baseplate

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st

n.
@

ve
eu
en

ul
so

t.k
la

en
o.
el

ud
g
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 23
Description of what has to be done
- Copy the circle using the "Pattern Feature" function

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st

n.
ve
@

eu
en

ul
so

t.k
.la

en
lo

ud
ge

st
an

- Extrude the four circles. Use the subtractive technique so that holes are created in the
baseplate.
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 24
Description of what has to be done
- Extrude the four circles. Use the subtractive technique so that holes are created in the

be
baseplate.

n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
@

n.
- Your model should now look like this:

ve
en

eu
so

ul
.la

.k
lo

nt
ge

e
ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 25
Additional task: Creating a roller

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 26 Introduction to NX

ve
st

eu
@

Task profile
Design the roller that will be subsequently mounted on the conveyor belt. Take all of the
ul
necessary dimensions from the drawing above. Sketch and extrude the one circle. You
en

obtain a cylinder. Sketch a circle on the cylinder. Extrude the circle in order to obtain the
t.k
two suspension cylinders.
so

Sketch a square on the circumference of the larger circle. The ribs will be subsequently
en

created from the square. Copy the square using the "Pattern Feature" function. You require
36 of these squares, with a clearance of 10 degrees between them. After the sketch has
.la

been completed, you can extrude the squares and obtain the model of the roller shown in
ud

the diagram above.


lo

st
ge

@
an

en
so
.la

A detailed description on how to do this is provided on the following pages.


lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 26
Description of what has to be done
- Open NX, and create a new model with the name "conveyor_roller".
- Sketch the circle for the main cylinder.

be
n.
ve
eu
ul
t.k
en
- Extrude the circle
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st

n.
ve
@

eu
en

ul
so

t.k
- Now sketch the face surface of an additional circle, from which you will extrude the
la

suspension for the roller.


en
o.
el

ud
g

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 27
Description of what has to be done
- Sketch the square for a subsequent rib. Here, it makes sense to use the "From Center"

be
rectangle method. This means you can directly sketch the center point of the square onto
the circumference of the circle. The sides of the square are then 2mm.

n.
ve
eu
ul
t.k
Width: 2mm
Height: 2mm

en
Angle: 0°
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st

n.
@

ve
en

eu
so

ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 28
Description of what has to be done
- Use the "Pattern Feature" function to design uniform ribs around the circumference of the

be
cylinder.

n.
ve
eu
ul
t.k
en
ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

st

be
@

n.
ve
en

eu
so

- As result, your model should look like this:


ul
.la

.k
lo

nt
ge

e
ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 29
Description of what has to be done
- Now extrude the squares.
To select all of the squares, use the "Pattern Feature" object. You can select the object by

be
keeping the mouse hovered over a square for some time and then left clicking on the
square.

n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
- Your model should then look like this:
st

n.
ve
@

eu
en

ul
so

.k
.la

nt
de
lo
ge

u
st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 30
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

SITRAIN
Page 31
an an

Training for Industry


ge ge

SITRAIN © Siemens AG 2018


General help

lo lo
.la .la
so so
en en
@ @
st st
ud u

Page 31
en de
t.k nt
.k
ul ul
eu eu
ve ve
n. n.
be be
DI-VIRTCOM
Introduction to NX

DI-VIRTCOM
Context-sensitive help

be
n.
Press F1

ve
eu
ul
.k
nt
de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

u
st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 32 Introduction to NX
@

n.
ve
en

eu
so

ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 32
Help – Setting the target language

be
Changing the language

n.
sequence

ve
eu
Deleting/adding a language

ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 33 Introduction to NX

ve
@

Target language

eu
The link to the help is the same for various languages, e.g. German, English. This depends
en

on the language that you set for your browser. If the language is available in Help, then the
ul
Help function also appears in the language. If the language does not exist in Help, then the
so

language below it is used.


t.k

Example
.la

Your browser has two languages – German and English. German is the first language,
en

English the second language. If you open Help, then an attempt is made to open this in
lo

German. In this particular case, Help has not been translated into German, which is why it
ud

is displayed in English.
ge

Programming language
st

Help for NX is programmed in English.


an

Changing the language


If you wish to change the language for the help text. Switch the sequence of the languages
in your browser. The page must be changed in order to update the language.
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 33
Task profile

be
n.
ve
eu
Part 1

ul
Part 2 Part 3

t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM

n.
Page 34 Introduction to NX
@

ve
Task profile

eu
en

The assembly for the conveyor should now be assembled from the components created in
the last task. Join the components of the assembly and design this using various functions,
such as "Move component", "Assembly constraints" and "Pattern". This is the basis to
ul
so

kinematize the model in the following.


t.k
.la

en
lo

ud
ge

st
an

@
en
so
la
l o.
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 34
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

SITRAIN
Page 35
an an

Training for Industry


ge ge

SITRAIN © Siemens AG 2018


lo lo
.la .la
Creating an assembly

so so
en en
@ @
st st
ud ud

Page 35
en en
t.k t.k
ul ul
eu eu
ve ve
n. n.
be be
DI-VIRTCOM
Introduction to NX

DI-VIRTCOM
Assembly Editor

be
Creating an assembly with individual model parts

n.
ve
eu
1 2 3
4
"Add" to add a new component

ul
1.

t.k
2. "Move Component" to position the component in the assembly

en
3. "Assembly Constraints" defines a constraint for the alignment of the
component in the assembly
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud
Additional functions to position the component in the assembly

be
4.
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM

n.
Page 36 Introduction to NX
@

ve
Add parts to the build tray
en

eu
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:xid1410720
so

ul
t.k
.la

en
lo
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 36
Inserting a component

be
n.
ve
eu
ul
t.k
Inserting a component with
constraint

en
ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
@

Page 37 Introduction to NX

n.
en

ve
so

eu
.la

ul
.k
lo

nt
ge

e
an

ud
st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 37
Assembly constraint

be
n.
ve
eu
ul
t.k
en
ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
@

Page 38 Introduction to NX

n.
en

ve
Assembly Constraints dialog box
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#goto:assemblies:assy_constraints_op
so

eu
.la

ul
t.k
lo
ge

en
an

ud
st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 38
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

SITRAIN
Page 39
an an
g

Training for Industry


ge

SITRAIN © Siemens AG 2018


lo el
.la o.
la
Moving components

so so
en en
@ @
st st
ud ud

Page 39
en en
t.k t.k
ul ul
eu eu
ve ve
n. n.
be be
DI-VIRTCOM
Introduction to NX

DI-VIRTCOM
Pattern Component

be
n.
ve
eu
ul
t.k
en
ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
@

Page 40 Introduction to NX

n.
ve
en

Pattern Component dialog box


https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#goto:assemblies:xid612917

eu
so

ul
la

t.k
o.
el

en
g

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 40
Exercise: Assembling an assembly from components

be
n.
Part 1

ve
eu
Part 2 Part 3

ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Introduction to NX

ve
Page 41
st

eu
@

Task profile
The assembly for the conveyor should now be assembled from the components created in
ul
the last task. Create a new assembly with the name "__Conveyor", and add the
en

components to the assembly. It is important that the assembly and the required models are
t.k
located in a folder. The baseplate and the roller are available under:
so

C:\Archives\DI-VIRTCOM\Chap_3\02_Exercise
en

Proceed as follows: Insert the baseplate into the newly created assembly. Now insert the
.la

four brackets, and position these using the constraints. Finally, inserted the roller into the
ud

assembly and position it using the constraints.


lo

st
ge

@
an

en
so
.la

A detailed description on how to do this is provided on the following pages.


lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 41
Description of what has to be done
- Open NX, and create a new assembly with the name "asm_conveyor_baseframe".

be
- Save this assembly in the same folder in which you saved the bracket.

n.
- From the part library for this training course, copy the baseplate "conveyor_baseplate"
and the roller "conveyor_roller" into the folder with the assembly.

ve
C:\Archives\DI-VIRTCOM\Chap_3\02_Exercise

- Insert the baseplate

eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st

n.
@

ve
en

eu
so

ul
.k
.la

nt
lo

de
ge

u
an

st
@
en
so
.la

- Acknowledge the following message with "No"


lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 42
Description of what has to be done
- Insert the "conveyor_bracket" model four times

- Position the bracket with a constraint

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
st

ve
@

eu
en

ul
.k
so

nt
.la

de
lo

u
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 43
Description of what has to be done
- Two of the brackets are incorrectly rotated through 180°; rotate these into the correct
position using the "Move Component" function

be
n.
ve
eu
- You can rotate the model directly using the axis – or simply click on the axis and enter an

ul
angle of rotation of 180°.

t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
ve
st

eu
@

ul
en

t.k
so

en
.la

ud
lo

st
ge

@
an

en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 44
Description of what has to be done
- Insert the "conveyor_roller" model two times

- Position the roller with a constraint

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
st

ve
@

eu
ul
en

t.k
so

en
.la

ud
lo
ge

st
@
an

en
so
.la
lo
ge
an

- The roller is now positioned on the axis – but still not at the correct position between the
angles. See the following page!

SITRAIN DI-VIRTCOM
Training for Industry Page 45
Description of what has to be done
- In order that the roller is at the correct position, an additional constraint is required.

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
- Select the inner surface of both brackets.
ud

n.
st

ve
@

eu
ul
en

t.k
so

en
.la

ud
lo

st
ge

@
an

- Select the two face surfaces of the roller.


en
so
la
l o.
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 46
Description of what has to be done
- Your model should then look like this once the two rollers have been positioned:

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
st

ve
@

eu
ul
en

t.k
so

en
.la

ud
lo
ge

st
@
an

en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 47
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

aann
ggee
lloo
..llaa
ssoo
eenn
@
@
sstt
uudd
eenn
tt..kk
uull
eeuu
vvee
nn..
bbee
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

an an
ge ge
lo lo
.la .la
so so
en en
@@
st st
ud ud
en en
t.k t.k
ul ul
eu eu
ve ve
n. n.
be be
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

an an
ge ge
lo lo
.la .la
so so
en en
@ @
st st
ud ud
en en
t.k t.k
ul ul
eu eu
ve ve
n. n.
be be
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

an an
ge ge
lo lo
.la .la
so so
en en
@@
st st
ud ud
en en
t.k t.k
ul ul
eu eu
ve ve
n. n.
be be
be
n.
ve
eu
ul
t.k
en
Introduction to NX MCD
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
SITRAIN © Siemens AG 2018 Course: DI-VIRTCOM
st

n.
@

ve
en

Contents Page
Learning objectives ................................................................................................................................. 3
Introduction to Mechatronics Concept Designer
eu
................................................................................ 4
so

Concept model overview .................................................................................................................. 5


ul
Task profile ................................................................................................................................. 6
.la

t.k

NX MCD – Mechatronics Concept Designer ..................................................................................... 7


Simulation control ................................................................................................................................. 8
lo

en

Menu bar in the MCD ............................................................................................................................ 9


ge

Physics Navigator ................................................................................................................................. 10


Runtime Inspector ................................................................................................................................. 11
ud

Procedure ................................................................................................................................. 12
an

Defining a rigid body ................................................................................................................................. 13


st

Defining a joint ................................................................................................................................. 14


Couplers ................................................................................................................................. 15
@

Actuators (controls) ................................................................................................................................. 16


Exercise: Create a physical attribute ................................................................................................. 17
en

Task profile ................................................................................................................................. 23


Collision Body ................................................................................................................................. 24
Overview of the different collision body shapes ............................................................................... 25
so

Determining a collision body ............................................................................................................ 26


Transport surface ................................................................................................................................. 27
.la

Collision Sensor ................................................................................................................................. 28


Object source ................................................................................................................................. 29
lo

Object Sink ................................................................................................................................. 30


ge

Signal Adapter ................................................................................................................................. 31


Exercise: Install belt and couple speed ............................................................................................. 32
an

Exercise: Move the tool carrier ......................................................................................................... 37

SITRAIN DI-VIRTCOM
Training for Industry Page 1
Contents Page
Task profile ................................................................................................................................. 38
Overview of MCD elements – Mechanical ........................................................................................ 44

be
Overview of MCD elements – Joint Types ........................................................................................ 45
Overview of MCD elements – Couplings .......................................................................................... 46

n.
Overview of MCD elements – Controls ............................................................................................. 47
Overview of MCD elements – Sensors ............................................................................................. 48

ve
eu
ul
.k
nt
de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

u
st

be
@

n.
ve
en

eu
so

ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 2
Learning objectives

be
Participants should ...

… become familiar with the MCD user interface

n.
... be able to use the simulation in MCD

ve
... be able to define a rigid body (Collision Body)

... be able to define a Hinge Joint

eu
... be able to define Object Source/Sink

ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
st
Page 3 Introduction to MCD

ve
@

eu
ul
en

t.k
so

en
.la

ud
lo
ge

st
@
an

en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 3
Introduction to Mechatronics Concept Designer

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 4 Introduction to MCD
st

ve
@

eu
Introduction to Mechatronics Concept Designer
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:xid832667:id1101745
ul
en

t.k
Concept model overview
so

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:xid832667:xid1119186
en
.la

Create a concept model


ud

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:xid832667:xid1119186:xid
lo

1049046
st
ge

@
an

en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 4
Concept model overview

be
n.
ve
eu
ul
.k
nt
de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

u
st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 5 Introduction to MCD
@

n.
ve
en

Concept model overview


https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:xid832667:xid1119186

eu
so

Create a concept model


ul
.la

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:xid832667:xid1119186:xid
1049046
t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 5
Task profile

be
n.
ve
eu
ul
t.k
+ Physics

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
DI-VIRTCOM
st
SITRAIN © Siemens AG 2018
Page 6 Introduction to MCD

ve
@

eu
Task profile
For the assembly that has been created, the physics or the kinematics should be
en

implemented step-by-step. This is realized in the NX MCD (NX Mechatronics Concept


Designer).
ul
so

t.k
.la

en
lo

ud
ge

st
an

@
en
so
la
l o.
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 6
NX MCD – Mechatronics Concept Designer

be
n.
ve
eu
ul
Simulation unit Physics functionality

t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM

ve
Page 7 Introduction to MCD
st

eu
@

ul
en

t.k
so

en
.la

ud
lo

st
ge

@
an

en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 7
Simulation control

be
n.
Restart button
Stop button
Restarts the simulation
Stops the simulation

ve
from the beginning
Play button
Forward One Step button
Runs the simulation

eu
Moves the simulation to the
Pause next step
Pauses the simulation at
the current step Forward operation

ul
Moves the simulation to the
Time scale
next operation
Scales the simulation step

t.k
time Snapshot
Takes a snapshot of the
simulation at current time

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
st
Page 8 Introduction to MCD

ve
@

eu
Create simulation restart times
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:xid851742
en

Snap Shot
ul
t.k
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:xid832670:xid851751
so

en
.la

ud
lo
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 8
Menu bar in the MCD

be
n.
ve
eu
ul
Assigning mechanical and Assigning electrical
Automating motion
physical attributes to a attributes to a body
body • Loading the NC travel

t.k
• Collision detection
profile
• Mass and moment of inertia • Position and velocity
• Connecting the PLC to
• Define the axis of rotation controller
the mechanical model

en
• Collisions
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 9 Introduction to MCD

ve
@

eu
en

ul
so

t.k
.la

en
lo

ud
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 9
Physics Navigator

be
Physics Navigator

n.
• List of all the
physics elements

ve
used in the model
Enable/disable the object

eu
function
• Split in physics
elements, joints,
signals, etc.

ul
t.k
• Sorting in
subfolders is
possible

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
DI-VIRTCOM
st
SITRAIN © Siemens AG 2018
Page 10 Introduction to MCD

ve
@

eu
en

ul
so

t.k
.la

en
lo

ud
ge

st
an

@
en
so
la
l o.
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 10
Runtime Inspector

be
Runtime Inspector

n.
Inspector: Signal display

ve
Graph: • Inspector to verify
Graphic display of process and control signals
values

eu
Snapshot:
Start saved snapshots from
• Graphical signal
here evaluation is

ul
possible

.k
Inserting signals by

nt
clicking in the Physics
Navigator

de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 11 Introduction to MCD

n.
@

ve
en

eu
so

ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 11
Procedure

be
Step 1 Step 2 Step 3

n.
ve
eu
ul
+ Rigid Body + Rigid Body + Rigid Body

t.k
+ Joint + Joint + Joint

en
+ Couplers + Coupling
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
+ Actuator
st
DI-VIRTCOM

n.
SITRAIN © Siemens AG 2018
Page 12 Introduction to MCD

ve
@

Procedure

eu
en

In the first step, the fundamental physics is implemented in the "conveyor_roller" model.
The roller becomes a rigid body with a joint so that it can rotate around a defined axis.
ul
In the second step, in the assembly "asm_conveyor" a coupling "gear" (couplers) is
so

constructed between the two rollers so that they rotate with the same speed.
t.k
In the third step, an actuator "speed control" is installed so that the axis speed can be
adjusted.
la

en
o.
el

ud
g

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 12
Defining a rigid body

be
n.
ve
eu
+ +

ul
t.k
Or only …?

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 13 Introduction to MCD

n.
@

ve
Rigid Body
en

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:id1107707

eu
so

ul
Create a rigid body
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:id1107745
la

t.k
o.

Rigid Body dialog box


en

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:id1107702:xid896268:id1
el

107707:id1107708
ud
g
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 13
Defining a joint

be
n.
ve
Define which rigid bodies
belong to the joint

eu
Define the axis vector

ul
Define the axis of rotation

t.k
Define the limits of rotation
(hardware limit)

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 14 Introduction to MCD
st

ve
@

eu
Hinge joint
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:id1108346
ul
en

t.k
Sliding joint
so

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:id1108394
en
.la

Cylindrical joint
ud

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:id1108402
lo

st
ge

Create a cylindrical joint


https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:id1108404
@
an

en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 14
Couplers

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 15 Introduction to MCD
st

ve
@

eu
Gears
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:id1109799
ul
en

t.k
Create a gear coupler
so

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:id1109801
en
.la

Gear dialog box


ud

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:xid896275:id1101486:id1
lo

109799:id1109803
st
ge

@
an

en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 15
Actuators (controls)

be
n.
ve
eu
ul
.k
Select an appropriate
physical object

nt
(here axis (joint))

de
Specify a speed start value
Specify physical limits
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

u
st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 16 Introduction to MCD
@

n.
ve
en

Speed control
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:id1109146

eu
so

Speed Control dialog box


ul
.la

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#goto:mechatronics:id1109150
t.k
lo

Create a speed control actuator


en

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:id1109148
ge

ud
an

Position control
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:id1109154
st

Position Control dialog box


@

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:id1109158
en

Create a position control actuator


https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:id1109156
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 16
Exercise: Create a physical attribute

be
Step 1 Step 2 Step 3

n.
ve
eu
ul
+ Rigid Body + Rigid Body + Rigid Body

t.k
+ Joint + Joint + Joint

en
+ Couplers + Coupling
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
+ Actuator
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM

n.
Page 17 Introduction to MCD
@

ve
Task profile
en

eu
In the first step, the fundamental physics is implemented in the "conveyor_roller" model.
The roller becomes a rigid body with a joint (hinge joint) so that it can rotate around a
defined axis.
so

ul
Note: When parameterizing the hinge joint, the roller should be defined as attachment.
t.k
.la

In the second step, in the assembly "asm_conveyor_baseframe" a coupling "gear"


(couplers) is constructed between the two axes; one of the axes is the master and the other
en

the slave. As a result, the slave axis rotates with the same speed in the same direction.
lo

In the third step, an actuator "speed control" is installed at the master axis, which can be
ge

ud

used to adjust the axis speed.


an

st
@
en
so

A detailed description on how to do this is provided on the following pages.


.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 17
Description of what has to be done
- Open NX, and open the "conveyor_roller" model that belongs to your

be
"asm_conveyor_baseframe" assembly.

- Open the MCD "Mechatronics Concept Designer“.

n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st

n.
@

ve
en

eu
- Define the roller as a rigid body with the name "Roller_Body“.
so

ul
- Start the simulation
.k
.la

nt
lo

de
ge

u
an

st
@

- What happened to the roller after you pressed Play?


en
so

- Why did this happen to the roller?


.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 18
Description of what has to be done
- Define a hinge joint with the name "Roller_Body_HingeJoint" for the roller so that it rotates
around its own axis.

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
st

ve
@

eu
ul
en

t.k
- The axis vector specifies the direction/axis in space on which the element rotates.
so

→ To select the axis vector, select an element in a plane. The normal (perpendicular) to
the plane is then the axis vector.
en

In this particular case, it can be one of the following elements:


.la

ud
lo

st
ge

@
an

en
so

- The anchor point defines the point on which the axis vector lies.
la
l o.
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 19
Description of what has to be done
- What happened to the roller after you started the simulation routine?

be
n.
ve
- Why did this happen to the roller?

eu
ul
t.k
Note In spite of the hinge joint that has been created, if the roller falls into "nothing", then check
at the hinge joint as to whether you attached a rigid body. Also check that the attached rigid
body is joined as attachment.

en
- Simulate your roller and rotate it. You get the roller to turn by clicking on the roller with the
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

mouse, withdrawing it and then releasing it.

ud

be
- In the Runtime Inspector, monitor the speed with which the roller turns:
st

n.
@

ve
en

eu
so

ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la

- Congratulations – you have added your first physical attributes to a model. Continue on
the next page to do this in your "asm_conveyor_baseframe" assembly.
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 20
Description of what has to be done
- Open your "asm_conveyor_baseframe" assembly

- Simulate the assembly. Rotate both rollers.

be
- As later you will install a conveyor belt, the rollers should rotate in the same direction with

n.
the same speed.
→ Implement this with a gear coupling type (coupler)

ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
st

ve
@

eu
ul
en

t.k
so

- Select one axis as master, and the other as slave. Call it "Roller_Gear".
Note: Depending on how the rollers were installed, as master to slave ratio, either 1 or -1
en

must be entered!
.la

ud

- Simulate your assembly, and monitor how the two rollers turn in the same direction and
lo

with the same speed.


st
ge

- Insert a "Speed Control" with the name "Roller_SpeedControl" so that you can simply
control the axis speed.
@

- As object, select the roller axis. Enter a constant speed of 40 °/s.


an

en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 21
Description of what has to be done

be
- Start the simulation. As a result, you should now be able to see how the two axes rotate
with a constant speed of 40 °/s.
Note: You can monitor this very easily in the Physics Navigator.

n.
ve
eu
ul
.k
nt
de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

u
st

be
@

n.
ve
en

eu
so

ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 22
Task profile

be
n.
ve
eu
ul
Speed coupling between the Locating the light barrier and
Evaluating the light barrier

t.k
roller and belt carrier

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
st
Page 23 Introduction to MCD

ve
@

eu
Task profile
In this exercise, the belt, the carrier and a light barrier should be positioned in the
en

assembly. The conveyor belt should move the carrier to the light barrier. A new carrier
ul
should appear at regular intervals, and as soon as this interrupts the light barrier it should
.k
disappear or be deleted.
so

nt
.la

de
lo

u
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 23
Collision Body

be
n.
ve
Shape of collision bodies
• Different shapes can be chosen via the dropdown menu

eu
• There are seven different collision shapes available

ul
.k
• Box, Sphere, Cylinder and Capsule require less resources to
be simulated – but the geometrical accuracy is low

nt
• Convex, Multi Convex and Mesh need more resources to be

de
simulated – but the geometrical accuracy is high
(Recommendation: Choose Convex, Multi Convex and
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

Mesh wisely!)
u
st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
@

Page 24 Introduction to MCD

n.
en

ve
Collision Body
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:id1107702:xid896268:id1

eu
so

107710
.la

ul
Collision Body dialog box
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#goto:mechatronics:id1107742
t.k
lo
ge

en

Create a collision body


https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:id1107702:xid896268:id1
107710:id1107752
an

ud
st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 24
Overview of the different collision body shapes

be
n.
Type Geometrical accuracy Simulation performance

ve
Box Low High

eu
Sphere Low High

ul
Cylinder Low High

.k
Capsule Low High

nt
Convex Middle Low

Multi Convex Middle Low

de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

Mesh High Low

u
st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 25 Introduction to MCD
@

n.
ve
en

eu
so

ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 25
Determining a collision body

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
st
Page 26 Introduction to MCD

ve
@

eu
en

ul
so

.k
nt
.la

de
lo

u
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 26
Transport surface

be
Defines a transport surface for

n.
physics simulation. The layer of
the transport surface has to be a

ve
collision body

eu
ul
t.k
en
Note: In order that the carrier
can remain on the transport belt

ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

means that it must be defined as


collision body.
st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 27 Introduction to MCD
@

n.
ve
en

Transport Surface
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:id1107702:xid896268:id1
107754
eu
so

ul
la

Transport Surface dialog box


t.k

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#goto:mechatronics:id1107758
o.

en
el

Creating a transport surface


https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:id1107702:xid896268:id1
g

107754:id1107756
ud
an

st

Creating a curved transport surface


https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:id1107702:xid896268:id1
107754:xid851038
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 27
Collision Sensor

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 28 Introduction to MCD

ve
@

eu
Collision Sensor
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:xid896275:id1109637:id1
en

109639
ul
so

t.k
Collision Sensor dialog box
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#goto:mechatronics:id1109643
.la

en
lo

Creating a collision sensor


ud

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:xid896275:id1109637:id1
ge

109639:id1109641
st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 28
Object source

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
DI-VIRTCOM

n.
SITRAIN © Siemens AG 2018
Page 29 Introduction to MCD

ve
@

Object Source

eu
en

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:id1107702:xid896268:id1
107760
ul
so

t.k
Creating an object source to model material flow
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:id1107702:xid896268:id1
la

107760:id1107762
en
o.
el

ud

Object Source dialog box


https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#goto:mechatronics:id1107764
g

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 29
Object Sink

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM

n.
Page 30 Introduction to MCD
@

ve
Object Source
en

eu
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:id1107702:xid896268:id1
107760
so

ul
Creating an object source to model material flow
t.k
.la

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:id1107702:xid896268:id1
107760:id1107762
en
lo
ge

Object Source dialog box


ud

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#goto:mechatronics:id1107764
an

st

Object Sink
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:id1107702:xid896268:id1
@

107766
en

Object Sink dialog box


https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#goto:mechatronics:id1107770
so

Delete object replicas using Object Sink


.la

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:id1107702:xid896268:id1
107766:id1107768
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 30
Signal Adapter

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 31 Introduction to MCD

ve
@

Signal Adapter

eu
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:xid896229:xid640632:xid4
en

61702
ul
so

t.k
Signal Adapter dialog box
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#goto:mechatronics:xid464184
.la

en
lo

Creating a Signal Adapter


ud

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:xid896229:xid640632:xid4
ge

61702:xid464183
st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 31
Exercise: Install belt and couple speed

be
n.
ve
+ =

eu
ul
Speed coupling between the

t.k
roller and belt

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
st
Page 32 Introduction to MCD

ve
Task profile
@

The previous assembly should now be expanded to create a transport belt that can

eu
operate. Copy the configured individual parts for this exercise into the folder with your
assembly.
en

Archive location of the individual parts:


C:\Archives\DI-VIRTCOM\Chap_3\02_Exercise
ul
t.k
so

Attach the transport belt to your assembly. Align it using a constraint. Define the transport
surface for the belt. Also create as collision body.
en
.la

Create a signal adapter, which transfers the velocity of the roller on the transport belt. The
formula is as follows:
ud
lo

𝑃𝐼
𝑉𝐵 = 𝐷 ∗ ∗ 𝑉𝑅
ge

360°
st

𝑉𝐵 ≙ 𝑉𝑒𝑙𝑜𝑐𝑖𝑡𝑦 𝑏𝑒𝑙𝑡
an

𝐷 ≙ 𝐷𝑖𝑎𝑚𝑒𝑡𝑒𝑟 𝑟𝑜𝑙𝑙𝑒𝑟 (here, 50mm)


@

𝑉𝑅 ≙ 𝑉𝑒𝑙𝑜𝑐𝑖𝑡𝑦 𝑟𝑜𝑙𝑙𝑒𝑟

Note Observe the units when entering the formula. You can also determine a value without units
en

- and this is also accepted. Otherwise, the following message is displayed:


so
.la
lo
ge
an

A detailed description on how to do this is provided on the following pages.

SITRAIN DI-VIRTCOM
Training for Industry Page 32
Description of what has to be done
- From the exercise directory, copy the existing content to the folder with your assembly.
Exercise folder:

be
C:\Archives\DI-VIRTCOM\Chap_3\02_Exercise
To be copied:
workpiece_carrier.prt

n.
light_barrier_sensor.prt
light_barrier.prt

ve
conveyor_belt.prt
asm_light_barrier.prt

eu
- Attach the "conveyor_belt" transport belt to your assembly

ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st

n.
ve
@

- Position the transport belt using Assembly Constraints

eu
en

ul
so

t.k
la

en
o.
el

ud
g

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 33
Description of what has to be done
- Define the transport belt as Transport Surface and as Collision Body

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
st

ve
@

eu
en

ul
t.k
so

en
la
o.

ud
l
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 34
Description of what has to be done
- Create a Signal Adapter. The ratio between the roller and the transport belt is defined in
the signal adapter.

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
- Select the speed control for the roller Select speed as attribute
st

n.
@

ve
en

eu
so

ul
t.k
.la

en
lo

- Add the speed control parameters to the parameter list.


ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 35
Description of what has to be done
- Enter the conversion formula for the speed of the transport surface.

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
@

n.
ve
en

eu
so

ul
Note
.la

.k
The signal unit is used so that the result for the belt speed has no units. With this transfer,
either the correct unit is expected – or none. Otherwise, the following message is
lo

nt

displayed:
ge

e
ud
an

st
@

- Start the simulation and in the Runtime Inspector, monitor the transport belt speed.
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 36
Exercise: Move the tool carrier

be
n.
ve
eu
ul
t.k
Speed coupling between the Locating the light barrier and
Evaluating the light barrier
roller and belt carrier

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 37 Introduction to MCD

n.
@

ve
Task profile
en

In this exercise, the carrier and a light barrier should be positioned in the assembly. The

eu
conveyor belt should move the carrier to the light barrier. The carrier must be defined as
so

collision body.
ul
la

t.k
o.

en
el

ud
g
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 37
Description of what has to be done

be
- Attach the "workpiece_carrier" and the "asm_light_barrier" to your assembly.

n.
ve
eu
ul
- Position the carrier on the right-hand side, centered on the transport belt.

t.k
en
ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

st

be
@

n.
ve
en

eu
so

ul
la

t.k
o.

en
g el

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 38
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

SITRAIN
an an

Training for Industry


ge ge
lo l o.
.la la
so so
Description of what has to be done

en en
@ @
- Align the light barrier.

st st
ud ud

Page 39
en en
t.k t.k
ul ul
eu eu
ve ve
n. n.
be be

DI-VIRTCOM
Description of what has to be done
- Define the carrier as Rigid Body.

be
n.
ve
eu
ul
.k
nt
de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

u
st

be
@

n.
ve
en

eu
so

- Define the carrier as Collision Body.


ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 40
Description of what has to be done
- Define the carrier as Collision Body.

be
n.
ve
eu
ul
.k
nt
de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

u
st

be
@

n.
ve
en

eu
so

ul
.la

- Define the light barrier as Collision Sensor. As soon as a part moves through the light
t.k

barrier, the collision sensor is triggered, and you obtain a signal indicating that the part is in
lo

the light barrier.


en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 41
Description of what has to be done
- Start the simulation and in the Runtime Inspector observe how the light barrier signal
changes to "true" as soon as a part moves through the light barrier.

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
st

ve
@

eu
en

- Define the carrier as object source in order that parts are placed on the belt at regular
ul
intervals.
so

t.k
.la

en
lo

ud
ge

st
an

@
en
so
la
l o.
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 42
Description of what has to be done
- Define the collision sensor of the light barrier as object sink in order that the parts are

be
again deleted

n.
ve
eu
ul
t.k
- Start the simulation – your transport belt should now transport the carrier to the light

en
barrier.

ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

st

be
@

n.
ve
en

eu
so

ul
la

t.k
o.

en
g el

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 43
Overview of MCD elements – Mechanical

be
n.
Defines a rigid body for Creates an object source that

ve
physics simulation* copies physics objects during
simulation

eu
Defines a collision body for Creates an object sink that
physics simulation deletes copies of physics

ul
objects during simulation

t.k
Creates an object transformer
that transforms one rigid body

en
to another during simulation
* For better simulation it is recommended to
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

combine more individual bodies to create


ud

be
one rigid body!
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM

n.
Page 44 Introduction to MCD
@

ve
eu
en

ul
so

t.k
la

en
o.
el

ud
g
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 44
Overview of MCD elements – Joint Types

be
n.
ve
Connects objects along an
Connects objects at a shared point
axis of rotation

eu
Connects objects so that they are
free to slide and rotate relative to

ul
Connects objects along a
fixed linear axis each other while remaining in planar
contact

.k
Connects objects so they Connects objects along a rotatable

nt
cannot move relative to each linear axis so that they can rotate
other and move at a fixed ratio

de
Connects objects along a Creates a virtual axis joint that holds
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

rotatable linear axis kinematics information without

u geometry
st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
@

Page 45 Introduction to MCD

n.
en

ve
so

eu
.la

ul
t.k
lo
ge

en
an

ud
st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 45
Overview of MCD elements – Couplings

be
Rack and Pinion: connects the
motion of linear and rotary axes so

n.
that they move at a fixed ratio

ve
Gear: connects the motion of Electronic Cam: applies the values
two axes so that they move in from the electronic cam to the axis

eu
a fixed ratio control over time

ul
Mechanical Cam: connects Cam Profile: creates a cam profile of
the motion of two axes so that a slave axis relative to a master axis

t.k
they move according to a as defined by motion segments
function
Motion Profile: creates a motion

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

profile that defines the motion of a

be
slave axis relative to the motion of
the master axis
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
st
Page 46 Introduction to MCD

ve
@

eu
ul
en

t.k
so

en
.la

ud
lo
ge

st
@
an

en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 46
Overview of MCD elements – Controls

be
n.
Moves objects along an axis to

ve
given position (defined by a joint)

eu
Continuously moves objects along
an axis at a given speed (defined
by a joint)

ul
.k
Applies a force or torque to an axis
joint

nt
Defines a transport surface for

de
physics simulation.The layer of the
transport surface has to be a
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

collision body)

u
st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
@

Page 47 Introduction to MCD

n.
en

ve
eu
so
.la

ul
t.k
lo
ge

en
an

ud
st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 47
Overview of MCD elements – Sensors

be
n.
Defines a collision sensor for
physics simulation to provide

ve
feedback about interaction of
bodies

eu
Defines a position sensor for
physics simulation to provide

ul
feedback about angular or linear
position

t.k
Defines a velocity sensor for

en
physics simulation to provide
feedback about angular or linear
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

velocity

ud

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM

n.
Page 48 Introduction to MCD
@

ve
en

eu
so

ul
t.k
.la

en
lo
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 48
be
n.
ve
eu
ul
t.k
Mechanical Concept

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
SITRAIN © Siemens AG 2018 ud
Course: DI-VIRTCOM

n.
st

ve
@

eu
Contents Page
Learning objectives ................................................................................................................................... 2
en

Task, mechanical concept


ul
................................................................................................................ 3
Sliding Joint ..................................................................................................................................... 4
t.k
so

Creating a Position Control ............................................................................................................... 6


Using a Position Control in the simulation ......................................................................................... 7
en
.la

Fixed Joint to grip workpieces .......................................................................................................... 8


Collision Sensor to grip workpieces .................................................................................................. 9
ud
lo

Operation in the Sequence Editor to grip workpieces ........................................................................ 10


Creating a new operation in the Sequence Editor ............................................................................. 11
ge

st

Operation in the Sequence Editor to grip workpieces ........................................................................ 12


Exercise: Kinematize the gantry and test the concept ....................................................................... 13
an

Appendix ................................................................................................................................... 20
Evaluation – Gantt chart ................................................................................................................... 21
Additional exercise: Execute the automation using ........................................................................... 23
en

Additional task: Commission the completed 3-axis gantry with Gantt chart ........................................ 24
Additional task: Commission the completed 2-axis gantry with Gantt chart ........................................ 25
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 1
Learning objectives

be
Participants should ...

… be familiar with the possibilities of mechanical concepts.

n.
... be able to create a Sliding Joint.

ve
... be able to configure a "Pick and Place" operation.

... be able to kinematize basic objects.

eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Mechanical Concept

ve
Page 2
st

eu
@

ul
en

t.k
so

en
.la

ud
lo

st
ge

@
an

en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 2
Task, mechanical concept

be
n.
X axis

ve
eu
ul
Y axis

t.k
Z axis

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
st
Page 3 Mechanical Concept

ve
@

eu
Task profile
After the transport belt runs, a check should be made as to how the workpieces (circles)
en

can be inserted in the carrier. For this purpose, one colleague recommended a three-axis
ul
gantry. This should now be checked out. For the first concept, the axes are represented by
t.k
a cube. The cubes already have the dimensions that correspond to the original gantry to be
so

installed. The gantry and the tray with the workpieces have already been constructed by
your CAD draftsman. Your task is now to kinematize the gantry.
en
.la

ud
lo
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 3
Sliding Joint

be
Attachment for the sliding joint. The

n.
attachment moves towards the axis vector.

Basis for the sliding joint. The attachment is

ve
fixed to the basis. If the basis moves, then
the attachment also moves with it. The basis
is optional.

eu
The axis vector defines the direction of
motion.

ul
The limits specify the absolute motion
space. This is limited by the mechanical

t.k
system, e.g. end stop, end position.

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
st
Page 4 Mechanical Concept

ve
@

eu
Sliding Joint
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:id1107702:id1108342:id1
en

108394
ul
so

.k
Sliding Joint dialog box
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#goto:mechatronics:id1108398
nt
.la

de

Creating a Sliding Joint


lo

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:id1107702:id1108342:id1
u
ge

108394:id1108396
st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 4
Sliding Joint

be
n.
Using the Z axis
as example

ve
eu
Attachment Base Axis vector

ul
.k
nt
de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

u
st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
@

Page 5 Mechanical Concept

n.
en

ve
Sliding Joint
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:id1107702:id1108342:id1
so

108394
eu
.la

ul
Sliding Joint dialog box
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#goto:mechatronics:id1108398
t.k
lo
ge

Creating a Sliding Joint


en

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:id1107702:id1108342:id1
108394:id1108396
an

ud
st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 5
Creating a Position Control

be
n.
ve
Selecting the Sliding Joint to be used

eu
Position which should be traveled to with
the corresponding velocity

ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM

n.
Page 6 Mechanical Concept
@

ve
Position Control

eu
en

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:xid896275:xid899280:id11
09154
ul
so

t.k
Position Control dialog box
.la

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#goto:mechatronics:id1109158
en
lo

Creating a position control actuator


https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:xid896275:xid899280:id11
ud
ge

09154:id1109156
st
an

@
en
so
la
l o.
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 6
Using a Position Control in the simulation

be
Initial position 0mm Traverse Final position 400mm

n.
Using the position control -

ve
via the Runtime Inspector -
traverse from position 0mm

eu
to 400mm

ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 7 Mechanical Concept

ve
@

eu
en

ul
so

t.k
la

en
o.

ud
g el

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 7
Fixed Joint to grip workpieces

be
n.
The attachment is fastened to the basis
through the Fixed Joint

ve
As soon as it moves, the basis always takes
the attachment with it. If the basis is
released, then the attachment hangs fixed in

eu
space.

ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

Note: For a Fixed Joint, with which workpieces should be

be
gripped, the attachment is released. This is dynamically
ud attached in the simulation.

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
st
Page 8 Mechanical Concept

ve
@

eu
Fixed joint
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:id1107702:id1108342:id1
en

108418
ul
t.k
so

Fixed Joint dialog box


https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#goto:mechatronics:id1108422
en
.la

ud

Creating a Fixed Joint


lo

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:id1107702:id1108342:id1
108418:id1108420
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 8
Collision Sensor to grip workpieces

be
Note: The Collision Sensor is
only used as initiator. As soon
as it comes into contact with a

n.
workpiece, it triggers an
operation in the Sequence

ve
Editor, which attaches the
workpiece to the Fixed Joint.

eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
st
Page 9 Mechanical Concept

ve
@

eu
en

ul
t.k
so

en
.la

ud
lo
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 9
Operation in the Sequence Editor to grip workpieces

be
n.
Sequence Editor general

ve
Operation sequence to
allow the transport belt and

eu
the 3-axis gantry to run
automatically

ul
Operation to grip a

t.k
workpiece
Timing of the operation
during simulation

en
ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
@

Page 10 Mechanical Concept

n.
en

ve
Sequence Editor
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:id1109170
so

eu
.la

ul
.k
lo

nt
ge

e
an

ud
st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 10
Creating a new operation in the Sequence Editor

be
n.
ve
eu
ul
The parameterization

.k
Right-click
is realized on the next
page

nt
de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

u
st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 11 Mechanical Concept
@

n.
ve
en

eu
so

ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 11
Operation in the Sequence Editor to grip workpieces

be
Physical object that is to be influenced.
Here: the Fixed Joint

n.
Duration of the operation.
Here: 0.1 sec sufficient

ve
Parameters of the object to be influenced.
Here: the attachment. The property (attribute) is influence, triggered

eu
It is set as to how the parameters should be changed.
Here: The object (workpiece), sensed by the Collision Sensor, is attached.

ul
Collision Sensor of the Z axis

t.k
en
Condition when the operation should be executed. Without this, it
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

will be executed when simulation starts – and afterwards, no longer.

be
Here: The operation is always executed as soon as the Collision Sensor

ud triggers the Z axis (touches a workpiece)

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
st
Page 12 Mechanical Concept

ve
@

eu
Operation
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:xid896264:id1101473:id1
en

109424
ul
so

.k
Operation dialog box
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#goto:mechatronics:id1109428
nt
.la

de
lo

u
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 12
Exercise: Kinematize the gantry and test the concept

be
n.
ve
X axis

eu
ul
.k
Y axis

nt
Z axis

de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 13 Mechanical Concept

n.
@

ve
Task profile
en

The constructed assembly comprising conveyor and gantry is in the following folder. Copy
the files to your exercise directory.
eu
so

C:\Archives\DI-VIRTCOM\Chap_5\01_Start
ul
Kinematize the axis gantry. The corresponding axes must be defined as Rigid Body. Install
.la

t.k

the Sliding Joint at the appropriate location. To control the position of the Sliding Joint, for
each axis you require a Position Control.
lo

en

Your gantry has now been kinematized. The only thing that is still missing is the gripping
ge

function for the Z axis. Implement this function. To do this you require a Fixed Joint,
ud

Collision Sensor and an operation in the Sequence Editor.


Good luck!
an

st
@
en
so

A detailed description on how to do this is provided on the following pages.


.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 13
Description of what has to be done
- From the following start folder, copy the complete content to your exercise directory.
C:\Archives\DI-VIRTCOM\Chap_5\01_Start

be
- In the NX MCD, open file "asm_system_concept_three_axis"

- Define the elements for the X, Y and Z axes as Rigid Body

n.
ve
eu
ul
- Z axis

t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
st

ve
@

eu
en

ul
so

t.k
- Y axis
.la

en
lo

ud
ge

st
an

@
en

- X axis
so
la
l o.
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 14
Description of what has to be done
- Now define the Sliding Joint for the axes.

be
n.
ve
eu
ul
t.k
en
ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

st

be
@

n.
- Z axis attachment - Basis
en

ve
so

eu
.la

ul
t.k
lo
ge

en
an

ud

- Vector
st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 15
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

SITRAIN
an an

Training for Industry


ge ge
lo lo
.la .la
- Basis

- Vector
so so
Description of what has to be done

en en
- Y axis attachment

@ @
st st
ud u

Page 16
en de
t.k nt
.k
ul ul
eu eu
ve ve
n. n.
be be

DI-VIRTCOM
Description of what has to be done
- X axis attachment

be
n.
ve
eu
ul
t.k
- Vector

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st

n.
@

ve
en

eu
- Now attach a Position Control for each axis. Set the Speed to 150 mm/s
so

ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 17
Description of what has to be done
- Start the simulation and test traversing the axes in the Runtime Inspector.

- Now, the only thing that is missing is the "Pick and Place" operation. To do this, define the
Collision Sensor, the Fixed Joint and the operation in the Sequence Editor.

be
- Collision Sensor

n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
ve
st

eu
@

ul
en

t.k
so

en

- Fixed Joint
.la

ud
lo

st
ge

@
an

en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 18
Description of what has to be done
- Operation

be
n.
ve
eu
ul
t.k
Fixed Joint of the Z axis

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
st

ve
@

Collision Sensor of the Z axis

eu
en

ul
so

t.k
.la

en
lo

ud

- Start the simulation and test the "Pick and Place" operational sequence in the Runtime
ge

Inspector. Allow the gripped workpiece only to fall on the belt. You require the following
objects:
st

Position Controls of the X, Y, Z axes


an

Fixed Joint of the Z axis


@

- Proceed as follows:
Traverse the X axis to 310 mm
en

Traverse the Z axis to -10.5 mm


The Collision Sensor triggers, the part is attached to the Fixed Joint.
Traverse the Z axis to 0 mm
so

Traverse the X axis to 70 mm


The Z axis with the gripped workpiece is now positioned above the belt.
.la

Deactivate the Fixed Joint of the Z axis


The workpiece falls onto the belt.
lo

Note
If the Z axis moves above the workpiece and does not attach this, check whether the Fixed
ge

Joint of the Z axis is activated.


an

SITRAIN DI-VIRTCOM
Training for Industry Page 19
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

SITRAIN
Page 20
an an
g

Training for Industry


Appendix

ge

SITRAIN © Siemens AG 2018


lo el
.la o.
la
so so
en en
@ @
st st
ud ud

Page 20
en en
t.k t.k
ul ul
eu eu
ve ve
n. n.
be be
Mechanical Concept
DI-VIRTCOM

DI-VIRTCOM
Evaluation – Gantt chart

be
n.
ve
Linked operation

eu
Triggered operation

ul
Time controlled operation

.k
nt
de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

u
st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
@

Page 21 Mechanical Concept

n.
en

ve
so

eu
.la

ul
t.k
lo
ge

en
an

ud
st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 21
Evaluation – Gantt chart

be
• Possibility to control objects in MCD

n.
• Creating operations for actuators, sensors and
constraints

ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

Operation
ud
Elapsed time

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM

n.
Page 22 Mechanical Concept
@

ve
eu
en

ul
so

t.k
la

en
o.
el

ud
g
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 22
Additional exercise: Execute the automation using

be
the Gantt chart

n.
ve
eu
ul
t.k
en
ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
@

Page 23 Mechanical Concept

n.
en

ve
Task profile
Generate the operations to automate your "Pick and Place" model in the MCD. Start with
so

the operations, such as starting and stopping the belt at the light barrier. This exercise
eu
serves to check a possible automation in the MCD. This is used to evaluate mechanical
concepts at an early phase.
.la

ul
As you have seen in the previous task, you will occasionally require triggered operations,
for example to grip parts.
.k
lo

Try it out for yourself!


nt
ge

e
an

ud
st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 23
Additional task: Commission the completed 3-axis gantry
with Gantt chart

be
n.
ve
Open and simulate the

eu
mechanical concept

ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
st
Page 24 Mechanical Concept

ve
@

eu
Task profile
The mechanical concept "_mcd_concept_three_axes_gantt" is ready and was
en

automated with a Gantt chart. Open the model supplied and simulate it.
C:\Archives\DI-VIRTCOM\Chap_5\02_Exercise
ul
so

.k
Look at the operations to grip the workpieces and the operations for raising and lowering
the Z axis.
nt
.la

de
lo

u
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 24
Additional task: Commission the completed 2-axis gantry
with Gantt chart

be
n.
ve
Open and simulate the

eu
mechanical concept

ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 25 Mechanical Concept
st

ve
@

eu
Task profile
A colleague suggested that the "Pick and Place" operation would also be possible with a 2-
ul
axis gantry. He already automated your model with a Gantt chart.
en

The mechanical concept "_mcd_concept_two_axes_gantt" is ready and was automated


t.k
with a Gantt chart. Open the model "_mcd_concept_two_axis_gantt" supplied and
so

simulate it.
C:\Archives\DI-VIRTCOM\Chap_5\02_Exercise
en
.la

ud

Discussion
lo

Form groups with a maximum of four persons to a group. Discuss which mechanical
concept of the axis gantry you wish to use in your system.
st
ge

When doing this, consider influencing factors such as costs, material, output (yield),
probability of failure and energy requirement, for example.
@

Justify the reason why you wish to use a particular gantry.


an

en
so
la
l o.
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 25
be
n.
ve
eu
ul
Signal coupling

t.k
between PLCSIM Adv.

en
and NX MCD
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
SITRAIN © Siemens AG 2018 Course: DI-VIRTCOM
st

n.
@

ve
Contents Page
en

eu
Learning objectives ................................................................................................................................. 2
Task profile: Establish signal exchange between a .......................................................................... 3
so

ul
Signal Adapter ................................................................................................................................. 4
Signal Adapter – Parameters ........................................................................................................... 5
t.k
.la

Signal Adapter – Signals ................................................................................................................. 6


Signal Adapter – Formulas .............................................................................................................. 7
en
lo

External Signal Configuration – General .......................................................................................... 8


Configuration for external signals – PLCSIM Adv. ............................................................................. 9
ge

ud

Signal Mapping ................................................................................................................................. 10


Overview of mapped signals ............................................................................................................ 12
an

st

Exercise: Signal exchange between ................................................................................................ 13


Exercise: Remove the vacuum and ................................................................................................. 18
@

Appendix ................................................................................................................................. 22
Replace Component ................................................................................................................................. 23
Additional task: Replacing a tested concept Portal by a real Portal ................................................... 24
en

Exercise: ................................................................................................................................. 25
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 1
Learning objectives

be
Participants should ...

… be familiar with the concept for exchanging signals between NX MCD

n.
and PLCSIM Advanced

ve
... be able to create signals in NX MCD for external communication

... be able to establish signal exchange between NX MCD and


PLCSIM Advanced

eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2017 DI-VIRTCOM
st
Page 2 Signal coupling between PLCSIM Adv. and NX MCD

ve
@

eu
en

ul
t.k
so

en
.la

ud
lo
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 2
Task profile: Establish signal exchange between a
virtual machine model and the controller

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st

n.
SITRAIN © Siemens AG 2017 DI-VIRTCOM
Page 3 Signal coupling between PLCSIM Adv. and NX MCD

ve
@

Task profile

eu
The 3 axis gantry concept has now been adequately mechanically tested in MCD. Your
en

task is now to configure a connection to PLCSIM Adv. in the MCD. For this purpose, you
ul
have been given a TIA Portal test project. An HMI has been configured in this test project,
so

which you can use to traverse the axes. Establish the signal connection and test this.
t.k

You must do the following to set up communications between the MCD and external
.la

signals:
en

1. Use the Signal Adapter command to generate MCD signals.


lo

2. Set up the external signal environment.


ud

3. Use the External Signal Configuration command to configure the interface.


ge

4. Use the Signal Mapping command to assign your signals.


st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 3
Signal Adapter

be
n.
ve
eu
Select physics object and its parameters

ul
Overview of physics object parameters

t.k
Signals for external connections (for example to

en
PLC SIM Advanced)
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

Formula editor to create a conjunction between

be
external signals and physics object parameters
ud

n.
st
SITRAIN © Siemens AG 2017 DI-VIRTCOM
Page 4 Signal coupling between PLCSIM Adv. and NX MCD

ve
@

Signal Adapter

eu
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:xid896229:xid640632:xid4
en

61702
ul
so

t.k
Signal Adaptor dialog box
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#goto:mechatronics:xid464184
la

en
o.

Creating a Signal Adapter


ud

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:xid896229:xid640632:xid4
el

61702:xid464183
g

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 4
Signal Adapter – Parameters

be
n.
ve
eu
Selecting an object Selecting parameters of
Here: Position Controls the object

ul
.k
Adding parameters

nt
de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
st
SITRAIN © Siemens AG 2017 DI-VIRTCOM
Page 5 Signal coupling between PLCSIM Adv. and NX MCD

n.
@

ve
en

eu
so

ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 5
Signal Adapter – Signals

be
n.
Create the signals here for external communication

ve
Adding signals

eu
Deleting signals

ul
Moving signals up/down

.k
nt
Note: First define the attribute (input/output, data type, etc.)

de
before you assign a name!
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

u
st

be
SITRAIN © Siemens AG 2017 DI-VIRTCOM
@

Page 6 Signal coupling between PLCSIM Adv. and NX MCD

n.
en

ve
eu
so
.la

ul
t.k
lo
ge

en
an

ud
st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 6
Signal Adapter – Formulas

be
MCD inputs MCD signals

n.
External signals

ve
eu
ul
MCD outputs MCD signals

t.k
External signals

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st

n.
SITRAIN © Siemens AG 2017 DI-VIRTCOM
Page 7 Signal coupling between PLCSIM Adv. and NX MCD

ve
@

eu
en

ul
so

t.k
.la

en
lo

ud
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 7
External Signal Configuration – General

be
Signal coupling
options

n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2017 DI-VIRTCOM
Page 8 Signal coupling between PLCSIM Adv. and NX MCD
st

ve
@

eu
Configuration for external signals
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#goto:mechatronics:xid1355287
ul
en

t.k
External Signal Configuration dialog box – PLCSIM Adv tab
so

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help#uid:index_mechatronics:xid896229:xid640632:xid1
074649:xid1398867:xid1398548:xid1367231
en
.la

ud

Configuring a PLCSIM Adv instance


lo

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help#uid:index_mechatronics:xid896229:xid640632:xid1
074649:xid1398867:xid1398548:xid1398567
st
ge

Configuring PLCSIM Adv signals


an

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help#uid:index_mechatronics:xid896229:xid640632:xid1
074649:xid1398867:xid1398548:xid1398557
en
so
la
l o.
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 8
Configuration for external signals – PLCSIM Adv.

be
After started PLCSIM Adv. search for

n.
instances

Found PLCSIM Adv. instances

ve
Filter option:

eu
• Only inputs and outputs
• Only bit memories (flags)
• Only DB variables

ul
• Inputs/outputs and bit memories
• Inputs/outputs, bit memories and

t.k
DB variables

Found variables

en
Selected variables for the MCD
PLCSIM Adv. coupling
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
SITRAIN © Siemens AG 2017 DI-VIRTCOM
Signal coupling between PLCSIM Adv. and NX MCD

n.
Page 9
@

ve
en

eu
so

ul
t.k
la
o.

en
el

ud
g
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 9
Signal Mapping

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
DI-VIRTCOM

n.
SITRAIN © Siemens AG 2017
Page 10 Signal coupling between PLCSIM Adv. and NX MCD

ve
@

Signal Mapping

eu
en

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:xid1070788
ul
so

Signal Mapping dialog box


t.k
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:xid896229:xid640632:xid1
074649:xid1405360:xid1074631
la

en
o.
el

ud
g

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 10
Signal Mapping

be
Selecting the communication

n.
interface

Selecting the PLCSIM Adv. instance

ve
to be used

MCD variables PLCSIM Adc. variables

eu
MCD and PLCSIM Adv. Selecting
and connecting variable

ul
Automatic connection is possible
Here, the variables must have the

t.k
same name

en
Overview of mapped variables Variables should only be mapped 1x.
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud Check as to whether each MCD


variable only has one connection

be
st
SITRAIN © Siemens AG 2017 DI-VIRTCOM

n.
Page 11 Signal coupling between PLCSIM Adv. and NX MCD
@

ve
Signal Mapping
en

eu
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:xid1070788
so

ul
Signal Mapping dialog box
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:index_mechatronics:xid896229:xid640632:xid1
t.k
.la

074649:xid1405360:xid1074631
en
lo
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 11
Overview of mapped signals

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
SITRAIN © Siemens AG 2017 DI-VIRTCOM
Page 12 Signal coupling between PLCSIM Adv. and NX MCD
@

n.
ve
en

eu
so

ul
.la

.k
lo

nt
ge

e
ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 12
Exercise: Signal exchange between

be
NX MCD and PLCSIM Advanced

n.
ve
eu
ul
t.k
en
ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

st

be
SITRAIN © Siemens AG 2017 DI-VIRTCOM
@

Page 13 Signal coupling between PLCSIM Adv. and NX MCD

n.
ve
en

Task profile
The 3 axis gantry concept has now been adequately mechanically tested in MCD. Your

eu
task is now to configure a connection to PLCSIM Adv. in the MCD. For this purpose, you
so

have been given a TIA Portal test project. An HMI has been configured in this test project,
which you can use to traverse the axes. Establish the signal connection and test this.
ul
la

The TIA Portal project is located in the following folder:


C:\Archives\DI-VIRTCOM\Chap_6\02_Exercise\TIA
t.k
o.

Open project "TIA_Concept_V15", and load the PLC into the PLCSIM Advanced. Also
el

en

simulate the HMI. Create the communication to the MCD model, and traverse the axes
using the HMI.
g

ud
an

The MCD assembly “asm_system_concept_three_axes” is located in the following folder:


C:\Archives\DI-VIRTCOM\Chap_6\01_Start
st

You must do the following to set up communications between the MCD and external
signals:
@

1. Use the Signal Adapter command to generate MCD signals.


2. Set up the external signal environment.
3. Use the External Signal Configuration command to configure the interface.
en

4. Use the Signal Mapping command to assign your signals.


so
.la

A detailed description on how to do this is provided on the following pages.


lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 13
Description of what has to be done

be
- You can find the TIA Portal project under the following path
C:\Archives\DI-VIRTCOM\Chap_6\02_Exercise\TIA
- Dearchive the "TIA_Concept_V15" project.

n.
- Load the PLC into the PLCSIM Advance instance with name "PLC_Concept"
- Simulate the configured HMI in the project.

ve
- Open the MCD assembly “asm_system_concept_three_axes”, this located in the

eu
following folder:
C:\Archives\DI-VIRTCOM\Chap_6\01_Start

ul
- Create the required signal coupling from MCD to the PLCSIM Advanced an. To do this,
proceed as follows:

t.k
1. Use the Signal Adapter command to generate MCD signals.

en
2. Set up the external signal environment.
3. Use the External Signal Configuration command to configure the interface.
4. Use the Signal Mapping command to assign your signals.

ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

st
1. Create the signal adapter.

be
@

n.
en

ve
so

eu
.la

ul
lo

.k
ge

- Add all of the required parameters. Assign these with meaningful names.
e nt
an

ud
st

Selecting an object Selecting parameters


of the object
@

Here: Position Controls

- The following are required:


en

X axis (Position Control) – speed, position


Y axis (Position Control) – speed, position
Z axis (Position Control) – speed, position
so

Conveyor (Speed Control) – speed


Light barriers (Rigid Body) – triggered
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 14
Description of what has to be done
1. Create the signal adapter.

- Create signals for the PLCSIM Advanced.

be
n.
ve
- Add 10 signals. The signals that are required can be taken from the TIA Portal project.

eu
These are declared in function block "MCD_Interface", in the static area.

ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
st

ve
@

eu
en

Note
ul
In MCD, for data type "real", data type "double" is used.
t.k
so

- You have now created the parameters of the physics objects in the Signal Adapter. Also
the signals for an external coupling. Now connect the parameters with the signals for the
en
la

coupling.
o.

ud
l
ge

st
an

@
en
so
.la

Note
lo

Place a checkmark against the parameters and/or signals that are to be defined using the
formulas.
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 15
Description of what has to be done
2. Set up the external signal environment.

be
- This has been done when you have loaded the PLC program into the PLCSIM Advanced
instance "PLC_Concept"

n.
3. Use the External Signal Configuration function to configure the interface to PLCSIM

ve
Advanced in MCD.

eu
- Create the configuration for the external signals.

ul
.k
nt
de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
st

n.
@

- Search for PLCSIM Advanced instance "PLC_Concept". In the instance that you found,

ve
select the signals that you wish to use.
en

eu
so

ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 16
Description of what has to be done
4. Signal Mapping

- Assign the MCD signals – that you created in the Signal Adaptor – to the PLCSIM
Advanced signals – that you selected for the external signal configuration – using

be
Signal Mapping.

n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
ve
st

eu
@

ul
en

t.k
so

en
.la

ud
lo

st
ge

@
an

- Finish the signal assignment.

- Start the simulation in the MCD, and control your model using the HMI.
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 17
Exercise: Remove the vacuum and
locate the workpiece that had been picked-up

be
n.
ve
eu
ul
t.k
en
The pick & place operation should now also be
able to be controlled from the HMI. This
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

simulates generating and removing the vacuum

be
ud

n.
DI-VIRTCOM
st
SITRAIN © Siemens AG 2017
Page 18 Signal coupling between PLCSIM Adv. and NX MCD

ve
@

eu
Task profile
Up until now it was possible that you could grip the workpiece, but you could not place it
en

down again. Configure the functionality that is necessary to place down the workpieces in
the HMI, in the PLC and in the MCD model.
ul
so

t.k
You must make the following adaptations:
- HMI: Create a button to switch on/switch off the picker/vacuum.
.la

en

- PLC: Create a "PickerVacuum" variable in the HMI interface, as well as in the MCD
interface. Connect the variable with the HMI. Download the PLC into the PLCSIM
Advanced instance.
lo

ud

- MCD model: Create a new "PickerVacuum" signal, and couple this with PLCSIM
ge

Advanced. Create a new operation in the Sequence Editor to release the workpiece.
st
an

@
en
so
la

A detailed description on how to do this is provided on the following pages.


l o.
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 18
Description of what has to be done

Adapting the PLC


- Create a new "PickerVacuum" variable – bool data type – in both PLC data types

be
"UDT_Actuators_HMI" and "UDT_Actuators".

- Adapt function block "HMI_Interface" so that the signal for the vacuum from the HMI is

n.
transferred to the MCD.

ve
- Load the PLC into the PLCSIM Advance instance.

eu
Adapting the HMI
- Insert a button on the HMI – this button will be used to switch-on and switch-off the
vacuum.

ul
- Link the signal from the PLC with this button that you have just created.

t.k
- Simulate the HMI, and in the PLC, monitor as to whether the signal for the vacuum is

en
received at the variable for the MCD.
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
Adapting the MCD model ud
- Expand the Signal Adapter to include the "PickerVacuum" signal for the vacuum.

n.
st

ve
@

eu
ul
en

t.k
so

en
.la

- Execute the configuration for external signals (External Signal Configuration) and here,
ud

select the signal from PLCSIM Advanced instance for the vacuum.
lo

st
ge

@
an

en
so
la
l o.
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 19
Description of what has to be done

be
Adapting the MCD model
- Using Signal Mapping, now map signal "PickerVacuum" in the signal adapter
"Coupling_PLCSIM_Adv" with the signal from the PLCSIM Advanced instance

n.
"PLC_Concept".

ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
@

n.
ve
en

eu
so

ul
- In the Sequence Editor, create a new operation to release the workpiece.
.la

.k
lo

nt
ge

e
ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 20
Description of what has to be done
- Simulate the MCD model and control it using the HMI. Test the release function.

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
st

ve
@

eu
ul
en

t.k
so

en
.la

ud
lo

st

Note
ge

- In order that workpiece is not drawn-up/gripped if the Collision Sensor comes into
contact with anything. You can extend the trigger condition for the operation in the
@
an

Sequence Editor for gripping so that it is only executed if the vacuum is also active.
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 21
Appendix

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
SITRAIN © Siemens AG 2017 DI-VIRTCOM
Page 22 Signal coupling between PLCSIM Adv. and NX MCD

n.
@

ve
en

eu
so

ul
la

t.k
o.

en
el

ud
g
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 22
Replace Component

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
SITRAIN © Siemens AG 2017 DI-VIRTCOM

n.
Page 23 Signal coupling between PLCSIM Adv. and NX MCD
@

ve
Replacing a component

eu
en

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:xid1128417:index_assemblies:id665941:func_
details_comp_substitute
ul
so

"Replace component" dialog window


t.k
la

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#goto:assemblies:comp_replace_op
en
o.

Replacing a component by a related component


el

https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:xid1128417:index_assemblies:id665941:func_
ud

details_comp_substitute:func_details_comp_replace_ht
g
an

st

Replacing a component by a non-related component


https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_help/#uid:xid1128417:index_assemblies:id665941:func_
@

details_comp_substitute:xid385653
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 23
Additional task: Replacing a tested concept Portal by a real
Portal

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2017 DI-VIRTCOM

ve
Page 24 Signal coupling between PLCSIM Adv. and NX MCD
st

eu
@

Task profile
The mechanical concept has now been adequately tested, and the CAD drawing of the
ul
implemented portal should now be incorporated. You have received the assembled Portal
en

from your CAD engineer.


t.k
C:\Archives\DI-VIRTCOM\Chap_6\02_Exercise\MCD
Copy the data into the folder with your current concept.
so

en

In the first step, you must assign parts of the Portal to the axes so that when subsequently
.la

exchanging the Portal, the physics of the concept Portal, which you generated, can be
ud

transferred to the Portal that has been implemented.


lo

In the second step, replace the concept Portal using the Replace Component function.
When doing this, assign the physics saved in the concept Portal to the portal that has been
st
ge

implemented with the parts that you defined for the axes.
In the third step, adapt the Collision Sensor (that is still too large) to the new size of the
@

vacuum (section) element.


an

Then test the mechanical model using PLCSIM Advanced and the HMI.
en
so
.la

A detailed description on how to do this is provided on the following pages.


lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 24
Description of what has to be done
- From the exercise folder, copy the implemented Portal into the folder with your concept

be
model.
C:\Archives\DI-VIRTCOM\Chap_6\02_Exercise\MCD

n.
- Start NX and open the "asm_realization_portal" Portal that has been implemented.

ve
- For each axis (X, Y, Z axis), create a new assembly in the assembly of the Portal that has
been implemented. Assign the individual parts to the axes.

eu
Ensure that you save the new assembly to the same folder in which the Portal is
also located.

ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st

n.
@

ve
en

eu
so

- Carefully consider which parts must belong to which axis.


ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo

- Save and close the model of the Portal that has been implemented.
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 25
Description of what has to be done
- Open your concept model.
- Save the model under the "_mcd_realization_portal_vc" name.
- Now open the Assembly Navigator. Here, execute the Replace Component function on

be
the "asm_portal_three_axes" concept portal.

n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
st

ve
@

eu
ul
en

t.k
so

- Select the "asm_realisation_portal" assembly for replacement.


en

- There are still no physics in the selected Portal. Therefore, assign the Replacement
.la

Assistant to the physics. (The following diagram is shown on the subsequent page in an
ud

even bigger format.)


lo
ge

st
@
an

en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 26
Description of what has to be done

be
- For the Rigid Body, select the axis that you prepared.

n.
ve
eu
ul
.k
nt
de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

u
st

be
@

n.
ve
en

eu
so

ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so

- The Sliding Joints are already linked with the corresponding Rigid Body.
Here, just select the corresponding motion vector.
.la

- The Collision Sensor also belongs to the Z axis.


- Close the wizard.
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 27
Description of what has to be done
- Adapt the Collision Sensor to the size of the vacuum element with which the workpieces
are to be gripped.

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
st

ve
@

eu
en

- Start the simulation and control the model with the new Portal using your PLCSIM
Advanced instance and HMI simulation.
ul
.k
so

nt
.la

de
lo

u
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 28
be
n.
ve
eu
ul
Virtual Commissioning

t.k
with NX MCD and

en
PLCSIM Advanced
ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

st
SITRAIN © Siemens AG 2018 Course: DI-VIRTCOM

be
@

n.
ve
en

Contents Page
Learning objectives ................................................................................................................................... 2

eu
so

Portfolio for VC for production cells .................................................................................................. 3


BASIC Virtual Commissioning .......................................................................................................... 4
ul
la

Measuring ................................................................................................................................... 5
Exercise: Subsequent virtual commissioning of the ......................................................................... 6
t.k
o.

Task profile: Subsequent virtual commissioning of the ..................................................................... 7


el

en
g

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 1
Learning objectives

be
Participants should ...

… be able to measure distances/clearances in the virtual machine model.

n.
... perform virtual commissioning with an NX MCD – PLCSIM Advanced
coupling.

ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 2 Virtual Commissioning with NX MCD and PLCSIM Advanced
st

ve
@

eu
ul
en

t.k
so

en
.la

ud
lo

st
ge

@
an

en
so
la
l o.
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 2
Portfolio for VC for production cells

be
Virtual machine model

Electrical model and

n.
behavioral model
Physical & kinematic model Automation model
→ Active components (e.g. drives,
→ Mechanical components → PLC program logic and visualization
valves) and peripheral

ve
behavior/response

eu
BASIC VC
for SIMATIC NX Mechatronic Concept Designer* PLCSIM Advanced* PLCSIM Advanced

S7-1500

ul
applications * Not always required

t.k
ADVANCED VC PLCSIM Advanced

en
for high-end NX Mechatronic Concept Designer SIMIT
OEMs Controller hardware
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 3 Virtual Commissioning with NX MCD and PLCSIM Advanced

ve
@

eu
en

ul
so

t.k
.la

en
lo

ud
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 3
BASIC Virtual Commissioning
for SIMATIC S7-1500 applications

be
n.
BASIC VC
for SIMATIC NX Mechatronic Concept Designer* PLCSIM Advanced* PLCSIM Advanced

ve
S7-1500
applications * Not always required

eu
Restriction
Possibilities
• Technology objects – only in the simulation mode

ul
• Simulation of simple applications
• Fault simulations that cannot be easily implemented
• Can be quickly implement
(e.g. fault in the drive, wire breakage)

t.k
• Simple signal exchange
• Manual setting up of signal couplings

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 4 Virtual Commissioning with NX MCD and PLCSIM Advanced

ve
@

eu
en

ul
so

t.k
.la

en
lo

ud
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 4
Measuring

be
n.
ve
Preselection of which object
should be measured.

eu
Selection of the object with
the Courser

ul
List of selected objects

t.k
Choice of measuring method
e.g.:
• Free

en
• Pair of objects
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

• incremental

be
Filter for the measurements
obtained
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
st
Page 5 Virtual Commissioning with NX MCD and PLCSIM Advanced

ve
@

eu
en

ul
t.k
so

en
la
o.

ud
l
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 5
Exercise: Subsequent virtual commissioning of the
PLC program – Implementation of the automatic mode

be
n.
ve
eu
ul
t.k
en
BASIC VC
for SIMATIC NX Mechatronic Concept Designer PLCSIM Advanced* PLCSIM Advanced
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

S7-1500
applications
ud * Not used

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 6 Virtual Commissioning with NX MCD and PLCSIM Advanced

n.
@

ve
Task profile
en

As programmer, you then commission your program part of the system for using the

eu
workpieces. You have received a digital mechanical model and a PLC program for this
so

reason. Your task is to measure the parameters for gripping/releasing the workpieces from
ul
the virtual model – and entering these into the TIA Portal project.
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 6
Description of what has to be done

be
- Open the TIA Portal and de-archive the TIA project from the following folder:
C:\Archives\DI-VIRTCOM\Chap_7\01_Start\TIA

n.
- Load the PLC project into a PLCSIM Advanced instance with the name "PLC_VC_Final".

ve
- Close all of the opened assemblies in NX
- In NX, open assembly "_mcd_realization_portal_vc" from the following folder:

eu
C:\Archives\DI-VIRTCOM\Chap_7\01_Start\MCD

ul
- In the assembly, the signals for the external communication in the signal adaptor
"VirtualCommissioning_SignalAdapter" have already been created.

t.k
Link these signals with the signals from the PLCSIM Advanced instance that you created.
→ Signal Mapping
Note

en
This is not a PLC testprogram where we use the DB signals. Use now the I/Os in the PLC.

ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

st

be
@

n.
en

ve
so

eu
.la

ul
lo

.k
ge

e nt
an

ud
st
@

- Start in TIA Portal the HMI simulation


- Start in the HMI the Automatikmode
- Start the simulation in the NX MCD.
en

- Why do the axes move away so quickly?


so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 7
Note

be
For the signals that have been created, it is important to note the units!
For example, if meter is specified as unit at one signal and from PLCSIM Advanced a
position of 60 is transferred as signal, then NX MCD interprets this as 60 meters → 60 000

n.
millimeters. Therefore, specify unitless (without units).

ve
Description of what has to be done
- In the TIA Portal, start the simulation of the HMI.

eu
- Start the automatic mode in the HMI
- Start the NX MCD simulation.

ul
Monitor the conveyor and the carrier. The carrier should stop as soon as the center light
barrier responds.

t.k
Why does the belt not immediately stop once the carrier has triggered the light barrier. (the
behavior/response is correctly programmed in the TIA Portal project.)

en
ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

st

be
@

n.
en

ve
so

eu
.la

ul
.k
lo

nt
ge

e
an

ud
st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 8
Description of what has to be done

be
- Install a second, center light barrier. This additional light barrier should reduce the speed
of the belt before the carrier reaches the actual light barrier, which then stops the belt.

n.
- To do this, unzip the group of 3 light barriers

ve
eu
ul
.k
nt
de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

u
st

be
@

n.
- Select the center light barrier and execute the Move Component function.

ve
en

eu
so

ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 9
Description of what has to be done
- Make the following settings, and press the Create Copy button.

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
st

ve
@

eu
ul
en

t.k
so

- Now move the copy of the light barrier


en
.la

ud
lo

st
ge

@
an

en
so
la
l o.
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 10
Description of what has to be done
- Create parameter "LightBeamMiddleRight" of the Collision Sensor of the new light barrier

be
in signal adapter "VirtualCommissioning_SignalAdapter".

- For the new light barrier, create a new signal "LightBeam_MiddleRight" in signal adapter

n.
"VirtualCommissioning_SignalAdapter".

ve
- Link signal "LightBeam_MiddleRight" with the Collision Sensor of the new light barrier.

eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st

n.
@

ve
en

eu
so

ul
.la

t.k
lo

en
ge

ud
an

st

- Then map the new signal with the variable from PLCSIM Adv. instance.
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 11
Description of what has to be done
- Adapt the sequencer in the PLC program so that the new light barrier is taken into
account. You can find the sequencer in function block "Automatic_Mode".

be
n.
ve
eu
ul
t.k
- Start the PLCSIM Advanced instance so that all of the values are reset.

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

- Start the automatic mode on the HMI.

be
- Start the NX MCD simulation.
ud

n.
→ As a result, the carrier should now directly stop at the left-hand center light barrier.
st

ve
@

eu
ul
en

t.k
so

en
.la

ud
lo

st
ge

@
an

en
so
la
l o.
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 12
Description of what has to be done
- Now make yourself familiar with the principle of operation of the sequencer.

be
- In the sequencer, adapt step 70. As the program code was written, it was still not clear as
to which position the Z axis should traverse after picking (the workpiece). The sequencer
has now been completed.

n.
- You must adapt the parameters for the positions so that the gantry traverses to the

ve
correct positions to grip and release. You can find the parameters in the data block
"Control_Auto".

eu
You can read out the individual parameters from the NX model. To do this, use the
measurement instruments in the Analysis toolbar

ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
Note
st
To make it easier to test your changes, bring the PLC into the stop state and then back into
the run state

n.
@

ve
en

eu
so

ul
t.k
.la

en
lo
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 13
be
n.
ve
eu
ul
Simulating the behavioral

t.k
model with SIMIT

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
SITRAIN © Siemens AG 2018 ud
Course: DI-VIRTCOM

n.
st

ve
@

eu
Content Page
Learning objectives.......................................................................................................................
ul 2
en

SIMATIC Machine Simulator: Software in the Loop .................................................................... 3


t.k
Hardware in the Loop ................................................................................................................... 8
so

Virtual Commissioning SIL – HIL ................................................................................................... 13


en
.la

Simulation based Engineering ..................................................................................................... 14


ud

Task profile: Simulating the behavioral model ............................................................................ 17


lo

SIMIT ........................................................................................................................................... 18
st
ge

Coupling to SIMIT and PLCSIM Adv. ............................................................................................. 19


SIMIT Basic components............................................................................................................... 20
@
an

Create SIMIT Project ..................................................................................................................... 21


What needs to be adjusted for the simulation? ......................................................................... 23
en

Exercise: Create signals for the MCD and TIA Portal project in SIMIT ...................................... 29
SIMIT ........................................................................................................................................... 35
so

Exercise: Simulating the behavioral model ................................................................................. 36


Exercise: Signal exchange between NX MCD and PLCSIM Advanced ........................................ 37
.la

SIMIT ........................................................................................................................................... 48
lo

Exercise: Fault simulation ............................................................................................................. 49


Outview: Create your own blocks with Component Type Editor .............................................. 53
ge

Outview: Bulk engineering – generate the simulation ............................................................... 54


an

SITRAIN DI-VIRTCOM
Training for Industry Page 1
Learning objectives

be
Participants should ...

n.
… know the concept of signal exchange from SIMIT to NX MCD and
PLCSIM Advanced.

ve
... able to create signals for external communication with NX MCD and
PLCSIM Advanced in SIMIT.

eu
... able to simulate the inverter protocol with SIMIT.

... able to simulate short circuit, wire break and errors in the inverter.

ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM

n.
Page 2 Simulating the behavioral model with SIMIT
@

ve
en

eu
so

ul
t.k
.la

en
lo
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 2
SIMATIC Machine Simulator: Software in the Loop

be
Real CPU Real Unit

n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
st
Page 3 Simulating the behavioral model with SIMIT

ve
@

eu
en

ul
so

.k
nt
.la

de
lo

u
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 3
SIMATIC Machine Simulator: Software in the Loop

be
Real CPU Real Unit

n.
ve
eu
PLCSIM Advanced 2.0

ul
• Virtual Controller for S7-1500 CPUs
• Original Automation Program

t.k
• Technology Objects – Communication via PROFIdrive Telegrams
• I/Os
• Time management

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM

n.
Page 4 Simulating the behavioral model with SIMIT
@

ve
en

eu
so

ul
.k
.la

nt
lo

de
ge

u
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 4
SIMATIC Machine Simulator: Software in the Loop

be
Real CPU Real Unit

SIMIT 10

n.
• Signal Couplings
• Behavior model

ve
• PROFIdrive Telegrams
• Sensors

eu
• Actuators
• Process features
• Temperature

ul
• Pressure
• Hydraulics

t.k
• Pneumatic
• Signals

en
• Time management
• Error Scenarios
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

• User Interface
ud

be
st

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 5 Simulating the behavioral model with SIMIT

ve
@

eu
en

ul
so

t.k
.la

en
lo

ud
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 5
SIMATIC Machine Simulator: Software in the Loop

Real CPU Real Unit

be
n.
ve
eu
NX MCD 12
• Visualization
• Kinematics

ul
• Physics
• Motion

t.k
• Material flow
• Collision check

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 6 Simulating the behavioral model with SIMIT

ve
st

eu
@

ul
en

t.k
so

en
.la

ud
lo

st
ge

@
an

en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 6
SIMATIC Machine Simulator: Software in the Loop

be
n.
ve
eu
ul
.k
nt
de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

Synchronous simulation progress

u
st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
@

Page 7 Simulating the behavioral model with SIMIT

n.
en

ve
so

eu
.la

ul
t.k
lo
ge

en
an

ud
st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 7
Hardware in the Loop

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 8 Simulating the behavioral model with SIMIT

ve
@

eu
en

ul
so

t.k
.la

en
lo

ud
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 8
Hardware in the Loop

be
n.
ve
eu
Real Automation Hardware

ul
• SIMATIC and SIMOTION
• Technology Objects – Communication via PROFIdrive Telegrams –

.k
Simulated Axes

nt
• I/Os

de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 9 Simulating the behavioral model with SIMIT

n.
@

ve
en

eu
so

ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 9
Hardware in the Loop

be
n.
ve
eu
ul
SIMIT UNIT
• Interface between Automation Hardware and SIMIT

t.k
• Simulation of Field Devices

en
ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 10 Simulating the behavioral model with SIMIT
@

n.
ve
en

eu
so

ul
.la

.k
lo

nt
ge

e
ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 10
Hardware in the Loop

be
SIMIT 10

n.
• Signal Couplings
• SIMIT Unit Configuration

ve
• Behavior model
• PROFIdrive Telegrams

eu
• Sensors
• Actuators
• Process features

ul
• Temperature
• Pressure

.k
• Hydraulics

nt
• Pneumatic
• Signals

de
• Error Scenarios
• User Interface
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 11 Simulating the behavioral model with SIMIT

n.
@

ve
en

eu
so

ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 11
Hardware in the Loop

be
n.
ve
eu
NX MCD 12
• Visualization
• Kinematics

ul
• Physics
• Motion

t.k
• Material flow
• Collision check

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 12 Simulating the behavioral model with SIMIT

ve
st

eu
@

ul
en

t.k
so

en
.la

ud
lo

st
ge

@
an

en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 12
Virtual Commissioning SIL – HIL

be
SIMATIC Machine Simlulator

n.
Hardware in the Loop
Software in the Loop

ve
• No hardware necessary • Real automation hardware is used

eu
• Whole simulation on one PC/Laptop • No time synchronization

• Time synchronization with virtual time • All SIMATIC and SIMOTION controllers supported

ul
• Closed loop control • Closed loop control possible, BUT no time

t.k
synchronization!
• S7-1500 PLCs
• Third party controller

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM

n.
Page 13 Simulating the behavioral model with SIMIT
@

ve
eu
en

ul
so

t.k
.la

en
lo

ud
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 13
Simulation based Engineering
from Virtual Commissioning to Operator Training

be
Hardware-in-the-Loop Couplings Software-in-the-Loop Couplings Generic Data Couplings
SIMATIC PCS 7/ SIMATIC PCS 7/ Data exchange Synchronization
WinCC SIMATIC S7 and remote control

n.
ve
eu
Couplings

SIMIT
PRODAVE PLCSIM OPC UA
SIMIT Unit SIMIT Unit PLCSIM Virtual OPC SHM1 External RCI2
(MPI/IE) Adv. Client coupling
Controller

ul
PROFIBUS DP PROFINET IO

t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
SIMIT

ud

n.
1 Shared Memory; 2 Remote Control Interface

SITRAIN © Siemens AG 2018 DI-VIRTCOM


Simulating the behavioral model with SIMIT

ve
Page 14
st

eu
@

ul
en

t.k
so

en
.la

ud
lo

st
ge

@
an

en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 14 Notes 14
Simulation based Engineering
from Virtual Commissioning to Operator Training

be
SIMIT PC1 … SIMIT PC6
New license model
WIBU
License Server

n.
• Future oriented license concept
• Floating licenses

ve
• One dongle for one plant instead of
several dongles Network
Virtual
• Higher flexibility

eu
Controller

ul
SIMIT V9.1 SIMIT V10

t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Simulating the behavioral model with SIMIT

ve
Page 15
st

eu
@

ul
en

t.k
so

en
.la

ud
lo

st
ge

@
an

en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 15
Simulation based Engineering
from Virtual Commissioning to Operator Training
SIMIT ENGINEERING S - XL

be
New product structure ▪ Use cases (floating licenses, dongle)
Virtual commissioning
SIMIT Engineering S-XL

▪ Operator training (OTS)

n.
• SIMIT Engineering ▪ Features
▪ Couplings: SU, VC, PLCSIM, PLCSIM ADV, PRODAVE, OPC DA (Client/Server), OPC UA (client), SHM, Ext. Coupling
• S → e.g. Machines
▪ Standard library

ve
• M → e.g. Lines ▪ Scripting, Trend and Messaging, Macro Component Editor, 2D Dynamic Graphics Editor, 3D VRML Viewer
Automatic model generation: Template based engineering: Excel / IEA / CMT import; gen. XML import for full model generation
• L → e.g. PCS 7 projects ▪
▪ Virtual time, snapshots, remote control interface, modify in run
• XL → e.g. OTS

eu
▪ Scaling
• No functional differences between the ▪ There are packages which scale with the model size (sum of all #input+#outputs+#states for all components)
packages S - XL ▪ XS Package is only sold and delivered together with SIMIT Unit (functionality to configure SIMIT Unit)

ul
• Conversion packs
SIMIT COMPONENT TYPE EDITOR (CTE): Editor to write and develop own SIMIT components
• S → M

t.k
SIMIT CONTEC LIBRARY: 2D conveyer simulation
• M → L
Libraries

SIMIT FLOWNET LIBRARY: Pressure driven process simulation of water-/steam-cycles


• L → XL
SIMIT CHEM-BASIC LIBRARY: Basic process simulation for chemical / pharmaceutical processes (pressure driven, P&ID)

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

• Flexible pricing based on project size

be
HIL SIMIT UNIT: Profibus / Profinet emulation (1 PB UNIT – 2 channels, 1 PN UNIT – 128 devices, 1 PN UNIT – 256 devices)
• Demo version without dongle
• Add-on's can be ordered additionally SIMIT VIRTUAL CONTROLLER: S7-300/400 emulation; Sold by quantity 1 or 5 packages
ud

n.
SIL
PLCSIM ADVANCED: S7-1500 emulation; Sold by quantity 1 (2 PLCSIM Adv. Instances)
SITRAIN © Siemens AG 2018 DI-VIRTCOM

ve
Page 16 Simulating the behavioral model with SIMIT
st

eu
@

ul
en

t.k
so

en
.la

ud
lo

st
ge

@
an

en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 16
Task profile: Simulating the behavioral model
and improving the code quality

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
st
Page 17 Simulating the behavioral model with SIMIT

ve
@

eu
Task profile
SIMIT is to be used so that the PLC code can be better coordinated & harmonized
en

ul
with the machine behavior. The drive telegrams for the technology objects are to
be simulated using SIMIT. The response to failures (wire breakage, defective light
so

.k
barriers) of various signals is also to be tested and assessed. As a consequence,
nt

sequences in the virtual twin of the machine will become clearer and the PLC code
.la

can be evaluated and adapted here. As a consequence, a higher PLC code quality
de

will be achieved.
lo

u
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 17
SIMIT

be
SIMIT

n.
Engineering surface

ve
• Change language

eu
• Crate a project

• Signalmapping

ul
t.k
en
Live Demo
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM

n.
Page 18 Simulating the behavioral model with SIMIT
@

ve
en

eu
so

ul
t.k
.la

en
lo
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 18
Coupling to SIMIT and PLCSIM Adv.

be
Software-in-the-loop
PLCSIM Adv. Coupling

n.
• Emulation of SIMATIC S7-1500
• Same steps for the coupling

ve
configuration as for the VC
• Full graphical integration
• Reuse of existing TIA Portal project

eu
information (Openness interface)
• No distribution possible

ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 19 Simulating the behavioral model with SIMIT

ve
st

eu
@

ul
en

t.k
so

en
la

ud
l o.

st
ge

@
an

en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 19 Notes 19
SIMIT Basic components

be
n.
Simulation

ve
STANDARD Library
Library containing simulation
models for

eu
• Motors, valves
• Frequency converters

ul
• Mathematical models
• …

t.k
en
ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

...
st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
@

Page 20 Simulating the behavioral model with SIMIT

n.
en

ve
so

eu
.la

ul
t.k
lo
ge

en
an

ud
st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 20
Create SIMIT Project
• Start Simulation

be
• Start Simulation: This will open a
PLCSim Advanced Instance and the NX

n.
MCD Model in Simulation Mode

ve
eu
• Download your TIA Project: The Virtual
Memory Card will be stored within the
SIMIT project, and can be deleted in the

ul
Distribution

t.k
en
• If you want to download your TIA project
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

from a different PC/VM set the


Communication Interface to TCPIP
ud

be
st

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 21 Simulating the behavioral model with SIMIT

ve
@

eu
en

ul
so

.k
.la

nt
de
lo
ge

u
st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 21
Create SIMIT Project
• Test Couplings
• Control the Speed Controller of MCD

be
directly in the coupling
➔ Check the signals in the

n.
Runtime Inspector in MCD

ve
eu
• Control the I/O signals in the
PLCSim Advanced coupling
➔ Check and control the signals

ul
by a watchable in TIA Portal

t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 22 Simulating the behavioral model with SIMIT

ve
st

eu
@

ul
en

t.k
so

en
.la

ud
lo

st
ge

@
an

en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 22
What needs to be adjusted for the simulation?
TIA Project

be
n.
SIMIT will read and write from and to the I/O addresses:
➔ Get sure you have a proper HW Configuration and that you
have set your IO variables to those addresses.

ve
eu
ul
The V90 drives Conveyor Belt is configured with telegram 3
and the Portal Axes are configured with telegram 5

t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 23 Simulating the behavioral model with SIMIT
st

ve
@

eu
ul
en

t.k
so

en
.la

ud
lo

st
ge

@
an

en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 23
What needs to be adjusted for the simulation?

be
Prepare TIA Project
• Original TIA Program. No Changes necessary for the real machine

n.
TOs are not set on Simulation and TIA Portal creates automatically the Default tag
connected with the Drive table with the PROFIdrive Telegrams. SIMIT will

ve
write and read on those IO-addresses

eu
ul
t.k
• TOs must fit to the mechanic in MCD

en
Calculate leadscrew pitch:

ud
𝑣 = 𝜔 ∗ 𝑟 = 2𝜋 ∗ 𝑛 ∗ 𝑟
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

𝑙 = 𝑣/𝑛
𝑙 = 2𝜋 ∗ 𝑟
st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 24 Simulating the behavioral model with SIMIT
@

n.
ve
en

eu
so

ul
la

t.k
o.

en
g el

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 24
What needs to be adjusted for the simulation?

be
Prepare MCD Model
• Delete PLC Coupling

n.
• Kinematic Chain for x-Axis
• Define Rigid Bodies for Coils and Motor Shaft

ve
• Define Hinge Joints for the Rigid Bodies
• Define Gear between Motor Shaft and Coil

eu
• Define Rack and Pinion between Hinge Joint of the Coil and the x-Axis-Sliding-Joint (Measure the Radius of the Coil
with )

ul
t.k
en
ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
@

Page 25 Simulating the behavioral model with SIMIT

n.
en

ve
so

eu
.la

ul
t.k
lo
ge

en
an

ud
st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 25
What needs to be adjusted for the simulation?

be
Prepare MCD Model

n.
ve
• Replace Position Control with Speed Control
• Set the Speed Control of x-Axis to the Hinge Joint of the Motor Shaft

eu
ul
t.k
en
ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 26 Simulating the behavioral model with SIMIT
@

n.
ve
en

eu
so

ul
la

t.k
o.

en
g el

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 26
What needs to be adjusted for the simulation?

be
Prepare MCD Model

n.
• Adjust Signal Adapter
• Keep Signal and Formula for the

ve
Conveyor Speed
• Keep Signal for the Picker vacuum
• No additional Signals for Data-

eu
Exchange with SIMIT necessary.
Simit will write and read directly from
the Controllers -> All other signals

ul
can be deleted

t.k
en
ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
@

Page 27 Simulating the behavioral model with SIMIT

n.
ve
en

eu
so

ul
la

t.k
o.
el

en
g

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 27
What needs to be adjusted for the simulation?
Prepare MCD Model

be
• Pick & Place Operations:
• Input-Signal Picker-Vakuum

n.
• Pick-Operation:
• Set “Object from Trigger” as attachment of the fixed joint. Trigger is

ve
the collision sensor on the gripper
• Set Conditions for the operation

eu
ul
• Place Operation

t.k
• Set attachment of the fixed joint back to “null”.
• Set Conditions for the operation

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
st
Page 28 Simulating the behavioral model with SIMIT

ve
@

eu
en

ul
.k
so

nt
.la

de
lo

u
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 28
Exercise: Create signals for the MCD and TIA Portal project
in SIMIT

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 29 Simulating the behavioral model with SIMIT

n.
@

ve
Task profile
en

SIMIT is to be used so that the PLC code can be better coordinated & harmonized

eu
with the machine behavior. The drive telegrams for the technology objects are to
so

be simulated using SIMIT. The response to failures (wire breakage, defective light
ul
barriers) of various signals is also to be tested and assessed. As a consequence,
.la

sequences in the virtual twin of the machine will become clearer and the PLC code
t.k

can be evaluated and adapted here. As a consequence, a higher PLC code quality
lo

will be achieved.
en
ge

ud

Create a new SIMIT project. In the Project Manager define a time slice of 2ms and
an

set the operating mode to bus-synchronous. Create the signals for communica-
st

tion with the MCD. You can find the MCD project under the following path:
C:\Archives\DI-VIRTCOM\Chap_8\02_Exercise\MCD
@

In the attributes for the MCD signals, define bus synchronism and a 2ms time
slice.
en

Now create the PLC signals. These are used for communication to the
corresponding PLCSIM Advanced instance. The TIA Portal project is located in the
so

following directory:
C:\Archives\DI-VIRTCOM\Chap_8\02_Exercise\TIA
.la

Assign the name "PLC" for the subsequent PLCSIM Advanced instance. In the
attributes for the PLC signals, define bus synchronism as time slice.
lo
ge

Test the interface from SIMIT to MCD – and SIMIT to the PLCSIM Advanced
instance.
an

A detailed description on how to do this is provided on the following pages.

SITRAIN DI-VIRTCOM
Training for Industry Page 29
Description of what has to be done

be
- Create a new SIMIT project.

- In the Project Manager, set the time slice to 2ms and the operating mode to

n.
"Bus-synchronous".

ve
eu
ul
t.k
en
ud
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

st

be
@

n.
ve
en

eu
so

ul
.la

.k
lo

nt
ge

e
ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 30
Description of what has to be done
- Create the MCD coupling.

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
st

ve
- Synchronize the MCD coupling to an MCD project so that the possible MCD
@

signals are read out. You can find the MCD project "__mcd_realization_portal_vc"

eu
under:
C:\Archives\DI-VIRTCOM\Chap_8\02_Exercise\MCD
en

ul
t.k
so

en
.la

ud
lo
ge

st
an

@
en

- In the MCD coupling, define time slice "2" and "Bus-synchronous" operating
so

mode.
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 31
Description of what has to be done
- Dearchive the TIA Portal project from the following folder:

be
C:\Archives\DI-VIRTCOM\Chap_8\02_Exercise\TIA

n.
- Create the PLCSIM Advanced coupling.

ve
- Assign the name "PLC" for the PLCSIM Advanced instance subsequently
generated in the simulation. In the properties, set "Bus-synchronous" as time slice

eu
for this.

ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st

n.
@

ve
en

eu
so

ul
.k
.la

nt
lo

de
ge

u
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 32
Description of what has to be done
- Start the simulation in SIMIT.

be
- Load the PLCSIM Advanced instance.

n.
ve
- Test the signal exchange between SIMIT and MCD.

eu
ul
.k
nt
de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

u
st

be
@

n.
ve
en

eu
so

ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 33
Description of what has to be done

be
- Test the signal exchange between SIMIT and the PLCSIM Advanced instance.

n.
ve
eu
ul
.k
nt
de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

u
st

be
@

n.
en

ve
so

eu
.la

ul
t.k
lo
ge

en
an

ud
st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 34
SIMIT

be
SIMIT

n.
Charts

ve
• Interconnection of the signals

• Macro Library

eu
• Interconnection of the blocks

ul
t.k
en
Live Demo
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM

n.
Page 35 Simulating the behavioral model with SIMIT
@

ve
eu
en

ul
so

t.k
.la

en
lo

ud
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 35
Exercise: Simulating the behavioral model

be
n.
ve
eu
ul
.k
Digital Twin Physical and Electrical and Automation

nt
kinematic behavioral model model
model

de
NX Mechatronics Concept
SIMIT V10 PLCSIM Advanced V2.0
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

Designer (NX MCD)

u
st

be
SITRAIN © Siemens AG 2018 DI-VIRTCOM
@

Page 36 Simulating the behavioral model with SIMIT

n.
Task profile

ve
en

The signals were created in SIMIT for MCD and PLCSIM Advanced. These should
now be linked with one another. The signals for the light barriers and/or for the

eu
vacuum can be directly linked in a new chart using a "BConnector".
so

For the axes, drive telegram 3 for the conveyor and telegram 5 for the X, Y and Z
axes must be emulated here. MCD only requires the position to which the
ul
.la

axis/rigid body should traverse. The PLC communicates with the converter using
t.k

the appropriate telegram. Here, SIMIT must handle the task to simulate the drive
lo

telegram.
en
ge

To do this, create a chart for the sensor and actuator signals for the light barriers
and vacuum. Create a single chart for the drive telegrams. Test what you have
ud
an

configured.

Note:
st

For the X axis and for the conveyor, you require a rotating sensor as encoder – and
for the other two axes, a linear sensor as encoder.
@

Observe the units set in the MCD coupling.


In the MCD model for the Y and Z axes there is no integrated motor or chain. This
en

means that you must convert the rotary motion from the technology object into
linear motion of the sliding joint.
so

𝑁𝑠𝑒𝑡 ∗ 𝑟𝑝𝑚
𝑆𝑝𝑒𝑒𝑑𝑐𝑡𝑟𝑙 = ∗ 𝐿𝑒𝑎𝑑𝑠𝑐𝑟𝑒𝑤 𝑝𝑖𝑡𝑐ℎ
.la

60𝑠

𝐿𝑒𝑎𝑑𝑠𝑐𝑟𝑒𝑤 𝑝𝑖𝑡𝑐ℎ … 𝑠𝑝𝑖𝑛𝑑𝑙𝑒 𝑝𝑖𝑡𝑐ℎ Data is saved in the TO


lo

𝑁𝑠𝑒𝑡 … 𝑠𝑝𝑒𝑒𝑑 𝑠𝑒𝑡𝑝𝑜𝑖𝑛𝑡


ge

𝑆𝑝𝑒𝑒𝑑𝑐𝑡𝑟𝑙 … 𝑠𝑝𝑒𝑒𝑑 𝑐𝑜𝑛𝑡𝑟𝑜𝑙 𝑜𝑓 𝑡ℎ𝑒 𝑠𝑙𝑖𝑑𝑖𝑛𝑔 𝑗𝑜𝑖𝑛𝑡


an

A detailed description on how to do this is provided on the following pages.

SITRAIN DI-VIRTCOM
Training for Industry Page 36
Description of what has to be done
- In your SIMIT project, create a new chart with the name "Signals".

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st

n.
@

ve
- Link the MCD and PLC signals with another using the "BConnector" – you can
find this as block in the components under Standard > Misc
en

eu
so

ul
t.k
.la

en
lo
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 37
Description of what has to be done
- In your SIMIT project, create a new chart with the name "ConveyorBelt".

be
- Emulate drive telegram 3 for the conveyor belt.

n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
st

ve
@

eu
en

ul
so

t.k
la

en
o.

ud
g el

st
an

- Interconnect the MCD and PLC signals for the conveyor belt
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 38
Description of what has to be done
- Then adapt the parameters for "PROFIdrive2", "SensorProcessRotatory" and the
"Sensor" block.

be
- Take the values from the technology object in the TIA Portal.

n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
st

ve
@

eu
en

ul
so

t.k
.la

en

- Adapt the physical units for the MCD signals, as otherwise a following error can
lo

ud

occur in the drive.


ge

st
an

@
en
so
la
l o.
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 39
Description of what has to be done
- Start the simulation in SIMIT – and using the HMI, check how you can move the

be
conveyor belt.

n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st

n.
@

ve
Note: If the technology object goes into a fault state while moving the Y axis, then check

eu
en

the fault using the control panel (axis control panel); you can also acknowledge
this fault here.
ul
so

For a fault involving the encoder, check the connections of the SIMIT blocks.
t.k
For a following error, check the physical units set for the MCD signals and the
.la

parameters of the SIMIT blocks.


en
lo

ud
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 40
Description of what has to be done
- In your SIMIT project, create a new chart with the name "X-Axis".

- Emulate drive telegram 5 for the X axis.

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
ve
st

eu
@

ul
en

t.k
so

en
.la

ud
lo

st
ge

- Interconnect the MCD and PLC signals for the X axis.


@
an

en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 41
Description of what has to be done
- Then adapt the parameters for "PROFIdrive2", "SensorProcessRotatory" and the
"Sensor" block.

be
- Take the correct values from the technology object in the TIA Portal.

n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
st

ve
@

eu
en

ul
t.k
so

en
.la

- Adapt the physical units for the MCD signals, as otherwise a following error can
ud
lo

occur in the drive.


ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 42
Description of what has to be done

be
- Start the simulation in SIMIT – and using the HMI, check how you can move
the X axis.

n.
ve
eu
ul
.k
nt
de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

u
st

be
@

n.
ve
en

Note: If the technology object goes into a fault state while moving the Y axis, then check
the fault using the control panel (axis control panel); you can also acknowledge

eu
so

this fault here.


For a fault involving the encoder, check the connections of the SIMIT blocks.
ul
.la

For a following error, check the physical units set for the MCD signals and the
parameters of the SIMIT blocks.
t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 43
Description of what has to be done
- In your SIMIT project, create a new chart with the name "Y-Axis".

be
- Emulate drive telegram 5 for the Y axis.

n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
st

ve
@

eu
en

ul
so

t.k
.la

en
lo

ud
ge

st
an

- Interconnect the MCD and PLC signals for the Y axis


@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 44
Description of what has to be done

be
- A conversion must be made here, since the output and input "Nset" and "Nact"
𝑑𝑒𝑠 𝑚𝑚
have as unit 𝑚𝑖𝑛 – and the MCD signals have as unit 𝑚𝑖𝑛. Divide output "Nset" by

n.
60sec – and multiply this with the spindle pitch of 10mm/rev. Do the same with
input "Nact". You can find the multiplication and division blocks under

ve
"STANDARD" >> "AnalogBasic".

eu
ul
.k
nt
de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

u
st

be
@

n.
ve
en

eu
so

ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 45
Description of what has to be done
- Then adapt the parameters for "PROFIdrive2", "SensorProcessLinear" and the

be
"Sensor" block.
- Take the correct values from the technology object in the TIA Portal.

n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st

n.
@

ve
en

eu
so

ul
.la

t.k
lo

en

- Adapt the physical units for the MCD signals, as otherwise a following error can
ge

occur in the drive.


ud

- Start the simulation in SIMIT – and using the HMI, check how you can move the
an

st

Y axis.
@

Note: If the technology object goes into a fault state while moving the Y axis, then check
the fault using the control panel (axis control panel); you can also acknowledge
en

this fault here.


For a fault involving the encoder, check the connections of the SIMIT blocks.
so

For a following error, check the physical units set for the MCD signals and the
parameters of the SIMIT blocks.
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 46
Description of what has to be done
- In your SIMIT project, create a new chart with the name "Z-Axis".

be
- Emulate drive telegram 5 for the Z axis. Also here note that you must convert the
values for the MCD signals into mm/sec.

n.
In SIMIT, the Z axis has the same block structure as the Y axis.

ve
- Interconnect the MCD and PLC signals for the Z axis.

eu
- Then adapt the parameters for "PROFIdrive2", "SensorProcessLinear" and the
"Sensor" block.

ul
- Take the correct values from the technology object in the TIA Portal.

t.k
- Adapt the physical units for the MCD signals.

en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

- Start the simulation in SIMIT – and using the HMI, check how you can move

be
the Z axis.
ud

n.
- As soon as you have interconnected all of the signals in SIMIT, start the
st
automatic mode for the program. This starts as soon as the right-hand light barrier

ve
detects a new part carrier.
@

eu
- Commission the digital twin.
en

ul
.k
so

nt
.la

de
lo

u
ge

st

Physical and Behavioral Automation


Digital Twin kinematic
model model
model
an

PLCSIM
NX MCD SIMIT V10 Advanced V2.0
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 47
SIMIT

be
n.
SIMIT

Errorsimulation

ve
• Signalerrors

eu
• Inverter error

ul
t.k
en
Live Demo
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 48 Simulating the behavioral model with SIMIT
@

n.
ve
en

eu
so

ul
.la

.k
lo

nt
ge

e
ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 48
Exercise: Fault simulation

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st
DI-VIRTCOM

n.
SITRAIN © Siemens AG 2018
Page 49 Simulating the behavioral model with SIMIT

ve
@

Task profile

eu
en

In order that the behavior/response of the machine can be tested in the case of a
fault, up until now the fault scenario had to be configured in the TIA Portal
ul
so

project, e.g. failure of the pneumatic system. Now, this is far easier to implement
t.k
in SIMIT. A drive fault can be very simply simulated using the SIMIT blocks for the
la

drive protocol.
en

To manipulate the binary signals, in the SIMIT chart "Signals", configure additional
o.

blocks. Use the "Selection_B" block from the "Components" task card under
STANDARD >> BinaryExtended. In the "Controls" task card, you can find a
el

ud

"Switch" with which you can control the selection block.


g

Test how the model responds if individual signals fail or if the drives go into a fault
st
an

condition.
@
en
so
.la
lo
ge

A detailed description on how to do this is provided on the following pages.


an

SITRAIN DI-VIRTCOM
Training for Industry Page 49
Description of what has to be done
- In your SIMIT project, open the "Signals" chart.

be
- Add block "Selection_B" and two of your charts.

n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st

n.
@

ve
en

eu
so

ul
t.k
.la

en
lo
ge

ud
an

st

- Interconnect the elements with the signals from the MCD and the PLC so that
during the simulation you can interrupt the signal exchange and manually send a
@

true or false signal to the output.


en
so
.la
lo

- Configure this possibility of simulating faults for all signal pairs.


ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 50
Description of what has to be done

be
- Start the simulation in SIMIT.

n.
- From the HMI, start the automatic mode – and in turn, start the pick & place
operation.

ve
- As soon as the automatic mode starts to run, deactivate the individual signals in

eu
SIMIT. Monitor the response in the MCD model, and evaluate just how important
it is that the signal can be exchanged without any fault/error.

ul
.k
nt
de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

u
st

be
Description of the model behavior/response
@

You permanently switch the following signals to "false", how does the MCD model

n.
behave:
en

ve
"CollisionSensorLeft.Triggered"
so

eu
.la

ul
"CollisionSensorMiddleLeft.Triggered"
t.k
lo
ge

en

"CollisionSensorMiddleRight.Triggered"
an

ud
st

"CollisionSensorRight.Triggered"
@

"Picker_vacuum"
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 51
Description of what has to be done
- How does the model respond as soon as one of the axes goes into a fault state?

be
n.
ve
eu
ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

ud

be
st

n.
@

ve
X axis

eu
en

ul
so

Y axis
t.k
la

en
o.
el

Z axis
ud
g
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 52
Outview: Create your own blocks with Component Type
Editor

be
n.
Simulation
CTE

ve
• Using the component type editor
new SIMIT SF components
can be developed by the user

eu
• User created components
can be versioned and protected
against misuse

ul
• The component symbol can include
controls and animations

.k
nt
de
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
st
SITRAIN © Siemens AG 2018 DI-VIRTCOM
Page 53 Simulating the behavioral model with SIMIT

n.
@

ve
en

eu
so

ul
.la

t.k
lo

en
ge

ud
an

st
@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 53
Outview: Bulk engineering – generate the simulation

be
Simulation
Bulk engineering

n.
• Bulk engineering via spreadsheet
• Export to excel depending

ve
of the selected hierarch level
• Edit of values, characteristic,
physical conditions etc.

eu
• Increase engineering efficiency

ul
t.k
en
Private copy for Angelo Lasoen, angelo.lasoen@student.kuleuven.be

be
ud

n.
SITRAIN © Siemens AG 2018 DI-VIRTCOM
st
Page 54 Simulating the behavioral model with SIMIT

ve
@

eu
en

ul
t.k
so

en
.la

ud
lo
ge

st
an

@
en
so
.la
lo
ge
an

SITRAIN DI-VIRTCOM
Training for Industry Page 54

You might also like