hvl_ccb.dev.supercube.typ_b¶
Supercube Typ B module.
- class SupercubeB(com, dev_config=None)[source]¶
Bases:
hvl_ccb.dev.supercube.base.SupercubeBase
Variant B of the Supercube without frequency converter but external safety switches.
- class SupercubeBOpcUaCommunication(config)[source]¶
Bases:
hvl_ccb.dev.supercube.base.SupercubeOpcUaCommunication
- class SupercubeBOpcUaConfiguration(host: str, endpoint_name: str = 'Supercube Typ B', port: int = 4840, sub_handler: hvl_ccb.comm.opc.OpcUaSubHandler = <hvl_ccb.dev.supercube.base.SupercubeSubscriptionHandler object at 0x7fa436f90090>, update_period: int = 500, wait_timeout_retry_sec: Union[int, float] = 1, max_timeout_retry_nr: int = 5)[source]¶
Bases:
hvl_ccb.dev.supercube.base.SupercubeOpcUaCommunicationConfig
- endpoint_name: str = 'Supercube Typ B'¶
Endpoint of the OPC server, this is a path like ‘OPCUA/SimulationServer’
- force_value(fieldname, value)¶
Forces a value to a dataclass field despite the class being frozen.
NOTE: you can define post_force_value method with same signature as this method to do extra processing after value has been forced on fieldname.
- Parameters
fieldname – name of the field
value – value to assign
- classmethod keys() → Sequence[str]¶
Returns a list of all configdataclass fields key-names.
- Returns
a list of strings containing all keys.
- classmethod optional_defaults() → Dict[str, object]¶
Returns a list of all configdataclass fields, that have a default value assigned and may be optionally specified on instantiation.
- Returns
a list of strings containing all optional keys.
- classmethod required_keys() → Sequence[str]¶
Returns a list of all configdataclass fields, that have no default value assigned and need to be specified on instantiation.
- Returns
a list of strings containing all required keys.