Abs3P (FB)

FUNCTION_BLOCK Abs3P

Short Descritpion

Anti-blocking protection for a 3-point drive


Portrayal

../_images/Abs3P_FB.png

Interfaces

Inputs

Name

Datatype

Range

Init-Value

Function

xFbOpen BOOL    

Message - Inbox - Plus

XFbClose BOOL    

Message - Input - Minus

Outputs

Name

Datatype

Range

Init-Value

Function

xOutOpen BOOL    

Enable - Output - Plus

xOutClose BOOL    

Enable - Output - Minus

xAbsOn BOOL    

Display - blocking protection process

dtAbsLastOn DATE_AND_TIME    

Startdate / -Timepoint of the last blocking protection process

Setpoints / Parameters

Name

Datatype

Range

Init-Value

Function

tMinRunTime TIME   30s

Minimum operating time

tTime TIME   120s

Time duration of the blocking protection process

eDay eDoW   eDow.Montag

Weekday of blocking protection process

todStartTime TOD   08:00:00 Uhr

Time point of the blocking protection process

Functional Description

General

This function block is used to monitor message inputs xFbOpen and xFbClose to activity. The test period covers 168 hours (= 1 week).
The message inputs xFbOpen and xFbClose are active, if they are continuously active during the minimum operating time tMinRunTime and also during the test period (only xFbOpen or only XFbClose or both).
The blocking protection process is thus stopped and the test time restarts.

If no activity was detected during the test period, the blocking protection process is triggered on the weekday eDay at todStartTime time.
At the same time, the test period starts again.

The active blocking protection process is split into two consecutive periods of time (Period 1 and Period 2)
In period 1, the combination Enable - Output xOutOpen = TRUE, Enable - Output xOutClose = FALSE is shown during the time duration tTime.
In period 2, the combination Enable - Output xOutOpen = FALSE, Enable - Output xOutClose = TRUE is shown during the time duration tTime.

The initial triggering of the blocking protection process can be delayed
depending on the relevant settings (weekday eDay and todStartTime)

Example

Testing period completed on Tuesday morning, start of the blocking protection process not until next Monday.

At the dtAbsLastOn output, the start date and the start time of the last blocking protection process are available.

Prerequisite for the use of the Abs3P functional component

For correct function, the use of the function block TimeRead with xEn = TRUE is mandatory.

Enable - Output xOutOpen

xFbOpen

Blocking protection process

xOutOpen

Notes

X FALSE FALSE

Blocking protection process inactive

X TRUE TRUE

Blocking protection process active - period 1

X TRUE FALSE

Blocking protection process active - period 2

Legend: X = any

Enable - Output xOutClose

xFbClose

Blocking protection process

xOutClose

Notes

X FALSE FALSE

Blocking protection process inactive

X TRUE FALSE

Blocking protection process active - period 1

X TRUE TRUE

Blocking protection process active - period 2

Legend: X = any

Display of the blocking protection process xAbsOn

This output is used to display an active blocking protection process (xAbsOn = TRUE).

Setpoint / Parameter eDay

The blocking protection function can be disabled by set the setting to eDay = eDoW.Inactive.

Sollwert / Parameter tTime

The blocking protection function can be disabled by set the setting to tTime = 0s.

Visualization




Information

Element

Authors

Date

Version

Notes

Function

Adam Bartod 11.2017 1.0

Initial version

Programming

Adam Bartod 11.2017 1.0

Initial version

Test Jochen Reu 11.2017 1.0

Initial version

Documentation

Jochen Reu 11.2017 1.0

Initial version

Codesys

InOut:
Scope Name Type Initial Comment
Input xFbOpen BOOL  

Message - Inbox - Plus

xFbClose BOOL  

Message - Input - Minus

tMinRunTime TIME TIME#30s0ms

Minimum operating time

tTime TIME TIME#2m0s0ms

Time duration of the blocking protection process

eDay eDoW eDow.Monday

Weekday of blocking protection process

todStartTime TOD TIME_OF_DAY#8:0

Time point of the blocking protection process

Output xOutOpen BOOL  

Enable - Output - Plus

xOutClose BOOL  

Enable - Output - Minus

xAbsOn BOOL  

Display - blocking protection process

dtAbsLastOn DT  

Startdate / -Timepoint of the last blocking protection process