PlcReal Class

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

Represents a Single value (in PLC a REAL) its value defines a single-precision floating-point number.

C#

public class PlcReal : PlcValue<float>, IPlcValue<float>, IPlcValue, IPlcSymbol, IPlcEntity, IPlcStatusProvider, IPlcRelocatable<IPlcValue>, IPlcRelocatable, ISupportInitialize


Inheritance ObjectPlcValue<Single> › PlcReal


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

Remarks

While a PLC value of this type represents a Single value, all PLC operations performed using this class are done using the DWord. A PLC developer knows a value of this type as REAL.

Name Description
PlcReal(PlcIdentity) Initializes a new instance of the PlcReal class using the specified identity
PlcReal(PlcIdentity, PlcName) Initializes a new instance of the PlcReal class using the specified identity and name.
PlcReal(PlcIdentity, PlcName, Single) Initializes a new instance of the PlcReal class using the specified identity, name and value.
PlcReal(PlcIdentity, Single) Initializes a new instance of the PlcReal class using the specified identity and value.
PlcReal(PlcRealType) Initializes a new instance of the PlcReal class using the specified type
PlcReal(PlcRealType, PlcName) Initializes a new instance of the PlcReal class using the specified type and name.
PlcReal(PlcRealType, PlcName, Single) Initializes a new instance of the PlcReal class using the specified type, name and value.
PlcReal(PlcRealType, Single) Initializes a new instance of the PlcReal class using the specified type 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, Single) Stores the value in the IPlcDevice assigned to the connection specified.