The plant editor

In Sun Tech WCS the plant is not programmed: it is drawn. The web editor, served by the WCS itself, turns the drawing into the model on which the engine computes routes, and shows the plant while it works.

The Sun Tech WCS editor with the sample plant: infeed bay, two conveyors, stacker crane linked to the rack, a third conveyor and the outfeed bay; the engine is running and a pallet is on the second conveyor.
The editor with the repository's sample plant. The engine is running and the pallet is on the second conveyor, highlighted in the drawing.

What it is

It is a web application served by the WCS at /editor, built on draw.io. It replaces the desktop editor of earlier versions, which is not part of the repository. You sign in with the same key as the API.

Drawing the plant

  • A shape dropped on the drawing becomes a device; an arrow between two devices becomes a junction.
  • Every device has its properties. There are windows for the list of devices and junctions, the missions, the commands, the WMS cells linked to the devices, the driver settings and the plant checks.
  • Changes go through the same API every other system uses, with an exclusive edit lease, and most of them need the engine stopped or paused.

Watching it work

With the engine running the editor shows the state of the devices live and the load units on the drawing: the pallet moves from one device to the next while the WCS takes it to its destination.

The plant file

The whole plant can be exported and imported as JSON, and drawings from the old editor can be imported too; before replacing the plant the editor shows a comparison. Instead of the editor, the plant can be loaded straight through the API, as the sample plant's script does, and the two ways can be combined. The guide is Modelling a plant.

Browsers

The editor is verified on Chromium. Edge and Chrome are expected to work but not verified; Firefox and Safari have not been tried.

The picture above is the repository's sample plant: you can open it yourself, in about fifteen minutes, on one Windows machine. Get started

Read next: features · integration with a WMS · Sun Tech WCS