I want to find...

Search

Shares

Table of Content

EthercatDevice_DmpStepper.machineClearEmergencyStop()

[EthercatDevice_DmpStepper_Generic]

Description

Clear the emergency stop for the machine on the EtherCAT slave device. To clear the emergency stop state and resume normal machine operation, ensure the physical hardware emergency stop switch is deactivated or reset to its normal position before calling this function.

Since this function is a non-blocking function and the update() function needs to be called continuously to execute the state machine, it may take some time to complete, so the related status may take some time to respond, such as machineIsEmergencyStopped().

Derived Class:

Class NameVendor IDProduct Code
EthercatDevice_QECR11MP3S0x00000bc30x0086d0d6
EthercatDevice_QECR00MP3S0x00000bc30x0086d0d9

Syntax

int machineClearEmergencyStop();

Parameters

None.

Return Value

Return an error code. If the returned value is zero, it indicates a successful execution of this function.

Comment

This function must be called after a successful execution of EthercatMaster::start() and before EthercatMaster::stop(). This function is blocking and cannot be called within the callback functions.

This function only works in G-code Controller mode on the EtherCAT slave device. For more details, please refer to configDeviceMode().

Example

#include "Ethercat.h"

EthercatMaster master;
EthercatDevice_QECR11MP3S slave;

void setup() {
  master.begin();
  slave.attach(0, master);
  slave.machineClearEmergencyStop();
}
void loop() {
  slave.update();
}

Please see EthercatDevice_DmpStepper_Generic Class for more QEC Stepper Drivers instructions and API usage.

Scroll to Top