Plant Simulation Placing and removing entities from a container

2021-10-07T00:01:34Z
Plant Simulation

Summary


Details

There are several ways to place or remove Entities to/from containers. One can access the next available or a specific location/MU.


These methods are not interchangeable. Each requires different error checking.



Solution

Note, when the Container is created, the contents list is empty. 


The software handles 2 cases.


1. The container/transport contains all the same objects. For example, a box full of lug nuts. It does not matter which lug nut you remove as all are exactly the same.


For this case one can use cont.move() to remove the next available object.


Example: @.cont.move()


An error will occur if the container/transport is entirely empty.


2. The container/transport contains different objects arranged in a specific order/placement.


Where a particular object resides in a particular location one can use


cont[Column,Row].move() 


or


pe(Column,Row).cont.move()


format.


Example: @.cont[Column,Row].move()


 or


 @.pe(2,3).cont.move(machine)


The cont[Column,Row] method has these caveats:


1. If the container slot addressed is empty, an error is issued. This error can be avoided by checking that the slot is not empty before trying to move. 


2. If the load sequence changes the wrong part may be removed.


3. If the dimensions (Column,Row) of the container are changed, the subscripting must be changed.


 This implies that if one changes the dimensions after creating the controls the model will error out.


The method 'pe' should be used to move MU's to specific positions if they may not yet exist. It will create the slot if it does not exist.


Examples where container has 1 Row and 4 Columns:


Sensor1 loads 4 MU's into the container. It uses 'pe' to place them in the slots.


 for ii := 1 to 4 loop 


 Buffer.cont.move(@.pe(ii,1)) 
 next


Then Sensor2 removes the 3rd MU.


 @.pe(3,1).move(Buffer1)


Then Sensor3 puts an MU in the empty slot


 Buffer.cont.move(@.pe(3,1))


The Sensor4 moves an MU to a slot that does not yet exist.


 Buffer.cont.move(@.pe(3,2))



Notes and References


Hardware/Software Configuration

Platform: AMD64
OS: window
OS Version: 764SP1
Product: TECNOMATIX
Application: PLANTSIMULATION
Version: V12.1
Function: ALL

Ref: 002-7009801

KB Article ID# PL7009801

Contents

SummaryDetails

Associated Components

Application Education Gantt Chart General Interface Package Professional Runtime Standard VSM Library