Custom Logic Applicability

Custom logic types let you define specific behaviors for resources in Factory Flow Simulation. This section describes the logic types supported and the possible outputs.

This page discusses:

Types and Use Cases

Below is the list of applicable logic types, their use cases, and the types of event that trigger them.

Table 1. Types and Use Cases
Logic Type Trigger Event Use Cases
Activity Selection At Select Operation event and returns the operation.
  • Assign a Task to any Worker/AGV.
  • Decide which operation to run on the machine or conveyor DZ.
  • Schedule a new event on any resource using the Creator event.
AGV Selection At Select AGV event of a resource.

Returns the AGV for the current workpiece.

  • Assign a Task to any Worker/AGV.
  • Schedule a new event on any resource using the Creator event.
  • Select a Worker/AGV for a product transfer\operation.
As Per Table Customize the behavior of a train's “As per Table” departure condition.
At Accept Part At Accept Part event of a resource.
  • Assign a Task to any Worker/AGV.
  • Schedule a new event on any resource using the Creator event.
At Activity Start At Operation Start event of an operation.

Returns the operation with the modified requirements and outputs.

  • Assign a Task to any Worker/AGV.
  • Modify the operation requirements and outputs.
  • Schedule a new event on any resource using the Creator event.
At Break End At Break End event of a resource.
  • Assign a Task to any Worker/AGV.
  • Schedule a new event on any resource using the Creator event.
At Break Start At Break Start event of a resource
  • Assign a Task to any Worker/AGV.
  • Schedule a new event on any resource using the Creator event.
At Buffer Request At CREATE REQMTS event of a buffer resource.

Returns the operation for which the request is to be made on the current buffer resource.

  • Assign a Task to any Worker/AGV.
  • Schedule a new event on any resource using the Creator event.
At Cycle End At Operation End event of a parent/group operation.
  • Assign a Task to any Worker/AGV.
  • Schedule a new event on any resource using the Creator event.
At Delay End At Delay End event of a resource.
  • Assign a Task to any Worker/AGV.
  • Schedule a new event on any resource using the Creator event.
At Disengage Allows you to dynamically determine/customize the number of followers to disengage.
At Engage Allows you to dynamically determine/customize the number of followers to engage.
At Initialization At Initialization event of a resource.
  • Assign a Task to any Worker/AGV.
  • Schedule a new event on any resource using the Creator event.
At Route Selection At AGV_ROUTE_SELECT event.

Returns the Route Group to be used for a Train.

Schedule a train based on the demand.
At Shift End At Shift End event of a resource.
  • Assign a Task to any Worker/AGV.
  • Schedule a new event on any resource using the Creator event.
At Shift Start At Shift Start event of a resource.
  • Assign a Task to any Worker/AGV.
  • Schedule a new event on any resource using the Creator event.
At Travel End At AGV AT DEC event of an AGV.
  • Assign a Task to any Worker/AGV.
  • Schedule a new event on any resource using the Creator event.
At Work Start At Work Start event of an operation (after the part and worker requirements are done).

Returns the modified operation duration.

  • Assign a Task to any Worker/AGV.
  • Modify the Activity Duration.
  • Schedule a new event on any resource using the Creator event.
Batch Dispatch Decide the Target production resource for the batch of cards dispatched from the batch building box.
Card Dispatch Decide whether the production card must be sent to BBB or directly to production.
Flow Mode In At Product Route event of a resource.

Returns the workpiece to be accepted for the request on the current resource.

  • Assign a Task to any Worker/AGV.
  • Schedule a new event on any resource using the Creator event.
Flow Mode Out At Select Reqt event of a resource.

Returns the request to be met for the product being routed.

  • Assign a Task to any Worker/AGV.
  • Schedule a new event on any resource using the Creator event.
Launcher Reshuffle At LAUNCHER_RESHUFFLE event for example: at the start of a shift). Reshuffle the available cards in a resource's launch menu.

This happens when a card is added to a launcher.

Mobile Selection At Select Worker event of a resource.

Returns the Worker for the current request.

  • Assign a Task to any Worker/AGV.
  • Schedule a new event on any resource using the Creator event.
  • Select a Worker/AGV for a product transfer/operation.
Mobile Task Selection At Select Task event of a Worker and an AGV resource.

For AGVs:

  • Assign Move Task, product transfer and Park Task.
  • Schedule a new event on any resource using the Creator event.

For Workers:

  • Assign a product transfer/ operation Task.
  • Schedule a new event on any resource using the Creator event.

Example

The following image illustrates the event flow for a specific use case: