InputPortInstance.SetValue Method

<< Click to Display Table of Contents >>

Navigation:  Reference > BNCS.Logic.Engine Namespace > InputPortInstance Class > InputPortInstance Methods >

InputPortInstance.SetValue Method

Sets the value of the port, handling both alarm and value ports.

Namespace: BNCS.Logic.Engine
Assembly:  BNCS.Core.DriverFramework (in BNCS.Core.DriverFramework.dll)

 

Syntax


public void SetValue(
 Object value
)

Parameters

value

Type: Object
The new value to set for the port.

 

Exceptions


Exception

Condition

[Exception]

Thrown when there is an error setting the port value.

 

Remarks


If the port type implements IAlarmState, it is treated as an alarm port. Otherwise, it is treated as a value port. The method logs the value change and updates the port's value.

 

See Also


InputPortInstance Class

BNCS.Logic.Engine Namespace