Skip to content

Machine Controller

machine_controller special

calculate_btl_machine_data(elements, btl_version)

Calculates the Machine Data for BTL

Parameters:

Name Type Description Default
elements List[int]

elements

required
btl_version int

btl_version

required

Returns:

Type Description
None

None

Source code in machine_controller/__init__.py
def calculate_btl_machine_data(elements: List[int], btl_version: int) -> None:
    """Calculates the Machine Data for BTL 
    Args:
        elements ( List[int]): elements
        btl_version ( int): btl_version

    Returns:
        None
    """

calculate_hundegger_machine_data(elements, hunderggertype)

Calculates the Machine Data for Hundegger

Parameters:

Name Type Description Default
elements List[int]

elements

required
hunderggertype int

hunderggertype

required

Returns:

Type Description
None

None

Source code in machine_controller/__init__.py
def calculate_hundegger_machine_data(elements: List[int], hunderggertype: int) -> None:
    """Calculates the Machine Data for Hundegger 
    Args:
        elements ( List[int]): elements
        hunderggertype ( int): hunderggertype

    Returns:
        None
    """

clear_errors()

clear errors

Returns:

Type Description
None

None

Source code in machine_controller/__init__.py
def clear_errors() -> None:
    """clear errors
    Args:

    Returns:
        None
    """

export_btl(btl_version, file_path)

Exports a BTL file

Parameters:

Name Type Description Default
btl_version int

btl_version

required
file_path str

file_path

required

Returns:

Type Description
None

None

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

    Returns:
        None
    """

export_btl_with_presetting(btl_version, file_path, presetting)

Exports a BTL file with a presetting file

Parameters:

Name Type Description Default
btl_version int

btl_version

required
file_path str

file_path

required
presetting str

presetting

required

Returns:

Type Description
None

None

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

    Returns:
        None
    """

export_hundegger(hundeggertype)

Exports a Hundegger file

Parameters:

Name Type Description Default
hundeggertype int

hundeggertype

required

Returns:

Type Description
None

None

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

    Returns:
        None
    """

export_hundegger_with_file_path(hundeggertype, file_path)

Exports a Hundegger file

Parameters:

Name Type Description Default
hundeggertype int

hundeggertype

required
file_path str

file_path

required

Returns:

Type Description
None

None

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

    Returns:
        None
    """

export_hundegger_with_file_path_and_presetting(hundeggertype, file_path, presetting)

Exports a Hundegger file

Parameters:

Name Type Description Default
hundeggertype int

hundeggertype

required
file_path str

file_path

required
presetting str

presetting

required

Returns:

Type Description
None

None

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

    Returns:
        None
    """

export_hundegger_with_file_path_and_presetting_silent(hundeggertype, file_path, presetting)

Exports a Hundegger file silently

Parameters:

Name Type Description Default
hundeggertype int

hundeggertype

required
file_path str

file_path

required
presetting str

presetting

required

Returns:

Type Description
None

None

Source code in machine_controller/__init__.py
def export_hundegger_with_file_path_and_presetting_silent(hundeggertype: int, file_path: str, presetting: str) -> None:
    """Exports a Hundegger file silently 
    Args:
        hundeggertype ( int): hundeggertype
        file_path ( str): file_path
        presetting ( str): presetting

    Returns:
        None
    """

export_hundegger_with_file_path_silent(hundeggertype, file_path)

Exports a Hundegger file silently

Parameters:

Name Type Description Default
hundeggertype int

hundeggertype

required
file_path str

file_path

required

Returns:

Type Description
None

None

Source code in machine_controller/__init__.py
def export_hundegger_with_file_path_silent(hundeggertype: int, file_path: str) -> None:
    """Exports a Hundegger file silently 
    Args:
        hundeggertype ( int): hundeggertype
        file_path ( str): file_path

    Returns:
        None
    """

export_weinmann_mfb(mfb_version)

Exports a WUP file

Parameters:

Name Type Description Default
mfb_version int

mfb_version

required

Returns:

Type Description
None

None

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

    Returns:
        None
    """

get_last_error(error_code)

Gets the last error

Parameters:

Name Type Description Default
error_code int

error_code

required

Returns:

Type Description
str

error string (str)

Source code in machine_controller/__init__.py
def get_last_error(error_code: int) -> str:
    """Gets the last error 
    Args:
        error_code ( int): error_code

    Returns:
        error string (str)
    """

load_hundegger_calculation_set(hundeggertype, file_path)

load hundegger calculation set

Parameters:

Name Type Description Default
hundeggertype int

hundeggertype

required
file_path str

file_path

required

Returns:

Type Description
None

None

Source code in machine_controller/__init__.py
def load_hundegger_calculation_set(hundeggertype: int, file_path: str) -> None:
    """load hundegger calculation set
    Args:
        hundeggertype ( int): hundeggertype
        file_path ( str): file_path

    Returns:
        None
    """