pub enum AdsState {
Show 17 variants
Invalid = 0,
Idle = 1,
Reset = 2,
Init = 3,
Start = 4,
Run = 5,
Stop = 6,
SaveCFG = 7,
LoadCFG = 8,
Powerfailure = 9,
PowerGood = 10,
Error = 11,
Shutdown = 12,
Suspend = 13,
Resume = 14,
Config = 15,
Reconfig = 16,
}
Expand description
ADS State of target system.
To switch a TwinCAT 3 system to Config mode, set it to AdsState::Reconfig, for Run mode set it to AdsState::Reset.
Checkout the ADS Write Control example in the repsoitory.
Variants§
Invalid = 0
Idle = 1
Reset = 2
Init = 3
Start = 4
Run = 5
Stop = 6
SaveCFG = 7
LoadCFG = 8
Powerfailure = 9
PowerGood = 10
Error = 11
Shutdown = 12
Suspend = 13
Resume = 14
Config = 15
Reconfig = 16
Trait Implementations§
impl Copy for AdsState
impl StructuralPartialEq for AdsState
Auto Trait Implementations§
impl Freeze for AdsState
impl RefUnwindSafe for AdsState
impl Send for AdsState
impl Sync for AdsState
impl Unpin for AdsState
impl UnwindSafe for AdsState
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