. |
AMP_ENABLE Mechaware API Documentation > Action
OverviewOverviewDescription The AMP_ENABLE block is used to enable or disable a particular motor’s amp. Note that the actual state of amp enable output also depends upon the actual wiring and the polarity chosen in the instance of the MPIMotorConfig structure. The block only writes to the amplifier when the Execute signal is non-zero. When non-zero, the amp enable value follows the Enable value (0 = disable, non-zero = enable) with each sampling. Because other parts of the system may change the amp enable state (for example, motor or user limits), the Execute signal should be kept at zero except when the model needs to enable to disable the amplifer. 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 1 is triggered by the Amp Enable block, verify that no faults are lingering before re-enabling the amplifier. If a fault is present, use the Motion Reset to clear the fault. The Motor Number of the Amp_Enable block specifies which motor’s amp is to be controlled. 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++ APIAMP_ENABLEBlockDeclaration Public Method
Description Each AMP_ENABLE block provides direct control over a particular motor amp. An input value of zero is interpreted as disable and a non-zero input value is interpreted as enable. The amp enable is set to match the input interpretation at each sampling. Parameters
Methods See AlsoStop | EStop | Abort | MOTION_RESET
|
| | Copyright © 2001-2012 Motion Engineering |