Soft_Stops.vi

VI Soft_Stops

Soft_Stops.vi

Help by FRC Team 836 - The RoboBees

VI DESCRIPTION:

This VI provides 'soft stop' behavior to control a motor (or mechanism's) range of motion. It requires a sensor input that is used to determine if the position is within or near range limits.

VI output (Motor Out) will equal input (Motor In) as long as sensed position is within the defined range. When position is near the hi or lo limit, the output can be no higher than a 'slow'

value if (and only if) the position is continuing toward that limit - this reduces momentum prior to reaching a hard limit, which reduces positional overshoot. Output will become zero

upon reaching a limit, but still allow for a reverse motor command to move position away from the limit.

Use this only when the motor is NOT in a control loop (i.e. when under direct control from joystick). To limit motor travel when using a control loop, simply coerce the setpoint to limits.

Soft_Stops.vi

Soft_Stops.vi

cdbl

Speed near Limit

cdbl

Near Limit

cdbl

Lo Limit

cdbl

Hi Limit

cdbl

Sense

cdbl

Motor In

cbool

Disable Motor

cdbl

Motor Coerce

cbool

Disable Softstops

cbool

correlation

ibool

At Lo

ibool

At Hi

idbl

Motor Out

Soft_Stops.vi

Soft_Stops.vi

Soft_Stops.vi

Soft_Stops.vi

Soft_Stops.vi

Soft_Stops.vi

Soft_Stops.vi

Soft_Stops.vi

Soft_Stops.vi

"Soft_Stops.vi History"

Current Revision: 19


Position in Hierarchy

Soft_Stops.vi


Iconified Cluster Constants