|
APIs, concepts, guides, and more
|
| int32_t AmpEnableSet | ( | bool | enable, |
| int32_t | ampActiveTimeoutMilliseconds = AmpEnableTimeoutMillisecondsDefault, | ||
| bool | overrideRestrictedState = false ) |
| enable | True = enable all, false = disable all. |
| ampActiveTimeoutMilliseconds | (Optional) How many milliseconds to wait for AMP_ACTIVE / OPERATION_ENABLED before timing out (0 will not wait). Default is RapidCodeMotion::AmpEnableTimeoutMillisecondsDefault. Ignored when disabling amp. |
| overrideRestrictedState | (Optional) Set to true to allow enabling the amplifier in restricted states (MOVING, STOPPING, STOPPED). Default is false. When true, the motor may jump to its previous command position if enabled in a restricted state after manual movement. This can cause unexpected motion if the axis has moved due to gravity or external forces while disabled. |
| RsiError | with RSIErrorMessage::RSIMessageTIMEOUT if the amp is not enabled within the ampActiveTimeoutMilliseconds. |
| RsiError | with RSIErrorMessage::RSI_AMP_ENABLE_RESTRICTED_STATE if attempting to enable in MOVING, STOPPING, or STOPPED states when overrideRestrictedState is false. |
Part of the Action method group.