MC_SetOverride
This function block accepts override inputs for single axis motion. The commanded velocity, acceleration and deceleration are multiplied by these factors. Motion affected by a master- slave synchronized relationship is not affected.
Parameters
| * | Parameter | Data Type | Description | Default |
|---|---|---|---|---|
| VAR_IN_OUT | ||||
| B | Axis | AXIS_REF | Logical axis reference. This value can be located on the Configuration tab in the Hardware Configuration (logical axis number). | |
| VAR_INPUT | ||||
| B | Enable | BOOL | Function block is executed as long as Enable is TRUE | 0 |
| B |
VelFactor |
LREAL | Override factor for group vector velocity. The range is 0.0 to 1.0. |
LREAL#1.0 |
| E |
AccFactor |
LREAL | Not implemented. Reserved for future use. Effective AccelFactor is always VelFactor squared. |
LREAL#1.0 |
| VAR_OUTPUT | ||||
| B | Valid | BOOL | Stays TRUE as long as the function block executes without an error. | |
| E |
Busy |
BOOL | Set high upon the rising edge of the Execute input, and reset when Done, CommandAborted, or Error is true. In the case of a function block with an Enable input, a Busy output indicates the function is operating, but not ready to provide Valid information. (No Error) |
|
| B |
Error |
BOOL | Set high if an error has occurred during the execution of the function block. This output is cleared when 'Execute' or 'Enable' goes low. |
|
| E |
ErrorID |
UINT | If Error is true, this output provides the Error ID. This output is reset when 'Execute' or 'Enable' goes low. |
|
Notes
- AccelFactor override is not implemented, but is reserved for future use. Effective AccelFactor is always VelFactor squared.
- The current velocity of the axis, and its currently active move command acceleration parameters, are used to determine the rate of acceleration to the new target velocity.
- The input value can be changed at any time and will be immediately accepted if valid.
- If the Error output is TRUE, then the Enable input must be toggled FALSE to clear the error before the input will be checked again.
- Multiple function blocks acting on the same axis are allowed but not recommended. Each function block will take effect immediately as it is executed.
- The last valid VelFactor remains in effect indefinitely or until PLC reset. (Disabling this function does not restore the VelFactor in effect to 1.0.)
- The state machine is not affected by this function block. The function block may be called in any state (including error and disabled).
- VelFactor 0 stops the axis without changing it to the state GroupStandby. Motion may immediately be resumed by increasing VelFactor.
- If the axis is synchronized (following) another axis or group, the tracking motion is unaffected. Only superimposed motion will be scaled by the override factors.
Error Description
See the
Function Block ErrorID List