Class WebApiSInt
Represents wrapper for a PLC SINT variable.
Implements
Inherited Members
Namespace: AXSharp.Connector.S71500.WebApi
Assembly: AXSharp.Connector.S71500.WebAPI.dll
Syntax
public class WebApiSInt : OnlinerSInt, INotifyPropertyChanged, IValueBoundaries<sbyte>, IOnlineSInt, IOnline<sbyte>, IShadowSInt, IShadow<sbyte>, ITwinPrimitive, ITwinElement
Constructors
| Edit this page View SourceWebApiSInt()
Initializes a new instance of the OnlinerSInt class.
Declaration
public WebApiSInt()
WebApiSInt(ITwinObject, string, string)
Initializes a new instance of the OnlinerSInt class.
Declaration
public WebApiSInt(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<sbyte> GetAsync()
Returns
Type | Description |
---|---|
Task<sbyte> |
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(sbyte)
Sets the value of this variable to the controller asynchronously.
Declaration
public override Task<sbyte> SetAsync(sbyte value)
Parameters
Type | Name | Description |
---|---|---|
sbyte | value |
Returns
Type | Description |
---|---|
Task<sbyte> |
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.