Function Block SHUTTER

This Function Block SHUTTER controls a shutter with or without slats directly.

Tip: See an instruction of a simple example.

Note: The higher the cycle time of the PLC, the more accurately the shutter moves to its positions.

Input TR_UP_DW

Button input for lowering and raising the shutter as a single-button operation. With one or more pulses below the time PT_TR, the slats are closed or opened. The direction is changed upon reaching the end position. If no slat function is active, nothing happens. If the input is held true, after the time PT_TR has elapsed, the shutter starts moving down or up. If a pulse is triggered during the movement, the shutter stops immediately.

Input TR_UP

Button input for raising the shutter. With one or more pulses below the time PT_TR, the slats are opened. If no slat function is active, nothing happens. If the input is held true, after the time PT_TR has elapsed, the shutter starts moving up. If a pulse is triggered during the movement, the shutter stops immediately.

Input TR_DW

Button input for lowering the shutter. With one or more pulses below the time PT_TR, the slats are closed. If no slat function is active, nothing happens. If the input is held true, after the time PT_TR has elapsed, the shutter starts moving down. If a pulse is triggered during the movement, the shutter stops immediately.

Input UP

If the input is true, the shutter moves all the way up. As long as this input is true, no other command except STOP and DW is accepted.

Input DW

The input moves the shutter all the way down. DW has priority over UP. As long as this input is true, no other command except STOP is accepted.

Input STOP

Blocks the shutter and prevents movement as long as the input is true.

Input MOVETO_POS

The input moves the shutter to the desired position when the value at the input changes.

Input MOVETO_SLAT

The input adjusts the slat angle when the value at the input changes.

Note: If the shutter has been moved up (POS=0), the slat angle cannot be adjusted.

Input SYNC_POS

The input synchronizes the position from an external actuator without executing a movement command. The position can be specified from 0 to 255. The value is set only after the end of a movement.

Input SYNC_SLAT

The input synchronizes the slat angle from an external actuator without executing a movement command. The angle can be specified from 0 to 255. The value is set only after the end of a movement.

Input SLAT_STEPS

The input defines the number of steps of the slats as a number. The value divides the time from the input PT_SLAT. If this value is not defined or set to 0, the slat function is deactivated.

Input PT_TR

Defines the pulse time in T# of the button inputs TR_UP_DW, TR_UP, and TR_DW. If a time of T#0ms is specified, a complete movement occurs immediately. If the input is not defined or the value is equal to NULL, then T#300ms is assumed.

Input PT_UP

Defines the movement time in T# for raising the shutter. This should be greater than that held by the input PT_DW so that the shutter automatically synchronizes itself. It is also recommended to slightly round up the value, as the runtime can increase over the years.

If no movement time is defined, only the angle of the slats can be changed.

Input PT_DW

Defines the movement time in T# for lowering the shutter. This should be less than that held by the input PT_UP so that the shutter automatically synchronizes itself. It is also recommended to slightly round up the value, as the runtime can increase over the years.

If no movement time is defined, only the angle of the slats can be changed.

Input PT_SLAT

Defines the time in T# for the slat movement. This time is measured by a complete movement from open to closed.

If the input SLAT_STEPS is equal to 0, the movement time PT_SLAT is not used and the value is set to 0.

Input PT_STOP

Defines the dead time between movements. This decouples the relays and protects the motor.

Input PT

The input optimizes the cycle time of the PLC. The outputs REAL_POS and REAL_SLAT are calculated with this time interval. If no input has been defined, the value T#100ms is assumed.

Output DO_UP

The output is directly connected to the switching output for raising.

Output DO_DW

The output is directly connected to the switching output for lowering.

Output DO_STOP

The output is active as long as the shutter is in the stop time PT_STOP, unless no movement follows.

Output POS

The output returns the target position of the shutter as an integer. The range of the position is between 0 and 255. The value 0 corresponds to open and 255 closed. After a movement, this position is corrected.

Output SLAT

The output returns the target angle of the slats of the shutter as an integer. The range of the angle is between 0 and 255. The value 0 corresponds to open and 255 closed. After a movement, this position is corrected.

Output REAL_POS

The output returns the current position of the shutter between 0 and 255 as a floating-point number. The value 0 corresponds to open and 255 closed. The calculation is performed at the interval of the input PT.

Output REAL_SLAT

The output returns the current position of the slats between 0 and 255 as a floating-point number. The value 0 corresponds to open and 255 closed. The calculation is performed at the interval of the input PT.