Skip to content

Digital In Example

Get Value from DI

Get Value

When we want to get current value from Digital Input we can do it using next command

CustomNameDI.aGetValue().send();

Return signal

Value(bool)

*rtdata will containg bool value true if DI is on or false if DI is off.

Arm on Value

ArmSingleNotifLevel

Arm on High

When we want to get signal when DI is HIGH value we can use next command.

CustomNameDI.ArmSingleNotifLevel(true);

Arm on Low

When we want to get signal when DI is LOW value we can use next command.

CustomNameDI.ArmSingleNotifLevel(false);

Return signal

High or Low

ArmSingleNotif

``` "CdDiNotifs object with all params" CdDiNotifs oNotif; oNotif.m_bOnHigh = true; oNotif.m_bOnLow = false; oNotif.m_bOnRising = true; oNotif.m_bOnFalling = false; oNotif.m_fSettlingTimeInMs = 20; oNotif.m_bConfirmation = false; oNotif.m_fTimeoutInMs = 2000;

CustomNameDI.ArmSingleNotif(oNotif).send();

```  title="Arm OnRising"
CdDiNotifs oNotif;
oNotif.m_bOnRising = true;

CustomNameDI.ArmSingleNotif(oNotif).send(); 

``` title="Arm OnFalling" CdDiNotifs oNotif; oNotif.m_bOnFalling = true;

CustomNameDI.ArmSingleNotif(oNotif).send(); ```

Return signal

High() or Low()