Table of Contents

IDebouncedInput

Namespace
ZEquipment
Extends
Inherited Properties
Inherited Methods
INTERFACE IDebouncedInput EXTENDS ZEquipment.IDigital, ZCore.ITrigger

Interface which represents the functionality of the DebouncedInput function block. Basically it is used to set the times with SetDebouncingDuration of which the input should be at least stable on High or Low signal.

Basically it extends the IDigital and supports the functions of a DigitalInput

Properties

DebouncingDurationDisabled

PROPERTY DebouncingDurationDisabled : LREAL

Property Value

LREAL

DebouncingDurationEnabled

PROPERTY DebouncingDurationEnabled : LREAL

This property sets or returns the debouncing time for the enabled state change. Calling Enabled will only return TRUE, if the actual input from the terminal is "stable", which means that the state did not change for enabled seconds or disabled seconds, repectively. Note that the latter states refer to the logic of the software-state, which is configured by calling SetLogic.

Note

Setting a duration to 0 is not completely the same than simply using a DigitalInput. Since this function blocks updates its internal state through calls to its cyclic method. The shortest duration is the cycle time of the PLC. Thus, when using this function block with duration=0 maybe consider to use the simpler DigitalInput function block instead.

Property Value

LREAL

Methods

IsInputEnabled

METHOD IsInputEnabled () : BOOL

This method returns the actual state of the terminal as boolean. Here debouncing times are by-passed considered. While debouncing times are ignored by this method, the configured logic is respected. For details refer to Enabled or DigitalLogic.

Returns

BOOL

SetDebouncingDuration

METHOD SetDebouncingDuration (
 [input] enabled : LREAL,
 [input] disabled : LREAL)

This method sets the debouncing times for each state change. Calling Enabled will only return TRUE, if the actual input from the terminal is "stable", which means that the state did not change for enabled seconds or disabled seconds, repectively. Note that the latter states refer to the logic of the software-state, which is configured by calling SetLogic.

Note

Setting a duration to 0 is not completely the same than simply using a DigitalInput. Since this function blocks updates its internal state through calls to its cyclic method. The shortest duration is the cycle time of the PLC. Thus, when using this function block with duration=0 maybe consider to use the simpler DigitalInput function block instead.

Inputs

enabled LREAL

time in seconds for the stable enabled state (TRUE)

disabled LREAL

time in seconds for the stable disabled state (FALSE)