#include <watchdog_machine.h>
◆ WatchdogMachine()
The watchdog on the Motion Master is a process that runs on each cycle, ideally every 1ms. If the previous execution took longer than one second, it checks which drives are not in the OP state. For any devices not in OP, it sends an error message indicating that they cannot be switched into the OP EtherCAT state. A communication warning usually precedes this error, indicating that the Motion Master has detected that the device has entered the SAFE-OP state. The warning is sent only if the drive has been previously initialized (i.e., it has parameters) and was already in the OP state.
NOTE: The condition "if (++counter_ == 7 + vdm_.get_devices().size())" is not entirely clear and may require further verification.
◆ abort_client_requests()
void WatchdogMachine::abort_client_requests |
( |
const std::string & | connection_id | ) |
|
|
overridevirtual |
Abort all of the requests a certain client has issues.
- Parameters
-
connection_id | client connection ID |
Implements Machine.
◆ done()
bool WatchdogMachine::done |
( |
| ) |
|
|
overridevirtual |
Check if all of the machine started processes are done (including the Command Workers)
- Returns
- true if all of the processes are done, false otherwise
Implements Machine.
◆ execute()
void WatchdogMachine::execute |
( |
uint64_t | pending_signals | ) |
|
|
overridevirtual |
Execute the machine.
- Parameters
-
pending_signals | number of time intervals that passed since the last call to this function |
Implements Machine.
◆ start()
void WatchdogMachine::start |
( |
| ) |
|
◆ stop()
void WatchdogMachine::stop |
( |
| ) |
|
The documentation for this class was generated from the following files: