Introduction To Tecnomatix Plant Simulation English
Introduction To Tecnomatix Plant Simulation English
Introduction to
Tecnomatix Plant Simulation
Analyze faster
Plan more easily
Decide more reliably
Increase your productivity!
siemens.com/software
Contents
Index ─ Index-1
We will create a simple simulation model and explain the underlying concepts of the terms:
• Simulation Properties
• Animation Properties
We also will:
You can then Work Through the Tutorial. There we introduce some of the most important objects.
What's New
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.
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 Properties
The animation component shows the simulated material flows during the simulation in a graphically
pleasing and clear way.
We explain the:
• Animation Properties
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.
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
The topic Working Through the Tutorial guides you through the individual modeling steps.
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.
We can set these and additional settings for the simulation of the material flows:
• 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.
• 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
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.
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.
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.
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 animation of the robot arm on the tab Robot Arm Animation
We can click the button to change to the simulation properties of the objects.
• 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.
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.
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.
• Two additional Stations which further process the parts. • Hai Trạm bổ sung để xử lý thêm chi tiết
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.
Để 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.
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:
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:
Compare the video Creating a Simple Model under Window > Start Page > Getting Started > Videos.
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.
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.
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.
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.
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:
• 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.
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.
• 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 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.
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:
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
• 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ó.
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
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
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:
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.
Go to Tutorial Part 1
Go to Tutorial Part 2
Go to Tutorial Part 3
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.
• Click Create New Model on the Start Page to create a new model.
• 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.
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.
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.
• 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.
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.
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
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.
• 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.
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.
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.
Để 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.
You can start, stop and reset the simulation with the EventController. You can also control the speed of
the simulation.
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.
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.
• Open the dialog window of the Station Testing and click the tab Times.
• Select the Normal distribution from the drop-down list 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.
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.
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.
• 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ở.
• Open the dialog window of the Buffer and change to the tab Attributes. Change the Capacity from 8
to 20.
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.
Buffering parts within the production line shows how you can use the Buffer.
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.
• 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.
• Click Reset Simulation and Start/Stop Simulation in the EventController to reset the
simulation model and to start the simulation.
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
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.
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ó.
• 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 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 Graphics, select Show content and clear Visible for the graphic group named
default.
• 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.
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.
• 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.
Related Topics
Inheritance
Using Inheritance
Modeling Hierarchically
Introducing Classes
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.
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.
• 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.
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.
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.
• 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.
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.
• 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.
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.
• Click Sensors.
• 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.
• Click OK again to apply your changes and to close the dialog window of the Conveyor.
• 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.
• 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.
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.
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
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
• 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.
• 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.
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.
• Click and select the table ProductData in the text box Table.
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.
• 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.
• Drag the object Part from the Class Library to row 2 of the column MU and drop it there.
• 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 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.
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.
• Open the Station named Packing and click the tab Controls.
• Click the button in the text box Exit and select the Method named packingControl.
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.
• Click the Container with the right mouse button and select Open in 3D.
• Click into the background of the window and select Exchange Graphics.
• We selected the transport box named BoxFor2x1x2Entities.s3d and clicked Yes in the dialog that
was opened afterwards.
• 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 ở đó.
• 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.
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.
• 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.
• We have now activated the column index, i.e., the column header into which we can enter our
product names.
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.
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.
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.
• Rename the Method to reset (notice how the default icon changes).
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.
We will now insert a Chart to view the number of parts that have been tested by our ProcessingLine.
• 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.
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.
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.
• Connect the station PreTest with the Buffer in the Frame Test1 and the station Testing with the station
Packing with a Connector each.
This completes our tutorial as we have solved all of our modeling tasks.
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
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.