IDebouncedInput
- Namespace
- ZEquipment
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
INTERFACE IDebouncedInput EXTENDS ZEquipment.IDigital, ZCore.ITrigger
- Extends
- Inherited Properties
- Inherited Methods
Properties
DebouncingDurationDisabled
This property sets or returns the debouncing time for the disabled
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 DebouncingDurationDisabled : LREAL
Property Value
- LREAL
DebouncingDurationEnabled
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 DebouncingDurationEnabled : LREAL
Property Value
- LREAL
Methods
IsInputEnabled
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.
METHOD IsInputEnabled () : BOOL
Returns
- BOOL
SetDebouncingDuration
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.
METHOD SetDebouncingDuration (
enabled : LREAL,
disabled : LREAL)