Table of Contents

DigitalLogic

Namespace
ZEquipment

According to the process or the used hardware some inputs are high or low active. To standardize this, all digital inputs abstract that behaviour. It is not neccessary to have a branch for high or low active inputs, one can simply set the logic to normal or inverted

Logic Terminal State IDigital.IsEnabled
Normal TRUE TRUE
Normal FALSE FALSE
Inverted TRUE FALSE
Inverted FALSE TRUE

This enumeration is also used to control the behavior of the HasTriggered method.

TriggerLogic Transition IDigital.HasTriggered
Normal FALSE -> TRUE TRUE
Normal TRUE -> FALSE FALSE
Inverted FALSE -> TRUE FALSE
Inverted TRUE -> FALSE TRUE

Fields

Normal = 0
Inverted = 1