. |
MOTION_RESET Mechaware API Documentation > Action
OverviewOverviewDescription The MOTION_RESET block is used to return a Motion Supervisor’s state to idle, clearing all clearable faults. This is used to restore the Error states resulting from either an EStop or Abort action. However, such a reset action does not re-enable any motor amps. Example
The configuration values for this block are as follows:
Matlab/SimulinkSimulink InterfaceThe Itrp (opt) output is an output which only relates to simulation. Note: This output is only used when simulating within Simulink and is ignored when the model is downloaded to a controller. The Interrupt pin is used on all Motion Simulation blocks to allow them to communicate with a central trajectory planner, interpret events, and change the trajectory as required. When Bit 4 is triggered by the Motion Reset block, it clears all previous faults that may have been triggered by the Abort block. Once the Reset block has cleared the errors, the amp enable can be used to re-enable the motor. The Motion Supervisor Number of the MOTION_RESET block specifies which motion supervisor to reset (axis or motor number when using default mappings). The block has two user data fields (User Data 0, User Data 1) to store application-specific data for convenient storage and retrieval. For more information, see User Data Storage. The block's update schedule is determined by the Evaluate Block. The following Parameter Dialog Box can be opened by double-clicking on the block in a Simulink model:
C++ APIMOTION_RESETBlockDeclaration Public Method
Description The MOTION_RESET block provides a way to restore the state of a motion supervisor. If the error state was caused by an Abort action, the command position of the associated axes is set equal to the actual position during the Reset. See MPIState. The reset action is issued on the rising-edge of the block’s Execute input value. Parameters
Methods See AlsoStop | EStop | Abort | AMP_ENABLE
|
| | Copyright © 2001-2012 Motion Engineering |