pub enum ModuleType {
Show 63 variants
UR20_4DI_P,
UR20_4DI_P_3W,
UR20_8DI_P_2W,
UR20_8DI_P_3W,
UR20_8DI_P_3W_HD,
UR20_16DI_P,
UR20_16DI_P_PLC_INT,
UR20_2DI_P_TS,
UR20_4DI_P_TS,
UR20_4DI_N,
UR20_8DI_N_3W,
UR20_16DI_N,
UR20_16DI_N_PLC_INT,
UR20_4DI_2W_230V_AC,
UR20_4DO_P,
UR20_4DO_P_2A,
UR20_4DO_PN_2A,
UR20_8DO_P,
UR20_8DO_P_2W_HD,
UR20_16DO_P,
UR20_16DO_P_PLC_INT,
UR20_4DO_N,
UR20_4DO_N_2A,
UR20_8DO_N,
UR20_16DO_N,
UR20_16DO_N_PLC_INT,
UR20_4RO_SSR_255,
UR20_4RO_CO_255,
UR20_2PWM_PN_0_5A,
UR20_2PWM_PN_2A,
UR20_4AI_UI_16,
UR20_4AI_UI_16_DIAG,
UR20_4AI_UI_DIF_16_DIAG,
UR20_4AI_UI_16_HD,
UR20_4AI_UI_16_DIAG_HD,
UR20_4AI_UI_12,
UR20_8AI_I_16_HD,
UR20_8AI_I_16_DIAG_HD,
UR20_8AI_I_PLC_INT,
UR20_4AI_R_HS_16_DIAG,
UR20_2AI_SG_24_DIAG,
UR20_3EM_230V_AC,
UR20_4AO_UI_16,
UR20_4AO_UI_16_M,
UR20_4AO_UI_16_DIAG,
UR20_4AO_UI_16_M_DIAG,
UR20_4AO_UI_16_HD,
UR20_4AO_UI_16_DIAG_HD,
UR20_1CNT_100_1DO,
UR20_2CNT_100,
UR20_1CNT_500,
UR20_2FCNT_100,
UR20_1SSI,
UR20_1COM_232_485_422,
UR20_1COM_SAI_PRO,
UR20_4COM_IO_LINK,
UR20_4AI_RTD_DIAG,
UR20_4AI_TC_DIAG,
UR20_PF_I,
UR20_PF_O,
UR20_PF_O_1DI_SIL,
UR20_PF_O_2DI_SIL,
UR20_PF_O_2DI_DELAY_SIL,
}
Expand description
Describes the concrete module type.
Variants§
UR20_4DI_P
UR20_4DI_P_3W
UR20_8DI_P_2W
UR20_8DI_P_3W
UR20_8DI_P_3W_HD
UR20_16DI_P
UR20_16DI_P_PLC_INT
UR20_2DI_P_TS
UR20_4DI_P_TS
UR20_4DI_N
UR20_8DI_N_3W
UR20_16DI_N
UR20_16DI_N_PLC_INT
UR20_4DI_2W_230V_AC
UR20_4DO_P
UR20_4DO_P_2A
UR20_4DO_PN_2A
UR20_8DO_P
UR20_8DO_P_2W_HD
UR20_16DO_P
UR20_16DO_P_PLC_INT
UR20_4DO_N
UR20_4DO_N_2A
UR20_8DO_N
UR20_16DO_N
UR20_16DO_N_PLC_INT
UR20_4RO_SSR_255
UR20_4RO_CO_255
UR20_2PWM_PN_0_5A
UR20_2PWM_PN_2A
UR20_4AI_UI_16
UR20_4AI_UI_16_DIAG
UR20_4AI_UI_DIF_16_DIAG
UR20_4AI_UI_16_HD
UR20_4AI_UI_16_DIAG_HD
UR20_4AI_UI_12
UR20_8AI_I_16_HD
UR20_8AI_I_16_DIAG_HD
UR20_8AI_I_PLC_INT
UR20_4AI_R_HS_16_DIAG
UR20_2AI_SG_24_DIAG
UR20_3EM_230V_AC
UR20_4AO_UI_16
UR20_4AO_UI_16_M
UR20_4AO_UI_16_DIAG
UR20_4AO_UI_16_M_DIAG
UR20_4AO_UI_16_HD
UR20_4AO_UI_16_DIAG_HD
UR20_1CNT_100_1DO
UR20_2CNT_100
UR20_1CNT_500
UR20_2FCNT_100
UR20_1SSI
UR20_1COM_232_485_422
UR20_1COM_SAI_PRO
UR20_4COM_IO_LINK
UR20_4AI_RTD_DIAG
UR20_4AI_TC_DIAG
UR20_PF_I
UR20_PF_O
UR20_PF_O_1DI_SIL
UR20_PF_O_2DI_SIL
UR20_PF_O_2DI_DELAY_SIL
Implementations§
Source§impl ModuleType
impl ModuleType
pub const fn try_from_u32(id: u32) -> Result<Self, Error>
Sourcepub const fn channel_count(&self) -> usize
pub const fn channel_count(&self) -> usize
Returns the number of channels for a specific module type.
Trait Implementations§
Source§impl Clone for ModuleType
impl Clone for ModuleType
Source§fn clone(&self) -> ModuleType
fn clone(&self) -> ModuleType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ModuleType
impl Debug for ModuleType
Source§impl From<ModuleType> for ModuleCategory
impl From<ModuleType> for ModuleCategory
Source§fn from(val: ModuleType) -> Self
fn from(val: ModuleType) -> Self
Converts to this type from the input type.
Source§impl FromStr for ModuleType
impl FromStr for ModuleType
Source§impl Hash for ModuleType
impl Hash for ModuleType
Source§impl ModbusParameterRegisterCount for ModuleType
impl ModbusParameterRegisterCount for ModuleType
Source§fn param_register_count(&self) -> u16
fn param_register_count(&self) -> u16
Total number of Modbus registers of module parameters.
Source§impl PartialEq for ModuleType
impl PartialEq for ModuleType
impl Eq for ModuleType
impl StructuralPartialEq for ModuleType
Auto Trait Implementations§
impl Freeze for ModuleType
impl RefUnwindSafe for ModuleType
impl Send for ModuleType
impl Sync for ModuleType
impl Unpin for ModuleType
impl UnwindSafe for ModuleType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more