NvInputSwitch

Top  Previous  Next

CIRCON~1_img355

Represents an input network variable of type SNVT_switch.

Value, State, CommError and NvIndex are hidden by default.

The type is preset and cannot be changed. For more information about SNVT_switch, see http://types.lonmark.org/

 

Outputs


 

Slots

Type

Description

 

Out

Digital

The digital state of the network variable. If you require the digital state of the NV (True or False), our recommendation is to make a connection to this slot, as it is computed based on the rules for SNVT_switch as listed below:

Out is set to False if value is equal to 0 or state is equal to 0.

Out is set to True if state is equal to 1, and value is greater to 1.

Out is set to Null if NV does not have a valid value.

 

Value*

Numeric

The ‘value’ field of the NV.

 

State*

Digital

The ‘state’ field of the NV.

 

CommError*

Digital

Will output False, unless the NV is bound, and updates have not been received within the MaxReceiveTime.

 

NvIndex*

Integer

The current index of the network variable.

 

Properties


 

Slots

Description

 

DefaultState

Initial state of the NV.

 

DefaultValue

Initial value of the NV.

 

MaxReceiveTime

When the network variable is bound, determines the maximum period of time that may pass without updates to a binding before the CommError is set to True. To disable, enter a value of zero.

 

Persistent

When set to True the network variable continues to exist and retain its value between device resets and power cycles.