Logic_orders.pdf

(90 KB) Pobierz
1.1. Logic orders used in ProModel
An important element, facilitating determination of process logic by a user are logic
commands. Logic commands are determining certain actions or logic operations. Usually
they are related to some events such as an element’s entry to a given station
Błąd! Nie
można odnaleźć źródła odwołania..
Logic commands are divided into expressions:
1. basic,
2. operational,
3. related to an element leaving a station,
4. related to elements’ arrival,
5. related to exclusion,
6. resource orders,
7. orders determining start and end,
8. orders regarding pauses and shifts.
Basic expressions (commands).
Basic expressions can be used as elements of an any
logic and include commands such as:
Activate – start an independent subroutine, i.e. user-defined subprogram or a command
group,
Animate – stops or starts animation and sets its speed,
Assignment – assigns value of a numeric expression to a variable, attribute or array of
variables,
Close – closes a file opened by commands: Write, Writeline, Read,
Comment – user comments – are not taken into account during simulation,
Dec – decreases value of a variable, element from the array of variables, or an attribute
by a numeric expression,
Display – brings a simulation to a halt and displays an optional message with a value,
Inc – increases value of a variable, element from an array of variables or an attribute by
a numeric expression,
Log – comprises time stored in a variable, attribute or array of variables from current
clock time and registers it, to make it visible in the output module,
MapArr – assigns unique variable’s values to each of array cells,
Order – causes creation of a certain number of elements and their injection into the
system to a designated station,
Pause – causes the simulation to stop until user selects the Resume option from the
Simulation menu, appearing over the course,
Prompt statement – causes the simulation to pause and display a message and an input
field or a selection menu. The entered or selected value is subsequently assigned to a
designated variable, element from an array or an attribute.
Read – causes the next number to read from the general read file and its assignment to a
variable, element from an array or an attribute,
Report – calculates and compiles a report from current statistics into an external
database,
Reset – in case of a written file, causes creation of a file or if it exists it is erased and
opened for writing, in case of a read file, a file is opened and ready to be read from the
beginning, used together with Report,
Send – sends a request of importing a defined number of particular item’s types to a
designated station.
Sound – activates sound defined in the sound file,
Stop – causes a simulation to discontinue running and if message is compiled it will be
displayed,
Trace – activates or deactivates the trace and displays a certain message for the user by
means of user logic.
View – changes the view in the window to Layout plan of arranged objects by means of
an user’s logic,
Warm-up – allows for the simulation to run until the system reaches its equilibrium
(state of balance), statistics are accumulated only after the warm-up period ends,
Write/Writeline – causes a numeric or text expression to be saved in the general read
file,
Basic commands also include
control orders.
Begin/End – defines start and end of an expression block, being a group of orders
executed together,
Break – used in loop inside a message block, causes a break out, exit from the loop and
continuation of performing the next message inside the block,
BreakBlk – causes exit from the current message block and continuation upon the next
message outside the block,
Goto – causes model to skip to a message determined by a designated label,
If – then – causes message or message block execution only if, the Boolean expression
is true.
If – then – else – causes message or message block execution only if, the Boolean
expression is true, otherwise another order or order block is realised,
Return – ends subroutine realisation and optionally returns value of the notifier
message, if it appears in other logic to subroutine like a tough break and completely
exits the thread,
Do While – repeats a message or message block in a continuous manner, when the
condition remains true. Do – While is a loop, which is always executed at least once.
While Do – causes repeatable execution of a message or message group as long as the
condition is fulfilled, if a condition is not fulfilled the message is not executed even
once.
Operational expressions (commands).
Operational orders are commands followed by
an item, upon its arrival at a station and contain orders related both to the item and a
resource, including also basic commands.
Operational expressions associated with the item:
Accum – delays the process upon an item until a certain number of items is
accumulated, after accumulation of items the process is continued,
Combine – combines item of one kind or different kinds into a single item,
Create – creates a particular number of items from a current item, every new item
retains attributes of the original item,
Graphic – causes change of current item’s graphic to a predetermined number for the
graphics index, which was defined for a given item,
Group – combines certain number of items of a given kind into a single item, items
constituting the groups are stored and re-activated with the Ungroup order,
Join – joins a particular number of items of a specific kind with a current item. Items
after being joined lose their identification.
Load – load a specific number of items to a current item, items after being loaded retain
their identification until the next unloading by the Unload message,
Match – causes waiting until the value of certain attributes of items being in the process
is matched with the value of equivalent attribute of another item in the system,
Move – moves items to the end of a queue or a conveyor belt, Move with – moves an
item using a designated resource, Move for – determines the time required to move an
item,
Rename as – determines a new name for a current item,
Route – causes selection by an item a particular route block,
Split as – splits an item into several items and assigns them new names, new items have
got identical attributes with the original item,
Ungroup – ungroups items grouped by the Group message,
Unload – unloads items loaded with the Load message, causes that the item transporting
other items – loaded with them by Load or Group messages – unloads a certain number
of those items upon encountering a pre-established condition,
Wait – delays an item’s process until a predetermined time lapses,
Wait Until – delays execution of a certain message block until a particular Boolean
variable becomes fulfilled.
Operational commands associated with a resource:
Free – frees up a resource acquired by an item,
Get – assigns a resource or resource combination to a technological operation or
transport activity AT optionally determined precedence,
Jointly get – assigns a combination of resources AT optionally determined precedence
for a task, when acquiring multiple resources none will be acquired, until all will be
available. The difference between Get and Jointly get for several resources is, that the
Get message causes acquisition of resources as soon as they become available, whereas
Jointly get doesn’t acquire any resources until all are available.
Use for – uses a resource or combination of resources for a task, AT optionally
determined precedence, if resources become available. It means utilisation of a resource
for a certain time period, and then release of it when the time lapses.
Exit (from a station) commands
are executed, when an item leaves a station and can
contain general commands as well as graphic orders.
Orders
arrive, are executed upon items entry to the system and can contain general
orders and graphic orders.
Exclusion orders
can be performed when exclusion occurs and can contain general
messages apart from those, which refer to whichever attribute type. Additionally the
following operational commands can be used: free, get, graphic, jointly get, use, wait.
Resource orders
are executed, when a resource arrives at a network node or departs
from it. They are defined in the node editor. They can contain general commands as well as
graphic orders.
Start and end orders
of a simulation are executed at the beginning and end of a
simulation. They can contain general orders.
Change and break orders
are orders during writing changes and logic of breaks,
which control what is happening when resources and stations are not working.
Zgłoś jeśli naruszono regulamin