Move With
Entity-Related Move Logic Statement
The Move With statement functions like a Move statement with the additional flexibility to move an Entity using a designated Resource such as a person or forklift.
Syntax
Move With <res1> {, <priority>}
Or <res2> {, <priority>}
{For <time >} {Then Free}
Examples
Move With Technician, 100
Move With Operator1, 399 For 3 min
Move With Truck1, 99 Then Free
Move With Operator1 Or Operator2
Parameters
<res1>
Resource to captured and used to transport the Entity.
<res2>
Alternate Resource to captured and used to transport the entity.
<priority>
An optional part of the statement that defines the Entity's priority in regards to how quickly it receives a requested Resource. If the Resource is already owned by the Entity, this priority is ignored.
<time>
The length of time the system takes to execute the move. Used only if the Resource is static. This expression is evaluated whenever the statement is encountered. If no time unit is specified, the Move With function defaults to ProModel's General Information setting.
Move With also includes an opptional Then Free addition to the statement, which frees the acquired Resource once the move has taken place.
Remarks
The Move With statement is valid only in Move Logic. Move With may only be encountered once by an Entity within the same move logic.
With the Or operator in the Move With statement, you can designate alternative Resources for making the move. The statement captures the first available Resource designated in its expression and makes the move. As soon as the destination becomes available, the Entity implicitly gets the Resource. However, if one of the resources is already owned by the Entity, it uses owned Resource.
If a Resource is dynamic, a time (For 'time expression') is not valid. If you use "For 'time'" with a dynamic Resource, you receive a run-time error. The Resource travels based on either the time or speed/distance defined in the path networks module.