Load Velocity Threshold in RPMLoads a velocity threshold for an axis in RPM.
| Device Compatibility
|
Velocity Threshold (5000) is the double-precision floating point velocity threshold value in RPM. The RPM range depends upon the motor counts or steps per revolution and the trajectory update rate, and is always a positive number. | |||||||
Board ID is a unique number assigned by Measurement & Automation Explorer (MAX) used to send and receive commands and data to or from a specific NI motion controller. | |||||||
Axis is the axis to control. | |||||||
Inp Vect indicates the source of the data for this VI. Available input vectors include immediate (0xFF), variable (0x01 through 0x78), or indirect variable (0x81 through 0xF8). Refer to Input and Return Vectors for more detailed information. | |||||||
error in (no error) describes error conditions that occur before this VI runs. The default input of this cluster is no error. If an error already occurred, this VI returns the value of error in in error out. The VI runs normally only if no incoming error exists. Otherwise, the VI passes the error in value to error out. The error in cluster contains the following parameters:
|
|||||||
Bd ID Out is provided for flow control. You can string together NI-Motion VIs by wiring the Bd ID Out terminal of one VI to the Board ID terminal of the next VI. | |||||||
Resource Output is the Axis, Vector Space, ADC, or Encoder you wired into the VI. Use Resource Output to pass the resource to another VI and/or to display information about the device. | |||||||
error out contains error information. If error in indicates an error, error out contains the same error information. Otherwise, it describes the error status that this VI produces.
|
Using This VI
The Load Velocity Threshold VI establishes a velocity threshold in RPM for the specified axis which can then be monitored with the Read Trajectory Status VI. The velocity threshold status is True when the absolute value of filtered axis velocity is above the threshold and False when the velocity drops below the threshold.
Velocity threshold is a status and does not have to be enabled or disabled. Loading a maximum value effectively disables the feature because the status will always be off. Increasing the velocity filter time constant with the Load Velocity Filter Parameter VI reduces quantization noise in the threshold status but at the expense of increasing threshold status latency.
Velocity threshold is typically used to monitor the acceleration and deceleration trajectory periods to see when or if an axis is up to speed. You can then change PID tuning or other parameters as a function of velocity.