RAMP

PLCopen motion icon

 FunctionClosed A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. - Limit the ascendance or descendance of a signal.

Inputs

Input

Data Type

Range

Unit

Default

Description

IN

REAL

 

 

 

Input signal.

ASC

REAL

     

Maximum ascendance during time base.

DSC

REAL

     

Maximum descendant during time base.

TM

TIME

     

Time base.

RST

BOOL

     

ResetClosed New start of the microprocessor..

Outputs

Output

Data Type

Range

Unit

Description

OUT

REAL

 

 

RampClosed The gradual acceleration and deceleration of a stepping motor. This is essential if performance beyond the start/stop range is required. The slope of the ramp is a function of screw pitch, load, drive voltage and design, and motor. signal.

Remarks

Time Diagram

FBD Language Example

FFLD Language Example

  • In the FFLD Language, the operation is executed only if the input rung (EN) is TRUE.
    • The output rung (ENO) keeps the same value as the input rung.
  • The function is executed only if EN is TRUE.
  • ENO keeps the same value as EN.

IL Language Example

(* MyRamp is a declared instance of RAMP function blockClosed A function block groups an algorithm and a set of private data. 
It has inputs and outputs. *)
Op1: CAL MyRamp (IN, ASC, DSC, TM, RST)
FFLD  MyBlinker.OUT
STClosed Structured text - A high-level language that is block structured and syntactically resembles Pascal.  OUT

ST Language Example

(* MyRamp is a declared instance of RAMP function block *)
MyRamp (IN, ASC, DSC, TM, RST);
OUT := MyBlinker.OUT;