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
thrownewWrongNumberOfBytesException("Not enough data received in response to Communication Setup");
75
81
@@ -112,7 +118,7 @@ public async Task<byte[]> ReadBytesAsync(DataType dataType, int db, int startByt
112
118
}
113
119
114
120
/// <summary>
115
-
/// Read and decode a certain number of bytes of the "VarType" provided.
121
+
/// Read and decode a certain number of bytes of the "VarType" provided.
116
122
/// This can be used to read multiple consecutive variables of the same type (Word, DWord, Int, etc).
117
123
/// If the read was not successful, check LastErrorCode or LastErrorString.
118
124
/// </summary>
@@ -179,10 +185,10 @@ public async Task<byte[]> ReadBytesAsync(DataType dataType, int db, int startByt
179
185
}
180
186
181
187
/// <summary>
182
-
/// Reads all the bytes needed to fill a class in C#, starting from a certain address, and set all the properties values to the value that are read from the PLC.
188
+
/// Reads all the bytes needed to fill a class in C#, starting from a certain address, and set all the properties values to the value that are read from the PLC.
183
189
/// This reads only properties, it doesn't read private variable or public variable without {get;set;} specified.
184
190
/// </summary>
185
-
/// <param name="sourceClass">Instance of the class that will store the values</param>
191
+
/// <param name="sourceClass">Instance of the class that will store the values</param>
186
192
/// <param name="db">Index of the DB; es.: 1 is for DB1</param>
187
193
/// <param name="startByteAdr">Start byte address. If you want to read DB1.DBW200, this is 200.</param>
188
194
/// <param name="cancellationToken">The token to monitor for cancellation requests. The default value is None.
@@ -205,7 +211,7 @@ public async Task<Tuple<int, object>> ReadClassAsync(object sourceClass, int db,
205
211
}
206
212
207
213
/// <summary>
208
-
/// Reads all the bytes needed to fill a class in C#, starting from a certain address, and set all the properties values to the value that are read from the PLC.
214
+
/// Reads all the bytes needed to fill a class in C#, starting from a certain address, and set all the properties values to the value that are read from the PLC.
209
215
/// This reads only properties, it doesn't read private variable or public variable without {get;set;} specified. To instantiate the class defined by the generic
210
216
/// type, the class needs a default constructor.
211
217
/// </summary>
@@ -221,7 +227,7 @@ public async Task<Tuple<int, object>> ReadClassAsync(object sourceClass, int db,
221
227
}
222
228
223
229
/// <summary>
224
-
/// Reads all the bytes needed to fill a class in C#, starting from a certain address, and set all the properties values to the value that are read from the PLC.
230
+
/// Reads all the bytes needed to fill a class in C#, starting from a certain address, and set all the properties values to the value that are read from the PLC.
225
231
/// This reads only properties, it doesn't read private variable or public variable without {get;set;} specified.
226
232
/// </summary>
227
233
/// <typeparam name="T">The class that will be instantiated</typeparam>
@@ -245,29 +251,26 @@ public async Task<Tuple<int, object>> ReadClassAsync(object sourceClass, int db,
245
251
}
246
252
247
253
/// <summary>
248
-
/// Reads multiple vars in a single request.
254
+
/// Reads multiple vars in a single request.
249
255
/// You have to create and pass a list of DataItems and you obtain in response the same list with the values.
250
256
/// Values are stored in the property "Value" of the dataItem and are already converted.
251
-
/// If you don't want the conversion, just create a dataItem of bytes.
257
+
/// If you don't want the conversion, just create a dataItem of bytes.
252
258
/// The number of DataItems as well as the total size of the requested data can not exceed a certain limit (protocol restriction).
253
259
/// </summary>
254
260
/// <param name="dataItems">List of dataitems that contains the list of variables that must be read.</param>
255
261
/// <param name="cancellationToken">The token to monitor for cancellation requests. The default value is None.
256
262
/// Please note that cancellation is advisory/cooperative and will not lead to immediate cancellation in all cases.</param>
0 commit comments