Function Block Dimmer

This Function Block DIMMER sets an analog value based on the input pulses. In addition, the last known dimming value is stored before switching off.

Tip: To switch the dimmer only, you can generate a negative edge before the TR inputs.

Tip: The output DIM can be connected to both the analog and digital outputs in case of a 0-10V dimmer.

Input TR_UP_DW

Digital input for switching on/off or dimming up/down. The mode is reversed based on the last operation. With a long key press, longer than PT_TR, the output DIM is driven. If the key press is shorter, the output DIM is switched.

Input TR_UP

Digital input for switching on or dimming up. With a long key press, longer than PT_TR, the output DIM is driven. If the key press is shorter, the output DIM is switched.

Input TR_DW

Digital input for switching off or dimming down. With a long key press, longer than PT_TR, the output DIM is driven. If the key press is shorter, the output DIM is switched. The output DIM can also switch on when dimming down if DIM_MIN is not equal to 0.

Input UP

Digital input for dimming up. If the input is true, dimming starts immediately.

Input DW

Digital input for dimming down. If the input is true, dimming starts immediately.

Input SET_DIM

With the input SET_DIM, the output DIM can be set. This happens automatically upon change. The output DIM can also be fed back here via a VISUVAR. The output DIM is limited according to DIM_MIN and DIM_MAX. Except for the value 0.

Input DIM_MIN

This input determines the minimum dimming value. If this is equal to 0, dimming can be reduced until switching off. Otherwise, the dimming process stops at this value.

Note: The input DIM_MIN must be smaller than DIM_MAX.

Input DIM_MAX

This input determines the maximum dimming value. If this is equal to 0, dimming can be reduced until switching off. Otherwise, the dimming process stops at this value.

Note: The input DIM_MAX must be greater than DIM_MIN.

Input DIM_ON

The input DIM_ON determines the DIM switch-on value when switching on (pulse to a TR). If this is 0 or not set, the last switched-on state is used.

Input PT_TR

Defines the switch-on delay for dimming (long key press). If this is not defined, T#300ms is assumed automatically.

Input PT_DIM

Defines the relative dimming speed from DIM_MIN to DIM_MAX. This is calculated automatically. Depending on the PLC cycle time, this may vary. This value is mandatory for dimming via buttons. It is recommended to choose a value between T#1s and T#3s.

Input PT

Defines the calculation interval for the dimmer. The higher the value, the less the PLC is loaded. The value 0 dims as fast as the PLC calculates. If the input is not defined, T#50ms is assumed.

Output DIM

The output of the dimmer. This is calculated continuously and is therefore a floating-point number (Float).