🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
The Miscellaneous tab is used to input various miscellaneous parameters related to the yard. Tab Page Details ![](https://box.kancloud.cn/c43176b0209eece4475418302bb7fd60_682x496.png) Truck Straight Pickup Time- This value is the time it takes for a truck to either: a) pickup a chassis from a wheeled block; or b) pickup a container from a block that doesn't have an assigned [unstacking resource](Resource_Assignments.html). Truck Straight Dropoff Time- This value is the time it takes for a truck to either: a) dropoff a chassis to a wheeled block; or b) dropoff a container to a block that doesn't have an assigned [stacking resource](Resource_Assignments.html). Stack Trigger - This trigger fires when a truck is dispatched to dropoff a container. This may happen when: a) a container is placed on a [truck](Truck.html) from a quay [crane](Crane.html); or b) when a dropoff truck arriving through the gate gets to the [gate to yard](GateToYard.html)object. You may write code that will be executed when the trigger fires in order to insert tasks into the truck's task list, such as additional wait time or other required travel. Tasks can be inserted: a) before the truck begins the dropoff task; b) after the truck arrives at the block; or c) after the truck has dropped off the container. To insert a new task, use the command "addyardsubtask()." Unstack Trigger - This trigger operates like the "Stack Trigger" except that it fires when a truck is dispatched to pickup a container. When a truck is performing a stack or unstack operation, the default logic will cause the truck to perform two general actions.聽 First, the truck will travel to the block.聽 In the case of a stack operation, it will travel laden to the block.聽 In the case of an unstack operation, it will travel empty to the block.聽 Second, the truck will stack/unstack a container into/from the block.聽 In order to fully customize a聽truck's behavior, it may be necessary to prevent one or both of these general actions from occurring.聽 This can be achieved by returning one of the following macros in the Stack or Unstack Trigger: - YARD\_IGNORE\_TRAVEL\_TO\_BLOCK - This will prevent the truck from traveling to the block. - YARD\_IGNORE\_STACK\_FINAL - This will prevent the truck from stacking the container. - YARD\_IGNORE\_UNSTACK\_FINAL - This will prevent the truck from unstacking the container. - YARD\_IGNORE\_TRAVEL\_AND\_STACK - This will prevent both the truck travel to the block and the stacking of the container. - YARD\_IGNORE\_TRAVEL\_AND\_UNSTACK - This will prevent both the truck travel to the block and the unstacking of the container. Note: For yard stack tasks, you may call containerstackbytruck() to have a yard resource other than the truck stack the container into a block.聽 The containerstackbytruck() command will call into the yard stack trigger.聽 You need to make sure to include logic to filter out any unwanted calls to the custom logic in the yard stack trigger.聽 Otherwise, you may end up with an infinite loop.聽 Similarly, you need to include that same logic for the yard unstack trigger.聽 For yard unstack tasks, you cannot call containerunstackbytruck() to unstack the container, since the聽truck that is executing this unstack task has already claimed that container.聽 You would then create a TASKTYPE\_LOAD task to load the container from the block into a resource, and create a TASKTYPE\_UNLOAD task to unload the container from the resource onto the聽truck.聽 You may also need to write additional logic in the GateToYard custom transaction trigger. Chassis Transaction Operation- This trigger allows you to write custom code for dropping off and picking up empty chassis. The default return value of 0 tells the truck to pick up or drop off from the Chassis Pool. Model Data Import Logic- This is the code used by the Model Data Importer. It reads values from Excel and creates the model based on the imported information. For more information, see the [Import Model Data](ImportModelData.html)topic. The importing mechanism can be completely customized to your needs through the code of this trigger. The pick list options provides example code to help customize the import process. Draw Containers By- This value determines the colors of the containers that move through the model. When you choose an option in the dropdown box, the color key will be displayed in the list below. Most of the color coding options are self explanatory except VR Mode. VR (Virtual Reality) Mode draws the containers in realistic colors (gray, dark red, dark green, etc.) and also draws a ribbed texture on the boxes. This coloring scheme may be useful for presentations or capturing images of the model; however, it is time consuming to draw this much detail and will slow down the speed of the model.