VIRTUAL_RFGEN (FB)

The function block 'VIRTUAL_RFGEN' (Ramp Function Generator) implements an acceleration ramp generator. The output 'diOutVal' is adapted by ramp times in order to avoid sudden changes of the setpoint values.

 

Properties of VIRTUAL_RFGEN

The function block is called in the asynchronous program level PLC_PRG.

User interface
   

VIRTUAL_RFGEN

   

FB enable

-

boEnable

boEnabAck

-

Ackn. "FB enable"

Incrementation

-

boPlus

diOutVal

-

Output value

Decrementation

-

boMinus

 

 

 

Stop

-

boStop

 

 

 

ramp time 1 active

-

boExecRampTime1

 

 

 

ramp time 2 active

-

boExecRampTime2

 

 

 

Preset value

-

diPreset

 

 

 

Upper limit

-

diMaxValue

 

 

 

Lower limit

-

diMinValue

 

 

 

Ramp time 1

-

diRampTime1

 

 

 

Ramp time 2

-

diRampTime2

 

 

 

Ramp time 3

-

diRampTime3

 

 

 

millisecond clock

-

diClock

 

 

 

Input variables

Name

Type

Description

boEnable

BOOL

Enable signal: With a positive edge, the initialisation of the block starts.

As long as 'boEnable' = TRUE, the block remains enabled and is processed by the PLC.

In the state 'boEnable' = FALSE the block is no longer enabled and is thus no longer processed.

boPlus

BOOL

Activate increment counting

boMinus

BOOL

Activate decrement counting

boStop

BOOL

Stop (decrement counting)
boExecRampTime1

BOOL

Ramp time 'diRampTime1' is active
boExecRampTime2

BOOL

Ramp time 'diRampTime2' is active
diPreset

DINT

Preset value

diMaxValue

DINT

Upper limit

diMinValue

DINT

Lower limit

diRampTime1

DINT

Ramp time 1 [s] (Default: 5s)
diRampTime2

DINT

Ramp time 2 [s] (Default: 10s)
diRampTime3

DINT

Ramp time 3 [s] (Default: 20s)
diClock

DINT

ms counter [ms]

Output variables

Name

Type

Description

boEnabAck

BOOL

Acknowledgement: Function block is initialised and enabled

diOutVal

DINT

Output value

Usage note in the CoDeSys program
PLC_PRG (asynchronous part of the program) FPLC_PRG (synchronous part of the program)
VIRTUAL_RFGEN  

 

Associated with this function block, a visualisation is prepared in CoDeSys.

Siehe 'Visualization of AFL blocks'.