Skip to main content

Schedule Sync

Schedule Sync Documentation

Schedule sync is a mechanism that enables external control of machine scheduling. This functionality serves two independent purposes:

  1. Managing Order Hold Status: Orders can be placed on hold or recalled from machines, even if they are currently running.
  2. Order Sequencing: The order of execution for jobs on a machine can be externally defined.

Currently, schedule sync is implemented using SQL, with plans to introduce a webhook-style API in the future.

SQL Schema

Field NameTypeSizeRequiredDescription
order_varchar20YesUnique order identifier
materialvarchar20YesMaterial associated with the order
pcodevarchar20YesProduction code
onholdtinyint-NoIndicates if the order is on hold (1 = Yes, 0 = No)
machinenumint-NoMachine number assigned to the order
sequenceint-NoSequence number determining execution order
sqlplantvarchar3NoPlant identifier

Setting Order Hold Status

This feature allows an external system (e.g., ERP) to control the hold status of orders without relying on integration middleware to detect and apply changes.

  • Orders Not Yet Sent to a Machine: Placing an order on hold prevents it from being assigned to a machine. A scheduled order will remain in the schedule but will be skipped.
  • Orders Already at a Machine: Setting an order on hold recalls it from the machine. If the order is currently running, the machine will be halted before recalling the order.

Hold Jobs Not In Sync Data

This option places all existing orders on hold if they are absent from the source data. If an order is deleted from the ERP, this setting ensures that it is held. While this behavior is often desirable, manually entered test orders will also be continuously held.

Order Sequencing

note

Preliminary: Subject to change. Please contact AMS if this feature is of interest.

Schedule Sync uses the machinenum and sequence fields to externally control machine scheduling. The sequence number serves as a sorting key rather than a fixed position and does not need to be contiguous.

Key Considerations:

  • Affects Only Unsynchronized Orders: Sequence and assignment changes only apply to orders that have not been sent to the machine. To minimize the number of orders at a machine, we recommend enabling the Auto-Push feature.
  • Manual Recall Required for Sent Orders: Once an order has been sent to a machine, it must be manually recalled or placed on hold for resequencing.
  • Sync Data Priority: Orders present in the sync data are sequenced ahead of orders not included in the sync data.
  • Unscheduled Orders: Orders with machinenum set to 0 will be unscheduled.

Configuration

Schedule Sync Configuration