hvl_ccb.dev.cube.constants

Inheritance diagram of hvl_ccb.dev.cube.constants

Constants, variable names for the BaseCube OPC-connected devices.

class DoorStatus(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntEnum

Possible status values for doors.

CLOSED = 2

Door is closed, but not locked.

ERROR = 4

Door has an error or was opened in locked state (either with emergency stop or from the inside).

INACTIVE = 0

not enabled in BaseCube HMI setup, this door is not supervised.

LOCKED = 3

Door is closed and locked (safe state).

OPEN = 1

Door is open.

class EarthingRodStatus(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntEnum

Possible status values for earthing rods.

EXPERIMENT_BLOCKED = 0

earthing rod is somewhere in the experiment and blocks the start of the experiment

EXPERIMENT_READY = 1

earthing rod is hanging next to the door, experiment is ready to operate

class MessageBoard(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: _LineEnumBase

Variable NodeID strings for message board lines.

LINE_1 = '"DB_OPC_Connection"."Is_status_Line_1"'
LINE_10 = '"DB_OPC_Connection"."Is_status_Line_10"'
LINE_11 = '"DB_OPC_Connection"."Is_status_Line_11"'
LINE_12 = '"DB_OPC_Connection"."Is_status_Line_12"'
LINE_13 = '"DB_OPC_Connection"."Is_status_Line_13"'
LINE_14 = '"DB_OPC_Connection"."Is_status_Line_14"'
LINE_15 = '"DB_OPC_Connection"."Is_status_Line_15"'
LINE_2 = '"DB_OPC_Connection"."Is_status_Line_2"'
LINE_3 = '"DB_OPC_Connection"."Is_status_Line_3"'
LINE_4 = '"DB_OPC_Connection"."Is_status_Line_4"'
LINE_5 = '"DB_OPC_Connection"."Is_status_Line_5"'
LINE_6 = '"DB_OPC_Connection"."Is_status_Line_6"'
LINE_7 = '"DB_OPC_Connection"."Is_status_Line_7"'
LINE_8 = '"DB_OPC_Connection"."Is_status_Line_8"'
LINE_9 = '"DB_OPC_Connection"."Is_status_Line_9"'
class Polarity(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntEnum

An enumeration.

NEGATIVE = 0
POSITIVE = 1
class PowerSetup(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntEnum

Possible power setups corresponding to the value of variable Power.setup. The values for slope_min are experimentally defined, below these values the slope is more like a staircase

The name of the first argument needs to be ‘value’, otherwise the IntEnum is not working correctly.

AC_100KV = 3
AC_150KV = 4
AC_200KV = 5
AC_50KV = 2
DC_140KV = 7
DC_280KV = 8
EXTERNAL_SOURCE = 1
IMPULSE_140KV = 9
NO_SOURCE = 0
POWER_INVERTER_220V = 6
STOP_SAFETY_STATUSES: tuple[SafetyStatus, ...] = (<SafetyStatus.GREEN_NOT_READY: 1>, <SafetyStatus.GREEN_READY: 2>)

BaseCube’s safety statuses required to close the connection to the device.

class SafetyStatus(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntEnum

Safety status values that are possible states returned from hvl_ccb.dev.cube.base.BaseCube.status(). These values correspond to the states of the BaseCube’s safety circuit statemachine.

ERROR = 6
GREEN_NOT_READY = 1
GREEN_READY = 2
INITIALIZING = 0
QUICK_STOP = 5
RED_OPERATE = 4
RED_READY = 3