PlcBoolean Class

Namespace: IPS7Lnk.Advanced
Assemblies: IPS7LnkNet.Advanced.dll

Represents a Boolean value (in PLC a BOOL) its value is interpreted as a boolean expression.

C#

public class PlcBoolean : PlcValue<bool>, IPlcValue<bool>, IPlcValue, IPlcSymbol, IPlcEntity, IPlcStatusProvider, IPlcRelocatable<IPlcValue>, IPlcRelocatable, ISupportInitialize


Inheritance ObjectPlcValue<Boolean> › PlcBoolean


Implements IPlcValue<Boolean>, IPlcValue, IPlcSymbol, IPlcEntity, IPlcStatusProvider, IPlcRelocatable<IPlcValue>, IPlcRelocatable, ISupportInitialize

Remarks

While a PLC value of this type represents a Boolean value, all PLC operations performed using this class are done using the Bit. A PLC developer knows a value of this type as BOOL.

Name Description
PlcBoolean(PlcBooleanType) Initializes a new instance of the PlcBoolean class using the specified type
PlcBoolean(PlcBooleanType, Boolean) Initializes a new instance of the PlcBoolean class using the specified type and value.
PlcBoolean(PlcBooleanType, PlcName) Initializes a new instance of the PlcBoolean class using the specified type and name.
PlcBoolean(PlcBooleanType, PlcName, Boolean) Initializes a new instance of the PlcBoolean class using the specified type, name and value.
PlcBoolean(PlcIdentity) Initializes a new instance of the PlcBoolean class using the specified identity
PlcBoolean(PlcIdentity, Boolean) Initializes a new instance of the PlcBoolean class using the specified identity and value.
PlcBoolean(PlcIdentity, PlcName) Initializes a new instance of the PlcBoolean class using the specified identity and name.
PlcBoolean(PlcIdentity, PlcName, Boolean) Initializes a new instance of the PlcBoolean class using the specified identity, name and value.
Name Description
GetValueCore(PlcDeviceConnection) Retrieves the current value of the PLC value from a IPlcDevice using the connection specified.
RelocateCore(PlcAddress) Relocates the value to the address specified.
SetValueCore(PlcDeviceConnection, Boolean) Stores the value in the IPlcDevice assigned to the connection specified.