Processes
- class pytm4srv.models.Process
Represents a machine, a subset of its programs, and any assigned tool assemblies.
- archived: Mapped[bool]
Whether this process has been marked as archived.
- cv_map: Mapped[Dict[str, dict]]
A map of friendly names to common variable numbers in the format:
{ "Serial number": { "number": 5, "notifyComparison": "EQ", "notifyValue": 1 } }
- description: Mapped[str]
A long description of the process.
- display_variable: Mapped[int | None]
Number of a variable to display the value of on the machine’s card when this process is active.
- id: MappedColumn object at 0x7b55cc329c60>]]
Unique, numeric ID for this process.
- loaded
Check whether any program in this process is loaded on its machine.
- Returns:
True if a program is loaded, False if not.
- machine_id: Mapped[int]
The ID of the machine this process belongs to.
This cannot be changed once the process has been created.
- name: Mapped[str]
The process name.
- part_count_cv: Mapped[int | None]
The common variable to read instead of the reported part count.
- part_material_cost: Mapped[float]
How much the material used to make 1 part costs.
- part_sell_price: Mapped[float]
How much money 1 part is sold for.
- parts_per_cycle: Mapped[int]
How many parts one cycle of this process produces. Defaults to 1.
- setup_instructions: Mapped[str]
User-specified instructions to follow when switching to this process.
- tags: Mapped[List[str]]
A list of user-supplied tags that apply to this process.
- teardown_instructions: Mapped[str]
User-specified instructions to follow when switching away from this process.
- time_per_cycle: Mapped[timedelta | None]
How long (in minutes) it takes to run a cycle.
- unassigned_tools_used: Mapped[Dict[str, str]]
Stores tool locations that the machine has used while this process was active, but that aren’t filled by assemblies in this process.
This field is a map of tool location to the UNIX timestamp of when the machine last used it.