海波 张
2025-05-09 2c28bf13ba0b985f68deb94cd85d78f588eff8e0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
<?xml version="1.0"?>
<doc>
    <assembly>
        <name>S7.Net</name>
    </assembly>
    <members>
        <member name="T:S7.Net.Conversion">
            <summary>
            Conversion methods to convert from Siemens numeric format to C# and back
            </summary>
        </member>
        <member name="M:S7.Net.Conversion.BinStringToInt32(System.String)">
            <summary>
            Converts a binary string to Int32 value
            </summary>
            <param name="txt"></param>
            <returns></returns>
        </member>
        <member name="M:S7.Net.Conversion.BinStringToByte(System.String)">
            <summary>
            Converts a binary string to a byte. Can return null.
            </summary>
            <param name="txt"></param>
            <returns></returns>
        </member>
        <member name="M:S7.Net.Conversion.ValToBinString(System.Object)">
            <summary>
            Converts the value to a binary string
            </summary>
            <param name="value"></param>
            <returns></returns>
        </member>
        <member name="M:S7.Net.Conversion.SelectBit(System.Byte,System.Int32)">
            <summary>
            Helper to get a bit value given a byte and the bit index.
            Example: DB1.DBX0.5 -> var bytes = ReadBytes(DB1.DBW0); bool bit = bytes[0].SelectBit(5); 
            </summary>
            <param name="data"></param>
            <param name="bitPosition"></param>
            <returns></returns>
        </member>
        <member name="M:S7.Net.Conversion.ConvertToShort(System.UInt16)">
            <summary>
            Converts from ushort value to short value; it's used to retrieve negative values from words
            </summary>
            <param name="input"></param>
            <returns></returns>
        </member>
        <member name="M:S7.Net.Conversion.ConvertToUshort(System.Int16)">
            <summary>
            Converts from short value to ushort value; it's used to pass negative values to DWs
            </summary>
            <param name="input"></param>
            <returns></returns>
        </member>
        <member name="M:S7.Net.Conversion.ConvertToInt(System.UInt32)">
            <summary>
            Converts from UInt32 value to Int32 value; it's used to retrieve negative values from DBDs
            </summary>
            <param name="input"></param>
            <returns></returns>
        </member>
        <member name="M:S7.Net.Conversion.ConvertToUInt(System.Int32)">
            <summary>
            Converts from Int32 value to UInt32 value; it's used to pass negative values to DBDs
            </summary>
            <param name="input"></param>
            <returns></returns>
        </member>
        <member name="M:S7.Net.Conversion.ConvertToUInt(System.Double)">
            <summary>
            Converts from double to DWord (DBD)
            </summary>
            <param name="input"></param>
            <returns></returns>
        </member>
        <member name="M:S7.Net.Conversion.ConvertToDouble(System.UInt32)">
            <summary>
            Converts from DWord (DBD) to double
            </summary>
            <param name="input"></param>
            <returns></returns>
        </member>
        <member name="T:S7.Net.COTP">
            <summary>
            COTP Protocol functions and types
            </summary>
        </member>
        <member name="T:S7.Net.COTP.TPDU">
            <summary>
            Describes a COTP TPDU (Transport protocol data unit)
            </summary>
        </member>
        <member name="M:S7.Net.COTP.TPDU.Read(System.Net.Sockets.Socket)">
            <summary>
            Reads COTP TPDU (Transport protocol data unit) from the network stream
            See: https://tools.ietf.org/html/rfc905
            </summary>
            <param name="socket">The socket to read from</param>
            <returns>COTP DPDU instance</returns>
        </member>
        <member name="T:S7.Net.COTP.TSDU">
            <summary>
            Describes a COTP TSDU (Transport service data unit). One TSDU consist of 1 ore more TPDUs
            </summary>
        </member>
        <member name="M:S7.Net.COTP.TSDU.Read(System.Net.Sockets.Socket)">
            <summary>
            Reads the full COTP TSDU (Transport service data unit)
            See: https://tools.ietf.org/html/rfc905
            </summary>
            <returns>Data in TSDU</returns>
        </member>
        <member name="T:S7.Net.CpuType">
            <summary>
            Types of S7 cpu supported by the library
            </summary>
        </member>
        <member name="F:S7.Net.CpuType.S7200">
            <summary>
            S7 200 cpu type
            </summary>
        </member>
        <member name="F:S7.Net.CpuType.S7300">
            <summary>
            S7 300 cpu type
            </summary>
        </member>
        <member name="F:S7.Net.CpuType.S7400">
            <summary>
            S7 400 cpu type
            </summary>
        </member>
        <member name="F:S7.Net.CpuType.S71200">
            <summary>
            S7 1200 cpu type
            </summary>
        </member>
        <member name="F:S7.Net.CpuType.S71500">
            <summary>
            S7 1500 cpu type
            </summary>
        </member>
        <member name="T:S7.Net.ErrorCode">
            <summary>
            Types of error code that can be set after a function is called
            </summary>
        </member>
        <member name="F:S7.Net.ErrorCode.NoError">
            <summary>
            The function has been executed correctly
            </summary>
        </member>
        <member name="F:S7.Net.ErrorCode.WrongCPU_Type">
            <summary>
            Wrong type of CPU error
            </summary>
        </member>
        <member name="F:S7.Net.ErrorCode.ConnectionError">
            <summary>
            Connection error
            </summary>
        </member>
        <member name="F:S7.Net.ErrorCode.IPAddressNotAvailable">
            <summary>
            Ip address not available
            </summary>
        </member>
        <member name="F:S7.Net.ErrorCode.WrongVarFormat">
            <summary>
            Wrong format of the variable
            </summary>
        </member>
        <member name="F:S7.Net.ErrorCode.WrongNumberReceivedBytes">
            <summary>
            Wrong number of received bytes
            </summary>
        </member>
        <member name="F:S7.Net.ErrorCode.SendData">
            <summary>
            Error on send data
            </summary>
        </member>
        <member name="F:S7.Net.ErrorCode.ReadData">
            <summary>
            Error on read data
            </summary>
        </member>
        <member name="F:S7.Net.ErrorCode.WriteData">
            <summary>
            Error on write data
            </summary>
        </member>
        <member name="T:S7.Net.DataType">
            <summary>
            Types of memory area that can be read
            </summary>
        </member>
        <member name="F:S7.Net.DataType.Input">
            <summary>
            Input area memory
            </summary>
        </member>
        <member name="F:S7.Net.DataType.Output">
            <summary>
            Output area memory
            </summary>
        </member>
        <member name="F:S7.Net.DataType.Memory">
            <summary>
            Merkers area memory (M0, M0.0, ...)
            </summary>
        </member>
        <member name="F:S7.Net.DataType.DataBlock">
            <summary>
            DB area memory (DB1, DB2, ...)
            </summary>
        </member>
        <member name="F:S7.Net.DataType.Timer">
            <summary>
            Timer area memory(T1, T2, ...)
            </summary>
        </member>
        <member name="F:S7.Net.DataType.Counter">
            <summary>
            Counter area memory (C1, C2, ...)
            </summary>
        </member>
        <member name="T:S7.Net.VarType">
            <summary>
            Types
            </summary>
        </member>
        <member name="F:S7.Net.VarType.Bit">
            <summary>
            S7 Bit variable type (bool)
            </summary>
        </member>
        <member name="F:S7.Net.VarType.Byte">
            <summary>
            S7 Byte variable type (8 bits)
            </summary>
        </member>
        <member name="F:S7.Net.VarType.Word">
            <summary>
            S7 Word variable type (16 bits, 2 bytes)
            </summary>
        </member>
        <member name="F:S7.Net.VarType.DWord">
            <summary>
            S7 DWord variable type (32 bits, 4 bytes)
            </summary>
        </member>
        <member name="F:S7.Net.VarType.Int">
            <summary>
            S7 Int variable type (16 bits, 2 bytes)
            </summary>
        </member>
        <member name="F:S7.Net.VarType.DInt">
            <summary>
            DInt variable type (32 bits, 4 bytes)
            </summary>
        </member>
        <member name="F:S7.Net.VarType.Real">
            <summary>
            Real variable type (32 bits, 4 bytes)
            </summary>
        </member>
        <member name="F:S7.Net.VarType.String">
            <summary>
            String variable type (variable)
            </summary>
        </member>
        <member name="F:S7.Net.VarType.StringEx">
            <summary>
            String variable type (variable)
            </summary>
        </member>
        <member name="F:S7.Net.VarType.Timer">
            <summary>
            Timer variable type
            </summary>
        </member>
        <member name="F:S7.Net.VarType.Counter">
            <summary>
            Counter variable type
            </summary>
        </member>
        <member name="T:S7.Net.Plc">
            <summary>
            Creates an instance of S7.Net driver
            </summary>
        </member>
        <member name="P:S7.Net.Plc.IP">
            <summary>
            IP address of the PLC
            </summary>
        </member>
        <member name="P:S7.Net.Plc.CPU">
            <summary>
            CPU type of the PLC
            </summary>
        </member>
        <member name="P:S7.Net.Plc.Rack">
            <summary>
            Rack of the PLC
            </summary>
        </member>
        <member name="P:S7.Net.Plc.Slot">
            <summary>
            Slot of the CPU of the PLC
            </summary>
        </member>
        <member name="P:S7.Net.Plc.MaxPDUSize">
            <summary>
            Max PDU size this cpu supports
            </summary>
        </member>
        <member name="P:S7.Net.Plc.IsAvailable">
            <summary>
            Returns true if a connection to the PLC can be established
            </summary>
        </member>
        <member name="P:S7.Net.Plc.IsConnected">
            <summary>
            Checks if the socket is connected and polls the other peer (the PLC) to see if it's connected.
            This is the variable that you should continously check to see if the communication is working
            See also: http://stackoverflow.com/questions/2661764/how-to-check-if-a-socket-is-connected-disconnected-in-c
            </summary>
        </member>
        <member name="P:S7.Net.Plc.LastErrorString">
            <summary>
            Contains the last error registered when executing a function
            </summary>
        </member>
        <member name="P:S7.Net.Plc.LastErrorCode">
            <summary>
            Contains the last error code registered when executing a function
            </summary>
        </member>
        <member name="M:S7.Net.Plc.#ctor(S7.Net.CpuType,System.String,System.Int16,System.Int16)">
            <summary>
            Creates a PLC object with all the parameters needed for connections.
            For S7-1200 and S7-1500, the default is rack = 0 and slot = 0.
            You need slot > 0 if you are connecting to external ethernet card (CP).
            For S7-300 and S7-400 the default is rack = 0 and slot = 2.
            </summary>
            <param name="cpu">CpuType of the PLC (select from the enum)</param>
            <param name="ip">Ip address of the PLC</param>
            <param name="rack">rack of the PLC, usually it's 0, but check in the hardware configuration of Step7 or TIA portal</param>
            <param name="slot">slot of the CPU of the PLC, usually it's 2 for S7300-S7400, 0 for S7-1200 and S7-1500.
             If you use an external ethernet card, this must be set accordingly.</param>
        </member>
        <member name="M:S7.Net.Plc.Open">
            <summary>
            Open a <see cref="T:System.Net.Sockets.Socket"/> and connects to the PLC, sending all the corrected package
            and returning if the connection was successful (<see cref="F:S7.Net.ErrorCode.NoError"/>) of it was wrong.
            </summary>
            <returns>Returns ErrorCode.NoError if the connection was successful, otherwise check the ErrorCode</returns>
        </member>
        <member name="M:S7.Net.Plc.Close">
            <summary>
            Disonnects from the PLC and close the socket
            </summary>
        </member>
        <member name="M:S7.Net.Plc.ReadMultipleVars(System.Collections.Generic.List{S7.Net.Types.DataItem})">
            <summary>
            Reads multiple vars in a single request. 
            You have to create and pass a list of DataItems and you obtain in response the same list with the values.
            Values are stored in the property "Value" of the dataItem and are already converted.
            If you don't want the conversion, just create a dataItem of bytes. 
            DataItems must not be more than 20 (protocol restriction) and bytes must not be more than 200 + 22 of header (protocol restriction).
            </summary>
            <param name="dataItems">List of dataitems that contains the list of variables that must be read. Maximum 20 dataitems are accepted.</param>
        </member>
        <member name="M:S7.Net.Plc.ReadBytes(S7.Net.DataType,System.Int32,System.Int32,System.Int32)">
            <summary>
            Reads a number of bytes from a DB starting from a specified index. This handles more than 200 bytes with multiple requests.
            If the read was not successful, check LastErrorCode or LastErrorString.
            </summary>
            <param name="dataType">Data type of the memory area, can be DB, Timer, Counter, Merker(Memory), Input, Output.</param>
            <param name="db">Address of the memory area (if you want to read DB1, this is set to 1). This must be set also for other memory area types: counters, timers,etc.</param>
            <param name="startByteAdr">Start byte address. If you want to read DB1.DBW200, this is 200.</param>
            <param name="count">Byte count, if you want to read 120 bytes, set this to 120.</param>
            <returns>Returns the bytes in an array</returns>
        </member>
        <member name="M:S7.Net.Plc.Read(S7.Net.DataType,System.Int32,System.Int32,S7.Net.VarType,System.Int32,System.Byte)">
            <summary>
            Read and decode a certain number of bytes of the "VarType" provided. 
            This can be used to read multiple consecutive variables of the same type (Word, DWord, Int, etc).
            If the read was not successful, check LastErrorCode or LastErrorString.
            </summary>
            <param name="dataType">Data type of the memory area, can be DB, Timer, Counter, Merker(Memory), Input, Output.</param>
            <param name="db">Address of the memory area (if you want to read DB1, this is set to 1). This must be set also for other memory area types: counters, timers,etc.</param>
            <param name="startByteAdr">Start byte address. If you want to read DB1.DBW200, this is 200.</param>
            <param name="varType">Type of the variable/s that you are reading</param>
            <param name="bitAdr">Address of bit. If you want to read DB1.DBX200.6, set 6 to this parameter.</param>
            <param name="varCount"></param>
        </member>
        <member name="M:S7.Net.Plc.Read(System.String)">
            <summary>
            Reads a single variable from the PLC, takes in input strings like "DB1.DBX0.0", "DB20.DBD200", "MB20", "T45", etc.
            If the read was not successful, check LastErrorCode or LastErrorString.
            </summary>
            <param name="variable">Input strings like "DB1.DBX0.0", "DB20.DBD200", "MB20", "T45", etc.</param>
            <returns>Returns an object that contains the value. This object must be cast accordingly.</returns>
        </member>
        <member name="M:S7.Net.Plc.ReadStruct(System.Type,System.Int32,System.Int32)">
            <summary>
            Reads all the bytes needed to fill a struct in C#, starting from a certain address, and return an object that can be casted to the struct.
            </summary>
            <param name="structType">Type of the struct to be readed (es.: TypeOf(MyStruct)).</param>
            <param name="db">Address of the DB.</param>
            <param name="startByteAdr">Start byte address. If you want to read DB1.DBW200, this is 200.</param>
            <returns>Returns a struct that must be cast.</returns>
        </member>
        <member name="M:S7.Net.Plc.ReadStruct``1(System.Int32,System.Int32)">
            <summary>
            Reads all the bytes needed to fill a struct in C#, starting from a certain address, and returns the struct or null if nothing was read.
            </summary>
            <typeparam name="T">The struct type</typeparam>
            <param name="db">Address of the DB.</param>
            <param name="startByteAdr">Start byte address. If you want to read DB1.DBW200, this is 200.</param>
            <returns>Returns a nulable struct. If nothing was read null will be returned.</returns>
        </member>
        <member name="M:S7.Net.Plc.ReadClass(System.Object,System.Int32,System.Int32)">
            <summary>
            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. 
            This reads only properties, it doesn't read private variable or public variable without {get;set;} specified.
            </summary>
            <param name="sourceClass">Instance of the class that will store the values</param>       
            <param name="db">Index of the DB; es.: 1 is for DB1</param>
            <param name="startByteAdr">Start byte address. If you want to read DB1.DBW200, this is 200.</param>
            <returns>The number of read bytes</returns>
        </member>
        <member name="M:S7.Net.Plc.ReadClass``1(System.Int32,System.Int32)">
            <summary>
            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. 
            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
            type, the class needs a default constructor.
            </summary>
            <typeparam name="T">The class that will be instantiated. Requires a default constructor</typeparam>
            <param name="db">Index of the DB; es.: 1 is for DB1</param>
            <param name="startByteAdr">Start byte address. If you want to read DB1.DBW200, this is 200.</param>
            <returns>An instance of the class with the values read from the PLC. If no data has been read, null will be returned</returns>
        </member>
        <member name="M:S7.Net.Plc.ReadClass``1(System.Func{``0},System.Int32,System.Int32)">
            <summary>
            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. 
            This reads only properties, it doesn't read private variable or public variable without {get;set;} specified.
            </summary>
            <typeparam name="T">The class that will be instantiated</typeparam>
            <param name="classFactory">Function to instantiate the class</param>
            <param name="db">Index of the DB; es.: 1 is for DB1</param>
            <param name="startByteAdr">Start byte address. If you want to read DB1.DBW200, this is 200.</param>
            <returns>An instance of the class with the values read from the PLC. If no data has been read, null will be returned</returns>
        </member>
        <member name="M:S7.Net.Plc.WriteBytes(S7.Net.DataType,System.Int32,System.Int32,System.Byte[])">
            <summary>
            Write a number of bytes from a DB starting from a specified index. This handles more than 200 bytes with multiple requests.
            If the write was not successful, check LastErrorCode or LastErrorString.
            </summary>
            <param name="dataType">Data type of the memory area, can be DB, Timer, Counter, Merker(Memory), Input, Output.</param>
            <param name="db">Address of the memory area (if you want to read DB1, this is set to 1). This must be set also for other memory area types: counters, timers,etc.</param>
            <param name="startByteAdr">Start byte address. If you want to write DB1.DBW200, this is 200.</param>
            <param name="value">Bytes to write. If more than 200, multiple requests will be made.</param>
            <returns>NoError if it was successful, or the error is specified</returns>
        </member>
        <member name="M:S7.Net.Plc.WriteBit(S7.Net.DataType,System.Int32,System.Int32,System.Int32,System.Boolean)">
            <summary>
            Write a single bit from a DB with the specified index.
            </summary>
            <param name="dataType">Data type of the memory area, can be DB, Timer, Counter, Merker(Memory), Input, Output.</param>
            <param name="db">Address of the memory area (if you want to read DB1, this is set to 1). This must be set also for other memory area types: counters, timers,etc.</param>
            <param name="startByteAdr">Start byte address. If you want to write DB1.DBW200, this is 200.</param>
            <param name="bitAdr">The address of the bit. (0-7)</param>
            <param name="value">Bytes to write. If more than 200, multiple requests will be made.</param>
            <returns>NoError if it was successful, or the error is specified</returns>
        </member>
        <member name="M:S7.Net.Plc.WriteBit(S7.Net.DataType,System.Int32,System.Int32,System.Int32,System.Int32)">
            <summary>
            Write a single bit from a DB with the specified index.
            </summary>
            <param name="dataType">Data type of the memory area, can be DB, Timer, Counter, Merker(Memory), Input, Output.</param>
            <param name="db">Address of the memory area (if you want to read DB1, this is set to 1). This must be set also for other memory area types: counters, timers,etc.</param>
            <param name="startByteAdr">Start byte address. If you want to write DB1.DBW200, this is 200.</param>
            <param name="bitAdr">The address of the bit. (0-7)</param>
            <param name="value">Bytes to write. If more than 200, multiple requests will be made.</param>
            <returns>NoError if it was successful, or the error is specified</returns>
        </member>
        <member name="M:S7.Net.Plc.Write(S7.Net.DataType,System.Int32,System.Int32,System.Object,System.Int32)">
            <summary>
            Takes in input an object and tries to parse it to an array of values. This can be used to write many data, all of the same type.
            You must specify the memory area type, memory are address, byte start address and bytes count.
            If the read was not successful, check LastErrorCode or LastErrorString.
            </summary>
            <param name="dataType">Data type of the memory area, can be DB, Timer, Counter, Merker(Memory), Input, Output.</param>
            <param name="db">Address of the memory area (if you want to read DB1, this is set to 1). This must be set also for other memory area types: counters, timers,etc.</param>
            <param name="startByteAdr">Start byte address. If you want to read DB1.DBW200, this is 200.</param>
            <param name="value">Bytes to write. The lenght of this parameter can't be higher than 200. If you need more, use recursion.</param>
            <param name="bitAdr">The address of the bit. (0-7)</param>
            <returns>NoError if it was successful, or the error is specified</returns>
        </member>
        <member name="M:S7.Net.Plc.Write(System.String,System.Object)">
            <summary>
            Writes a single variable from the PLC, takes in input strings like "DB1.DBX0.0", "DB20.DBD200", "MB20", "T45", etc.
            If the write was not successful, check <see cref="P:S7.Net.Plc.LastErrorCode"/> or <see cref="P:S7.Net.Plc.LastErrorString"/>.
            </summary>
            <param name="variable">Input strings like "DB1.DBX0.0", "DB20.DBD200", "MB20", "T45", etc.</param>
            <param name="value">Value to be written to the PLC</param>
            <returns>NoError if it was successful, or the error is specified</returns>
        </member>
        <member name="M:S7.Net.Plc.WriteStruct(System.Object,System.Int32,System.Int32)">
            <summary>
            Writes a C# struct to a DB in the PLC
            </summary>
            <param name="structValue">The struct to be written</param>
            <param name="db">Db address</param>
            <param name="startByteAdr">Start bytes on the PLC</param>
            <returns>NoError if it was successful, or the error is specified</returns>
        </member>
        <member name="M:S7.Net.Plc.WriteClass(System.Object,System.Int32,System.Int32)">
            <summary>
            Writes a C# class to a DB in the PLC
            </summary>
            <param name="classValue">The class to be written</param>
            <param name="db">Db address</param>
            <param name="startByteAdr">Start bytes on the PLC</param>
            <returns>NoError if it was successful, or the error is specified</returns>
        </member>
        <member name="M:S7.Net.Plc.ClearLastError">
            <summary>
            Sets the <see cref="P:S7.Net.Plc.LastErrorCode"/> to <see cref="F:S7.Net.ErrorCode.NoError"/> and <see cref="P:S7.Net.Plc.LastErrorString"/> to <see cref="F:System.String.Empty"/>.
            </summary>
        </member>
        <member name="M:S7.Net.Plc.ReadHeaderPackage(System.Int32)">
            <summary>
            Creates the header to read bytes from the PLC
            </summary>
            <param name="amount"></param>
            <returns></returns>
        </member>
        <member name="M:S7.Net.Plc.CreateReadDataRequestPackage(S7.Net.DataType,System.Int32,System.Int32,System.Int32)">
            <summary>
            Create the bytes-package to request data from the PLC. You have to specify the memory type (dataType), 
            the address of the memory, the address of the byte and the bytes count. 
            </summary>
            <param name="dataType">MemoryType (DB, Timer, Counter, etc.)</param>
            <param name="db">Address of the memory to be read</param>
            <param name="startByteAdr">Start address of the byte</param>
            <param name="count">Number of bytes to be read</param>
            <returns></returns>
        </member>
        <member name="M:S7.Net.Plc.WriteBytesWithASingleRequest(S7.Net.DataType,System.Int32,System.Int32,System.Byte[])">
            <summary>
            Writes up to 200 bytes to the PLC and returns NoError if successful. You must specify the memory area type, memory are address, byte start address and bytes count.
            If the write was not successful, check LastErrorCode or LastErrorString.
            </summary>
            <param name="dataType">Data type of the memory area, can be DB, Timer, Counter, Merker(Memory), Input, Output.</param>
            <param name="db">Address of the memory area (if you want to read DB1, this is set to 1). This must be set also for other memory area types: counters, timers,etc.</param>
            <param name="startByteAdr">Start byte address. If you want to read DB1.DBW200, this is 200.</param>
            <param name="value">Bytes to write. The lenght of this parameter can't be higher than 200. If you need more, use recursion.</param>
            <returns>NoError if it was successful, or the error is specified</returns>
        </member>
        <member name="M:S7.Net.Plc.ParseBytes(S7.Net.VarType,System.Byte[],System.Int32,System.Byte)">
            <summary>
            Given a S7 variable type (Bool, Word, DWord, etc.), it converts the bytes in the appropriate C# format.
            </summary>
            <param name="varType"></param>
            <param name="bytes"></param>
            <param name="varCount"></param>
            <param name="bitAdr"></param>
            <returns></returns>
        </member>
        <member name="M:S7.Net.Plc.VarTypeToByteLength(S7.Net.VarType,System.Int32)">
            <summary>
            Given a S7 <see cref="T:S7.Net.VarType"/> (Bool, Word, DWord, etc.), it returns how many bytes to read.
            </summary>
            <param name="varType"></param>
            <param name="varCount"></param>
            <returns>Byte lenght of variable</returns>
        </member>
        <member name="M:S7.Net.Plc.Dispose(System.Boolean)">
            <summary>
            Releases all resources, disonnects from the PLC and closes the <see cref="T:System.Net.Sockets.Socket"/>
            </summary>
        </member>
        <member name="M:S7.Net.Plc.Dispose">
            <summary>
            Releases all resources, disonnects from the PLC and closes the <see cref="T:System.Net.Sockets.Socket"/>
            </summary>
        </member>
        <member name="T:S7.Net.TPKT">
            <summary>
            Describes a TPKT Packet
            </summary>
        </member>
        <member name="M:S7.Net.TPKT.Read(System.Net.Sockets.Socket)">
            <summary>
            Reds a TPKT from the socket
            </summary>
            <param name="socket">The socket to read from</param>
            <returns>TPKT Instace</returns>
        </member>
        <member name="T:S7.Net.Types.Bit">
            <summary>
            Contains the conversion methods to convert Bit from S7 plc to C#.
            </summary>
        </member>
        <member name="M:S7.Net.Types.Bit.FromByte(System.Byte,System.Byte)">
            <summary>
            Converts a Bit to bool
            </summary>
        </member>
        <member name="M:S7.Net.Types.Bit.ToBitArray(System.Byte[])">
            <summary>
            Converts an array of bytes to a BitArray
            </summary>
        </member>
        <member name="T:S7.Net.Types.Boolean">
            <summary>
            Contains the methods to read, set and reset bits inside bytes
            </summary>
        </member>
        <member name="M:S7.Net.Types.Boolean.GetValue(System.Byte,System.Int32)">
            <summary>
            Returns the value of a bit in a bit, given the address of the bit
            </summary>
        </member>
        <member name="M:S7.Net.Types.Boolean.SetBit(System.Byte,System.Int32)">
            <summary>
            Sets the value of a bit to 1 (true), given the address of the bit
            </summary>
        </member>
        <member name="M:S7.Net.Types.Boolean.ClearBit(System.Byte,System.Int32)">
            <summary>
            Resets the value of a bit to 0 (false), given the address of the bit
            </summary>
        </member>
        <member name="T:S7.Net.Types.Byte">
            <summary>
            Contains the methods to convert from bytes to byte arrays
            </summary>
        </member>
        <member name="M:S7.Net.Types.Byte.ToByteArray(System.Byte)">
            <summary>
            Converts a byte to byte array
            </summary>
        </member>
        <member name="M:S7.Net.Types.Byte.FromByteArray(System.Byte[])">
            <summary>
            Converts a byte array to byte
            </summary>
            <param name="bytes"></param>
            <returns></returns>
        </member>
        <member name="T:S7.Net.Types.Class">
            <summary>
            Contains the methods to convert a C# class to S7 data types
            </summary>
        </member>
        <member name="M:S7.Net.Types.Class.GetClassSize(System.Object)">
            <summary>
            Gets the size of the class in bytes.
            </summary>
            <param name="instance">An instance of the class</param>
            <returns>the number of bytes</returns>
        </member>
        <member name="M:S7.Net.Types.Class.FromBytes(System.Object,System.Byte[])">
            <summary>
            Sets the object's values with the given array of bytes
            </summary>
            <param name="sourceClass">The object to fill in the given array of bytes</param>
            <param name="bytes">The array of bytes</param>
        </member>
        <member name="M:S7.Net.Types.Class.ToBytes(System.Object)">
            <summary>
            Creates a byte array depending on the struct type.
            </summary>
            <param name="sourceClass">The struct object</param>
            <returns>A byte array or null if fails.</returns>
        </member>
        <member name="T:S7.Net.Types.Counter">
            <summary>
            Contains the conversion methods to convert Counter from S7 plc to C# ushort (UInt16).
            </summary>
        </member>
        <member name="M:S7.Net.Types.Counter.FromByteArray(System.Byte[])">
            <summary>
            Converts a Counter (2 bytes) to ushort (UInt16)
            </summary>
        </member>
        <member name="M:S7.Net.Types.Counter.ToByteArray(System.UInt16)">
            <summary>
            Converts a ushort (UInt16) to word (2 bytes)
            </summary>
        </member>
        <member name="M:S7.Net.Types.Counter.ToByteArray(System.UInt16[])">
            <summary>
            Converts an array of ushort (UInt16) to an array of bytes
            </summary>
        </member>
        <member name="M:S7.Net.Types.Counter.ToArray(System.Byte[])">
            <summary>
            Converts an array of bytes to an array of ushort
            </summary>
        </member>
        <member name="T:S7.Net.Types.DataItem">
            <summary>
            Create an instance of a memory block that can be read by using ReadMultipleVars
            </summary>
        </member>
        <member name="P:S7.Net.Types.DataItem.DataType">
            <summary>
            Memory area to read 
            </summary>
        </member>
        <member name="P:S7.Net.Types.DataItem.VarType">
            <summary>
            Type of data to be read (default is bytes)
            </summary>
        </member>
        <member name="P:S7.Net.Types.DataItem.DB">
            <summary>
            Address of memory area to read (example: for DB1 this value is 1, for T45 this value is 45)
            </summary>
        </member>
        <member name="P:S7.Net.Types.DataItem.StartByteAdr">
            <summary>
            Address of the first byte to read
            </summary>
        </member>
        <member name="P:S7.Net.Types.DataItem.BitAdr">
            <summary>
            Addess of bit to read from StartByteAdr
            </summary>
        </member>
        <member name="P:S7.Net.Types.DataItem.Count">
            <summary>
            Number of variables to read
            </summary>
        </member>
        <member name="P:S7.Net.Types.DataItem.Value">
            <summary>
            Contains the value of the memory area after the read has been executed
            </summary>
        </member>
        <member name="M:S7.Net.Types.DataItem.#ctor">
            <summary>
            Create an instance of DataItem
            </summary>
        </member>
        <member name="T:S7.Net.Types.DInt">
            <summary>
            Contains the conversion methods to convert DInt from S7 plc to C# int (Int32).
            </summary>
        </member>
        <member name="M:S7.Net.Types.DInt.FromByteArray(System.Byte[])">
            <summary>
            Converts a S7 DInt (4 bytes) to int (Int32)
            </summary>
        </member>
        <member name="M:S7.Net.Types.DInt.ToByteArray(System.Int32)">
            <summary>
            Converts a int (Int32) to S7 DInt (4 bytes)
            </summary>
        </member>
        <member name="M:S7.Net.Types.DInt.ToByteArray(System.Int32[])">
            <summary>
            Converts an array of int (Int32) to an array of bytes
            </summary>
        </member>
        <member name="M:S7.Net.Types.DInt.ToArray(System.Byte[])">
            <summary>
            Converts an array of S7 DInt to an array of int (Int32)
            </summary>
        </member>
        <member name="T:S7.Net.Types.Double">
            <summary>
            Contains the conversion methods to convert Real from S7 plc to C# double.
            </summary>
        </member>
        <member name="M:S7.Net.Types.Double.FromByteArray(System.Byte[])">
            <summary>
            Converts a S7 Real (4 bytes) to double
            </summary>
        </member>
        <member name="M:S7.Net.Types.Double.FromDWord(System.Int32)">
            <summary>
            Converts a S7 DInt to double
            </summary>
        </member>
        <member name="M:S7.Net.Types.Double.FromDWord(System.UInt32)">
            <summary>
            Converts a S7 DWord to double
            </summary>
        </member>
        <member name="M:S7.Net.Types.Double.ToByteArray(System.Double)">
            <summary>
            Converts a double to S7 Real (4 bytes)
            </summary>
        </member>
        <member name="M:S7.Net.Types.Double.ToByteArray(System.Double[])">
            <summary>
            Converts an array of double to an array of bytes 
            </summary>
        </member>
        <member name="M:S7.Net.Types.Double.ToArray(System.Byte[])">
            <summary>
            Converts an array of S7 Real to an array of double
            </summary>
        </member>
        <member name="T:S7.Net.Types.DWord">
            <summary>
            Contains the conversion methods to convert DWord from S7 plc to C#.
            </summary>
        </member>
        <member name="M:S7.Net.Types.DWord.FromByteArray(System.Byte[])">
            <summary>
            Converts a S7 DWord (4 bytes) to uint (UInt32)
            </summary>
        </member>
        <member name="M:S7.Net.Types.DWord.FromBytes(System.Byte,System.Byte,System.Byte,System.Byte)">
            <summary>
            Converts 4 bytes to DWord (UInt32)
            </summary>
        </member>
        <member name="M:S7.Net.Types.DWord.ToByteArray(System.UInt32)">
            <summary>
            Converts a uint (UInt32) to S7 DWord (4 bytes) 
            </summary>
        </member>
        <member name="M:S7.Net.Types.DWord.ToByteArray(System.UInt32[])">
            <summary>
            Converts an array of uint (UInt32) to an array of S7 DWord (4 bytes) 
            </summary>
        </member>
        <member name="M:S7.Net.Types.DWord.ToArray(System.Byte[])">
            <summary>
            Converts an array of S7 DWord to an array of uint (UInt32)
            </summary>
        </member>
        <member name="T:S7.Net.Types.Int">
            <summary>
            Contains the conversion methods to convert Int from S7 plc to C#.
            </summary>
        </member>
        <member name="M:S7.Net.Types.Int.FromByteArray(System.Byte[])">
            <summary>
            Converts a S7 Int (2 bytes) to short (Int16)
            </summary>
        </member>
        <member name="M:S7.Net.Types.Int.ToByteArray(System.Int16)">
            <summary>
            Converts a short (Int16) to a S7 Int byte array (2 bytes)
            </summary>
        </member>
        <member name="M:S7.Net.Types.Int.ToByteArray(System.Int16[])">
            <summary>
            Converts an array of short (Int16) to a S7 Int byte array (2 bytes)
            </summary>
        </member>
        <member name="M:S7.Net.Types.Int.ToArray(System.Byte[])">
            <summary>
            Converts an array of S7 Int to an array of short (Int16)
            </summary>
        </member>
        <member name="M:S7.Net.Types.Int.CWord(System.Int32)">
            <summary>
            Converts a C# int value to a C# short value, to be used as word.
            </summary>
            <param name="value"></param>
            <returns></returns>
        </member>
        <member name="T:S7.Net.Types.StringEx">
            <summary>
            Contains the methods to convert from S7 strings to C# strings
              there are two kinds how strings a send. This one is with a pre of two bytes
              they contain the length of the string
            </summary>
        </member>
        <member name="M:S7.Net.Types.StringEx.FromByteArray(System.Byte[])">
            <summary>
            Converts S7 bytes to a string
            </summary>
            <param name="bytes"></param>
            <returns></returns>
        </member>
        <member name="T:S7.Net.Types.String">
            <summary>
            Contains the methods to convert from S7 strings to C# strings
            </summary>
        </member>
        <member name="M:S7.Net.Types.String.ToByteArray(System.String)">
            <summary>
            Converts a string to S7 bytes
            </summary>
        </member>
        <member name="M:S7.Net.Types.String.FromByteArray(System.Byte[])">
            <summary>
            Converts S7 bytes to a string
            </summary>
            <param name="bytes"></param>
            <returns></returns>
        </member>
        <member name="T:S7.Net.Types.Struct">
            <summary>
            Contains the method to convert a C# struct to S7 data types
            </summary>
        </member>
        <member name="M:S7.Net.Types.Struct.GetStructSize(System.Type)">
            <summary>
            Gets the size of the struct in bytes.
            </summary>
            <param name="structType">the type of the struct</param>
            <returns>the number of bytes</returns>
        </member>
        <member name="M:S7.Net.Types.Struct.FromBytes(System.Type,System.Byte[])">
            <summary>
            Creates a struct of a specified type by an array of bytes.
            </summary>
            <param name="structType">The struct type</param>
            <param name="bytes">The array of bytes</param>
            <returns>The object depending on the struct type or null if fails(array-length != struct-length</returns>
        </member>
        <member name="M:S7.Net.Types.Struct.ToBytes(System.Object)">
            <summary>
            Creates a byte array depending on the struct type.
            </summary>
            <param name="structValue">The struct object</param>
            <returns>A byte array or null if fails.</returns>
        </member>
        <member name="T:S7.Net.Types.Timer">
            <summary>
            Converts the Timer data type to C# data type
            </summary>
        </member>
        <member name="M:S7.Net.Types.Timer.FromByteArray(System.Byte[])">
            <summary>
            Converts the timer bytes to a double
            </summary>
        </member>
        <member name="M:S7.Net.Types.Timer.ToByteArray(System.UInt16)">
            <summary>
            Converts a ushort (UInt16) to an array of bytes formatted as time
            </summary>
        </member>
        <member name="M:S7.Net.Types.Timer.ToByteArray(System.UInt16[])">
            <summary>
            Converts an array of ushorts (Uint16) to an array of bytes formatted as time
            </summary>
        </member>
        <member name="M:S7.Net.Types.Timer.ToArray(System.Byte[])">
            <summary>
            Converts an array of bytes formatted as time to an array of doubles
            </summary>
            <param name="bytes"></param>
            <returns></returns>
        </member>
        <member name="T:S7.Net.Types.Word">
            <summary>
            Contains the conversion methods to convert Words from S7 plc to C#.
            </summary>
        </member>
        <member name="M:S7.Net.Types.Word.FromByteArray(System.Byte[])">
            <summary>
            Converts a word (2 bytes) to ushort (UInt16)
            </summary>
        </member>
        <member name="M:S7.Net.Types.Word.FromBytes(System.Byte,System.Byte)">
            <summary>
            Converts 2 bytes to ushort (UInt16)
            </summary>
        </member>
        <member name="M:S7.Net.Types.Word.ToByteArray(System.UInt16)">
            <summary>
            Converts a ushort (UInt16) to word (2 bytes)
            </summary>
        </member>
        <member name="M:S7.Net.Types.Word.ToByteArray(System.UInt16[])">
            <summary>
            Converts an array of ushort (UInt16) to an array of bytes
            </summary>
        </member>
        <member name="M:S7.Net.Types.Word.ToArray(System.Byte[])">
            <summary>
            Converts an array of bytes to an array of ushort
            </summary>
        </member>
    </members>
</doc>