Supported platforms: CODESYS 2.3, CODESYS 3.5

 

JCD_Progression (FUN)

Description

JCD_Progression function is used for generating progression to the control signal according to the given progression factor.

 

The function limits the progression factor between -100..100, in case the progression value is set outside these limits. Also, i_Control is limited between 0..32767. If the progression value is zero, the function doesn’t make the calculation and it returns i_Control value directly.

Algorithm for positive progression:

 

 

Algorithm for negative progression:

 

Limitations

This function is primarily intended for JoystickCalibrationAndDiagnostic library's internal use.

Inputs

Input variable name

Data type

Range

Description

i_Control

INT

0…32767

Calibrated control signal

i_Progression

SINT

-100…100

Amount and type of the progression used

Return value

Return value

Data type

Range

Description

 

INT

0…32767

Control signal with progression

 

See also

-

 

Source file Topic000363.htm

Last updated 21-Feb-2025