Extend QT Gui on TXT controller
DRAFT - DO NOT IMPLEMENT
Abstract
Extend QT Gui on TXT controller to toggle mode (demo / normal) and enter mhu number.
Potential by-pass implementation for reading mhu number from QR-codes (camera).
This features includes the following items:
-
implement a toggle push bar (or: toggle-slider) to switch from normal operation to db-demo mode -
implement a number block with display to enter an mhunumber (int) -
implement a START,LOADandSTOPbutton. -
implement a HALTbutton (optional).
Rationale
The following discus the background of the two requirements:
-
The 'mhu' (material handling unit) is used to identify a work piece (these funny white, red and blue colored wooden cylinders that represent a transport carrier with a material on top). When an
sfcu(shop floor control unit) should be executed the storage will issue a material from stock and load it on a transport carrier. To let a station know what to do with this object (or: whether it is expected to be there at all) this object's 'mhu' has to be connected to thesfcu(see feature #75) As long as the camera integration is new and perhaps subject to changes a simple method to communicate themhuto the station is desirable and would allow the station to lookup the pairedsfcufor it. This could be achieved by enabling users to manually input themhunumber to the station TXT display. -
The station can be run in two main modes:
normalordemo. Indemo-mode, a fresh standard database is recreated whenever therunstn.pymodule is restarted. Innomal-mode the configured database will be re-used in state is was left after last exit ofrunstn.py -
In "emergency" cases the station's operation can be halted immediately by issuing a
haltevent. This could implmented as a gui button or as a hardware switch, using the TXT's interrupt capabilities (to be defines)
Specification
These requirements are related to app.txt.station_type.pkg.startup.py
Wireframe specification
This specification holds for both use case described below. Items are marked by embraced number, e.g. (5).
Use Case: Start a Station's Operation
-
Description: a user wants to start an operation with a work piece.
-
Base Sequence:
- The user starts the machine controller on TXT display (1).
- The TXT offers the following controls:
- A toggle
Demo-button (2) to switch between 'normal' and 'demo' (default) mode. - A
Startbutton (3). - A
Stopbutton (7)
- A toggle
- The user presses the
Startbutton. - The TXT initializes the station to status
readyand displays a number block (4) to enter ammhunumber. - The user enters the 'mhu' number printed on a work piece press the
Load(5) button and puts the work piece to the station's loading gate ("inlet"). - The TXT looks up the database and retrieves the
sfcufor this work piece and starts operation.
-
Branch Sequences:
- 3A [Station should run in
normalmode]- 3A.1 The user toggles the
Demo-button tonormaloroff - 3A.2 Use case proceeds with 3.
- 3A.1 The user toggles the
- 4A [Emergency]
- 4A.1 The user presses the
HALTbutton or device. - 4A.2 The TXT controller issues a 'halt' event to the state machine and stops all operations (immediately).
- 4A.3 The use ends.
- 4A.1 The user presses the
- 3A [Station should run in
Use Case: Stop a Station
- Description: a user wants stop a station gracefully.
- Pre-Condition: the station is in state
STANDBY,HALTEDorSTOPPED - Base Sequence:
- The user presses the
STOPbutton. - The TXT issues a
stopevent and the station will transition toSTOPPEDstate. - The display will be refreshed to Sequence step 2 of use case Start a Station's Operation
- The user presses the
- Note: the TXT program is still running but the station will not react on any work pieces put at the loading gate (inlet).
