0% found this document useful (0 votes)
90 views91 pages

Introduction To Tecnomatix Plant Simulation English

Uploaded by

Lộc Huỳnh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
90 views91 pages

Introduction To Tecnomatix Plant Simulation English

Uploaded by

Lộc Huỳnh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 91

SIEMENS DIGITAL INDUSTRIES SOFTWARE

Introduction to
Tecnomatix Plant Simulation
Analyze faster
Plan more easily
Decide more reliably
Increase your productivity!
siemens.com/software
Contents

Introducing Plant Simulation


Introducing Plant Simulation ────────────────────────────── 1-1
Simulation and Animation ──────────────────────────────── 1-2
Simulation and Animation ─────────────────────────────────── 1-2
Simulation in Plant Simulation ──────────────────────────────── 1-3
Simulation Properties ────────────────────────────────────── 1-5
Animation in Plant Simulation ───────────────────────────────── 1-7
Animation Properties ────────────────────────────────────── 1-8
Creating Simulation Models ────────────────────────────── 1-10
Create a Simulation Model ────────────────────────────────── 1-10
Change Simulation Settings ───────────────────────────────── 1-16
Change Animation Settings ───────────────────────────────── 1-19
Displaying Simulation Results ───────────────────────────── 1-24
Display Simulation Results ────────────────────────────────── 1-24
Working Through the Tutorial ───────────────────────────── 1-31
Work Through the Tutorial ────────────────────────────────── 1-31
Tutorial Part 1 ────────────────────────────────────────── 1-32
Tutorial Part 2 ────────────────────────────────────────── 1-48
Tutorial Part 3 ────────────────────────────────────────── 1-66

Index ─ Index-1

Plant Simulation 2201 2


© 2022 Siemens
2 , Plant Simulation 2201
© 2022 Siemens
1. Introducing Plant Simulation
Introducing Plant Simulation
Welcome to Tecnomatix Plant Simulation. This chapter provides a short introduction to Plant Simulation
which is intended for the new user of Plant Simulation.

We will create a simple simulation model and explain the underlying concepts of the terms:

Simulation and Animation

• Simulation Properties

• Animation Properties

We also will:

• Create Simulation Models

• Display Simulation Results

You can then Work Through the Tutorial. There we introduce some of the most important objects.

Also consult the Plant Simulation Step-by-Step Help

Getting to Know Tecnomatix Plant Simulation

Modeling the Material Flow

Visualizing the Material Flow

Animating the Simulation Model in 2D and Viewing the Results

Importing Data for the Simulation

Setting Parameters in the Model

Also consult the Plant Simulation Reference Help

What's New

Updating an Old Model to the Current Version

Using HTML Help

Plant Simulation 2201 1-1


© 2022 Siemens
1. Introducing Plant Simulation

The Objects Reference Help

The SimTalk Reference Help

The Outdated SimTalk Names in 2D

The 3D Reference Help

The SimTalk Access to 3D

The Outdated SimTalk Names in 3D

The Quick Reference Cards

The Add-Ins Reference Help

The Object Libraries Reference Help

Copyright © 2022 Siemens Industry Software Inc. All rights reserved.

This documentation is proprietary to Siemens Industry Software Inc.

This document contains proprietary information and is protected by copyright. No part of this document
may be reproduced, stored in a retrieval system, translated, transcribed, or transmitted, in any form or
by any means, without the prior explicit written consent of Siemens Industry Software Inc. Information
in this document is subject to change without notice.

Simulation and Animation

Simulation and Animation

As a general rule simulation and animation work together and run concurrently in Plant Simulation.

The simulation component simulates the material flows. The material flow objects collect statistics
values during the simulation, which we show in tables and different diagrams and from which we can
draw conclusions according to the defined targets.

We explain the:

• Simulation in Plant Simulation

• Simulation Properties

The animation component shows the simulated material flows during the simulation in a graphically
pleasing and clear way.

1-2 Plant Simulation 2201


© 2022 Siemens
Simulation in Plant Simulation

We explain the:

• Animation in Plant Simulation

• Animation Properties

Go to Create Simulation Models

Go to Display Simulation Results

Back to Introducing Plant Simulation

Simulation in Plant Simulation

According to VDI (Verein Deutscher Ingenieure, Association of German Engineers, Directive 3633, Blatt
1, 1993) we run simulations to emulate a system, including its dynamic processes, in a model one can
experiment with, to achieve results that can be transferred to a real world plant.

In our material flow simulations we want to identity the optimum of capacities, resource utilization, and
buffer sizes so that the installation produces the required output.

To do so, we, for example, check the utilization of the machines, their processing, set-up, and failure
times; we identify bottlenecks in the production process, we optimize the layout of the installation, to
find out the optimal dimensioning of the materials-handling technology, etc.

We control the simulation with the simulation properties on the tabs of the dialogs of the material
flow objects, the resource objects, the mobile objects, and the fluid objects. We open the dialogs of
the objects by double-clicking their icon.

Chúng tôi điều khiển mô phỏng bằng các thuộc tính mô phỏng trên các tab của hộp thoại đối tượng dòng nguyên liệu,
đối tượng tài nguyên, đối tượng di động và đối tượng chất lỏng. Chúng tôi mở hộp thoại của các đối tượng bằng cách
nhấp đúp vào biểu tượng của chúng.

, Plant Simulation 2201 1-3


© 2022 Siemens
1. Introducing Plant Simulation

Simulation and Modeling Concepts and the subtopics What is Simulation?, Time-Oriented
Simulation and Event-Controlled Simulation, Why Employ Simulation?, and Implement a
Simulation Project in the Step-by-Step-Help describe this in detail.

We also offer a short tutorial. The model files are located in the Plant Simulation installation folder >
Plant Simulation > Tutorial, compare the example below.

Các khái niệm về Mô phỏng và Mô hình hóa cũng như các chủ đề phụ Mô phỏng là gì?, Mô phỏng theo định hướng thời gian
và Mô phỏng được kiểm soát theo sự kiện, Tại sao lại sử dụng Mô phỏng?, và Triển khai Dự án Mô phỏng trong Trợ giúp Từng
bước mô tả điều này một cách chi tiết

1-4 , Plant Simulation 2201


© 2022 Siemens
Simulation Properties

The topic Working Through the Tutorial guides you through the individual modeling steps.

Back to Simulation and Animation

Simulation Properties

We can set the simulation properties of the objects on the tabs of the dialogs of the material flow
objects, the resource objects, the mobile objects, and the fluid objects. To do so, we double-click the
icon of the respective object in the Frame named Model.
Chúng ta có thể thiết lập các thuộc tính mô phỏng của các đối tượng trên các tab của hộp
thoại đối tượng dòng nguyên liệu, đối tượng tài nguyên, đối tượng di động và đối tượng
chất lỏng. Để làm như vậy, chúng tôi nhấp đúp vào biểu tượng của đối tượng tương ứng
trong Frame có tên là Model.

, Plant Simulation 2201 1-5


© 2022 Siemens
1. Introducing Plant Simulation

We can set these and additional settings for the simulation of the material flows:

• Times on the tab Times.

• Set-up properties on the tab Set-Up.

• Interruptions (failures, pauses) on the tab Failures. • Gián đoạn (lỗi, tạm dừng) trên tab Lỗi

• Controls, which react on events during the simulation, on the tab Controls.

• Exit behavior, which controls the material flow, on the tab Exit.

In principle you can do this in Plant Simulation

• Change Values in the Dialog of the Objects Thay đổi giá trị trong hộp thoại của đối tượng

• Change Values in the Dialog Show Attributes and Methods • Thay đổi Giá trị trong Hộp thoại Hiển thị
Thuộc tính và Phương thức
• Change Values by Assigning a Value in SimTalk Thay đổi giá trị bằng cách gán giá trị trong SimTalk

1-6 , Plant Simulation 2201


© 2022 Siemens
Animation in Plant Simulation

We can change to the animation properties by clicking the 3D button . This opens the dialog Edit
3D Properties.
Mô phỏng thực vật tự động tạo hoạt ảnh cho mô hình
Back to Simulation and Animation mô phỏng, ở dạng 2D, so sánh Tạo hoạt ảnh cho Mô
hình mô phỏng ở dạng 2D và Xem kết quả, cũng như ở
dạng 3D, như chúng tôi trình bày bên dưới.
Animation in Plant Simulation

Plant Simulation animates the simulation model automatically, in 2D, compare Animate the Simulation
Model in 2D and View the Results, as well as in 3D, as we show below.

The animation visualizes the material flow/parts flow through the installation and thus allows to track
the journey of the parts. In addition you can replace the graphics of the material flow objects with
graphics of your machines and then animate these graphics with poses to make them look more
realistic. Hình ảnh động trực quan hóa luồng vật liệu/luồng các bộ phận thông qua cài đặt và do đó cho phép theo dõi hành trình của các bộ phận.
Ngoài ra, bạn có thể thay thế đồ họa của các đối tượng dòng nguyên liệu bằng đồ họa của máy móc của bạn và sau đó tạo hoạt ảnh cho
những đồ họa này bằng các tư thế để làm cho chúng trông chân thực hơn.

This makes it easier to understand the processes and procedures in the model for the modeler and for
managers or customers who are to be convinced of the simulated solution.
Điều này giúp người lập mô hình và người quản lý hoặc khách hàng tin tưởng vào giải pháp mô phỏng dễ hiểu các quy trình và thủ tục trong mô hình hơn.

If we do not need the animation or would like the simulation to run faster, we can deactivate the

animation by clicking .

We can set the animation properties of the objects in 3D by clicking the respective object once in the
model window and by then pressing the spacebar. If the dialog with the simulation properties is open,
we can click to open the dialog Edit 3D Properties.

Chúng ta có thể đặt các thuộc tính hoạt hình của các đối tượng trong 3D bằng cách nhấp vào đối tượng tương ứng một lần trong cửa sổ mô hình và sau
đó nhấn phím cách. Nếu hộp thoại có thuộc tính mô phỏng đang mở, chúng ta có thể nhấp để mở hộp thoại Chỉnh sửa Thuộc tính 3D.

, Plant Simulation 2201 1-7


© 2022 Siemens
1. Introducing Plant Simulation

Chúng tôi khuyên bạn nên luôn kích hoạt Thời gian thực trong Bộ điều khiển sự kiện trong mô hình 3D của mình vì về nguyên tắc, mô phỏng chạy nhanh hơn
trong mô hình Chỉ 3D vì Mô phỏng thực vật không phải tính toán các sự kiện hoạt hình cho 2D.

Note:
We recommend to always activate Real time in the EventController in your 3D model as the
simulation runs faster in principle in a 3D Only model as Plant Simulation does not have to
compute the animation events for 2D.

Back to Simulation and Animation

Animation Properties

We can set the animation properties of the objects in 3D by clicking the object once in the model
window and by pressing the spacebar.

Chúng ta có thể đặt các thuộc tính hoạt hình của các đối tượng trong 3D bằng cách nhấp vào đối tượng một lần trong cửa sổ mô hình và nhấn phím cách.

1-8 , Plant Simulation 2201


© 2022 Siemens
Animation Properties

We can set these and additional settings for the animation of the material flows in the dialog Edit 3D
Properties: Chúng ta có thể đặt các cài đặt này và các cài đặt bổ sung cho hoạt ảnh của các luồng vật liệu trong hộp thoại Chỉnh sửa Thuộc tính 3D:

• The position, rotation, and scaling of the objects on the tab Transformation

• The appearance of the parts on the tab Appearance of the MUs

• The appearance of materials-handling equipment on the tab Appearance of the length-oriented


objects

• Color the animation object on the tab Material

• Define animation paths for:

• MU Animations on the tab MU Animation

• Animations of the objects on the tab Self Animation

• The animation of the robot arm on the tab Robot Arm Animation

• Poses of the objects on the tab Poses


• Tư thế của các đối tượng trên tab Tư thế

, Plant Simulation 2201 1-9


© 2022 Siemens
1. Introducing Plant Simulation

• Joints of the objects on the tab Joint


Về nguyên tắc, bạn có thể làm điều này trong Plant Simulation

In principle you can do this in Plant Simulation

• Change Values in the Dialog of the Objects

• Change Values in the Dialog Show Attributes and Methods

• Change Values by Assigning a Value in SimTalk

We can click the button to change to the simulation properties of the objects.

Back to Simulation and Animation

Creating Simulation Models

Create a Simulation Model

We proceed as follows to create our simulation model:

• We start Plant Simulation.

• We click Create New Model on the tab Start.

1-10 , Plant Simulation 2201


© 2022 Siemens
Create a Simulation Model

• Now Plant Simulation shows a dialog an, in which we can select if we would like to create the
simulation model in 2D or in 3D.

, Plant Simulation 2201 1-11


© 2022 Siemens
1. Introducing Plant Simulation

Nói chung, chúng tôi luôn khuyên bạn nên


tạo các mô hình ở chế độ 3D. Bằng cách Mô hình 2D là lý tưởng nếu việc trực
này, bạn luôn có một mô hình hiển thị trực quan hóa dòng nguyên liệu không quan
quan đồ họa bắt mắt và đẹp mắt về dòng trọng đối với bạn và nếu bạn chủ yếu
nguyên liệu và rõ ràng giống với giao diện quan tâm đến dữ liệu thống kê mà các
thực tế của cài đặt được mô hình hóa. đối tượng dòng nguyên liệu thu thập
được.

Generally we always recommend to create the models in 3D. This way you always have a model
that shows a graphically pleasing and good-looking visualization of the material flow and that clearly
resembles the actual look of the modeled installation.
A 2D model is ideal if the visualization of the material flow is not that important for you and if you are
mainly interested in the statistical data that the material flow objects collected.

• We create our model in 3D. By default we model in three-dimensional space.


If you prefer to model in top view, i.e., in two dimensions, change to the View tab and click Planning

Bây giờ chúng ta có thể bắt đầu làm mẫu. Chúng tôi chèn các đối tượng dòng vật liệu cần thiết
View . từ tab Dòng vật liệu trong Hộp công cụ. Những đối tượng này mô phỏng dòng chảy của các bộ
phận thông qua quá trình cài đặt của chúng tôi.

• Now we can start modeling. We insert the required material flow objects from the tab Material Flow
in the Toolbox. These objects simulate the flow of the parts through our installation.

Note:
Drag the mouse over an object in the Toolbox to show a Tooltip with the object name.

Click the object with the left mouse button. Drag the mouse to the position of your choice in the
Frame named Model and click the left mouse button once.

• A Source produces the part which the stations process or convey between the stations.

1-12 , Plant Simulation 2201


© 2022 Siemens
Create a Simulation Model

• A Station doing the rough-processing of the parts.

• Two additional Stations which further process the parts. • Hai Trạm bổ sung để xử lý thêm chi tiết

nơi đặt các bộ phận đến băng tải.

• A PickAndPlace robot which places the arriving parts to the conveyor.

• A Conveyor which moves the parts to the Drain.


Sau đó, chúng tôi phải kết nối các đối tượng được chèn
để các bộ phận có thể di chuyển giữa các trạm. Để thực
hiện, chúng ta nhấn giữ phím Ctrl, nhấn vào Connector
trong Toolbox, rê chuột vào Frame có tên là Model, nhấn
lần lượt vào các đối tượng.
• A Drain which removes the parts from the installation.

Then we have to connect the inserted objects so that the parts can flow between the stations. To
do so, we hold down the Ctrl key, click the Connector in the Toolbox, drag the mouse to the

Frame named Model, and click on the objects one after the other.

The finished model looks like this:

, Plant Simulation 2201 1-13


© 2022 Siemens
1. Introducing Plant Simulation

Để thấy rõ hơn tác động của các thuộc tính mô phỏng đã thay đổi, chúng tôi cũng chèn một Biểu đồ hiển thị rõ ràng các cài đặt đã thay đổi

We can now run a simulation with an appealing animation with the factory settings.

Click Start/Stop Simulation on the Start ribbon tab.

We also hide the grid on the View ribbon tab as it is only intended as a modeling help.

To better see the effects of changed simulation properties, we also insert a Chart which clearly shows
Để làm như vậy, chúng tôi nhấn Ctrl A để chọn tất cả các đối tượng trong Frame. Vì chúng ta chỉ quan tâm đến các đối tượng
the changed settings. dòng nguyên liệu, nên chúng ta nhấn giữ Ctrl và nhấp vào EventController, Source, Drain và Chart để bỏ chọn chúng. Sau đó,
chúng tôi kéo các đối tượng đã chọn vào biểu tượng của Biểu đồ và thả chúng vào đó. Ta chọn Resource Statistics trong hộp
thoại Statistics Type.
To do so, we press Ctrl+A to select all objects in the Frame. As we are only interested in the material
flow objects, we then hold down Ctrl and click the EventController, the Source, the Drain, and the Chart
to deselect them. Then we drag the selected objects onto the icon of the Chart and drop them there. We
select Resource Statistics in the dialog Statistics Type.

After the simulation did run, we can click the Chart with the right mouse button and select Show. The
standard settings of the objects provide these results:
Sau khi mô phỏng đã chạy, chúng ta có thể nhấp vào Biểu đồ bằng nút chuột phải và chọn Hiển thị. Cài đặt tiêu chuẩn của các đối tượng cung cấp các kết quả sau:

1-14 , Plant Simulation 2201


© 2022 Siemens
Create a Simulation Model

Trạm đang hoạt động 100 % thời gian, các Trạm sau mỗi Trạm hoạt động 50 % thời gian, Robot và Băng tải hoạt động 100 % thời gian.

The Station is working 100 % of the time, the following Stations are working 50 % of the time each,
Robot and Conveyor are working 100 % of the time.

After having run the simulation with the factory settings of simulation and animation, we can:

• Change Simulation Settings

• Change Animation Settings

Compare the video Creating a Simple Model under Window > Start Page > Getting Started > Videos.

Compare Working with the Frame

Compare Modeling the Material Flow

Back to Simulation and Animation

Go to Display Simulation Results

, Plant Simulation 2201 1-15


© 2022 Siemens
1. Introducing Plant Simulation

Back to Introducing Plant Simulation

Change Simulation Settings


Chúng ta có thể thay đổi cài đặt mô phỏng của các đối tượng để mô phỏng các kịch bản khác nhau với các giá trị đã thay đổi.

We can change the simulation settings of the objects to simulate different scenarios with changed
values.
• Ví dụ, chúng ta có thể tăng thời gian xử lý của Trạm nằm ở trên cùng, có tên là Trạm1, từ 10 giây lên 2 phút.

• We can, for example, increase the processing time of the Station located at the top, named Station1,
from 10 seconds to 2 minutes.

The changed processing time has these effects:


Thời gian xử lý đã thay đổi có những ảnh hưởng sau:

1-16 , Plant Simulation 2201


© 2022 Siemens
Change Simulation Settings

Phần làm việc của Trạm giảm xuống 70 %, trong khi nó tăng lên ở các Trạm tiếp theo, Robot hiện đang chờ các bộ phận và
Băng tải hiện hoạt động trở lại 100 % thời gian
The working portion of the Station fell to 70 %, while it rose for the following Stations, the Robot is
now waiting for parts and the Conveyor is now 100 % of the time again.

• We then increase the time factor of the PickAndPlace robot from 1 to 2.


• Sau đó, chúng tôi tăng hệ số thời gian của robot PickAndPlace từ 1 lên 2.

, Plant Simulation 2201 1-17


© 2022 Siemens
1. Introducing Plant Simulation

The changed time factor has these effects:

1-18 , Plant Simulation 2201


© 2022 Siemens
Change Animation Settings

Phần làm việc của Trạm và các Trạm sau giảm xuống, Robot hoạt động trở lại 100% thời gian, phần làm việc của Băng tải không thay đổi.

The working portion of the Station and the following Stations fell, the Robot is working 100 % of the
time again, the working portion of the Conveyor did not change.

Go to Change Animation Settings

Back to Creating Simulation Models Đối với Băng tải, chúng tôi chọn một cấu hình khác để nó giống với băng tải trong
quá trình cài đặt của chúng tôi. Để làm như vậy, chúng tôi nhấp vào Băng tải một
lần bằng nút chuột trái và nhấn phím cách. Thay vì băng tải mặc định, chúng tôi sử
Change Animation Settings dụng băng tải con lăn có các chân hình chữ T hình vòm cách nhau 1,5 mét. Sau
đó nó trông như thế này:
Sau cài đặt mô phỏng, chúng tôi sẽ thay đổi một số cài đặt hoạt hình:

After the simulation settings we are going to change some of the animation settings:

• For the Conveyor we select another configuration so that it resembles the conveyor in our installation.
To do so, we click on the Conveyor once with the left mouse button and press the spacebar.
Instead of the default belt conveyor we use a roller conveyor with arched T-based legs spaced 1.5
meters from each other. It then looks like this:

Vì phần màu trắng của chúng tôi khó nhìn thấy trong quá trình mô phỏng nên chúng tôi thay đổi màu sắc của nó. Vì
chúng tôi muốn làm điều này cho tất cả các bộ phận được sản xuất, chúng tôi chỉnh sửa Lớp của bộ phận.
• As our white part is hard to see during the simulation, we change its color. As we want to do this for
all produced parts, we edit the Class of the Part.
To do so, we change to the Class Library, open the folder MUs, and double-click the Part. This opens
the dialog of the simulation settings. There we click to open the dialog of the animation
settings. There we can activate the material of the Part and select brown as color.
Để làm như vậy, chúng tôi thay đổi Thư viện lớp, mở thư mục MUs và bấm đúp vào Phần. Thao tác này
sẽ mở hộp thoại cài đặt mô phỏng. Ở đó, chúng tôi nhấp để mở hộp thoại cài đặt hoạt ảnh. Ở đó, chúng
ta có thể kích hoạt vật liệu của Phần và chọn màu nâu làm màu.

, Plant Simulation 2201 1-19


© 2022 Siemens
1. Introducing Plant Simulation

Sau đó, khi chúng tôi chạy mô phỏng, chúng tôi thấy rằng phần của chúng tôi hiện có màu mà chúng tôi đã chọn, cụ thể là màu nâu.

When we then run the simulation, we see that our part now has the color we selected, namely brown.

Tiếp theo, chúng tôi thay thế đồ họa của rô bốt sao cho phù hợp với rô bốt trong phần cài đặt của chúng tôi

• Next, we replace the graphic of our robot so that it matches the robot in our installation:

1-20 , Plant Simulation 2201


© 2022 Siemens
Change Animation Settings

• Chúng tôi nhấp vào robot bằng nút chuột phải và chọn Exchange Graphics.

• We click the robot with the right mouse button and select Exchange Graphics.

• We select the Comau PickAndPlace robot.


Chúng tôi chọn rô bốt Cơm Au Pick And Place.

, Plant Simulation 2201 1-21


© 2022 Siemens
1. Introducing Plant Simulation

Do robot ở quá xa Trạm cho ăn, chúng ta điều chỉnh các vị trí như hình bên dưới. Kéo một vùng lựa chọn xung quanh
rô-bốt, Băng tải và Cống rồi nhấn phím mũi tên Trái cho đến khi khớp vào vị trí.

• As the robot is too far away from the feeding Stations, we adjust the positions as shown below.
Drag a marquee around the robot, the Conveyor, and the Drain and press the Left arrow key until
the position fits.

Animating the Robot Arm in 3D shows how to prevent that the robot arm moves through the
protective cover and the parts holder and moves above both.
Tạo hoạt ảnh cho Cánh tay rô-bốt ở chế độ 3D cho thấy cách ngăn cánh tay rô-bốt di chuyển qua vỏ bảo vệ và giá đỡ các bộ
phận cũng như di chuyển lên trên cả hai.

1-22 , Plant Simulation 2201


© 2022 Siemens
Change Animation Settings
Vì chúng tôi không thích vị trí của EventController, đồng hồ nằm phẳng trên sàn, nên chúng tôi cũng thay đổi vị trí đó.
Để làm như vậy, chúng tôi nhấp vào EventController bằng nút chuột trái và nhấn phím cách. Các cài đặt tiêu chuẩn
trên tab Chuyển đổi trông giống như sau:

• As we do not like the position of the EventController, the clock lying flat on the floor, we change that
as well. To do so, we click the EventController with the left mouse button and press the spacebar.
The standard settings on the tab Transformation look like this:

We changed these settings:

• We moved the Z position of the EventController up to 5.4 meters.

• We rotated the clock by 90 degrees forward on the X axis. To do so, we typed in 90 as angle and
clicked the button next to X axis.

Đồng hồ hiện được treo trên bức tường phía sau của tác phẩm sắp đặt với mặt hướng về phía trước.

The clock now hangs on the rear wall of the installation with the face facing forward.

Back to Change Simulation Settings

Back to Creating Simulation Models

, Plant Simulation 2201 1-23


© 2022 Siemens
1. Introducing Plant Simulation

Displaying Simulation Results


Sau khi Plant Simulation thực hiện chạy mô phỏng, chúng ta có thể hiển thị
Display Simulation Results và phân tích kết quả mô phỏng. Để làm như vậy, chúng tôi sử dụng Đối
tượng Giao diện Người dùng và Hiển thị.

After Plant Simulation has executed the simulation run, we can show and analyze the simulation results.
To do so, we use Display and User Interface Objects.

Chúng tôi đã chèn mỗi biểu đồ một Biểu đồ, một SankeyDiagram và một HtmlReport. Chúng tôi sử dụng các đối
tượng này với cài đặt tiêu chuẩn tương ứng của chúng.

We inserted a Chart, a SankeyDiagram, and an HtmlReport each. We use these objects with their
respective standard settings.

• The Chart shows resource statistics of the material flow objects which we selected.
After we executed the simulation, we click the Chart with the right mouse button and select Show.
The standard settings provide these results:
Biểu đồ hiển thị thống kê tài nguyên của các đối tượng dòng nguyên liệu mà chúng tôi đã chọn. Sau
khi chúng tôi thực hiện mô phỏng, chúng tôi nhấp vào Biểu đồ bằng nút chuột phải và chọn Hiển thị.
Các cài đặt tiêu chuẩn cung cấp các kết quả sau:

1-24 , Plant Simulation 2201


© 2022 Siemens
Display Simulation Results

SankeyDiagram hiển thị dòng chảy của các bộ phận trong quá trình cài đặt bằng các mũi tên có độ rộng khác nhau. Chúng tôi thấy rằng nhiều
phần đi theo tuyến đường qua Trạm 2 hơn Trạm 1.
• The SankeyDiagram shows the flows of parts through the installation with arrows in different
widths. We see that more parts take the route across Station2 than Station1.

• The HtmlReport shows general information about the simulation model and state statistics and
Drain statistics values.
HtmlReport hiển thị thông tin chung về mô hình mô phỏng và thống kê trạng thái và giá trị thống kê Drain

, Plant Simulation 2201 1-25


© 2022 Siemens
1. Introducing Plant Simulation

• In addition each object shows the most important values on its tab Statistics.
In the dialogs of the objects you can display What's This Help for the individual dialog items. To do so,
click the question mark on the title bar of the dialog window and then on the dialog item for which
you need help. What's This Help shows a description of the dialog item and the name of the
programming command with which you can set or query it.

• Ngoài ra, mỗi đối tượng hiển thị các giá trị quan trọng nhất trên tab Thống kê của nó. Trong các hộp thoại của các đối tượng, bạn có thể
hiển thị What's This Help cho các mục hộp thoại riêng lẻ. Để làm như vậy, hãy nhấp vào dấu chấm hỏi trên thanh tiêu đề của cửa sổ hộp
thoại, sau đó nhấp vào mục hộp thoại mà bạn cần trợ giúp. What's This Help hiển thị mô tả về mục hộp thoại và tên của lệnh lập trình mà
bạn có thể đặt hoặc truy vấn nó.

1-26 , Plant Simulation 2201


© 2022 Siemens
Display Simulation Results

Cuối cùng, chúng tôi thực hiện chạy mô phỏng với hoạt ảnh đã tắt. Sau đó, Mô phỏng thực vật không hiển thị các bộ phận cũng như chuyển
động của Robot trong quá trình mô phỏng.
Finally we execute a simulation run with deactivated animation. Then Plant Simulation neither shows
the parts nor the movement of the Robot during the simulation.

To do so, we can click Start Fast Forward Simulation and watch how much

faster the simulation runs without animation.

, Plant Simulation 2201 1-27


© 2022 Siemens
1. Introducing Plant Simulation

Simulation with animation Simulation without animation

To better see that we only simulate for 24 hours. To do so, we type in an end time of 24 hours on the
tab Settings of the EventController.
Để thấy rõ hơn chúng ta chỉ mô phỏng trong 24 giờ. Để làm như vậy, chúng tôi nhập thời gian kết thúc là 24 giờ trên tab Cài đặt của EventController

1-28 , Plant Simulation 2201


© 2022 Siemens
Display Simulation Results

Kết quả chạy mô phỏng không có hoạt ảnh cũng


giống như kết quả chạy mô phỏng có hoạt ảnh. Các
giá trị thống kê mà Drain đã thu thập cho thấy điều
này:

The results of the simulation run without animation are the same as those of a simulation run with
animation. The statistics values, which the Drain collected, show this:

Simulation with animation Simulation without animation

, Plant Simulation 2201 1-29


© 2022 Siemens
1. Introducing Plant Simulation

Simulation with animation Simulation without animation

Compare these topics in the Step-by-Step Help:

Animate the Simulation Model in 2D and View the Results

• Viewing and Visualizing Statistics

• Viewing Statistics in the Dialogs of the Objects

• Showing Statistics in a Chart

• Viewing the Statistics Report

• Showing Statistics and Other Values in a Report

• Show Values with the Display

• Showing Part Flows in a SankeyDiagram

• Showing Parts on Resources in a GanttChart

1-30 , Plant Simulation 2201


© 2022 Siemens
Work Through the Tutorial

Back to Simulation and Animation

Back to Creating Simulation Models

Back to Plant Simulation for Beginners


Hướng dẫn tích hợp giới thiệu cho bạn cách lập mô hình
Working Through the Tutorial trong Mô phỏng thực vật. Nó ngắn nhưng đủ toàn diện để
giúp bạn bắt đầu tạo và thực hiện các mô hình mô phỏng
trong Mô phỏng thực vật. Nếu bạn chưa làm như vậy,
chúng tôi khuyên bạn nên tự làm quen với giao diện
Work Through the Tutorial người dùng Mô phỏng Nhà máy, với Thanh Ribbon và
với các đối tượng trong Thư viện Lớp và Hộp công cụ.

The built-in tutorial introduces you to modeling in Plant Simulation. It is short and yet comprehensive
enough to get you started with creating and executing simulation models in Plant Simulation. If you
have not already done so, we recommend that you familiarize yourself with the Plant Simulation user
interface, with the Ribbon Bar, and with the objects in the Class Library and the Toolbox.

In our tutorial model we create a testing line for monitors and for game consoles. We will first create a
testing station before adding two stations to the main line. Monitors and game consoles will enter the
processing line, will be put into containers, moved across a line to a pre-testing station, then to the main
testing station, before being packed and shipped.

Creating the entire model is quick and easy. You can, however, save your models and return to them at a
later point in time. The respective model files are located in the Plant Simulation installation folder >
Plant Simulation > Tutorial, compare the example below.

Trong mô hình hướng dẫn của chúng tôi, chúng tôi tạo Tạo toàn bộ mô hình là nhanh chóng và dễ
một dòng thử nghiệm cho màn hình và máy chơi dàng. Tuy nhiên, bạn có thể lưu các mô hình của
game. Trước tiên, chúng tôi sẽ tạo một trạm thử mình và quay lại chúng vào một thời điểm sau
nghiệm trước khi thêm hai trạm vào dòng chính. Màn đó. Các tệp mô hình tương ứng nằm trong thư
hình và bảng điều khiển trò chơi sẽ đi vào dây chuyền mục cài đặt Plant Simulation > Plant Simulation
xử lý, sẽ được đưa vào thùng chứa, di chuyển qua dây > Tutorial, so sánh ví dụ bên dưới.
chuyền đến trạm thử nghiệm trước, sau đó đến trạm
thử nghiệm chính, trước khi được đóng gói và vận
chuyển.

, Plant Simulation 2201 1-31


© 2022 Siemens
1. Introducing Plant Simulation

Go to Tutorial Part 1

Go to Tutorial Part 2

Go to Tutorial Part 3

Back to Introducing Plant Simulation

Tutorial Part 1
Trong phần 1 của hướng dẫn, chúng ta sẽ tạo một thư
mục cho mô hình mô phỏng của mình, đặt tên là
Tutorial Part 1 TestingLine và xây dựng một trạm thử nghiệm cơ bản
cho dây chuyền sản xuất.

In part 1 of our tutorial we will create a folder for our simulation model, name it TestingLine, and build a
basic test station for the production line.

Proceed as follows to create a new Folder and a new Frame.

• Click Create New Model on the Start Page to create a new model.

1-32 , Plant Simulation 2201


© 2022 Siemens
Tutorial Part 1

• Click 3D in the dialog, which Plant Simulation shows, to create the simulation model in 3D.

• Click the object Basis at the very top in the Class Library with the right mouse button and select New
> Folder.

• Click the new folder with the right mouse button, select Rename, and rename it to TestingLine.
We now created the folder in which we store our simulation models.

Next, we will create a new Frame. The Frame is the container in which we build our simulation models.

• Click the folder TestingLine in the Class Library with the right mouse button and select New > Model
Frame.
This creates a Frame that does not show its contents towards the outside and that contains an
EventController for running simulations.

• Click the Frame with the right mouse button, select Rename, and rename it to Test.

• Double-click the Frame named Test to open it.


Now we have created our first Frame, named Test, for the testing line for the monitors and the game
consoles. We can insert the stations that we need.

, Plant Simulation 2201 1-33


© 2022 Siemens
1. Introducing Plant Simulation

Go to Tutorial Part 2 Đối tượng đầu tiên mà chúng tôi sẽ chèn vào mô hình mô phỏng của mình là Nguồn.
Nó sản xuất các bộ phận, trong trường hợp của chúng tôi là màn hình và bảng điều
khiển trò chơi, sẽ di chuyển qua hệ thống sản xuất. Ví dụ, Nguồn có thể đại diện cho
Go to Tutorial Part 3 các máy sản xuất các bộ phận trong nhà máy hoặc bộ phận tiếp nhận của nhà máy.

Model the Receiving Department with the Source

The first object that we’ll insert into our simulation model is the Source. It produces the parts, in our
case the monitors and game consoles, which will be moving through the production system. The Source
might, for example, represent the machines that produce the parts in the plant or the receiving
department of the plant.

• Double-click the Frame named Test to open it.


As it is easier to insert the objects in top view, i.e., in two dimensions instead of in three, change to

the tab View and click Planning View .

• Click the Source on the tab Material Flow in the Toolbox.

• Move the mouse over the Frame and click the left mouse button on the left side of the Frame to insert
it. You can zoom the contents of the Frame by rolling the mouse wheel.

1-34 , Plant Simulation 2201


© 2022 Siemens
Model the Receiving Department with the Source

By default Plant Simulation does not show the names of the objects. Sometimes this is helpful while
modeling though. Click the object with the left mouse button and press the spacebar. Click the tab
Captions and activate Name/Label enabled.

Theo mặc định, Mô phỏng thực vật không hiển thị tên của
các đối tượng. Đôi khi điều này hữu ích trong khi lập mô
hình. Nhấp vào đối tượng bằng nút chuột trái và nhấn phím
cách. Nhấp vào tab Chú thích và kích hoạt Kích hoạt
Tên/Nhãn.

, Plant Simulation 2201 1-35


© 2022 Siemens
1. Introducing Plant Simulation

You have to repeat this for each object whose name you would like to show.

To hide displayed object names in the 3D window again, click Show Object Names on the

View ribbon tab.


Tiếp theo, chúng ta sẽ chèn hai đối tượng kiểu Station. Trạm
là một đối tượng chung đại diện cho bất kỳ trạm hoặc máy
Model the Processing Stations with the Station nào mà các bộ phận dành một khoảng thời gian nhất định để
được xử lý.

Next, we will insert two objects of type Station. The Station is a generic object which represents any
station or machine on which parts spend a certain amount of time to be processed.

• Click the Station on the tab Material Flow in the Toolbox.

1-36 , Plant Simulation 2201


© 2022 Siemens
Model the Shipping Department with the Drain

• Move the mouse over the Frame named Test.

• Hold down Ctrl and insert one Station to the right of the Source and a second one to the right of the
first Station.

• Click the second Station with the right mouse button and rename it to Testing.

Đối tượng cuối cùng chúng ta cần là một đối tượng


Model the Shipping Department with the Drain kiểu Drain. Cống loại bỏ các bộ phận khỏi nhà máy
của chúng tôi. Ví dụ, nó có thể đại diện cho bộ phận
vận chuyển của nhà máy của chúng tôi.

The last object we need is an object of type Drain. The Drain removes the parts from our plant. It might,
for example, represent the shipping department of our plant.

• Click the Drain on the tab Material Flow in the Toolbox.

• Insert it to the right of the Station named Testing.

, Plant Simulation 2201 1-37


© 2022 Siemens
1. Introducing Plant Simulation

Bây giờ chúng ta đã chèn các đối tượng cần cho dự án đầu
tiên của mình, chúng ta phải kết nối chúng với Trình kết nối.
Connect the Material Flow Objects with Connectors Các Đầu nối xác định cách các bộ phận di chuyển trong nhà
máy của chúng tôi. Các bộ phận di chuyển trong nhà máy
theo trình tự mà bạn kết nối các đối tượng.

Now that we have inserted the objects we need for our first project, we have to connect them with the
Connector. The Connectors determine how the parts move through our plant. The parts move through
the plant in the sequence in which you connect the objects.

• Select the Connector on the tab Material Flow in the Toolbox to activate connect mode.

• Click the Source with the left mouse button. It is the starting point of the connection.

• Next, move the mouse over the icon of the first Station, the first target object, and left click to
connect the two objects.

• Repeat this for all objects within the Frame named Test.

1-38 , Plant Simulation 2201


© 2022 Siemens
Run the Simulation with the Event Controller

Để kết nối nhiều đối tượng lần lượt, giữ phím Ctrl trước khi bạn nhấp vào Trình kết nối
trong Hộp công cụ.

Note:
To connect several objects one after the other, hold down Ctrl before you click on the Connector
in the Toolbox.

We can now test the model by running a simulation with the EventController.

Run the Simulation with the Event Controller

You can start, stop and reset the simulation with the EventController. You can also control the speed of
the simulation.

Double-click the icon of the EventController to open its dialog window.

• Click Start/Stop Simulation to run the simulation.


You will notice that the Source produces the parts, that they are then moved on to the Stations, are
tested in the Station named Testing, and exit the plant via the Drain. If you reduce the simulation
speed a bit, by dragging the Faster/Slower slider to the left, you can see this better.
Bạn sẽ nhận thấy rằng Nguồn sản xuất các bộ phận, sau đó chúng được chuyển đến các Trạm, được
thử nghiệm trong Trạm có tên Thử nghiệm và thoát khỏi nhà máy qua Cống. Nếu bạn giảm tốc độ mô
phỏng xuống một chút, bằng cách kéo thanh trượt Nhanh hơn/Chậm hơn sang trái, bạn có thể thấy điều
này rõ hơn.

, Plant Simulation 2201 1-39


© 2022 Siemens
1. Introducing Plant Simulation Chúng tôi khuyên bạn nên luôn kích hoạt Thời gian thực trong Bộ
điều khiển sự kiện trong mô hình 3D của mình vì về nguyên tắc,
mô phỏng chạy nhanh hơn trong mô hình Chỉ a3D vì Mô phỏng
thực vật không phải tính toán các sự kiện hoạt hình cho 2D.

Note:
We recommend to always activate Real time in the EventController in your 3D model as the
simulation runs faster in principle in a3D Only model as Plant Simulation does not have to
compute the animation events for 2D.

• Click the buttons Start Simulation and Reset Simulation to stop the simulation and to
reset your simulation model.

1-40 , Plant Simulation 2201


© 2022 Siemens
Select Distributions for Processing and Production Times

As we have finished modeling the first part of the tutorial, we can deactivate Planning View and the
Grid on the View tab of the ribbon bar and thus display the model in three-dimensional space.

You can move the scene with the mouse and zoom it with the mouse wheel.
Vì chúng ta đã hoàn thành việc lập mô
hình phần đầu tiên của hướng dẫn,
chúng ta có thể hủy kích hoạt Chế độ
xem lập kế hoạch và Lưới trên tab Chế
độ xem của thanh ruy-băng và do đó
hiển thị mô hình trong không gian ba
chiều.

Bây giờ, chúng tôi sẽ thay đổi thời gian xử lý Thử


nghiệm trạm từ thời gian mặc định là 1 phút thành
Select Distributions for Processing and Production Times phân phối xác suất, giả sử là phân phối Bình thường.
Bằng cách này, thời gian xử lý cho mỗi phần sẽ dựa
trên một số ngẫu nhiên theo phân phối Bình thường.
We will now change the processing time of the Station Testing from the default time of 1 minute to a
probability distribution, let’s say the Normal distribution. This way the processing time for each part
will be based on a random number according to the Normal distribution.

, Plant Simulation 2201 1-41


© 2022 Siemens
1. Introducing Plant Simulation

• Open the dialog window of the Station Testing and click the tab Times.

• Select the Normal distribution from the drop-down list Processing time.

• Type in 0:55, 0:05, 0:01, 1:30 as the Processing time.

Plant Simulation shows the parameters, which this distribution requires, above the text box.
In Plant Simulation we separate seconds from minutes with a colon (:). So 1:30 stands for 1 minute
and 30 seconds, compare Enter Times.
The processing time for the station named Testing now follows the Normal distribution with a
mean value of 55 seconds and a standard deviation of 5 seconds.

Next, we’ll select a distribution in the Source according to which it produces the parts.

• Open the dialog window of the Source.

• Change the Interval to the Negexp distribution on the tab Attributes.

• Type in a distribution time of 1:00 minute.


Mô phỏng thực vật hiển thị
các tham số mà bản phân Thời gian xử lý cho trạm có tên
phối này yêu cầu, phía trên Thử nghiệm hiện tuân theo
hộp văn bản. Trong Mô phỏng phân phối Chuẩn với giá trị
thực vật, chúng tôi phân tách trung bình là 55 giây và độ lệch
giây với phút bằng dấu hai chuẩn là 5 giây.`
chấm (:). Vậy 1:30 là viết tắt
của 1 phút 30 giây, so sánh
Enter Times

1-42 , Plant Simulation 2201


© 2022 Siemens
Buffering Parts to Prevent the Material Flow Slowing Down

Để cho phép chúng tôi xem


liệu các bộ phận và trạm có bị
chặn trong quá trình mô
phỏng hay không, chúng tôi
chọn Tệp > Cài đặt mô hình >
3D và kích hoạt Hiển thị trạng
thái dưới dạng màu sắc nếu
không có đồ họa trạng thái.

To allow us to see if the parts and stations are blocked during the simulation, we select File > Model
Settings > 3D and activate Show states as colors if no state graphics are present.

Run the simulation again. You will notice that the parts now sometimes are yellow. This means that the
parts are blocked, i.e., they cannot move on to the following target station because it is still occupied by
the preceding part.

Chạy lại mô phỏng. Bạn sẽ nhận thấy rằng các bộ phận


bây giờ đôi khi có màu vàng. Điều này có nghĩa là các bộ
phận bị chặn, tức là chúng không thể chuyển sang trạm
mục tiêu sau vì nó vẫn bị chiếm bởi bộ phận trước đó

Vì chúng tôi đã tạo ra một nút cổ chai tiềm ẩn


This is an issue we need to solve. trong mô hình, chúng tôi sẽ chèn một Bộ đệm
giữa Nguồn và trạm có tên Thử nghiệm để
ngăn dòng nguyên liệu bị dừng lại. Bộ đệm
Buffering Parts to Prevent the Material Flow Slowing Down lưu trữ các bộ phận nếu các bộ phận hoặc
máy móc sau đây bị lỗi.

As we have created a potential bottleneck within the model, we will insert a Buffer between the Source
and the station named Testing to prevent the material flow from grinding to a halt. The Buffer stores
parts if the following components or machines fail.

, Plant Simulation 2201 1-43


© 2022 Siemens
1. Introducing Plant Simulation

• Delete the first Station .

• Select the object Buffer on the tab Material Flow in the Toolbox and replace the Station with
the Buffer.

• Connect the Source with the Buffer and the Buffer with the station named Testing. The new sequence
of stations now is Source - Buffer - Testing.

Instead, you an also hold down the Alt key, select the Buffer drag it over the Station in the Frame and
drop it there. When you proceed like this, the Connectors are retained, meaning you do not have to
reconnect the objects. Click No in the dialog that will be opened.

Thay vào đó, bạn cũng giữ phím Alt, chọn Bộ đệm kéo nó qua Trạm
trong Khung và thả nó vào đó. Khi bạn tiếp tục như vậy, các Trình kết
nối được giữ lại, nghĩa là bạn không phải kết nối lại các đối tượng.
Nhấp vào Không trong hộp thoại sẽ được mở.

1-44 , Plant Simulation 2201


© 2022 Siemens
Buffering Parts to Prevent the Material Flow Slowing Down

thuộc tính công suất

• Open the dialog window of the Buffer and change to the tab Attributes. Change the Capacity from 8
to 20.

• Apply the changes and close the dialog window.

When you now run the simulation, you will notice that the Buffer holds more than one part. Rather than
being blocked immediately, it accumulates parts to a maximum of 20 parts. Once it reaches the capacity
of 20, it will not allow any more parts to enter until a part has moved on to the station named Testing.
Bây giờ khi bạn chạy mô phỏng, bạn sẽ nhận thấy rằng Bộ
đệm chứa nhiều hơn một phần. Thay vì bị chặn ngay lập tức,
nó sẽ tích lũy các phần tối đa là 20 phần. Khi đạt đến dung
lượng 20, nó sẽ không cho phép thêm bất kỳ bộ phận nào
vào cho đến khi một bộ phận chuyển sang trạm có tên Thử
nghiệm.

, Plant Simulation 2201 1-45


© 2022 Siemens
1. Introducing Plant Simulation

Đệm các bộ phận trong dây chuyền sản xuất


cho biết cách bạn có thể sử dụng Bộ đệm

Buffering parts within the production line shows how you can use the Buffer.

Show the Number of Parts in the Buffer with the Chart

We will now insert a Chart into the model to view the number of parts that are located in the Buffer
during the simulation run.

• Click the object Chart on the tab User Interface in the Toolbox.

• Insert the Chart above the Buffer.

• Drag the Buffer onto the Chart and drop it. Make sure that Occupancy is selected in the dialog
Statistics Type. Click OK.
Kéo Bộ đệm vào Biểu đồ và thả nó. Đảm bảo rằng Tỷ lệ chiếm
dụng được chọn trong hộp thoại Loại thống kê. Nhấp vào OK.

1-46 , Plant Simulation 2201


© 2022 Siemens
Show the Number of Parts in the Buffer with the Chart

• The Chart window opens as a histogram.

• Click Reset Simulation and Start/Stop Simulation in the EventController to reset the
simulation model and to start the simulation.

• Save your simulation model.

The histogram shows how many parts were located in the Buffer during which percentage of the time.
Biểu đồ cho biết có bao nhiêu phần được đặt trong Bộ đệm trong thời gian
bao nhiêu phần trăm

, Plant Simulation 2201 1-47


© 2022 Siemens
1. Introducing Plant Simulation

If you closed the display window of the Chart, click it with the right mouse button, and select Show on
the context menu.

Showing statistics in a chart shows how you can use the Chart.

Tutorial Part 2
Nếu bạn chưa hoàn thành Phần 1 của hướng dẫn, bạn có thể
mở mô hình hướng dẫn tương ứng từ thư mục cài đặt Plant
Tutorial Part 2 Simulation > Plant Simulation > Tutorial, so sánh ví dụ bên dưới.

If you have not completed Part 1 of the tutorial, you can open the respective tutorial model from the
Plant Simulation installation folder > Plant Simulation > Tutorial, compare the example below.

1-48 , Plant Simulation 2201


© 2022 Siemens
Tutorial Part 2

We will start this part of the tutorial by creating another Frame within our folder TestingLine. Here we
also insert a Source, a Drain and several Stations. We will also be using the Frame named Test, which we
created in Part 1 of the tutorial. Chúng ta sẽ bắt đầu phần này của hướng dẫn bằng cách tạo một
Frame khác trong thư mục TestingLine của chúng ta. Ở đây chúng
tôi cũng chèn Nguồn, Cống và một số Trạm. Chúng tôi cũng sẽ sử
• Create a new Frame is described in Part 1. dụng Khung có tên là Kiểm tra mà chúng tôi đã tạo trong Phần 1 của
hướng dẫn.

• Click the folder TestingLine in the Class Library with the right mouse button and select New > Glass
Box Frame. This creates a Frame that shows its contents towards the outside, but not its default
graphic and its caption. Nhấp vào thư mục TestingLine trong Class Library
bằng nút chuột phải và chọn New > Glass Box Frame.
Điều này tạo ra một Khung hiển thị nội dung của nó ra
• Rename the new Frame to ProcessingLine. bên ngoài, chứ không phải đồ họa mặc định và chú
thích của nó.

, Plant Simulation 2201 1-49


© 2022 Siemens
1. Introducing Plant Simulation

• Kích đúp vào biểu tượng của Frame có tên là


ProcessingLine. Vì chúng tôi không cần đồ họa
Under Construction of the Frame nên chúng tôi xóa
nó.

• Double-click the icon of the Frame named ProcessingLine. As we do not need the graphic Under
Construction of the Frame, we delete it.

We will now insert the objects which we need into the Frame named ProcessingLine.

• Insert a Source .

• Insert a Station and rename it to PreTest.

• Open the dialog window of the Station named PreTest.

1-50 , Plant Simulation 2201


© 2022 Siemens
Tutorial Part 2

• On the tab Times select NegExp as the Processing time.

• Type in 1:00 as the Processing time.

• Insert a Drain .

Next, we will insert the two Frames named Test, which we created in Part 1, between the station named
PreTest and the Drain.

• When we insert our Test Frame, we see that it shows its caption. It does not show its content during
the simulation though. • Khi chúng tôi chèn Khung kiểm tra của mình, chúng tôi thấy rằng nó hiển thị chú thích của nó.
Tuy nhiên, nó không hiển thị nội dung của nó trong quá trình mô phỏng.

For this reason we change the type of the Test Frame from Model Frame to Glass Box Frame.

• Click the Frame named Test in the Class Library with the right mouse button and select Edit 3D
Properties.

• Change to the tab Captions and clear Name/Label enabled.

, Plant Simulation 2201 1-51


© 2022 Siemens
1. Introducing Plant Simulation

• Change to the tab Graphics, select Show content and clear Visible for the graphic group named
default.

• Click the Frame named Test in the folder TestingLine.

• Drag it between the station PreTest and the Drain, and drop it there.

• Rename this Frame to Test1. As Test1 shows its content, we see all of the stations contained
within, namely the Buffer, the station named Testing, and the Chart.

• To create a second Test Frame, hold down the Ctrl key, move the mouse over the Frame named Test1,
and click the left mouse button.

• Drag Test1 downwards and drop it. If you cannot see the derived Frame, scroll down in the Frame
ProcessingLine.

1-52 , Plant Simulation 2201


© 2022 Siemens
Working with Inheritance of Object Classes

• Rename this Frame to Test2.

Back to Tutorial Part 1


Trước khi chúng tôi có thể kết nối và chạy mô hình này, chúng
tôi phải chỉnh sửa các đối tượng Kiểm tra. Để làm điều này,
Go to Tutorial Part 3 chúng tôi sẽ chỉnh sửa đối tượng Kiểm tra trong Thư viện lớp.
Làm việc với tính kế thừa của các lớp đối tượng Việc chỉnh sửa đối tượng lớp sẽ tự động truyền các thay đổi
của chúng tôi tới tất cả các phiên bản của nó trong mô hình
Working with Inheritance of Object Classes mô phỏng, Test1 và Test2 trong ví dụ của chúng tôi.

Before we can connect and run this model, we have to edit the Test objects. To do this, we will edit the
object Test in the Class Library. Editing the class object automatically propagates our changes to all of its
instances in our simulation model, Test1 and Test2 in our example.

• Open the Frame named Test in the Class Library.

• Delete the Source, the Drain, and the EventController from the Frame named Test.

You will notice that this also deleted the Source, the Drain, and the EventController from the Frames
named Test1 and Test2.

, Plant Simulation 2201 1-53


© 2022 Siemens
1. Introducing Plant Simulation

Related Topics

Inheritance

Using Inheritance

Modeling Hierarchically

Introducing Classes

Working with Classes in the Class Library


Chuyển đổi mô hình giữa các khung
Bây giờ chúng ta sẽ chèn hai đối tượng Giao diện thay cho
Model Transitions between Frames Nguồn và Cống vào Khung có tên là Kiểm tra. Các đối tượng
giao diện xác định nơi luồng vật liệu vào và ra khỏi Khung.

We will now insert two Interface objects in place of the Source and the Drain into the Frame named
Test. Interface objects determine where the flow of materials enters and exits a Frame.

• Click the Interface on the tab Material Flow in the Toolbox.

1-54 , Plant Simulation 2201


© 2022 Siemens
Model Transitions between Frames

• Insert the first Interface in place of the deleted Source.

• Insert the second Interface in place of the deleted Drain.

• Click the Connector in the Toolbox.

• Connect the first Interface with the Buffer.

• Connect the station Testing with the second Interface.

Khi bạn mở Khung kiểm tra bên trong Dòng xử lý mô hình, bạn sẽ phát hiện ra rằng Nguồn
và Cống đã được thay thế bằng các đối tượng Giao diện trong cả hai đối tượng. Điều này
• Close the Frame. được gọi là Kế thừa. Đây là một tính năng quan trọng khi tạo mô hình mô phỏng trong
Plant Simulation

When you open the Test Frames inside of the model ProcessingLine, you will detect that the Source and
the Drain have been replaced with Interface objects in both objects. This is known as Inheritance. It is a
crucial feature when creating simulation models in Plant Simulation.

In the next step we connect all objects within the Frame named ProcessingLine using the object
Connector.

, Plant Simulation 2201 1-55


© 2022 Siemens
1. Introducing Plant Simulation

• Click the icon of the Connector in the Toolbox.

• Connect all the objects so that your model matches the screenshot below.

• First connect PreTest with the Interface of the Frame Test1 that is located on top.

• Then connect PreTest with the Interface of the Frame Test2 that is located on top.

• Finally connect Test1 with the Drain and then with Test2.

• Insert an EventController.

Bây giờ chúng ta có thể chạy mô phỏng với EventController. Bạn sẽ nhận thấy rằng các Khung kiểm tra hoạt động giống như bất kỳ đối tượng nào khác
trong mô hình. Tuy nhiên, khi bạn mở Khung thử nghiệm, bạn có thể xem hoạt động của các bộ phận trong Khung.
We can now run the simulation with the EventController. You will notice that the Test Frames behave
like any other object within the model. When you open the Test Frames however, you can view the
activities of the parts within the Frames.

By default we do not show Information Flow Objects and User Interface Objects in the simulation model
as we are mainly interested in the material flows. For this reason we do not see the Chart when we
insert our Frame named Test into the processing line. To show the Chart, clear the check box Exclude
from "Show content" of the location. If you do not want to show the Chart any longer, select the check
box again. Theo mặc định, chúng tôi không hiển thị Đối tượng luồng thông tin và Đối tượng giao diện người dùng trong mô hình
mô phỏng vì chúng tôi chủ yếu quan tâm đến các luồng vật liệu. Vì lý do này, chúng tôi không nhìn thấy Biểu đồ khi
chúng tôi chèn Khung có tên Thử nghiệm vào dây chuyền xử lý. Để hiển thị Biểu đồ, hãy xóa hộp kiểm Loại trừ khỏi "
Hiển thị nội dung" của vị trí. Nếu bạn không muốn hiển thị Biểu đồ nữa, hãy chọn lại hộp kiểm.

1-56 , Plant Simulation 2201


© 2022 Siemens
Model Transitions between Frames

Sometimes it is helpful to show the Chart at a small scale in the Frame instead of its icon, for example to
grasp the occupancy of the Buffers at a glance. To do so, double-click the Chart in the Frame named
Test. Change to the tab Display and activate Display in frame.

If you do not need this view any longer, clear the check box again.
Đôi khi, việc hiển thị Biểu đồ ở tỷ lệ nhỏ trong Khung thay vì biểu tượng của nó sẽ rất hữu ích, chẳng hạn như để nắm bắt
nhanh dung lượng của Bộ đệm. Để làm như vậy, bấm đúp vào Biểu đồ trong Khung có tên Kiểm tra. Chuyển sang tab Hiển thị
và kích hoạt Hiển thị trong khung.

Nếu bạn không cần chế độ xem này nữa, hãy xóa hộp kiểm một lần nữa.

, Plant Simulation 2201 1-57


© 2022 Siemens
1. Introducing Plant Simulation

Phân phối dòng vật liệu với chiến lược rút lui Trong bước này, chúng tôi sẽ sử dụng một chiến lược
thoát để phân phối luồng nguyên liệu. Chúng tôi sẽ phân
Distribute the Flow of Materials with an Exit Strategy phối dòng vật liệu sao cho 60 % bộ phận di chuyển đến
trạm Test1 trong khi 40 % còn lại di chuyển đến trạm
Test2.
In this step we will use an exit strategy to distribute the flow of materials. We are going to distribute
the flow of materials so that 60 % of the parts move to the station Test1 while the remaining 40 % move
to the station Test2.

• Open the dialog of the station PreTest and change to the tab Exit Strategy.

• Select Percentage from the drop-down list as the Strategy and select the check box Blocking. Then
click Apply.

• Click the button Open List below the drop-down list box Percentage.

• Type 60 into the first row, press the Enter key, then type in 40 into the second row. This means that
60 % of the parts move to the successor with the number 1 and 40 % to the successor with the
number 2.

1-58 , Plant Simulation 2201


© 2022 Siemens
Distribute the Flow of Materials with an Exit Strategy

• Click OK to apply your changes and to close the station named PreTest.

When you now run the simulation and analyze the Charts in the two Test stations, you will notice that
more parts are processed in the station Test1 than in the station Test2. This is caused by the distribution
we entered into the Percentage table of the station PreTest.
Bây giờ, khi bạn chạy mô phỏng và phân tích Biểu đồ trong hai trạm Kiểm tra, bạn sẽ nhận thấy rằng nhiều phần được xử lý trong
trạm Kiểm tra 1 hơn ở trạm Kiểm tra 2. Điều này là do phân phối mà chúng tôi đã nhập vào bảng Tỷ lệ phần trăm của PreTest của
trạm.

, Plant Simulation 2201 1-59


© 2022 Siemens
1. Introducing Plant Simulation

Nếu ngược lại, nghĩa là có nhiều bộ phận


được xử lý trên trạm Test2 hơn trên trạm
Test1, hãy xóa Trình kết nối giữa trạm
PreTest và trạm Thử nghiệm. Sau đó, trước
tiên hãy kết nối PreTest với Test1 và sau đó
là PreTest với Test2. Trạm kiểm tra mà bạn
đã kết nối đầu tiên với trạm PreTest là số kế
tiếp 1, trạm mà bạn đã kết nối sau đó với
trạm PreTest là số kế tiếp 2. Số kế tiếp 1 luôn
được phục vụ trước số kế tiếp 2.

Note:
If it is the other way round, namely more parts are processed on the station Test2 than on the
station Test1, delete the Connectors between PreTest and the Test stations. Then first connect
PreTest with Test1 and then PreTest with Test2. The test station which you connected first to the
PreTest station is successor number 1, the station which you connected after that with the PreTest
station is successor number 2. Successor number 1 is always served before successor number 2.

Model Conveyors

Now we are going to insert an object of type Conveyor into our simulation model. It represents a
conveyor feeding parts to the testing stations. First, delete the Connector between the Source and the
Station PreTest. To fit the Conveyor between the stations, you might have to move the rest of your
objects to the right. Drag a marquee across all objects to select them. Then, move them to the right with
the right arrow key. To move them by an entire grid unit at a time, hold down Shift and press the right
arrow key. Bây giờ chúng ta sẽ chèn một đối tượng kiểu Conveyor vào mô hình mô phỏng của chúng ta. Nó đại diện cho một bộ
phận cấp liệu băng tải đến các trạm thử nghiệm. Đầu tiên, xóa Trình kết nối giữa Nguồn và Trạm PreTest. Để băng tải
vừa với các trạm, bạn có thể phải di chuyển phần còn lại của đối tượng sang phải. Kéo một vùng lựa chọn trên tất cả
các đối tượng để chọn chúng. Sau đó, di chuyển chúng sang phải bằng phím mũi tên phải. Để di chuyển chúng theo
toàn bộ đơn vị lưới cùng một lúc, hãy giữ phím Shift và nhấn phím mũi tên phải.

1-60 , Plant Simulation 2201


© 2022 Siemens
Model Conveyors

• Select the Conveyor on the tab Material Flow in the Toolbox.

• Insert the Conveyor between the Source and the station PreTest.

• The first mouse click determines the starting point, the second click sets the end point of the
Conveyor.

• Connect the Conveyor with the Source and the station PreTest.
If you have trouble connecting the Conveyor, move it down with the down arrow key, connect it with
the Source and with the station PreTest, and then move it up again with the up arrow key.

, Plant Simulation 2201 1-61


© 2022 Siemens
1. Introducing Plant Simulation
Khi bạn chạy mô phỏng, bạn sẽ thấy các bộ phận di
chuyển dọc theo Băng tải đến trạm PreTest. Để đếm các
bộ phận đi vào Băng tải, chúng tôi sẽ lắp một cảm biến
vào đầu Băng tải. Sau đó, chúng tôi sẽ sử dụng Phương
Count Parts on the Conveyor with Variable and Method thức để thực hiện Mô phỏng thực vật tăng bộ đếm trong
Biến bất cứ khi nào một bộ phận đi qua cảm biến.

When you run the simulation, you will see the parts moving along the Conveyor to the station PreTest.
To count the parts entering the Conveyor, we will insert a sensor at the beginning of the Conveyor. We
will then use a Method to make Plant Simulation increase a counter in a Variable whenever a part
passes the sensor. Bạn có thể viết mã nguồn trong Phương thức để xác định hành vi đặc biệt không thể thiết lập
bằng cách chọn hoặc nhập cài đặt vào hộp thoại của đối tượng. Plant Simulation cung cấp
ngôn ngữ lập trình độc quyền SimTalk cho mục đích này.
You can write source code in a Method to define special behavior which cannot be set by selecting or
entering settings into the dialogs of the objects. Plant Simulation provides the proprietary programming
language SimTalk for this purpose.

Insert a Method from the tab Information Flow in the Toolbox below the object Conveyor.

• Click the Method with the right mouse button and rename it to counter.

• Open the dialog window of the Conveyor.

• Click the tab Controls.

• Click Sensors.

1-62 , Plant Simulation 2201


© 2022 Siemens
Count Parts on the Conveyor with Variable and Method

• Click New and enter 0 as the Position of the sensor. This places it at the start of the Conveyor.

• Click the button in the text box Control, select counter and then click OK.

• Nhấp vào Mới và nhập 0 làm Vị trí của cảm


biến. Điều này đặt nó ở đầu Băng tải.

, Plant Simulation 2201 1-63


© 2022 Siemens
1. Introducing Plant Simulation

• Close the dialog Sensor List.

• Click OK again to apply your changes and to close the dialog window of the Conveyor.

• Double-click the method counter.

• Copy the following source code and paste it into your method. To do so, select the text, then click it
with the right mouse button and select Copy on the context menu, or press Ctrl+A, Ctrl+C, and then
Ctrl+V.

NumberOfDevices := NumberOfDevices + 1

• Apply the source code by clicking the button on the Edit ribbon tab and then close the method
window.

Insert a Variable into your simulation model from the tab Information Flow in the Toolbox above
the Conveyor.

1-64 , Plant Simulation 2201


© 2022 Siemens
Count Parts on the Conveyor with Variable and Method

• Double-click the Variable and name it NumberOfDevices. Select the check box Initial value and
enter the value 0. This way the value of the Variable is automatically set to 0 when the simulation
starts.

• On the tab Display select the Font size > Large. If you want to, you can also select a different color.
We selected blue.

• Save your simulation model.

Run the simulation to watch the parts moving along the Conveyor triggering the sensor and increasing
the counter. To better follow the simulation, decrease the simulation speed in the EventController.

, Plant Simulation 2201 1-65


© 2022 Siemens
1. Introducing Plant Simulation

Save your simulation model.

Tutorial Part 3

Tutorial Part 3

If you have not completed Part 2, you can open the respective tutorial model from the Plant Simulation
installation folder > Plant Simulation > Tutorial, compare the example below.

Nếu chưa hoàn thành Phần 2, bạn có thể mở mô hình hướng dẫn tương ứng từ thư mục cài đặt Plant
Simulation > Plant Simulation > Tutorial, so sánh ví dụ bên dưới

1-66 , Plant Simulation 2201


© 2022 Siemens
Tutorial Part 3

In this part we will insert a second Source to produce Containers. We will also insert the object
AssemblyStation to load parts onto the Containers before the parts are processed. In doing so, you
might have to move the objects in the Frame a bit to the right.

• Insert another Source below the existing Source in the Frame named ProcessingLine.

• Click the new Source with the right mouse button and rename to SourceContainers.

• Click the ellipsis button in the text box MU on the tab Attributes and select the object Container in
the folder MUs in the Class Library. This way we tell the Source to produce containers.
Bằng cách này, chúng tôi yêu cầu Nguồn sản xuất các thùng chứa.
Trong phần này, chúng tôi sẽ chèn Nguồn thứ hai
để tạo Vùng chứa. Chúng tôi cũng sẽ chèn đối
tượng AssemblyStation để tải các bộ phận lên các
Bộ chứa trước khi các bộ phận được xử lý. Khi làm
như vậy, bạn có thể phải di chuyển các đối tượng
trong Frame sang bên phải một chút

, Plant Simulation 2201 1-67


© 2022 Siemens
1. Introducing Plant Simulation

Back to Tutorial Part 1

Back to Tutorial Part 2


• Kéo đối tượng AssemblyStation từ tab Material Flow
Load Containers trong Toolbox trên Connector giữa Source và Conveyor
và thả nó vào đó. Bằng cách này, bạn không phải xóa
Trình kết nối giữa Nguồn và Băng tải và lắp lại.

To load parts on the objects of type Container :

• Drag the object AssemblyStation from the tab Material Flow in the Toolbox on the Connector
between the Source and the Conveyor and drop it there. This way you don’t have to delete the
Connector between the Source and the Conveyor and insert it anew.

1-68 , Plant Simulation 2201


© 2022 Siemens
Load Containers

• Rename the station to LoadingStation. Connect the SourceContainers with the LoadingStation.

• Double-click the LoadingStation and select the Assembly mode > Attach MUs on the tab Attributes.
Change to the tab Times and type in a Processing time of 50 seconds, i.e., 0:50.

As the AssemblyStation is connected to two stations, the order in which you connect it with the
predecessors is important. If the assembly process does not work as expected, check the numbering of
the predecessors by dragging the mouse over the Connector and viewing the Tooltip.
Vì AssemblyStation được kết nối với hai trạm nên thứ tự bạn kết nối nó với trạm trước là rất quan trọng. Nếu quá trình lắp ráp không hoạt động
như mong đợi, hãy kiểm tra việc đánh số của những người tiền nhiệm bằng cách kéo chuột qua Trình kết nối và xem Chú giải công cụ.
, Plant Simulation 2201 1-69
© 2022 Siemens
1. Introducing Plant Simulation

In our case we entered 2 into the text box Main MU from predecessor as only the transporting part
from the predecessor with the number 2 can take on parts.

Tiếp theo, chúng tôi sẽ giới thiệu loại MU thứ hai,


Specify the Parts to be Produced in a DataTable đổi tên các loại thành Màn hình và
VideoGameConsole và sử dụng DataTable để đặt
Specify the Parts to be Produced in a DataTable tỷ lệ phần trăm của từng phần sẽ được kiểm tra
trong mô hình.

Next, we will introduce a second type of MU, rename the types to Monitor and VideoGameConsole,
and use a DataTable to set the percentage of each part that will be tested in the model.

• Insert a DataTable from the tab Information Flow in the Toolbox above the Source.

• Click the DataTable with the right mouse button and rename it to ProductData.

• Open the dialog window of the Source.

• Select Random as the MU selection on the tab Attributes.

• Click and select the table ProductData in the text box Table.

1-70 , Plant Simulation 2201


© 2022 Siemens
Specify the Parts to be Produced in a DataTable

• Click OK to apply your changes and to close the window.

, Plant Simulation 2201 1-71


© 2022 Siemens
1. Introducing Plant Simulation

Plant Simulation tự động định dạng DataTable có tên ProductData để dùng


Edit the Product Data làm bảng phân phối cho Nguồn. Bây giờ, chúng tôi sẽ nhập Màn hình và
GameConsole làm sản phẩm mà chúng tôi sẽ xử lý.

Plant Simulation automatically formatted the DataTable named ProductData to serve as the distribution
table for the Source. We will now type in Monitor and GameConsole as the products that we are
going to process.

• Open the DataTable named ProductData.

• Select the object Part in the folder MUs in the Class Library. Drag this object to row 1 of the
column MU of the table ProductData and drop it there.

• Enter 70.00 into row 1 of the column Frequency.

• Enter Monitor into row 1 of the column Name.

• Drag the object Part from the Class Library to row 2 of the column MU and drop it there.

• Enter 30.00 into row 2 of the column Frequency.

• Enter GameConsole into row 2 of the column Name.

1-72 , Plant Simulation 2201


© 2022 Siemens
Edit the Product Data

• Click outside the table cell which you just edited and close the table.

• Once you run the simulation, you will see that the Source produces 70 % monitors and 30 % game
consoles for testing. Bước tiếp theo sẽ là tách hai thiết bị này sau khi chúng đã được thử nghiệm trong các trạm Thử nghiệm
và ghi lại số lượng của từng thiết bị đã được thử nghiệm trong một Bảng dữ liệu.

The next step will be to separate these two devices after they have been tested in the Testing stations
and to record the amount of each that have been tested within a DataTable.
Để làm như vậy, chúng tôi sẽ lập trình một bộ điều khiển khác để tách màn hình và bảng điều khiển trò chơi sau khi chúng đã được
kiểm tra và ghi lại số lượng của từng thiết bị này vào một bảng.
To do so, we will program another control to separate the monitors and game consoles after they have
been tested, and record the amount of each of these devices in a table.

• Click the Drain with the right mouse button and rename it to Monitors.

• Delete the Connectors between the stations Test1 and Test2 and the Drain.

• Insert a second Drain below Monitors and rename it to GameConsoles.

• Insert a Station between the Testing stations and the two Drains.

• Click the Station with the right mouse button and rename it to Packing.

• Connect all objects and move the LoadingStation and the Conveyor to the left.

, Plant Simulation 2201 1-73


© 2022 Siemens
1. Introducing Plant Simulation

When you run the simulation now, you will detect the default behavior of the Station, namely that the
parts, on leaving the station Packing, alternate between the two Drains. We need to separate the
monitors from the game consoles and send them to their respective Drain though. We accomplish
this by using a Method as an exit control in the station Packing.
Khi bạn chạy mô phỏng ngay bây giờ, bạn sẽ phát hiện hành
vi mặc định của Trạm, cụ thể là các bộ phận, khi rời khỏi trạm
• Insert a Method below the Station named Packing. Đóng gói, luân phiên giữa hai Cống. Tuy nhiên, chúng tôi cần
tách màn hình khỏi bảng điều khiển trò chơi và gửi chúng đến
Drain tương ứng. Chúng tôi thực hiện điều này bằng cách sử
• Rename this Method to packingControl. dụng Phương thức làm điều khiển thoát trong trạm Đóng gói.

• We entered the following source code:

if @.cont.name = "Monitor" // move monitors to Drain named Monitors


@.move(Monitors)
else
@.move(GameConsoles) // move game consoles to Drain named
GameConsoles
end

• Open the Station named Packing and click the tab Controls.

• Click the button in the text box Exit and select the Method named packingControl.

1-74 , Plant Simulation 2201


© 2022 Siemens
Replace the Pallet with a Transport Box

Sau khi các bộ phận đã được xử lý trên Trạm có tên là Đóng gói,
• Click OK to apply your changes and to close the window. chúng được sắp xếp theo Phương pháp có tên là packingControl
và được gửi đến Hệ thống thoát nước tương ứng của chúng.
After the parts have been processed on the Station named Packing, they are sorted by the Method
named packingControl and are sent on to their respective Drains.

Vì các pallet trên băng tải và trên các trạm trông không thực tế cho mục đích
của chúng tôi, chúng tôi thay đổi đồ họa của Container. Vì chúng tôi muốn
Replace the Pallet with a Transport Box làm điều này cho tất cả các Vùng chứa, chúng tôi thực hiện nó trong lớp đối
tượng.
As the pallets on the conveyor and on the stations do not look realistic for our purpose, we change the
graphic of the Container. As we want to do this for all Containers, we do it in the object class.

• Open the folder named MUs in the Class Library.

• Click the Container with the right mouse button and select Open in 3D.

• Click into the background of the window and select Exchange Graphics.

, Plant Simulation 2201 1-75


© 2022 Siemens
1. Introducing Plant Simulation

• We selected the transport box named BoxFor2x1x2Entities.s3d and clicked Yes in the dialog that
was opened afterwards.

1-76 , Plant Simulation 2201


© 2022 Siemens
Replace the Pallet with a Transport Box

This then looks like this:

• When we run the simulation, we see that an empty transport box that moves onto the
LoadingStation, overlaps the loaded transport box that is already located there.
Khi chúng tôi chạy mô phỏng, chúng tôi thấy rằng một hộp vận chuyển trống di
chuyển lên LoadingStation, chồng lên hộp vận chuyển đã tải đã được đặt ở đó.

, Plant Simulation 2201 1-77


© 2022 Siemens
1. Introducing Plant Simulation

• Để khắc phục sự cố này, hãy nhấp vào LoadingStation và


nhấn phím M, Show Manipulators. Nhấp vào đường viền bên
trái của LoadingStation và nhấn phím Mũi tên trái cho đến khi
các hộp vận chuyển không chồng lên nhau nữa.

• To fix this problem, click the LoadingStation and press the M key, Show Manipulators. Click the left
border of the LoadingStation and press the Left arrow key until the transport boxes do not overlap
any longer.

Then you have to move the Source to the left to make the positions fit again, as we changed the
width of the LoadingStation. Now everything looks as it should.
Sau đó, bạn phải di chuyển Nguồn sang bên trái để làm cho các vị trí khớp lại, vì
chúng tôi đã thay đổi chiều rộng của LoadingStation. Bây giờ mọi thứ trông như
nó nên.

1-78 , Plant Simulation 2201


© 2022 Siemens
Record Simulation Results in a DataTable

Record Simulation Results in a DataTable

To finish our simulation model, we will insert a DataTable to record the ratio of the monitors to DVD
players that have been tested. Để hoàn thành mô hình mô phỏng của chúng tôi, chúng tôi sẽ chèn một
DataTable để ghi lại tỷ lệ của màn hình so với đầu DVD đã được thử nghiệm.

• Insert another DataTable on the top right side of our ProcessingLine.

• Rename the DataTable to Results.

• Select the entire table by clicking the button in the top left corner of the cell grid.

• Then, click the right mouse button on the Select All button, select Format, and change the data type
of the cells to Integer.

• Click OK to apply these changes.

• Now click Activate Column Index in the ribbon tab List.

, Plant Simulation 2201 1-79


© 2022 Siemens
1. Introducing Plant Simulation
• Bây giờ chúng tôi đã kích hoạt chỉ mục cột, tức là tiêu đề cột mà
chúng tôi có thể nhập tên sản phẩm của mình vào đó.

• We have now activated the column index, i.e., the column header into which we can enter our
product names.

• Enter Monitors into row 0, to the right of string, of column 1.

• Enter GameConsoles into row 0 of column 2.

• Click in an empty cell and close the table.

The Results table can now record the amount of monitors and game consoles that have been tested by
the TestingLine. The next step will be to modify the exit control named packingControl of the Packing
station to record the results. Bảng Kết quả hiện có thể ghi lại số lượng màn hình và bảng điều khiển trò chơi
đã được thử nghiệm bởi TestingLine. Bước tiếp theo sẽ là sửa đổi điều khiển
thoát có tên là packingControl của trạm Đóng gói để ghi lại kết quả.
• Open the Method named packingControl.

• Edit the source code as follows:

if @.cont.name = "Monitor"
@.move(Monitors)
Results["Monitors",1] += 1
else
@.move(GameConsoles)
Results["GameConsoles",1] += 1
end

Note:
You can also insert the column numbers in place of the index headings Monitors and
GameConsoles.

1-80 , Plant Simulation 2201


© 2022 Siemens
Show Simulation Results in a Chart
Hiện tại, số lượng các bộ phận trong bảng Kết quả tăng lên sau
mỗi lần chạy mô phỏng. Chúng tôi muốn xóa nội dung của bảng
mặc dù khi chúng tôi đặt lại mô phỏng bằng EventController. Để
• Click Apply Changes on the Edit ribbon tab. làm như vậy, chúng tôi chèn một phương thức đặt lại.

When you run the simulation, the amount of monitors and game consoles, which have been tested,
will be recorded in the Results table.

At the moment the numbers of the parts in the Results table increase with each and every simulation
run. We would like to delete the contents of the table though when we reset the simulation with the
EventController. To do so, we insert a reset method.

• Insert another Method object.

• Rename the Method to reset (notice how the default icon changes).

• Type in the following source code into the reset method:

Results.delete

• Click Apply in the Edit ribbon tab of the Method window and close the Method.

Run the simulation and compare the results in the table Results with the total number of parts that the
Variable recorded.

Show Simulation Results in a Chart

We will now insert a Chart to view the number of parts that have been tested by our ProcessingLine.

• Insert a Chart next to the DataTable named Results.

• Click the DataTable named Results and hold down the left mouse button.

• Drag the DataTable onto the icon of the Chart and drop it there.

• This opens a Chart of the DataTable named Results.

, Plant Simulation 2201 1-81


© 2022 Siemens
1. Introducing Plant Simulation

We entered the title Tested Devices on the tab Labels of the Chart.

Click the Chart with the right mouse button and select Show to reopen the display window of the
Chart.

• Save your simulation model.

1-82 , Plant Simulation 2201


© 2022 Siemens
Delete the No Longer Needed Interfaces
Trong các Khung con phiên bản hiện tại chỉ chứa một đối tượng dòng vật liệu
duy nhất, bạn không phải chèn Giao diện mà có thể kết nối trực tiếp Khung
con với khung trước và sau của nó trong các Khung xung quanh. Các kết nối
Delete the No Longer Needed Interfaces không có Giao diện chỉ hoạt động trên một cấp độ phân cấp thấp hơn, không
hoạt động trên một số cấp độ phân cấp lồng nhau.

In the current version sub-Frames that only contain a single material flow object, you do not have to
insert Interfaces, but can connect the sub-Frame directly with its predecessor and its successor in the
surrounding Frames. Connections without Interfaces only work across a single lower hierarchy level, not
across several nested hierarchy levels.

• Open the Frame named Test in the Class Library. Delete the Interfaces named Entry and Interface1.

The model now looks like this:

, Plant Simulation 2201 1-83


© 2022 Siemens
1. Introducing Plant Simulation

• Connect the station PreTest with the Buffer in the Frame Test1 and the station Testing with the station
Packing with a Connector each.

1-84 , Plant Simulation 2201


© 2022 Siemens
Delete the No Longer Needed Interfaces

• Repeat this for the Frame Test2.

Plant Simulation 2201 1-85


© 2022 Siemens
1. Introducing Plant Simulation

• Save your simulation model.

This completes our tutorial as we have solved all of our modeling tasks.

Back to Tutorial Part 1

Back to Tutorial Part 2

Back to Tutorial Part 3

Back to Working Through the Tutorial

1-86 Plant Simulation 2201


© 2022 Siemens
Index
Plant Simulation for Beginners 1-1
A Plant Simulation QuickStart 1-1
Animation
short description 1-2
Animation properties 1-8
Q
Quick Tour 1-1
QuickStart 1-1
B
Buffer
tutorial 1-43 R
Recording Simulation Results in a DataTable 1-79
C Revert all Objects to Standard Graphics
Chart example for renamed object 1-60
use as histogram 1-46
Connector S
tutorial 1-38 Section 2 1-48
Conveyor Section 3 1-66
tutorial 1-60 Simulation
short description 1-2
D Simulation and Animation 1-2
DataTable Simulation properties 1-5
example in Tutorial 1-70 Simulation results
Display Simulation Results 1-24 show 1-24
Distributing the Flow of Materials with an Exit Source
Strategy 1-58 tutorial 1-34
Distribution Station
for Processing Time 1-41 tutorial 1-36
Drain
tutorial 1-37
T
Take a Tour 1-1
E The Chart 1-81
Editing the DataTable 1-72
The Method and the Variable 1-62
EventController
Tutorial 1-31
tutorial 1-39

F U
First Steps 1-1 Using the Chart as a Histogram 1-46

I W
Inheritance Working Through the Tutorial 1-31
example 1-53
Interface
tutorial 1-54
Introducing Plant Simulation 1-1

L
Load Containers 1-68

P
Part 1 1-32

Plant Simulation 2201 Index-1


© 2022 Siemens
Siemens Digital Industries Software About Siemens Digital Industries Software

Americas: 1 800 498 5351 Siemens Digital Industries Software is driving transformation to
enable a digital enterprise where engineering, manufacturing
EMEA: 00 800 70002222
and electronics design meet tomorrow. Xcelerator, the compre-
Asia-Pacific: 001 800 03061910 hensive and integrated portfolio of software and services from
Siemens Digital Industries Software, helps companies of all sizes
For additional numbers, click here.
create and leverage a comprehensive digital twin that provides
organizations with new insights, opportunities and levels of
automation to drive innovation. For more information on
Siemens Digital Industries Software products and services, visit
siemens.com/software or follow us on LinkedIn, Twitter,
Facebook and Instagram. Siemens Digital Industries Software –
Where today meets tomorrow.

siemens.com/software
© 2022 Siemens. A list of relevant Siemens trademarks can
be found here. Other trademarks belong to their respective
owners.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy