Class WebApiLDateTime
Represents wrapper for a PLC LDATE_AND_TIME variable.
Implements
Inherited Members
Namespace: AXSharp.Connector.S71500.WebApi
Assembly: AXSharp.Connector.S71500.WebAPI.dll
Syntax
public class WebApiLDateTime : OnlinerLDateTime, INotifyPropertyChanged, IValueBoundaries<DateTime>, IOnlineLDateTime, IOnline<DateTime>, IShadowLDateTime, IShadow<DateTime>, ITwinPrimitive, ITwinElement
Constructors
| Edit this page View SourceWebApiLDateTime()
Initializes a new instance of the OnlinerDateTime class.
Declaration
public WebApiLDateTime()
WebApiLDateTime(ITwinObject, string, string)
Initializes a new instance of the OnlinerLDateTime class.
Declaration
public WebApiLDateTime(ITwinObject parent, string readableTail, string symbolTail)
Parameters
Type | Name | Description |
---|---|---|
ITwinObject | parent | Parent object of this instance. |
string | readableTail | Human readable tail of this instance. |
string | symbolTail | Symbol tail of this instance. |
Methods
| Edit this page View SourceGetAsync()
Gets the value of this variable from the controller asynchronously.
Declaration
public override Task<DateTime> GetAsync()
Returns
Type | Description |
---|---|
Task<DateTime> |
Overrides
Remarks
This method accesses the item in a single request over communication layer; accessing multiple items may result in performance degradation over the communication interface with the target system. This method is to be used only when you need the item to be read from the PLC and the return the control of the program. Consider using ITwinObjects ReadAsync(ITwinObject) or WriteAsync(ITwinObject) methods for bulk access to entire structures.
Read(string)
Declaration
public void Read(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value |
SetAsync(DateTime)
Sets the value of this variable to the controller asynchronously.
Declaration
public override Task<DateTime> SetAsync(DateTime value)
Parameters
Type | Name | Description |
---|---|---|
DateTime | value |
Returns
Type | Description |
---|---|
Task<DateTime> |
Overrides
Remarks
This method accesses the item in a single request over communication layer; accessing multiple items may result in performance degradation over the communication interface with the target system. This method is to be used only when you need the item to be read from the PLC and the return the control of the program. Consider using ITwinObjects ReadAsync(ITwinObject) or WriteAsync(ITwinObject) methods for bulk access to entire structures.