You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docfx/articles/connectors/README.md
+11-9Lines changed: 11 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,8 +78,8 @@ During the batched read operation, the values are stored in *LastValue* property
78
78
79
79
During a batched write operation, the values written to the controller were retrieved from the *Cyclic* property of the corresponding Primitive Twin.
80
80
81
-
> **NOTE**
82
-
> Accessing *Cyclic* property for **writing** will not result in an autmatic subscription for cyclic reading. Acessing the *LastValue* property will neither result in an automatic subcription for reading.
81
+
> **NOTE**
82
+
> Accessing *Cyclic* property for **writing** will not result in an automatic subscription for cyclic reading. Accessing the *LastValue* property will neither result in an automatic subscription for reading.
83
83
84
84
~~~C#
85
85
// in this namespace are extension methods for batched operations.
Polling allows an application to query a structure or variable at different intervals. The values are stored in the `Cyclic` property of value types. The polled variables are retrieved from the controller in the same way as during cyclic reading but at a specified interval. Unlike automatic subscription mode, the polled values can be unsubscribed.
117
119
118
120
To enable polling, the subscription of the twin connector must be set to `Polling`.
@@ -256,7 +258,7 @@ _length : REAL;
256
258
~~~
257
259
258
260
~~~C#
259
-
// Writes unit of the '_lenght' variable to the console.
261
+
// Writes unit of the '_length' variable to the console.
someString:='<#This woule be localized#> and this would stay as it is';
339
+
someString := '<#This would be localized#> and this would stay as it is';
338
340
339
341
340
-
someWString:="<#This woule be localized#> and this would stay as it is";
342
+
someWString := "<#This would be localized#> and this would stay as it is";
341
343
~~~
342
344
343
345
Connectors implement features that allow localizing of the texts (controller defined and added attributes of string type). For the localization to work the twin assembly must be provided with a resource file (*.resx). Resource files can be generated using [ixr tool](~/articles/ixr/IXR.md). You will need to add the resource file to your **Twin project** and set the resource code generation to *public*.
For more details about polling within your components, see [Polling Data from the Controller in Components](../blazor/LIBRARIES.md#polling-data-from-the-plc) and [General Polling](README.md#polling).
26
+
For more details about polling within your components, see [Polling Data from the Controller in Components](../blazor/LIBRARIES.md#optimizing-plc-data-polling) and [General Polling](README.md#polling).
-[vscode](https://code.visualstudio.com/Download) or [vs2022](https://visualstudio.microsoft.com/vs/)
43
41
44
-
> **Make sure you have installed both .NET6 and .NET7.**
45
-
46
42
## Getting started
47
43
48
44
Make sure you meet all [prerequisites](#prerequisites).
@@ -66,7 +62,7 @@ There are different ways you can use to create new project. At this point we sup
66
62
67
63
**IMPORTANT! Prepare your PLC and AX project**
68
64
69
-
*Before you start using any of the method below yoiu will need to set up your PLC. Using TIA portal you need to enable WebAPI interface [see here](https://console.simatic-ax.siemens.io/docs/hwld/PlcWebServer) and [here](https://youtu.be/d9EX2FixY1A?t=151) is a very informative youtube video.*
65
+
*Before you start using any of the methods below you will need to set up your PLC. Using TIA portal you need to enable WebAPI interface [see here](https://console.simatic-ax.siemens.io/docs/hwld/PlcWebServer) and [here](https://youtu.be/d9EX2FixY1A?t=151) is a very informative youtube video.*
70
66
71
67
[!Video https://youtu.be/d9EX2FixY1A?t=151]
72
68
@@ -75,15 +71,9 @@ There are different ways you can use to create new project. At this point we sup
75
71
76
72
Install AX# template package
77
73
78
-
When using .NET7
79
74
~~~
80
75
dotnet new install AXSharp.templates
81
76
~~~
82
-
83
-
When using .NET6 and earlier
84
-
~~~
85
-
dotnet new --install AXSharp.templates
86
-
~~~
87
77
> [!NOTE]
88
78
> Make sure all nuget feed sources are available at the time of installation of packages.
89
79
If you are not sure run `dotnet nuget list source` and check that the sources listed are reachable.
@@ -107,11 +97,11 @@ Create new project from template
107
97
108
98
~~~
109
99
dotnet new [shortname] -n YOUR_PROJECT_NAME
110
-
#e.g. dotnet new axeblazor -n MyFristAXSharpBlazorProject
100
+
#e.g. dotnet new axeblazor -n MyFirstAXSharpBlazorProject
111
101
~~~
112
102
113
103
**When prompted about script execution allow the script to run (answer (Y)es) in order to finish the scaffolding of the project.**
114
-
If you're creating the project using Visual Studion you will need to run the script manually.
104
+
If you're creating the project using Visual Studio you will need to run the script manually.
115
105
116
106
Consult README.md file located in your new project for additional information.
117
107
@@ -168,7 +158,7 @@ Copyright (C) 2022 author
168
158
--version Display version information.
169
159
~~~
170
160
171
-
Before usage apax commanad ensure that you are logged in
161
+
Before usage apax command ensure that you are logged in
0 commit comments