Skip to content

Machine Controller

export_btl(version, file)

Exports a BTL file

Parameters:

Name Type Description Default
version int

BTL version

required
file str

file path

required
Source code in machine_controller/__init__.py
def export_btl(version: int, file: str) -> None:
    """Exports a BTL file

    Args:
        version (int): BTL version
        file (str): file path
    """

export_btl_with_presetting(version, file, presetting)

Exports a BTL file with a presetting file

Parameters:

Name Type Description Default
version int

BTL version

required
file str

file path

required
presetting str

export presetting file .xml

required
Source code in machine_controller/__init__.py
def export_btl_with_presetting(version: int, file: str, presetting: str) -> None:
    """Exports a BTL file with a presetting file

    Args:
        version (int): BTL version
        file (str): file path
        presetting (str): export presetting file .xml
    """

export_hundegger(version)

Exports a Hundegger file

Parameters:

Name Type Description Default
version int

hundegger type

required
Source code in machine_controller/__init__.py
def export_hundegger(version: int) -> None:
    """Exports a Hundegger file

    Args:
        version (int): hundegger type
    """

export_hundegger_with_file_path(version, file)

Exports a Hundegger file

Parameters:

Name Type Description Default
version int

hundegger type

required
file str

file path

required
Source code in machine_controller/__init__.py
def export_hundegger_with_file_path(version: int, file: str) -> None:
    """Exports a Hundegger file

    Args:
        version (int): hundegger type
        file (str): file path
    """

export_hundegger_with_file_path_and_presetting(type, file, presetting)

Exports a Hundegger file

Parameters:

Name Type Description Default
type int

hundegger type

required
file str

file path

required
presetting str

export presetting file .xml

required
Source code in machine_controller/__init__.py
def export_hundegger_with_file_path_and_presetting(type: int, file: str, presetting: str) -> None:
    """Exports a Hundegger file

    Args:
        type (int): hundegger type
        file (str): file path
        presetting (str): export presetting file .xml
    """

export_weinmann_mfb(version)

Exports a WUP file

Parameters:

Name Type Description Default
version int

WUP version

required
Source code in machine_controller/__init__.py
def export_weinmann_mfb(version: int) -> None:
    """ Exports a WUP file

    Args:
        version (int): WUP version
    """

get_machine_calculation_set_machine_type(element)

get machine calculation set machine type

Parameters:

Name Type Description Default
element int

element ID

required

Returns:

Type Description
str

machine calculation set machine type

Source code in machine_controller/__init__.py
def get_machine_calculation_set_machine_type(element: int) -> str:
    """ get machine calculation set machine type

    Args:
        element (int): element ID

    Returns:
        str: machine calculation set machine type
    """

get_machine_calculation_state(element)

get machine calculation state

Parameters:

Name Type Description Default
element int

element ID

required

Returns:

Type Description
str

machine calculation state

Source code in machine_controller/__init__.py
def get_machine_calculation_state(element: int) -> str:
    """ get machine calculation state

    Args:
        element (int): element ID

    Returns:
        str: machine calculation state
    """

load_hundegger_calculation_set(type, file)

Parameters:

Name Type Description Default
type int

hundegger type

required
file str

file path

required
Source code in machine_controller/__init__.py
def load_hundegger_calculation_set(type: int, file: str) -> None:
    """

    Args:
        type (int): hundegger type
        file (str): file path
    """