TypeID#
- class wattson.iec104.interface.types.type_id.TypeID(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)#
Bases:
IntEnumMethods
Defined Type-IDs as integers
from_namenames{type_id -> (python) val_type: val_type expected for val for type_id set }
Converts val to its expected (python) datatype This _might_ not be its final value.
Attributes
M_SP_NA_1M_SP_TA_1M_DP_NA_1M_DP_TA_1M_ST_NA_1M_ST_TA_1M_BO_NA_1M_BO_TA_1M_ME_NA_1M_ME_TA_1M_ME_NB_1M_ME_TB_1M_ME_NC_1M_ME_TC_1M_IT_NA_1M_IT_TA_1M_EP_TA_1M_EP_TB_1M_EP_TC_1M_PS_NA_1M_ME_ND_1M_SP_TB_1M_DP_TB_1M_ST_TB_1M_BO_TB_1M_ME_TD_1M_ME_TE_1M_ME_TF_1M_IT_TB_1M_EP_TD_1M_EP_TE_1M_EP_TF_1C_SC_NA_1C_DC_NA_1C_RC_NA_1C_SE_NA_1C_SE_NB_1C_SE_NC_1C_BO_NA_1C_SC_TA_1C_DC_TA_1C_RC_TA_1C_SE_TA_1C_SE_TB_1C_SE_TC_1C_BO_TA_1M_EI_NA_1C_IC_NA_1C_CI_NA_1C_RD_NA_1C_CS_NA_1C_TS_NA_1C_RP_NA_1C_CD_NA_1C_TS_TA_1P_ME_NA_1P_ME_NB_1P_ME_NC_1P_AC_NA_1F_FR_NA_1F_SR_NA_1F_SC_NA_1F_LS_NA_1F_AF_NA_1F_SG_NA_1F_DR_TA_1F_SC_NB_1For supported type-table, see DIN EN 60870-5-104, Section 9.5
If an APDU send with this TypeID expects the IOA to be set to 0 This is the case when the information requested/ command does not belong to an IO with an IOA.
If an APDU with this TypeID should only have 1 IO to be considered valid.
directionIf an APDU with this typeID is valid with the global COA 0xFFFF
Applies to ASDUs carrying IOs with an NVA (Normalised Value; Type 4.1) Other normalised values values of 60870-5-4 are not implemented by 60870-5-104
carries_parameter_modificationA Type can send periodic updates iff it defines a format of 'measured value' without timestamp (9, 11, 13, 21)
- property can_send_periodic_update: bool#
A Type can send periodic updates iff it defines a format of ‘measured value’ without timestamp (9, 11, 13, 21)
- property carries_normalised_value: bool#
Applies to ASDUs carrying IOs with an NVA (Normalised Value; Type 4.1) Other normalised values values of 60870-5-4 are not implemented by 60870-5-104
- convert_val_by_type(val) bool | float | int#
Converts val to its expected (python) datatype This _might_ not be its final value. (floats will be transformed into IEEE-RE32 floats which have a different accuracy than Python-floats)
- Parameters:
val –
- property expects_IOA_as_0: bool#
If an APDU send with this TypeID expects the IOA to be set to 0 This is the case when the information requested/ command does not belong to an IO with an IOA. (Clock-synch, global interro, …)
- property expects_single_IO: bool#
If an APDU with this TypeID should only have 1 IO to be considered valid.
- property global_coa_compatible: bool#
If an APDU with this typeID is valid with the global COA 0xFFFF
- property invalidated_for_IEC104: bool#
For supported type-table, see DIN EN 60870-5-104, Section 9.5
- static type_converter(iec_type) Type#
{type_id -> (python) val_type: val_type expected for val for type_id set }
- Parameters:
iec_type –
- static values() Set[int]#
Defined Type-IDs as integers