Results 1 to 1 of 1

Thread: Decel Ramp based on position

  1. #1
    Join Date
    Aug 2009
    Location
    ifm Exton, PA
    Posts
    196

    Default Decel Ramp based on position

    This function will ramp an output value based on position. This can be used to 'cushion' the travel of hydraulic devices at end of travel.

    POS = Actual axis position
    CMD_SPEED = Current Speed Request (Ex: Joystick position, the function will output the MIN value of the CMD_SPEED and function output)
    RAMP_START = Position value to start the decel
    RAMP_END = Position value to end the decel
    MAX_SPEED = Starting decel value
    Min_SPEED = Ending decel value

    EXAMPLE:
    nOutput := DECEL_TO_POINT(
    POS := nActualPosition,
    CMD_SPEED := nRequestedSpeed
    RAMP_START := nUpRampStart,
    RAMP_END := nUpRampStop,
    MAX_SPEED := nUpMaxspeed,
    MIN_SPEED := nUpMinSpeed);
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •