S7.Net.xml 106 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014
  1. <?xml version="1.0"?>
  2. <doc>
  3. <assembly>
  4. <name>S7.Net</name>
  5. </assembly>
  6. <members>
  7. <member name="T:S7.Net.Conversion">
  8. <summary>
  9. Conversion methods to convert from Siemens numeric format to C# and back
  10. </summary>
  11. </member>
  12. <member name="M:S7.Net.Conversion.BinStringToInt32(System.String)">
  13. <summary>
  14. Converts a binary string to Int32 value
  15. </summary>
  16. <param name="txt"></param>
  17. <returns></returns>
  18. </member>
  19. <member name="M:S7.Net.Conversion.BinStringToByte(System.String)">
  20. <summary>
  21. Converts a binary string to a byte. Can return null.
  22. </summary>
  23. <param name="txt"></param>
  24. <returns></returns>
  25. </member>
  26. <member name="M:S7.Net.Conversion.ValToBinString(System.Object)">
  27. <summary>
  28. Converts the value to a binary string
  29. </summary>
  30. <param name="value"></param>
  31. <returns></returns>
  32. </member>
  33. <member name="M:S7.Net.Conversion.SelectBit(System.Byte,System.Int32)">
  34. <summary>
  35. Helper to get a bit value given a byte and the bit index.
  36. <br/>
  37. <example>
  38. Get the bit at DB1.DBX0.5:
  39. <code>
  40. byte data = ReadByte("DB1.DBB0");
  41. bool bit = data.SelectBit(5);
  42. </code>
  43. </example>
  44. </summary>
  45. <param name="data">The data to get from.</param>
  46. <param name="index">The zero-based index of the bit to get.</param>
  47. <returns>The Boolean value will get.</returns>
  48. </member>
  49. <member name="M:S7.Net.Conversion.SetBit(System.Byte@,System.Int32,System.Boolean)">
  50. <summary>
  51. Helper to set a bit value to the given byte at the bit index.
  52. <br/>
  53. <example>
  54. Set the bit at index 4:
  55. <code>
  56. byte data = 0;
  57. data.SetBit(4, true);
  58. </code>
  59. </example>
  60. </summary>
  61. <param name="data">The data to be modified.</param>
  62. <param name="index">The zero-based index of the bit to set.</param>
  63. <param name="value">The Boolean value to assign to the bit.</param>
  64. </member>
  65. <member name="M:S7.Net.Conversion.ConvertToShort(System.UInt16)">
  66. <summary>
  67. Converts from ushort value to short value; it's used to retrieve negative values from words
  68. </summary>
  69. <param name="input"></param>
  70. <returns></returns>
  71. </member>
  72. <member name="M:S7.Net.Conversion.ConvertToUshort(System.Int16)">
  73. <summary>
  74. Converts from short value to ushort value; it's used to pass negative values to DWs
  75. </summary>
  76. <param name="input"></param>
  77. <returns></returns>
  78. </member>
  79. <member name="M:S7.Net.Conversion.ConvertToInt(System.UInt32)">
  80. <summary>
  81. Converts from UInt32 value to Int32 value; it's used to retrieve negative values from DBDs
  82. </summary>
  83. <param name="input"></param>
  84. <returns></returns>
  85. </member>
  86. <member name="M:S7.Net.Conversion.ConvertToUInt(System.Int32)">
  87. <summary>
  88. Converts from Int32 value to UInt32 value; it's used to pass negative values to DBDs
  89. </summary>
  90. <param name="input"></param>
  91. <returns></returns>
  92. </member>
  93. <member name="M:S7.Net.Conversion.ConvertToUInt(System.Single)">
  94. <summary>
  95. Converts from float to DWord (DBD)
  96. </summary>
  97. <param name="input"></param>
  98. <returns></returns>
  99. </member>
  100. <member name="M:S7.Net.Conversion.ConvertToFloat(System.UInt32)">
  101. <summary>
  102. Converts from DWord (DBD) to float
  103. </summary>
  104. <param name="input"></param>
  105. <returns></returns>
  106. </member>
  107. <member name="T:S7.Net.COTP">
  108. <summary>
  109. COTP Protocol functions and types
  110. </summary>
  111. </member>
  112. <member name="T:S7.Net.COTP.TPDU">
  113. <summary>
  114. Describes a COTP TPDU (Transport protocol data unit)
  115. </summary>
  116. </member>
  117. <member name="M:S7.Net.COTP.TPDU.ReadAsync(System.IO.Stream,System.Threading.CancellationToken)">
  118. <summary>
  119. Reads COTP TPDU (Transport protocol data unit) from the network stream
  120. See: https://tools.ietf.org/html/rfc905
  121. </summary>
  122. <param name="stream">The socket to read from</param>
  123. <param name="cancellationToken">A cancellation token that can be used to cancel the asynchronous operation.</param>
  124. <returns>COTP DPDU instance</returns>
  125. </member>
  126. <member name="T:S7.Net.COTP.TSDU">
  127. <summary>
  128. Describes a COTP TSDU (Transport service data unit). One TSDU consist of 1 ore more TPDUs
  129. </summary>
  130. </member>
  131. <member name="M:S7.Net.COTP.TSDU.ReadAsync(System.IO.Stream,System.Threading.CancellationToken)">
  132. <summary>
  133. Reads the full COTP TSDU (Transport service data unit)
  134. See: https://tools.ietf.org/html/rfc905
  135. </summary>
  136. <param name="stream">The stream to read from</param>
  137. <param name="cancellationToken">A cancellation token that can be used to cancel the asynchronous operation.</param>
  138. <returns>Data in TSDU</returns>
  139. </member>
  140. <member name="T:S7.Net.CpuType">
  141. <summary>
  142. Types of S7 cpu supported by the library
  143. </summary>
  144. </member>
  145. <member name="F:S7.Net.CpuType.S7200">
  146. <summary>
  147. S7 200 cpu type
  148. </summary>
  149. </member>
  150. <member name="F:S7.Net.CpuType.Logo0BA8">
  151. <summary>
  152. Siemens Logo 0BA8
  153. </summary>
  154. </member>
  155. <member name="F:S7.Net.CpuType.S7200Smart">
  156. <summary>
  157. S7 200 Smart
  158. </summary>
  159. </member>
  160. <member name="F:S7.Net.CpuType.S7300">
  161. <summary>
  162. S7 300 cpu type
  163. </summary>
  164. </member>
  165. <member name="F:S7.Net.CpuType.S7400">
  166. <summary>
  167. S7 400 cpu type
  168. </summary>
  169. </member>
  170. <member name="F:S7.Net.CpuType.S71200">
  171. <summary>
  172. S7 1200 cpu type
  173. </summary>
  174. </member>
  175. <member name="F:S7.Net.CpuType.S71500">
  176. <summary>
  177. S7 1500 cpu type
  178. </summary>
  179. </member>
  180. <member name="T:S7.Net.ErrorCode">
  181. <summary>
  182. Types of error code that can be set after a function is called
  183. </summary>
  184. </member>
  185. <member name="F:S7.Net.ErrorCode.NoError">
  186. <summary>
  187. The function has been executed correctly
  188. </summary>
  189. </member>
  190. <member name="F:S7.Net.ErrorCode.WrongCPU_Type">
  191. <summary>
  192. Wrong type of CPU error
  193. </summary>
  194. </member>
  195. <member name="F:S7.Net.ErrorCode.ConnectionError">
  196. <summary>
  197. Connection error
  198. </summary>
  199. </member>
  200. <member name="F:S7.Net.ErrorCode.IPAddressNotAvailable">
  201. <summary>
  202. Ip address not available
  203. </summary>
  204. </member>
  205. <member name="F:S7.Net.ErrorCode.WrongVarFormat">
  206. <summary>
  207. Wrong format of the variable
  208. </summary>
  209. </member>
  210. <member name="F:S7.Net.ErrorCode.WrongNumberReceivedBytes">
  211. <summary>
  212. Wrong number of received bytes
  213. </summary>
  214. </member>
  215. <member name="F:S7.Net.ErrorCode.SendData">
  216. <summary>
  217. Error on send data
  218. </summary>
  219. </member>
  220. <member name="F:S7.Net.ErrorCode.ReadData">
  221. <summary>
  222. Error on read data
  223. </summary>
  224. </member>
  225. <member name="F:S7.Net.ErrorCode.WriteData">
  226. <summary>
  227. Error on write data
  228. </summary>
  229. </member>
  230. <member name="T:S7.Net.DataType">
  231. <summary>
  232. Types of memory area that can be read
  233. </summary>
  234. </member>
  235. <member name="F:S7.Net.DataType.Input">
  236. <summary>
  237. Input area memory
  238. </summary>
  239. </member>
  240. <member name="F:S7.Net.DataType.Output">
  241. <summary>
  242. Output area memory
  243. </summary>
  244. </member>
  245. <member name="F:S7.Net.DataType.Memory">
  246. <summary>
  247. Merkers area memory (M0, M0.0, ...)
  248. </summary>
  249. </member>
  250. <member name="F:S7.Net.DataType.DataBlock">
  251. <summary>
  252. DB area memory (DB1, DB2, ...)
  253. </summary>
  254. </member>
  255. <member name="F:S7.Net.DataType.Timer">
  256. <summary>
  257. Timer area memory(T1, T2, ...)
  258. </summary>
  259. </member>
  260. <member name="F:S7.Net.DataType.Counter">
  261. <summary>
  262. Counter area memory (C1, C2, ...)
  263. </summary>
  264. </member>
  265. <member name="T:S7.Net.VarType">
  266. <summary>
  267. Types
  268. </summary>
  269. </member>
  270. <member name="F:S7.Net.VarType.Bit">
  271. <summary>
  272. S7 Bit variable type (bool)
  273. </summary>
  274. </member>
  275. <member name="F:S7.Net.VarType.Byte">
  276. <summary>
  277. S7 Byte variable type (8 bits)
  278. </summary>
  279. </member>
  280. <member name="F:S7.Net.VarType.Word">
  281. <summary>
  282. S7 Word variable type (16 bits, 2 bytes)
  283. </summary>
  284. </member>
  285. <member name="F:S7.Net.VarType.DWord">
  286. <summary>
  287. S7 DWord variable type (32 bits, 4 bytes)
  288. </summary>
  289. </member>
  290. <member name="F:S7.Net.VarType.Int">
  291. <summary>
  292. S7 Int variable type (16 bits, 2 bytes)
  293. </summary>
  294. </member>
  295. <member name="F:S7.Net.VarType.DInt">
  296. <summary>
  297. DInt variable type (32 bits, 4 bytes)
  298. </summary>
  299. </member>
  300. <member name="F:S7.Net.VarType.Real">
  301. <summary>
  302. Real variable type (32 bits, 4 bytes)
  303. </summary>
  304. </member>
  305. <member name="F:S7.Net.VarType.LReal">
  306. <summary>
  307. LReal variable type (64 bits, 8 bytes)
  308. </summary>
  309. </member>
  310. <member name="F:S7.Net.VarType.String">
  311. <summary>
  312. Char Array / C-String variable type (variable)
  313. </summary>
  314. </member>
  315. <member name="F:S7.Net.VarType.S7String">
  316. <summary>
  317. S7 String variable type (variable)
  318. </summary>
  319. </member>
  320. <member name="F:S7.Net.VarType.S7WString">
  321. <summary>
  322. S7 WString variable type (variable)
  323. </summary>
  324. </member>
  325. <member name="F:S7.Net.VarType.Timer">
  326. <summary>
  327. Timer variable type
  328. </summary>
  329. </member>
  330. <member name="F:S7.Net.VarType.Counter">
  331. <summary>
  332. Counter variable type
  333. </summary>
  334. </member>
  335. <member name="F:S7.Net.VarType.DateTime">
  336. <summary>
  337. DateTIme variable type
  338. </summary>
  339. </member>
  340. <member name="F:S7.Net.VarType.Date">
  341. <summary>
  342. IEC date (legacy) variable type
  343. </summary>
  344. </member>
  345. <member name="F:S7.Net.VarType.DateTimeLong">
  346. <summary>
  347. DateTimeLong variable type
  348. </summary>
  349. </member>
  350. <member name="F:S7.Net.VarType.Time">
  351. <summary>
  352. S7 TIME variable type - serialized as S7 DInt and deserialized as C# TimeSpan
  353. </summary>
  354. </member>
  355. <member name="M:S7.Net.Helper.MemoryStreamExtension.Write(System.IO.MemoryStream,System.Byte[])">
  356. <summary>
  357. Helper function to write to whole content of the given byte array to a memory stream.
  358. Writes all bytes in value from 0 to value.Length to the memory stream.
  359. </summary>
  360. <param name="stream"></param>
  361. <param name="value"></param>
  362. </member>
  363. <member name="M:S7.Net.Helper.MemoryStreamExtension.Write(System.IO.MemoryStream,System.ReadOnlySpan{System.Byte})">
  364. <summary>
  365. Helper function to write the whole content of the given byte span to a memory stream.
  366. </summary>
  367. <param name="stream"></param>
  368. <param name="value"></param>
  369. </member>
  370. <member name="T:S7.Net.Plc">
  371. <summary>
  372. Creates an instance of S7.Net driver
  373. </summary>
  374. <summary>
  375. Creates an instance of S7.Net driver
  376. </summary>
  377. </member>
  378. <member name="F:S7.Net.Plc.DateTimeLength">
  379. <summary>
  380. The length in bytes of DateTime stored in the PLC.
  381. </summary>
  382. </member>
  383. <member name="F:S7.Net.Plc.DefaultPort">
  384. <summary>
  385. The default port for the S7 protocol.
  386. </summary>
  387. </member>
  388. <member name="F:S7.Net.Plc.DefaultTimeout">
  389. <summary>
  390. The default timeout (in milliseconds) used for <see cref="P:ReadTimeout"/> and <see cref="P:WriteTimeout"/>.
  391. </summary>
  392. </member>
  393. <member name="P:S7.Net.Plc.IP">
  394. <summary>
  395. IP address of the PLC
  396. </summary>
  397. </member>
  398. <member name="P:S7.Net.Plc.Port">
  399. <summary>
  400. PORT Number of the PLC, default is 102
  401. </summary>
  402. </member>
  403. <member name="P:S7.Net.Plc.TsapPair">
  404. <summary>
  405. The TSAP addresses used during the connection request.
  406. </summary>
  407. </member>
  408. <member name="P:S7.Net.Plc.CPU">
  409. <summary>
  410. CPU type of the PLC
  411. </summary>
  412. </member>
  413. <member name="P:S7.Net.Plc.Rack">
  414. <summary>
  415. Rack of the PLC
  416. </summary>
  417. </member>
  418. <member name="P:S7.Net.Plc.Slot">
  419. <summary>
  420. Slot of the CPU of the PLC
  421. </summary>
  422. </member>
  423. <member name="P:S7.Net.Plc.MaxPDUSize">
  424. <summary>
  425. Max PDU size this cpu supports
  426. </summary>
  427. </member>
  428. <member name="P:S7.Net.Plc.ReadTimeout">
  429. <summary>Gets or sets the amount of time that a read operation blocks waiting for data from PLC.</summary>
  430. <returns>A <see cref="T:System.Int32" /> that specifies the amount of time, in milliseconds, that will elapse before a read operation fails. The default value, <see cref="F:System.Threading.Timeout.Infinite" />, specifies that the read operation does not time out.</returns>
  431. </member>
  432. <member name="P:S7.Net.Plc.WriteTimeout">
  433. <summary>Gets or sets the amount of time that a write operation blocks waiting for data to PLC. </summary>
  434. <returns>A <see cref="T:System.Int32" /> that specifies the amount of time, in milliseconds, that will elapse before a write operation fails. The default value, <see cref="F:System.Threading.Timeout.Infinite" />, specifies that the write operation does not time out.</returns>
  435. </member>
  436. <member name="P:S7.Net.Plc.IsConnected">
  437. <summary>
  438. Gets a value indicating whether a connection to the PLC has been established.
  439. </summary>
  440. <remarks>
  441. The <see cref="P:S7.Net.Plc.IsConnected"/> property gets the connection state of the Client socket as
  442. of the last I/O operation. When it returns <c>false</c>, the Client socket was either
  443. never connected, or is no longer connected.
  444. <para>
  445. Because the <see cref="P:S7.Net.Plc.IsConnected"/> property only reflects the state of the connection
  446. as of the most recent operation, you should attempt to send or receive a message to
  447. determine the current state. After the message send fails, this property no longer
  448. returns <c>true</c>. Note that this behavior is by design. You cannot reliably test the
  449. state of the connection because, in the time between the test and a send/receive, the
  450. connection could have been lost. Your code should assume the socket is connected, and
  451. gracefully handle failed transmissions.
  452. </para>
  453. </remarks>
  454. </member>
  455. <member name="M:S7.Net.Plc.#ctor(S7.Net.CpuType,System.String,System.Int16,System.Int16)">
  456. <summary>
  457. Creates a PLC object with all the parameters needed for connections.
  458. For S7-1200 and S7-1500, the default is rack = 0 and slot = 0.
  459. You need slot > 0 if you are connecting to external ethernet card (CP).
  460. For S7-300 and S7-400 the default is rack = 0 and slot = 2.
  461. </summary>
  462. <param name="cpu">CpuType of the PLC (select from the enum)</param>
  463. <param name="ip">Ip address of the PLC</param>
  464. <param name="rack">rack of the PLC, usually it's 0, but check in the hardware configuration of Step7 or TIA portal</param>
  465. <param name="slot">slot of the CPU of the PLC, usually it's 2 for S7300-S7400, 0 for S7-1200 and S7-1500.
  466. If you use an external ethernet card, this must be set accordingly.</param>
  467. </member>
  468. <member name="M:S7.Net.Plc.#ctor(S7.Net.CpuType,System.String,System.Int32,System.Int16,System.Int16)">
  469. <summary>
  470. Creates a PLC object with all the parameters needed for connections.
  471. For S7-1200 and S7-1500, the default is rack = 0 and slot = 0.
  472. You need slot > 0 if you are connecting to external ethernet card (CP).
  473. For S7-300 and S7-400 the default is rack = 0 and slot = 2.
  474. </summary>
  475. <param name="cpu">CpuType of the PLC (select from the enum)</param>
  476. <param name="ip">Ip address of the PLC</param>
  477. <param name="port">Port number used for the connection, default 102.</param>
  478. <param name="rack">rack of the PLC, usually it's 0, but check in the hardware configuration of Step7 or TIA portal</param>
  479. <param name="slot">slot of the CPU of the PLC, usually it's 2 for S7300-S7400, 0 for S7-1200 and S7-1500.
  480. If you use an external ethernet card, this must be set accordingly.</param>
  481. </member>
  482. <member name="M:S7.Net.Plc.#ctor(System.String,S7.Net.Protocol.TsapPair)">
  483. <summary>
  484. Creates a PLC object with all the parameters needed for connections.
  485. For S7-1200 and S7-1500, the default is rack = 0 and slot = 0.
  486. You need slot > 0 if you are connecting to external ethernet card (CP).
  487. For S7-300 and S7-400 the default is rack = 0 and slot = 2.
  488. </summary>
  489. <param name="ip">Ip address of the PLC</param>
  490. <param name="tsapPair">The TSAP addresses used for the connection request.</param>
  491. </member>
  492. <member name="M:S7.Net.Plc.#ctor(System.String,System.Int32,S7.Net.Protocol.TsapPair)">
  493. <summary>
  494. Creates a PLC object with all the parameters needed for connections. Use this constructor
  495. if you want to manually override the TSAP addresses used during the connection request.
  496. </summary>
  497. <param name="ip">Ip address of the PLC</param>
  498. <param name="port">Port number used for the connection, default 102.</param>
  499. <param name="tsapPair">The TSAP addresses used for the connection request.</param>
  500. </member>
  501. <member name="M:S7.Net.Plc.Close">
  502. <summary>
  503. Close connection to PLC
  504. </summary>
  505. </member>
  506. <member name="M:S7.Net.Plc.Dispose(System.Boolean)">
  507. <summary>
  508. Dispose Plc Object
  509. </summary>
  510. <param name="disposing"></param>
  511. </member>
  512. <member name="M:S7.Net.Plc.OpenAsync(System.Threading.CancellationToken)">
  513. <summary>
  514. Connects to the PLC and performs a COTP ConnectionRequest and S7 CommunicationSetup.
  515. </summary>
  516. <param name="cancellationToken">The token to monitor for cancellation requests. The default value is None.
  517. Please note that the cancellation will not affect opening the socket in any way and only affects data transfers for configuring the connection after the socket connection is successfully established.
  518. Please note that cancellation is advisory/cooperative and will not lead to immediate cancellation in all cases.</param>
  519. <returns>A task that represents the asynchronous open operation.</returns>
  520. </member>
  521. <member name="M:S7.Net.Plc.ReadBytesAsync(S7.Net.DataType,System.Int32,System.Int32,System.Int32,System.Threading.CancellationToken)">
  522. <summary>
  523. Reads a number of bytes from a DB starting from a specified index. This handles more than 200 bytes with multiple requests.
  524. If the read was not successful, check LastErrorCode or LastErrorString.
  525. </summary>
  526. <param name="dataType">Data type of the memory area, can be DB, Timer, Counter, Merker(Memory), Input, Output.</param>
  527. <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>
  528. <param name="startByteAdr">Start byte address. If you want to read DB1.DBW200, this is 200.</param>
  529. <param name="count">Byte count, if you want to read 120 bytes, set this to 120.</param>
  530. <param name="cancellationToken">The token to monitor for cancellation requests. The default value is None.
  531. Please note that cancellation is advisory/cooperative and will not lead to immediate cancellation in all cases.</param>
  532. <returns>Returns the bytes in an array</returns>
  533. </member>
  534. <member name="M:S7.Net.Plc.ReadBytesAsync(System.Memory{System.Byte},S7.Net.DataType,System.Int32,System.Int32,System.Threading.CancellationToken)">
  535. <summary>
  536. Reads a number of bytes from a DB starting from a specified index. This handles more than 200 bytes with multiple requests.
  537. If the read was not successful, check LastErrorCode or LastErrorString.
  538. </summary>
  539. <param name="buffer">Buffer to receive the read bytes. The <see cref="P:System.Memory`1.Length"/> determines the number of bytes to read.</param>
  540. <param name="dataType">Data type of the memory area, can be DB, Timer, Counter, Merker(Memory), Input, Output.</param>
  541. <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>
  542. <param name="startByteAdr">Start byte address. If you want to read DB1.DBW200, this is 200.</param>
  543. <param name="cancellationToken">The token to monitor for cancellation requests. The default value is None.
  544. Please note that cancellation is advisory/cooperative and will not lead to immediate cancellation in all cases.</param>
  545. <returns>Returns the bytes in an array</returns>
  546. </member>
  547. <member name="M:S7.Net.Plc.ReadAsync(S7.Net.DataType,System.Int32,System.Int32,S7.Net.VarType,System.Int32,System.Byte,System.Threading.CancellationToken)">
  548. <summary>
  549. Read and decode a certain number of bytes of the "VarType" provided.
  550. This can be used to read multiple consecutive variables of the same type (Word, DWord, Int, etc).
  551. If the read was not successful, check LastErrorCode or LastErrorString.
  552. </summary>
  553. <param name="dataType">Data type of the memory area, can be DB, Timer, Counter, Merker(Memory), Input, Output.</param>
  554. <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>
  555. <param name="startByteAdr">Start byte address. If you want to read DB1.DBW200, this is 200.</param>
  556. <param name="varType">Type of the variable/s that you are reading</param>
  557. <param name="bitAdr">Address of bit. If you want to read DB1.DBX200.6, set 6 to this parameter.</param>
  558. <param name="varCount"></param>
  559. <param name="cancellationToken">The token to monitor for cancellation requests. The default value is None.
  560. Please note that cancellation is advisory/cooperative and will not lead to immediate cancellation in all cases.</param>
  561. </member>
  562. <member name="M:S7.Net.Plc.ReadAsync(System.String,System.Threading.CancellationToken)">
  563. <summary>
  564. Reads a single variable from the PLC, takes in input strings like "DB1.DBX0.0", "DB20.DBD200", "MB20", "T45", etc.
  565. If the read was not successful, check LastErrorCode or LastErrorString.
  566. </summary>
  567. <param name="variable">Input strings like "DB1.DBX0.0", "DB20.DBD200", "MB20", "T45", etc.</param>
  568. <param name="cancellationToken">The token to monitor for cancellation requests. The default value is None.
  569. Please note that cancellation is advisory/cooperative and will not lead to immediate cancellation in all cases.</param>
  570. <returns>Returns an object that contains the value. This object must be cast accordingly.</returns>
  571. </member>
  572. <member name="M:S7.Net.Plc.ReadStructAsync(System.Type,System.Int32,System.Int32,System.Threading.CancellationToken)">
  573. <summary>
  574. 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.
  575. </summary>
  576. <param name="structType">Type of the struct to be readed (es.: TypeOf(MyStruct)).</param>
  577. <param name="db">Address of the DB.</param>
  578. <param name="startByteAdr">Start byte address. If you want to read DB1.DBW200, this is 200.</param>
  579. <param name="cancellationToken">The token to monitor for cancellation requests. The default value is None.
  580. Please note that cancellation is advisory/cooperative and will not lead to immediate cancellation in all cases.</param>
  581. <returns>Returns a struct that must be cast.</returns>
  582. </member>
  583. <member name="M:S7.Net.Plc.ReadStructAsync``1(System.Int32,System.Int32,System.Threading.CancellationToken)">
  584. <summary>
  585. 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.
  586. </summary>
  587. <typeparam name="T">The struct type</typeparam>
  588. <param name="db">Address of the DB.</param>
  589. <param name="startByteAdr">Start byte address. If you want to read DB1.DBW200, this is 200.</param>
  590. <param name="cancellationToken">The token to monitor for cancellation requests. The default value is None.
  591. Please note that cancellation is advisory/cooperative and will not lead to immediate cancellation in all cases.</param>
  592. <returns>Returns a nulable struct. If nothing was read null will be returned.</returns>
  593. </member>
  594. <member name="M:S7.Net.Plc.ReadClassAsync(System.Object,System.Int32,System.Int32,System.Threading.CancellationToken)">
  595. <summary>
  596. 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.
  597. This reads only properties, it doesn't read private variable or public variable without {get;set;} specified.
  598. </summary>
  599. <param name="sourceClass">Instance of the class that will store the values</param>
  600. <param name="db">Index of the DB; es.: 1 is for DB1</param>
  601. <param name="startByteAdr">Start byte address. If you want to read DB1.DBW200, this is 200.</param>
  602. <param name="cancellationToken">The token to monitor for cancellation requests. The default value is None.
  603. Please note that cancellation is advisory/cooperative and will not lead to immediate cancellation in all cases.</param>
  604. <returns>The number of read bytes</returns>
  605. </member>
  606. <member name="M:S7.Net.Plc.ReadClassAsync``1(System.Int32,System.Int32,System.Threading.CancellationToken)">
  607. <summary>
  608. 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.
  609. 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
  610. type, the class needs a default constructor.
  611. </summary>
  612. <typeparam name="T">The class that will be instantiated. Requires a default constructor</typeparam>
  613. <param name="db">Index of the DB; es.: 1 is for DB1</param>
  614. <param name="startByteAdr">Start byte address. If you want to read DB1.DBW200, this is 200.</param>
  615. <param name="cancellationToken">The token to monitor for cancellation requests. The default value is None.
  616. Please note that cancellation is advisory/cooperative and will not lead to immediate cancellation in all cases.</param>
  617. <returns>An instance of the class with the values read from the PLC. If no data has been read, null will be returned</returns>
  618. </member>
  619. <member name="M:S7.Net.Plc.ReadClassAsync``1(System.Func{``0},System.Int32,System.Int32,System.Threading.CancellationToken)">
  620. <summary>
  621. 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.
  622. This reads only properties, it doesn't read private variable or public variable without {get;set;} specified.
  623. </summary>
  624. <typeparam name="T">The class that will be instantiated</typeparam>
  625. <param name="classFactory">Function to instantiate the class</param>
  626. <param name="db">Index of the DB; es.: 1 is for DB1</param>
  627. <param name="startByteAdr">Start byte address. If you want to read DB1.DBW200, this is 200.</param>
  628. <param name="cancellationToken">The token to monitor for cancellation requests. The default value is None.
  629. Please note that cancellation is advisory/cooperative and will not lead to immediate cancellation in all cases.</param>
  630. <returns>An instance of the class with the values read from the PLC. If no data has been read, null will be returned</returns>
  631. </member>
  632. <member name="M:S7.Net.Plc.ReadMultipleVarsAsync(System.Collections.Generic.List{S7.Net.Types.DataItem},System.Threading.CancellationToken)">
  633. <summary>
  634. Reads multiple vars in a single request.
  635. You have to create and pass a list of DataItems and you obtain in response the same list with the values.
  636. Values are stored in the property "Value" of the dataItem and are already converted.
  637. If you don't want the conversion, just create a dataItem of bytes.
  638. The number of DataItems as well as the total size of the requested data can not exceed a certain limit (protocol restriction).
  639. </summary>
  640. <param name="dataItems">List of dataitems that contains the list of variables that must be read.</param>
  641. <param name="cancellationToken">The token to monitor for cancellation requests. The default value is None.
  642. Please note that cancellation is advisory/cooperative and will not lead to immediate cancellation in all cases.</param>
  643. </member>
  644. <member name="M:S7.Net.Plc.ReadClockAsync(System.Threading.CancellationToken)">
  645. <summary>
  646. Read the PLC clock value.
  647. </summary>
  648. <param name="cancellationToken">The token to monitor for cancellation requests. The default value is None.
  649. Please note that cancellation is advisory/cooperative and will not lead to immediate cancellation in all cases.</param>
  650. <returns>A task that represents the asynchronous operation, with it's result set to the current PLC time on completion.</returns>
  651. </member>
  652. <member name="M:S7.Net.Plc.WriteClockAsync(System.DateTime,System.Threading.CancellationToken)">
  653. <summary>
  654. Write the PLC clock value.
  655. </summary>
  656. <param name="value">The date and time to set the PLC clock to</param>
  657. <param name="cancellationToken">The token to monitor for cancellation requests. The default value is None.
  658. Please note that cancellation is advisory/cooperative and will not lead to immediate cancellation in all cases.</param>
  659. <returns>A task that represents the asynchronous operation.</returns>
  660. </member>
  661. <member name="M:S7.Net.Plc.ReadStatusAsync(System.Threading.CancellationToken)">
  662. <summary>
  663. Read the current status from the PLC. A value of 0x08 indicates the PLC is in run status, regardless of the PLC type.
  664. </summary>
  665. <param name="cancellationToken">The token to monitor for cancellation requests. The default value is None.
  666. Please note that cancellation is advisory/cooperative and will not lead to immediate cancellation in all cases.</param>
  667. <returns>A task that represents the asynchronous operation, with it's result set to the current PLC status on completion.</returns>
  668. </member>
  669. <member name="M:S7.Net.Plc.WriteBytesAsync(S7.Net.DataType,System.Int32,System.Int32,System.Byte[],System.Threading.CancellationToken)">
  670. <summary>
  671. Write a number of bytes from a DB starting from a specified index. This handles more than 200 bytes with multiple requests.
  672. If the write was not successful, check LastErrorCode or LastErrorString.
  673. </summary>
  674. <param name="dataType">Data type of the memory area, can be DB, Timer, Counter, Merker(Memory), Input, Output.</param>
  675. <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>
  676. <param name="startByteAdr">Start byte address. If you want to write DB1.DBW200, this is 200.</param>
  677. <param name="value">Bytes to write. If more than 200, multiple requests will be made.</param>
  678. <param name="cancellationToken">The token to monitor for cancellation requests. The default value is None.
  679. Please note that cancellation is advisory/cooperative and will not lead to immediate cancellation in all cases.</param>
  680. <returns>A task that represents the asynchronous write operation.</returns>
  681. </member>
  682. <member name="M:S7.Net.Plc.WriteBytesAsync(S7.Net.DataType,System.Int32,System.Int32,System.ReadOnlyMemory{System.Byte},System.Threading.CancellationToken)">
  683. <summary>
  684. Write a number of bytes from a DB starting from a specified index. This handles more than 200 bytes with multiple requests.
  685. If the write was not successful, check LastErrorCode or LastErrorString.
  686. </summary>
  687. <param name="dataType">Data type of the memory area, can be DB, Timer, Counter, Merker(Memory), Input, Output.</param>
  688. <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>
  689. <param name="startByteAdr">Start byte address. If you want to write DB1.DBW200, this is 200.</param>
  690. <param name="value">Bytes to write. If more than 200, multiple requests will be made.</param>
  691. <param name="cancellationToken">The token to monitor for cancellation requests. The default value is None.
  692. Please note that cancellation is advisory/cooperative and will not lead to immediate cancellation in all cases.</param>
  693. <returns>A task that represents the asynchronous write operation.</returns>
  694. </member>
  695. <member name="M:S7.Net.Plc.WriteBitAsync(S7.Net.DataType,System.Int32,System.Int32,System.Int32,System.Boolean,System.Threading.CancellationToken)">
  696. <summary>
  697. Write a single bit from a DB with the specified index.
  698. </summary>
  699. <param name="dataType">Data type of the memory area, can be DB, Timer, Counter, Merker(Memory), Input, Output.</param>
  700. <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>
  701. <param name="startByteAdr">Start byte address. If you want to write DB1.DBW200, this is 200.</param>
  702. <param name="bitAdr">The address of the bit. (0-7)</param>
  703. <param name="value">Bytes to write. If more than 200, multiple requests will be made.</param>
  704. <param name="cancellationToken">The token to monitor for cancellation requests. The default value is None.
  705. Please note that cancellation is advisory/cooperative and will not lead to immediate cancellation in all cases.</param>
  706. <returns>A task that represents the asynchronous write operation.</returns>
  707. </member>
  708. <member name="M:S7.Net.Plc.WriteBitAsync(S7.Net.DataType,System.Int32,System.Int32,System.Int32,System.Int32,System.Threading.CancellationToken)">
  709. <summary>
  710. Write a single bit from a DB with the specified index.
  711. </summary>
  712. <param name="dataType">Data type of the memory area, can be DB, Timer, Counter, Merker(Memory), Input, Output.</param>
  713. <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>
  714. <param name="startByteAdr">Start byte address. If you want to write DB1.DBW200, this is 200.</param>
  715. <param name="bitAdr">The address of the bit. (0-7)</param>
  716. <param name="value">Bytes to write. If more than 200, multiple requests will be made.</param>
  717. <param name="cancellationToken">The token to monitor for cancellation requests. The default value is None.
  718. Please note that cancellation is advisory/cooperative and will not lead to immediate cancellation in all cases.</param>
  719. <returns>A task that represents the asynchronous write operation.</returns>
  720. </member>
  721. <member name="M:S7.Net.Plc.WriteAsync(S7.Net.DataType,System.Int32,System.Int32,System.Object,System.Int32,System.Threading.CancellationToken)">
  722. <summary>
  723. 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.
  724. You must specify the memory area type, memory are address, byte start address and bytes count.
  725. If the read was not successful, check LastErrorCode or LastErrorString.
  726. </summary>
  727. <param name="dataType">Data type of the memory area, can be DB, Timer, Counter, Merker(Memory), Input, Output.</param>
  728. <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>
  729. <param name="startByteAdr">Start byte address. If you want to read DB1.DBW200, this is 200.</param>
  730. <param name="value">Bytes to write. The lenght of this parameter can't be higher than 200. If you need more, use recursion.</param>
  731. <param name="bitAdr">The address of the bit. (0-7)</param>
  732. <param name="cancellationToken">The token to monitor for cancellation requests. The default value is None.
  733. Please note that cancellation is advisory/cooperative and will not lead to immediate cancellation in all cases.</param>
  734. <returns>A task that represents the asynchronous write operation.</returns>
  735. </member>
  736. <member name="M:S7.Net.Plc.WriteAsync(System.String,System.Object,System.Threading.CancellationToken)">
  737. <summary>
  738. Writes a single variable from the PLC, takes in input strings like "DB1.DBX0.0", "DB20.DBD200", "MB20", "T45", etc.
  739. </summary>
  740. <param name="variable">Input strings like "DB1.DBX0.0", "DB20.DBD200", "MB20", "T45", etc.</param>
  741. <param name="value">Value to be written to the PLC</param>
  742. <param name="cancellationToken">The token to monitor for cancellation requests. The default value is None.
  743. Please note that cancellation is advisory/cooperative and will not lead to immediate cancellation in all cases.</param>
  744. <returns>A task that represents the asynchronous write operation.</returns>
  745. </member>
  746. <member name="M:S7.Net.Plc.WriteStructAsync(System.Object,System.Int32,System.Int32,System.Threading.CancellationToken)">
  747. <summary>
  748. Writes a C# struct to a DB in the PLC
  749. </summary>
  750. <param name="structValue">The struct to be written</param>
  751. <param name="db">Db address</param>
  752. <param name="startByteAdr">Start bytes on the PLC</param>
  753. <param name="cancellationToken">The token to monitor for cancellation requests. The default value is None.
  754. Please note that cancellation is advisory/cooperative and will not lead to immediate cancellation in all cases.</param>
  755. <returns>A task that represents the asynchronous write operation.</returns>
  756. </member>
  757. <member name="M:S7.Net.Plc.WriteClassAsync(System.Object,System.Int32,System.Int32,System.Threading.CancellationToken)">
  758. <summary>
  759. Writes a C# class to a DB in the PLC
  760. </summary>
  761. <param name="classValue">The class to be written</param>
  762. <param name="db">Db address</param>
  763. <param name="startByteAdr">Start bytes on the PLC</param>
  764. <param name="cancellationToken">The token to monitor for cancellation requests. The default value is None.
  765. Please note that cancellation is advisory/cooperative and will not lead to immediate cancellation in all cases.</param>
  766. <returns>A task that represents the asynchronous write operation.</returns>
  767. </member>
  768. <member name="M:S7.Net.Plc.WriteAsync(S7.Net.Types.DataItem[])">
  769. <summary>
  770. Write DataItem(s) to the PLC. Throws an exception if the response is invalid
  771. or when the PLC reports errors for item(s) written.
  772. </summary>
  773. <param name="dataItems">The DataItem(s) to write to the PLC.</param>
  774. <returns>Task that completes when response from PLC is parsed.</returns>
  775. </member>
  776. <member name="M:S7.Net.Plc.WriteBytesWithASingleRequestAsync(S7.Net.DataType,System.Int32,System.Int32,System.ReadOnlyMemory{System.Byte},System.Threading.CancellationToken)">
  777. <summary>
  778. Writes up to 200 bytes to the PLC. You must specify the memory area type, memory are address, byte start address and bytes count.
  779. </summary>
  780. <param name="dataType">Data type of the memory area, can be DB, Timer, Counter, Merker(Memory), Input, Output.</param>
  781. <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>
  782. <param name="startByteAdr">Start byte address. If you want to read DB1.DBW200, this is 200.</param>
  783. <param name="value">Bytes to write. The lenght of this parameter can't be higher than 200. If you need more, use recursion.</param>
  784. <param name="cancellationToken">A cancellation token that can be used to cancel the asynchronous operation.</param>
  785. <returns>A task that represents the asynchronous write operation.</returns>
  786. </member>
  787. <member name="M:S7.Net.Plc.WriteReadHeader(System.IO.MemoryStream,System.Int32)">
  788. <summary>
  789. Creates the header to read bytes from the PLC.
  790. </summary>
  791. <param name="stream">The stream to write to.</param>
  792. <param name="amount">The number of items to read.</param>
  793. </member>
  794. <member name="M:S7.Net.Plc.BuildReadDataRequestPackage(System.IO.MemoryStream,S7.Net.DataType,System.Int32,System.Int32,System.Int32)">
  795. <summary>
  796. Create the bytes-package to request data from the PLC. You have to specify the memory type (dataType),
  797. the address of the memory, the address of the byte and the bytes count.
  798. </summary>
  799. <param name="stream">The stream to write the read data request to.</param>
  800. <param name="dataType">MemoryType (DB, Timer, Counter, etc.)</param>
  801. <param name="db">Address of the memory to be read</param>
  802. <param name="startByteAdr">Start address of the byte</param>
  803. <param name="count">Number of bytes to be read</param>
  804. <returns></returns>
  805. </member>
  806. <member name="M:S7.Net.Plc.ParseBytes(S7.Net.VarType,System.Byte[],System.Int32,System.Byte)">
  807. <summary>
  808. Given a S7 variable type (Bool, Word, DWord, etc.), it converts the bytes in the appropriate C# format.
  809. </summary>
  810. <param name="varType"></param>
  811. <param name="bytes"></param>
  812. <param name="varCount"></param>
  813. <param name="bitAdr"></param>
  814. <returns></returns>
  815. </member>
  816. <member name="M:S7.Net.Plc.VarTypeToByteLength(S7.Net.VarType,System.Int32)">
  817. <summary>
  818. Given a S7 <see cref="T:S7.Net.VarType"/> (Bool, Word, DWord, etc.), it returns how many bytes to read.
  819. </summary>
  820. <param name="varType"></param>
  821. <param name="varCount"></param>
  822. <returns>Byte lenght of variable</returns>
  823. </member>
  824. <member name="M:S7.Net.Plc.Open">
  825. <summary>
  826. Connects to the PLC and performs a COTP ConnectionRequest and S7 CommunicationSetup.
  827. </summary>
  828. </member>
  829. <member name="M:S7.Net.Plc.ReadBytes(S7.Net.DataType,System.Int32,System.Int32,System.Int32)">
  830. <summary>
  831. Reads a number of bytes from a DB starting from a specified index. This handles more than 200 bytes with multiple requests.
  832. If the read was not successful, check LastErrorCode or LastErrorString.
  833. </summary>
  834. <param name="dataType">Data type of the memory area, can be DB, Timer, Counter, Merker(Memory), Input, Output.</param>
  835. <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>
  836. <param name="startByteAdr">Start byte address. If you want to read DB1.DBW200, this is 200.</param>
  837. <param name="count">Byte count, if you want to read 120 bytes, set this to 120.</param>
  838. <returns>Returns the bytes in an array</returns>
  839. </member>
  840. <member name="M:S7.Net.Plc.ReadBytes(System.Span{System.Byte},S7.Net.DataType,System.Int32,System.Int32)">
  841. <summary>
  842. Reads a number of bytes from a DB starting from a specified index. This handles more than 200 bytes with multiple requests.
  843. If the read was not successful, check LastErrorCode or LastErrorString.
  844. </summary>
  845. <param name="buffer">Buffer to receive the read bytes. The <see cref="P:System.Span`1.Length"/> determines the number of bytes to read.</param>
  846. <param name="dataType">Data type of the memory area, can be DB, Timer, Counter, Merker(Memory), Input, Output.</param>
  847. <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>
  848. <param name="startByteAdr">Start byte address. If you want to read DB1.DBW200, this is 200.</param>
  849. <returns>Returns the bytes in an array</returns>
  850. </member>
  851. <member name="M:S7.Net.Plc.Read(S7.Net.DataType,System.Int32,System.Int32,S7.Net.VarType,System.Int32,System.Byte)">
  852. <summary>
  853. Read and decode a certain number of bytes of the "VarType" provided.
  854. This can be used to read multiple consecutive variables of the same type (Word, DWord, Int, etc).
  855. If the read was not successful, check LastErrorCode or LastErrorString.
  856. </summary>
  857. <param name="dataType">Data type of the memory area, can be DB, Timer, Counter, Merker(Memory), Input, Output.</param>
  858. <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>
  859. <param name="startByteAdr">Start byte address. If you want to read DB1.DBW200, this is 200.</param>
  860. <param name="varType">Type of the variable/s that you are reading</param>
  861. <param name="bitAdr">Address of bit. If you want to read DB1.DBX200.6, set 6 to this parameter.</param>
  862. <param name="varCount"></param>
  863. </member>
  864. <member name="M:S7.Net.Plc.Read(System.String)">
  865. <summary>
  866. Reads a single variable from the PLC, takes in input strings like "DB1.DBX0.0", "DB20.DBD200", "MB20", "T45", etc.
  867. If the read was not successful, check LastErrorCode or LastErrorString.
  868. </summary>
  869. <param name="variable">Input strings like "DB1.DBX0.0", "DB20.DBD200", "MB20", "T45", etc.</param>
  870. <returns>Returns an object that contains the value. This object must be cast accordingly. If no data has been read, null will be returned</returns>
  871. </member>
  872. <member name="M:S7.Net.Plc.ReadStruct(System.Type,System.Int32,System.Int32)">
  873. <summary>
  874. 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.
  875. </summary>
  876. <param name="structType">Type of the struct to be readed (es.: TypeOf(MyStruct)).</param>
  877. <param name="db">Address of the DB.</param>
  878. <param name="startByteAdr">Start byte address. If you want to read DB1.DBW200, this is 200.</param>
  879. <returns>Returns a struct that must be cast. If no data has been read, null will be returned</returns>
  880. </member>
  881. <member name="M:S7.Net.Plc.ReadStruct``1(System.Int32,System.Int32)">
  882. <summary>
  883. 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.
  884. </summary>
  885. <typeparam name="T">The struct type</typeparam>
  886. <param name="db">Address of the DB.</param>
  887. <param name="startByteAdr">Start byte address. If you want to read DB1.DBW200, this is 200.</param>
  888. <returns>Returns a nullable struct. If nothing was read null will be returned.</returns>
  889. </member>
  890. <member name="M:S7.Net.Plc.ReadClass(System.Object,System.Int32,System.Int32)">
  891. <summary>
  892. 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.
  893. This reads only properties, it doesn't read private variable or public variable without {get;set;} specified.
  894. </summary>
  895. <param name="sourceClass">Instance of the class that will store the values</param>
  896. <param name="db">Index of the DB; es.: 1 is for DB1</param>
  897. <param name="startByteAdr">Start byte address. If you want to read DB1.DBW200, this is 200.</param>
  898. <returns>The number of read bytes</returns>
  899. </member>
  900. <member name="M:S7.Net.Plc.ReadClass``1(System.Int32,System.Int32)">
  901. <summary>
  902. 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.
  903. 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
  904. type, the class needs a default constructor.
  905. </summary>
  906. <typeparam name="T">The class that will be instantiated. Requires a default constructor</typeparam>
  907. <param name="db">Index of the DB; es.: 1 is for DB1</param>
  908. <param name="startByteAdr">Start byte address. If you want to read DB1.DBW200, this is 200.</param>
  909. <returns>An instance of the class with the values read from the PLC. If no data has been read, null will be returned</returns>
  910. </member>
  911. <member name="M:S7.Net.Plc.ReadClass``1(System.Func{``0},System.Int32,System.Int32)">
  912. <summary>
  913. 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.
  914. This reads only properties, it doesn't read private variable or public variable without {get;set;} specified.
  915. </summary>
  916. <typeparam name="T">The class that will be instantiated</typeparam>
  917. <param name="classFactory">Function to instantiate the class</param>
  918. <param name="db">Index of the DB; es.: 1 is for DB1</param>
  919. <param name="startByteAdr">Start byte address. If you want to read DB1.DBW200, this is 200.</param>
  920. <returns>An instance of the class with the values read from the PLC. If no data has been read, null will be returned</returns>
  921. </member>
  922. <member name="M:S7.Net.Plc.WriteBytes(S7.Net.DataType,System.Int32,System.Int32,System.Byte[])">
  923. <summary>
  924. Write a number of bytes from a DB starting from a specified index. This handles more than 200 bytes with multiple requests.
  925. If the write was not successful, check LastErrorCode or LastErrorString.
  926. </summary>
  927. <param name="dataType">Data type of the memory area, can be DB, Timer, Counter, Merker(Memory), Input, Output.</param>
  928. <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>
  929. <param name="startByteAdr">Start byte address. If you want to write DB1.DBW200, this is 200.</param>
  930. <param name="value">Bytes to write. If more than 200, multiple requests will be made.</param>
  931. </member>
  932. <member name="M:S7.Net.Plc.WriteBytes(S7.Net.DataType,System.Int32,System.Int32,System.ReadOnlySpan{System.Byte})">
  933. <summary>
  934. Write a number of bytes from a DB starting from a specified index. This handles more than 200 bytes with multiple requests.
  935. If the write was not successful, check LastErrorCode or LastErrorString.
  936. </summary>
  937. <param name="dataType">Data type of the memory area, can be DB, Timer, Counter, Merker(Memory), Input, Output.</param>
  938. <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>
  939. <param name="startByteAdr">Start byte address. If you want to write DB1.DBW200, this is 200.</param>
  940. <param name="value">Bytes to write. If more than 200, multiple requests will be made.</param>
  941. </member>
  942. <member name="M:S7.Net.Plc.WriteBit(S7.Net.DataType,System.Int32,System.Int32,System.Int32,System.Boolean)">
  943. <summary>
  944. Write a single bit from a DB with the specified index.
  945. </summary>
  946. <param name="dataType">Data type of the memory area, can be DB, Timer, Counter, Merker(Memory), Input, Output.</param>
  947. <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>
  948. <param name="startByteAdr">Start byte address. If you want to write DB1.DBW200, this is 200.</param>
  949. <param name="bitAdr">The address of the bit. (0-7)</param>
  950. <param name="value">Bytes to write. If more than 200, multiple requests will be made.</param>
  951. </member>
  952. <member name="M:S7.Net.Plc.WriteBit(S7.Net.DataType,System.Int32,System.Int32,System.Int32,System.Int32)">
  953. <summary>
  954. Write a single bit to a DB with the specified index.
  955. </summary>
  956. <param name="dataType">Data type of the memory area, can be DB, Timer, Counter, Merker(Memory), Input, Output.</param>
  957. <param name="db">Address of the memory area (if you want to write DB1, this is set to 1). This must be set also for other memory area types: counters, timers,etc.</param>
  958. <param name="startByteAdr">Start byte address. If you want to write DB1.DBW200, this is 200.</param>
  959. <param name="bitAdr">The address of the bit. (0-7)</param>
  960. <param name="value">Value to write (0 or 1).</param>
  961. </member>
  962. <member name="M:S7.Net.Plc.Write(S7.Net.DataType,System.Int32,System.Int32,System.Object,System.Int32)">
  963. <summary>
  964. 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.
  965. You must specify the memory area type, memory are address, byte start address and bytes count.
  966. If the read was not successful, check LastErrorCode or LastErrorString.
  967. </summary>
  968. <param name="dataType">Data type of the memory area, can be DB, Timer, Counter, Merker(Memory), Input, Output.</param>
  969. <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>
  970. <param name="startByteAdr">Start byte address. If you want to read DB1.DBW200, this is 200.</param>
  971. <param name="value">Bytes to write. The lenght of this parameter can't be higher than 200. If you need more, use recursion.</param>
  972. <param name="bitAdr">The address of the bit. (0-7)</param>
  973. </member>
  974. <member name="M:S7.Net.Plc.Write(System.String,System.Object)">
  975. <summary>
  976. Writes a single variable from the PLC, takes in input strings like "DB1.DBX0.0", "DB20.DBD200", "MB20", "T45", etc.
  977. </summary>
  978. <param name="variable">Input strings like "DB1.DBX0.0", "DB20.DBD200", "MB20", "T45", etc.</param>
  979. <param name="value">Value to be written to the PLC</param>
  980. </member>
  981. <member name="M:S7.Net.Plc.WriteStruct(System.Object,System.Int32,System.Int32)">
  982. <summary>
  983. Writes a C# struct to a DB in the PLC
  984. </summary>
  985. <param name="structValue">The struct to be written</param>
  986. <param name="db">Db address</param>
  987. <param name="startByteAdr">Start bytes on the PLC</param>
  988. </member>
  989. <member name="M:S7.Net.Plc.WriteClass(System.Object,System.Int32,System.Int32)">
  990. <summary>
  991. Writes a C# class to a DB in the PLC
  992. </summary>
  993. <param name="classValue">The class to be written</param>
  994. <param name="db">Db address</param>
  995. <param name="startByteAdr">Start bytes on the PLC</param>
  996. </member>
  997. <member name="M:S7.Net.Plc.Write(S7.Net.Types.DataItem[])">
  998. <summary>
  999. Write DataItem(s) to the PLC. Throws an exception if the response is invalid
  1000. or when the PLC reports errors for item(s) written.
  1001. </summary>
  1002. <param name="dataItems">The DataItem(s) to write to the PLC.</param>
  1003. </member>
  1004. <member name="M:S7.Net.Plc.ReadMultipleVars(System.Collections.Generic.List{S7.Net.Types.DataItem})">
  1005. <summary>
  1006. Reads multiple vars in a single request.
  1007. You have to create and pass a list of DataItems and you obtain in response the same list with the values.
  1008. Values are stored in the property "Value" of the dataItem and are already converted.
  1009. If you don't want the conversion, just create a dataItem of bytes.
  1010. The number of DataItems as well as the total size of the requested data can not exceed a certain limit (protocol restriction).
  1011. </summary>
  1012. <param name="dataItems">List of dataitems that contains the list of variables that must be read.</param>
  1013. </member>
  1014. <member name="M:S7.Net.Plc.ReadClock">
  1015. <summary>
  1016. Read the PLC clock value.
  1017. </summary>
  1018. <returns>The current PLC time.</returns>
  1019. </member>
  1020. <member name="M:S7.Net.Plc.WriteClock(System.DateTime)">
  1021. <summary>
  1022. Write the PLC clock value.
  1023. </summary>
  1024. <param name="value">The date and time to set the PLC clock to.</param>
  1025. </member>
  1026. <member name="M:S7.Net.Plc.ReadStatus">
  1027. <summary>
  1028. Read the current status from the PLC. A value of 0x08 indicates the PLC is in run status, regardless of the PLC type.
  1029. </summary>
  1030. <returns>The current PLC status.</returns>
  1031. </member>
  1032. <member name="T:S7.Net.Protocol.S7.DataItemAddress">
  1033. <summary>
  1034. Represents an area of memory in the PLC
  1035. </summary>
  1036. </member>
  1037. <member name="P:S7.Net.Protocol.S7.DataItemAddress.DataType">
  1038. <summary>
  1039. Memory area to read
  1040. </summary>
  1041. </member>
  1042. <member name="P:S7.Net.Protocol.S7.DataItemAddress.DB">
  1043. <summary>
  1044. Address of memory area to read (example: for DB1 this value is 1, for T45 this value is 45)
  1045. </summary>
  1046. </member>
  1047. <member name="P:S7.Net.Protocol.S7.DataItemAddress.StartByteAddress">
  1048. <summary>
  1049. Address of the first byte to read
  1050. </summary>
  1051. </member>
  1052. <member name="P:S7.Net.Protocol.S7.DataItemAddress.ByteLength">
  1053. <summary>
  1054. Length of data to read
  1055. </summary>
  1056. </member>
  1057. <member name="T:S7.Net.Protocol.Tsap">
  1058. <summary>
  1059. Provides a representation of the Transport Service Access Point, or TSAP in short. TSAP's are used
  1060. to specify a client and server address. For most PLC types a default TSAP is available that allows
  1061. connection from any IP and can be calculated using the rack and slot numbers.
  1062. </summary>
  1063. </member>
  1064. <member name="P:S7.Net.Protocol.Tsap.FirstByte">
  1065. <summary>
  1066. First byte of the TSAP.
  1067. </summary>
  1068. </member>
  1069. <member name="P:S7.Net.Protocol.Tsap.SecondByte">
  1070. <summary>
  1071. Second byte of the TSAP.
  1072. </summary>
  1073. </member>
  1074. <member name="M:S7.Net.Protocol.Tsap.#ctor(System.Byte,System.Byte)">
  1075. <summary>
  1076. Initializes a new instance of the <see cref="T:S7.Net.Protocol.Tsap" /> class using the specified values.
  1077. </summary>
  1078. <param name="firstByte">The first byte of the TSAP.</param>
  1079. <param name="secondByte">The second byte of the TSAP.</param>
  1080. </member>
  1081. <member name="T:S7.Net.Protocol.TsapPair">
  1082. <summary>
  1083. Implements a pair of TSAP addresses used to connect to a PLC.
  1084. </summary>
  1085. </member>
  1086. <member name="P:S7.Net.Protocol.TsapPair.Local">
  1087. <summary>
  1088. The local <see cref="T:S7.Net.Protocol.Tsap" />.
  1089. </summary>
  1090. </member>
  1091. <member name="P:S7.Net.Protocol.TsapPair.Remote">
  1092. <summary>
  1093. The remote <see cref="T:S7.Net.Protocol.Tsap" />
  1094. </summary>
  1095. </member>
  1096. <member name="M:S7.Net.Protocol.TsapPair.#ctor(S7.Net.Protocol.Tsap,S7.Net.Protocol.Tsap)">
  1097. <summary>
  1098. Initializes a new instance of the <see cref="T:S7.Net.Protocol.TsapPair" /> class using the specified local and
  1099. remote TSAP.
  1100. </summary>
  1101. <param name="local">The local TSAP.</param>
  1102. <param name="remote">The remote TSAP.</param>
  1103. </member>
  1104. <member name="M:S7.Net.Protocol.TsapPair.GetDefaultTsapPair(S7.Net.CpuType,System.Int32,System.Int32)">
  1105. <summary>
  1106. Builds a <see cref="T:S7.Net.Protocol.TsapPair" /> that can be used to connect to a PLC using the default connection
  1107. addresses.
  1108. </summary>
  1109. <remarks>
  1110. The remote TSAP is constructed using <code>new Tsap(0x03, (byte) ((rack &lt;&lt; 5) | slot))</code>.
  1111. </remarks>
  1112. <param name="cpuType">The CPU type of the PLC.</param>
  1113. <param name="rack">The rack of the PLC's network card.</param>
  1114. <param name="slot">The slot of the PLC's network card.</param>
  1115. <returns>A TSAP pair that matches the given parameters.</returns>
  1116. <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="cpuType"/> is invalid.
  1117. -or-
  1118. The <paramref name="rack"/> parameter is less than 0.
  1119. -or-
  1120. The <paramref name="rack"/> parameter is greater than 15.
  1121. -or-
  1122. The <paramref name="slot"/> parameter is less than 0.
  1123. -or-
  1124. The <paramref name="slot"/> parameter is greater than 15.</exception>
  1125. </member>
  1126. <member name="T:S7.Net.StreamExtensions">
  1127. <summary>
  1128. Extensions for Streams
  1129. </summary>
  1130. </member>
  1131. <member name="M:S7.Net.StreamExtensions.ReadExact(System.IO.Stream,System.Byte[],System.Int32,System.Int32)">
  1132. <summary>
  1133. Reads bytes from the stream into the buffer until exactly the requested number of bytes (or EOF) have been read
  1134. </summary>
  1135. <param name="stream">the Stream to read from</param>
  1136. <param name="buffer">the buffer to read into</param>
  1137. <param name="offset">the offset in the buffer to read into</param>
  1138. <param name="count">the amount of bytes to read into the buffer</param>
  1139. <returns>returns the amount of read bytes</returns>
  1140. </member>
  1141. <member name="M:S7.Net.StreamExtensions.ReadExactAsync(System.IO.Stream,System.Byte[],System.Int32,System.Int32,System.Threading.CancellationToken)">
  1142. <summary>
  1143. Reads bytes from the stream into the buffer until exactly the requested number of bytes (or EOF) have been read
  1144. </summary>
  1145. <param name="stream">the Stream to read from</param>
  1146. <param name="buffer">the buffer to read into</param>
  1147. <param name="offset">the offset in the buffer to read into</param>
  1148. <param name="count">the amount of bytes to read into the buffer</param>
  1149. <param name="cancellationToken">A cancellation token that can be used to cancel the asynchronous operation.</param>
  1150. <returns>returns the amount of read bytes</returns>
  1151. </member>
  1152. <member name="T:S7.Net.TPKT">
  1153. <summary>
  1154. Describes a TPKT Packet
  1155. </summary>
  1156. </member>
  1157. <member name="M:S7.Net.TPKT.ReadAsync(System.IO.Stream,System.Threading.CancellationToken)">
  1158. <summary>
  1159. Reads a TPKT from the socket Async
  1160. </summary>
  1161. <param name="stream">The stream to read from</param>
  1162. <param name="cancellationToken">A cancellation token that can be used to cancel the asynchronous operation.</param>
  1163. <returns>Task TPKT Instace</returns>
  1164. </member>
  1165. <member name="T:S7.Net.Types.Bit">
  1166. <summary>
  1167. Contains the conversion methods to convert Bit from S7 plc to C#.
  1168. </summary>
  1169. </member>
  1170. <member name="M:S7.Net.Types.Bit.FromByte(System.Byte,System.Byte)">
  1171. <summary>
  1172. Converts a Bit to bool
  1173. </summary>
  1174. </member>
  1175. <member name="M:S7.Net.Types.Bit.ToBitArray(System.Byte[])">
  1176. <summary>
  1177. Converts an array of bytes to a BitArray.
  1178. </summary>
  1179. <param name="bytes">The bytes to convert.</param>
  1180. <returns>A BitArray with the same number of bits and equal values as <paramref name="bytes"/>.</returns>
  1181. </member>
  1182. <member name="M:S7.Net.Types.Bit.ToBitArray(System.Byte[],System.Int32)">
  1183. <summary>
  1184. Converts an array of bytes to a BitArray.
  1185. </summary>
  1186. <param name="bytes">The bytes to convert.</param>
  1187. <param name="length">The number of bits to return.</param>
  1188. <returns>A BitArray with <paramref name="length"/> bits.</returns>
  1189. </member>
  1190. <member name="T:S7.Net.Types.Boolean">
  1191. <summary>
  1192. Contains the methods to read, set and reset bits inside bytes
  1193. </summary>
  1194. </member>
  1195. <member name="M:S7.Net.Types.Boolean.GetValue(System.Byte,System.Int32)">
  1196. <summary>
  1197. Returns the value of a bit in a bit, given the address of the bit
  1198. </summary>
  1199. </member>
  1200. <member name="M:S7.Net.Types.Boolean.SetBit(System.Byte,System.Int32)">
  1201. <summary>
  1202. Sets the value of a bit to 1 (true), given the address of the bit. Returns
  1203. a copy of the value with the bit set.
  1204. </summary>
  1205. <param name="value">The input value to modify.</param>
  1206. <param name="bit">The index (zero based) of the bit to set.</param>
  1207. <returns>The modified value with the bit at index set.</returns>
  1208. </member>
  1209. <member name="M:S7.Net.Types.Boolean.SetBit(System.Byte@,System.Int32)">
  1210. <summary>
  1211. Sets the value of a bit to 1 (true), given the address of the bit.
  1212. </summary>
  1213. <param name="value">The value to modify.</param>
  1214. <param name="bit">The index (zero based) of the bit to set.</param>
  1215. </member>
  1216. <member name="M:S7.Net.Types.Boolean.ClearBit(System.Byte,System.Int32)">
  1217. <summary>
  1218. Resets the value of a bit to 0 (false), given the address of the bit. Returns
  1219. a copy of the value with the bit cleared.
  1220. </summary>
  1221. <param name="value">The input value to modify.</param>
  1222. <param name="bit">The index (zero based) of the bit to clear.</param>
  1223. <returns>The modified value with the bit at index cleared.</returns>
  1224. </member>
  1225. <member name="M:S7.Net.Types.Boolean.ClearBit(System.Byte@,System.Int32)">
  1226. <summary>
  1227. Resets the value of a bit to 0 (false), given the address of the bit
  1228. </summary>
  1229. <param name="value">The input value to modify.</param>
  1230. <param name="bit">The index (zero based) of the bit to clear.</param>
  1231. </member>
  1232. <member name="T:S7.Net.Types.Byte">
  1233. <summary>
  1234. Contains the methods to convert from bytes to byte arrays
  1235. </summary>
  1236. </member>
  1237. <member name="M:S7.Net.Types.Byte.ToByteArray(System.Byte)">
  1238. <summary>
  1239. Converts a byte to byte array
  1240. </summary>
  1241. </member>
  1242. <member name="M:S7.Net.Types.Byte.FromByteArray(System.Byte[])">
  1243. <summary>
  1244. Converts a byte array to byte
  1245. </summary>
  1246. <param name="bytes"></param>
  1247. <returns></returns>
  1248. </member>
  1249. <member name="T:S7.Net.Types.Class">
  1250. <summary>
  1251. Contains the methods to convert a C# class to S7 data types
  1252. </summary>
  1253. </member>
  1254. <member name="M:S7.Net.Types.Class.GetClassSize(System.Object,System.Double,System.Boolean)">
  1255. <summary>
  1256. Gets the size of the class in bytes.
  1257. </summary>
  1258. <param name="instance">An instance of the class</param>
  1259. <param name="numBytes">The offset of the current field.</param>
  1260. <param name="isInnerProperty"><see langword="true" /> if this property belongs to a class being serialized as member of the class requested for serialization; otherwise, <see langword="false" />.</param>
  1261. <returns>the number of bytes</returns>
  1262. </member>
  1263. <member name="M:S7.Net.Types.Class.FromBytes(System.Object,System.Byte[],System.Double,System.Boolean)">
  1264. <summary>
  1265. Sets the object's values with the given array of bytes
  1266. </summary>
  1267. <param name="sourceClass">The object to fill in the given array of bytes</param>
  1268. <param name="bytes">The array of bytes</param>
  1269. <param name="numBytes">The offset for the current field.</param>
  1270. <param name="isInnerClass"><see langword="true" /> if this class is the type of a member of the class to be serialized; otherwise, <see langword="false" />.</param>
  1271. </member>
  1272. <member name="M:S7.Net.Types.Class.ToBytes(System.Object,System.Byte[],System.Double)">
  1273. <summary>
  1274. Creates a byte array depending on the struct type.
  1275. </summary>
  1276. <param name="sourceClass">The struct object.</param>
  1277. <param name="bytes">The target byte array.</param>
  1278. <param name="numBytes">The offset for the current field.</param>
  1279. <returns>A byte array or null if fails.</returns>
  1280. </member>
  1281. <member name="T:S7.Net.Types.Counter">
  1282. <summary>
  1283. Contains the conversion methods to convert Counter from S7 plc to C# ushort (UInt16).
  1284. </summary>
  1285. </member>
  1286. <member name="M:S7.Net.Types.Counter.FromByteArray(System.Byte[])">
  1287. <summary>
  1288. Converts a Counter (2 bytes) to ushort (UInt16)
  1289. </summary>
  1290. </member>
  1291. <member name="M:S7.Net.Types.Counter.ToByteArray(System.UInt16)">
  1292. <summary>
  1293. Converts a ushort (UInt16) to word (2 bytes)
  1294. </summary>
  1295. </member>
  1296. <member name="M:S7.Net.Types.Counter.ToByteArray(System.UInt16[])">
  1297. <summary>
  1298. Converts an array of ushort (UInt16) to an array of bytes
  1299. </summary>
  1300. </member>
  1301. <member name="M:S7.Net.Types.Counter.ToArray(System.Byte[])">
  1302. <summary>
  1303. Converts an array of bytes to an array of ushort
  1304. </summary>
  1305. </member>
  1306. <member name="T:S7.Net.Types.DataItem">
  1307. <summary>
  1308. Create an instance of a memory block that can be read by using ReadMultipleVars
  1309. </summary>
  1310. </member>
  1311. <member name="P:S7.Net.Types.DataItem.DataType">
  1312. <summary>
  1313. Memory area to read
  1314. </summary>
  1315. </member>
  1316. <member name="P:S7.Net.Types.DataItem.VarType">
  1317. <summary>
  1318. Type of data to be read (default is bytes)
  1319. </summary>
  1320. </member>
  1321. <member name="P:S7.Net.Types.DataItem.DB">
  1322. <summary>
  1323. Address of memory area to read (example: for DB1 this value is 1, for T45 this value is 45)
  1324. </summary>
  1325. </member>
  1326. <member name="P:S7.Net.Types.DataItem.StartByteAdr">
  1327. <summary>
  1328. Address of the first byte to read
  1329. </summary>
  1330. </member>
  1331. <member name="P:S7.Net.Types.DataItem.BitAdr">
  1332. <summary>
  1333. Addess of bit to read from StartByteAdr
  1334. </summary>
  1335. </member>
  1336. <member name="P:S7.Net.Types.DataItem.Count">
  1337. <summary>
  1338. Number of variables to read
  1339. </summary>
  1340. </member>
  1341. <member name="P:S7.Net.Types.DataItem.Value">
  1342. <summary>
  1343. Contains the value of the memory area after the read has been executed
  1344. </summary>
  1345. </member>
  1346. <member name="M:S7.Net.Types.DataItem.#ctor">
  1347. <summary>
  1348. Create an instance of DataItem
  1349. </summary>
  1350. </member>
  1351. <member name="M:S7.Net.Types.DataItem.FromAddress(System.String)">
  1352. <summary>
  1353. Create an instance of <see cref="T:S7.Net.Types.DataItem"/> from the supplied address.
  1354. </summary>
  1355. <param name="address">The address to create the DataItem for.</param>
  1356. <returns>A new <see cref="T:S7.Net.Types.DataItem"/> instance with properties parsed from <paramref name="address"/>.</returns>
  1357. <remarks>The <see cref="P:S7.Net.Types.DataItem.Count" /> property is not parsed from the address.</remarks>
  1358. </member>
  1359. <member name="M:S7.Net.Types.DataItem.FromAddressAndValue``1(System.String,``0)">
  1360. <summary>
  1361. Create an instance of <see cref="T:S7.Net.Types.DataItem"/> from the supplied address and value.
  1362. </summary>
  1363. <param name="address">The address to create the DataItem for.</param>
  1364. <param name="value">The value to be applied to the DataItem.</param>
  1365. <returns>A new <see cref="T:S7.Net.Types.DataItem"/> instance with properties parsed from <paramref name="address"/> and the supplied value set.</returns>
  1366. </member>
  1367. <member name="T:S7.Net.Types.Date">
  1368. <summary>
  1369. Contains the conversion methods to convert Words from S7 plc to C#.
  1370. </summary>
  1371. </member>
  1372. <member name="P:S7.Net.Types.Date.IecMinDate">
  1373. <summary>
  1374. Minimum allowed date for the IEC date type
  1375. </summary>
  1376. </member>
  1377. <member name="P:S7.Net.Types.Date.IecMaxDate">
  1378. <summary>
  1379. Maximum allowed date for the IEC date type
  1380. <remarks>
  1381. Although the spec allows only a max date of 31-12-2168, the PLC IEC date goes up to 06-06-2169 (which is the actual
  1382. WORD max value - 65535)
  1383. </remarks>
  1384. </summary>
  1385. </member>
  1386. <member name="M:S7.Net.Types.Date.FromByteArray(System.Byte[])">
  1387. <summary>
  1388. Converts a word (2 bytes) to IEC date (<see cref="T:System.DateTime"/>)
  1389. </summary>
  1390. </member>
  1391. <member name="M:S7.Net.Types.Date.ToByteArray(System.DateTime)">
  1392. <summary>
  1393. Converts a <see cref="T:System.DateTime"/> to word (2 bytes)
  1394. </summary>
  1395. </member>
  1396. <member name="M:S7.Net.Types.Date.ToByteArray(System.DateTime[])">
  1397. <summary>
  1398. Converts an array of <see cref="T:System.DateTime"/>s to an array of bytes
  1399. </summary>
  1400. </member>
  1401. <member name="M:S7.Net.Types.Date.ToArray(System.Byte[])">
  1402. <summary>
  1403. Converts an array of bytes to an array of <see cref="T:System.DateTime"/>s
  1404. </summary>
  1405. </member>
  1406. <member name="T:S7.Net.Types.DateTime">
  1407. <summary>
  1408. Contains the methods to convert between <see cref="T:System.DateTime"/> and S7 representation of datetime values.
  1409. </summary>
  1410. </member>
  1411. <member name="F:S7.Net.Types.DateTime.SpecMinimumDateTime">
  1412. <summary>
  1413. The minimum <see cref="T:System.DateTime"/> value supported by the specification.
  1414. </summary>
  1415. </member>
  1416. <member name="F:S7.Net.Types.DateTime.SpecMaximumDateTime">
  1417. <summary>
  1418. The maximum <see cref="T:System.DateTime"/> value supported by the specification.
  1419. </summary>
  1420. </member>
  1421. <member name="M:S7.Net.Types.DateTime.FromByteArray(System.Byte[])">
  1422. <summary>
  1423. Parses a <see cref="T:System.DateTime"/> value from bytes.
  1424. </summary>
  1425. <param name="bytes">Input bytes read from PLC.</param>
  1426. <returns>A <see cref="T:System.DateTime"/> object representing the value read from PLC.</returns>
  1427. <exception cref="T:System.ArgumentOutOfRangeException">Thrown when the length of
  1428. <paramref name="bytes"/> is not 8 or any value in <paramref name="bytes"/>
  1429. is outside the valid range of values.</exception>
  1430. </member>
  1431. <member name="M:S7.Net.Types.DateTime.ToArray(System.Byte[])">
  1432. <summary>
  1433. Parses an array of <see cref="T:System.DateTime"/> values from bytes.
  1434. </summary>
  1435. <param name="bytes">Input bytes read from PLC.</param>
  1436. <returns>An array of <see cref="T:System.DateTime"/> objects representing the values read from PLC.</returns>
  1437. <exception cref="T:System.ArgumentOutOfRangeException">Thrown when the length of
  1438. <paramref name="bytes"/> is not a multiple of 8 or any value in
  1439. <paramref name="bytes"/> is outside the valid range of values.</exception>
  1440. </member>
  1441. <member name="M:S7.Net.Types.DateTime.ToByteArray(System.DateTime)">
  1442. <summary>
  1443. Converts a <see cref="T:System.DateTime"/> value to a byte array.
  1444. </summary>
  1445. <param name="dateTime">The DateTime value to convert.</param>
  1446. <returns>A byte array containing the S7 date time representation of <paramref name="dateTime"/>.</returns>
  1447. <exception cref="T:System.ArgumentOutOfRangeException">Thrown when the value of
  1448. <paramref name="dateTime"/> is before <see cref="P:SpecMinimumDateTime"/>
  1449. or after <see cref="P:SpecMaximumDateTime"/>.</exception>
  1450. </member>
  1451. <member name="M:S7.Net.Types.DateTime.ToByteArray(System.DateTime[])">
  1452. <summary>
  1453. Converts an array of <see cref="T:System.DateTime"/> values to a byte array.
  1454. </summary>
  1455. <param name="dateTimes">The DateTime values to convert.</param>
  1456. <returns>A byte array containing the S7 date time representations of <paramref name="dateTimes"/>.</returns>
  1457. <exception cref="T:System.ArgumentOutOfRangeException">Thrown when any value of
  1458. <paramref name="dateTimes"/> is before <see cref="P:SpecMinimumDateTime"/>
  1459. or after <see cref="P:SpecMaximumDateTime"/>.</exception>
  1460. </member>
  1461. <member name="T:S7.Net.Types.DateTimeLong">
  1462. <summary>
  1463. Contains the methods to convert between <see cref="T:System.DateTime" /> and S7 representation of DateTimeLong (DTL) values.
  1464. </summary>
  1465. </member>
  1466. <member name="F:S7.Net.Types.DateTimeLong.SpecMinimumDateTime">
  1467. <summary>
  1468. The minimum <see cref="T:System.DateTime" /> value supported by the specification.
  1469. </summary>
  1470. </member>
  1471. <member name="F:S7.Net.Types.DateTimeLong.SpecMaximumDateTime">
  1472. <summary>
  1473. The maximum <see cref="T:System.DateTime" /> value supported by the specification.
  1474. </summary>
  1475. </member>
  1476. <member name="M:S7.Net.Types.DateTimeLong.FromByteArray(System.Byte[])">
  1477. <summary>
  1478. Parses a <see cref="T:System.DateTime" /> value from bytes.
  1479. </summary>
  1480. <param name="bytes">Input bytes read from PLC.</param>
  1481. <returns>A <see cref="T:System.DateTime" /> object representing the value read from PLC.</returns>
  1482. <exception cref="T:System.ArgumentOutOfRangeException">
  1483. Thrown when the length of
  1484. <paramref name="bytes" /> is not 12 or any value in <paramref name="bytes" />
  1485. is outside the valid range of values.
  1486. </exception>
  1487. </member>
  1488. <member name="M:S7.Net.Types.DateTimeLong.ToArray(System.Byte[])">
  1489. <summary>
  1490. Parses an array of <see cref="T:System.DateTime" /> values from bytes.
  1491. </summary>
  1492. <param name="bytes">Input bytes read from PLC.</param>
  1493. <returns>An array of <see cref="T:System.DateTime" /> objects representing the values read from PLC.</returns>
  1494. <exception cref="T:System.ArgumentOutOfRangeException">
  1495. Thrown when the length of
  1496. <paramref name="bytes" /> is not a multiple of 12 or any value in
  1497. <paramref name="bytes" /> is outside the valid range of values.
  1498. </exception>
  1499. </member>
  1500. <member name="M:S7.Net.Types.DateTimeLong.ToByteArray(System.DateTime)">
  1501. <summary>
  1502. Converts a <see cref="T:System.DateTime" /> value to a byte array.
  1503. </summary>
  1504. <param name="dateTime">The DateTime value to convert.</param>
  1505. <returns>A byte array containing the S7 DateTimeLong representation of <paramref name="dateTime" />.</returns>
  1506. <exception cref="T:System.ArgumentOutOfRangeException">
  1507. Thrown when the value of
  1508. <paramref name="dateTime" /> is before <see cref="P:SpecMinimumDateTime" />
  1509. or after <see cref="P:SpecMaximumDateTime" />.
  1510. </exception>
  1511. </member>
  1512. <member name="M:S7.Net.Types.DateTimeLong.ToByteArray(System.DateTime[])">
  1513. <summary>
  1514. Converts an array of <see cref="T:System.DateTime" /> values to a byte array.
  1515. </summary>
  1516. <param name="dateTimes">The DateTime values to convert.</param>
  1517. <returns>A byte array containing the S7 DateTimeLong representations of <paramref name="dateTimes" />.</returns>
  1518. <exception cref="T:System.ArgumentOutOfRangeException">
  1519. Thrown when any value of
  1520. <paramref name="dateTimes" /> is before <see cref="P:SpecMinimumDateTime" />
  1521. or after <see cref="P:SpecMaximumDateTime" />.
  1522. </exception>
  1523. </member>
  1524. <member name="T:S7.Net.Types.DInt">
  1525. <summary>
  1526. Contains the conversion methods to convert DInt from S7 plc to C# int (Int32).
  1527. </summary>
  1528. </member>
  1529. <member name="M:S7.Net.Types.DInt.FromByteArray(System.Byte[])">
  1530. <summary>
  1531. Converts a S7 DInt (4 bytes) to int (Int32)
  1532. </summary>
  1533. </member>
  1534. <member name="M:S7.Net.Types.DInt.ToByteArray(System.Int32)">
  1535. <summary>
  1536. Converts a int (Int32) to S7 DInt (4 bytes)
  1537. </summary>
  1538. </member>
  1539. <member name="M:S7.Net.Types.DInt.ToByteArray(System.Int32[])">
  1540. <summary>
  1541. Converts an array of int (Int32) to an array of bytes
  1542. </summary>
  1543. </member>
  1544. <member name="M:S7.Net.Types.DInt.ToArray(System.Byte[])">
  1545. <summary>
  1546. Converts an array of S7 DInt to an array of int (Int32)
  1547. </summary>
  1548. </member>
  1549. <member name="T:S7.Net.Types.Double">
  1550. <summary>
  1551. Contains the conversion methods to convert Real from S7 plc to C# double.
  1552. </summary>
  1553. </member>
  1554. <member name="M:S7.Net.Types.Double.FromByteArray(System.Byte[])">
  1555. <summary>
  1556. Converts a S7 Real (4 bytes) to double
  1557. </summary>
  1558. </member>
  1559. <member name="M:S7.Net.Types.Double.FromDWord(System.Int32)">
  1560. <summary>
  1561. Converts a S7 DInt to double
  1562. </summary>
  1563. </member>
  1564. <member name="M:S7.Net.Types.Double.FromDWord(System.UInt32)">
  1565. <summary>
  1566. Converts a S7 DWord to double
  1567. </summary>
  1568. </member>
  1569. <member name="M:S7.Net.Types.Double.ToByteArray(System.Double)">
  1570. <summary>
  1571. Converts a double to S7 Real (4 bytes)
  1572. </summary>
  1573. </member>
  1574. <member name="M:S7.Net.Types.Double.ToByteArray(System.Double[])">
  1575. <summary>
  1576. Converts an array of double to an array of bytes
  1577. </summary>
  1578. </member>
  1579. <member name="M:S7.Net.Types.Double.ToArray(System.Byte[])">
  1580. <summary>
  1581. Converts an array of S7 Real to an array of double
  1582. </summary>
  1583. </member>
  1584. <member name="T:S7.Net.Types.DWord">
  1585. <summary>
  1586. Contains the conversion methods to convert DWord from S7 plc to C#.
  1587. </summary>
  1588. </member>
  1589. <member name="M:S7.Net.Types.DWord.FromByteArray(System.Byte[])">
  1590. <summary>
  1591. Converts a S7 DWord (4 bytes) to uint (UInt32)
  1592. </summary>
  1593. </member>
  1594. <member name="M:S7.Net.Types.DWord.FromBytes(System.Byte,System.Byte,System.Byte,System.Byte)">
  1595. <summary>
  1596. Converts 4 bytes to DWord (UInt32)
  1597. </summary>
  1598. </member>
  1599. <member name="M:S7.Net.Types.DWord.ToByteArray(System.UInt32)">
  1600. <summary>
  1601. Converts a uint (UInt32) to S7 DWord (4 bytes)
  1602. </summary>
  1603. </member>
  1604. <member name="M:S7.Net.Types.DWord.ToByteArray(System.UInt32[])">
  1605. <summary>
  1606. Converts an array of uint (UInt32) to an array of S7 DWord (4 bytes)
  1607. </summary>
  1608. </member>
  1609. <member name="M:S7.Net.Types.DWord.ToArray(System.Byte[])">
  1610. <summary>
  1611. Converts an array of S7 DWord to an array of uint (UInt32)
  1612. </summary>
  1613. </member>
  1614. <member name="T:S7.Net.Types.Int">
  1615. <summary>
  1616. Contains the conversion methods to convert Int from S7 plc to C#.
  1617. </summary>
  1618. </member>
  1619. <member name="M:S7.Net.Types.Int.FromByteArray(System.Byte[])">
  1620. <summary>
  1621. Converts a S7 Int (2 bytes) to short (Int16)
  1622. </summary>
  1623. </member>
  1624. <member name="M:S7.Net.Types.Int.ToByteArray(System.Int16)">
  1625. <summary>
  1626. Converts a short (Int16) to a S7 Int byte array (2 bytes)
  1627. </summary>
  1628. </member>
  1629. <member name="M:S7.Net.Types.Int.ToByteArray(System.Int16[])">
  1630. <summary>
  1631. Converts an array of short (Int16) to a S7 Int byte array (2 bytes)
  1632. </summary>
  1633. </member>
  1634. <member name="M:S7.Net.Types.Int.ToArray(System.Byte[])">
  1635. <summary>
  1636. Converts an array of S7 Int to an array of short (Int16)
  1637. </summary>
  1638. </member>
  1639. <member name="M:S7.Net.Types.Int.CWord(System.Int32)">
  1640. <summary>
  1641. Converts a C# int value to a C# short value, to be used as word.
  1642. </summary>
  1643. <param name="value"></param>
  1644. <returns></returns>
  1645. </member>
  1646. <member name="T:S7.Net.Types.LReal">
  1647. <summary>
  1648. Contains the conversion methods to convert Real from S7 plc to C# double.
  1649. </summary>
  1650. </member>
  1651. <member name="M:S7.Net.Types.LReal.FromByteArray(System.Byte[])">
  1652. <summary>
  1653. Converts a S7 LReal (8 bytes) to double
  1654. </summary>
  1655. </member>
  1656. <member name="M:S7.Net.Types.LReal.ToByteArray(System.Double)">
  1657. <summary>
  1658. Converts a double to S7 LReal (8 bytes)
  1659. </summary>
  1660. </member>
  1661. <member name="M:S7.Net.Types.LReal.ToByteArray(System.Double[])">
  1662. <summary>
  1663. Converts an array of double to an array of bytes
  1664. </summary>
  1665. </member>
  1666. <member name="M:S7.Net.Types.LReal.ToArray(System.Byte[])">
  1667. <summary>
  1668. Converts an array of S7 LReal to an array of double
  1669. </summary>
  1670. </member>
  1671. <member name="T:S7.Net.Types.Real">
  1672. <summary>
  1673. Contains the conversion methods to convert Real from S7 plc to C# double.
  1674. </summary>
  1675. </member>
  1676. <member name="M:S7.Net.Types.Real.FromByteArray(System.Byte[])">
  1677. <summary>
  1678. Converts a S7 Real (4 bytes) to float
  1679. </summary>
  1680. </member>
  1681. <member name="M:S7.Net.Types.Real.ToByteArray(System.Single)">
  1682. <summary>
  1683. Converts a float to S7 Real (4 bytes)
  1684. </summary>
  1685. </member>
  1686. <member name="M:S7.Net.Types.Real.ToByteArray(System.Single[])">
  1687. <summary>
  1688. Converts an array of float to an array of bytes
  1689. </summary>
  1690. </member>
  1691. <member name="M:S7.Net.Types.Real.ToArray(System.Byte[])">
  1692. <summary>
  1693. Converts an array of S7 Real to an array of float
  1694. </summary>
  1695. </member>
  1696. <member name="T:S7.Net.Types.S7String">
  1697. <summary>
  1698. Contains the methods to convert from S7 strings to C# strings
  1699. An S7 String has a preceeding 2 byte header containing its capacity and length
  1700. </summary>
  1701. </member>
  1702. <member name="P:S7.Net.Types.S7String.StringEncoding">
  1703. <summary>
  1704. The Encoding used when serializing and deserializing S7String (Encoding.ASCII by default)
  1705. </summary>
  1706. <exception cref="T:System.ArgumentNullException">StringEncoding must not be null</exception>
  1707. </member>
  1708. <member name="M:S7.Net.Types.S7String.FromByteArray(System.Byte[])">
  1709. <summary>
  1710. Converts S7 bytes to a string
  1711. </summary>
  1712. <param name="bytes"></param>
  1713. <returns></returns>
  1714. </member>
  1715. <member name="M:S7.Net.Types.S7String.ToByteArray(System.String,System.Int32)">
  1716. <summary>
  1717. Converts a <see cref="T:string"/> to S7 string with 2-byte header.
  1718. </summary>
  1719. <param name="value">The string to convert to byte array.</param>
  1720. <param name="reservedLength">The length (in characters) allocated in PLC for the string.</param>
  1721. <returns>A <see cref="T:byte[]" /> containing the string header and string value with a maximum length of <paramref name="reservedLength"/> + 2.</returns>
  1722. </member>
  1723. <member name="M:S7.Net.Types.S7StringAttribute.#ctor(S7.Net.Types.S7StringType,System.Int32)">
  1724. <summary>
  1725. Initializes a new instance of the <see cref="T:S7.Net.Types.S7StringAttribute"/> class.
  1726. </summary>
  1727. <param name="type">The string type.</param>
  1728. <param name="reservedLength">Reserved length of the string in characters.</param>
  1729. <exception cref="T:System.ArgumentException">Please use a valid value for the string type</exception>
  1730. </member>
  1731. <member name="P:S7.Net.Types.S7StringAttribute.Type">
  1732. <summary>
  1733. Gets the type of the string.
  1734. </summary>
  1735. <value>
  1736. The string type.
  1737. </value>
  1738. </member>
  1739. <member name="P:S7.Net.Types.S7StringAttribute.ReservedLength">
  1740. <summary>
  1741. Gets the reserved length of the string in characters.
  1742. </summary>
  1743. <value>
  1744. The reserved length of the string in characters.
  1745. </value>
  1746. </member>
  1747. <member name="P:S7.Net.Types.S7StringAttribute.ReservedLengthInBytes">
  1748. <summary>
  1749. Gets the reserved length in bytes.
  1750. </summary>
  1751. <value>
  1752. The reserved length in bytes.
  1753. </value>
  1754. </member>
  1755. <member name="T:S7.Net.Types.S7StringType">
  1756. <summary>
  1757. String type.
  1758. </summary>
  1759. </member>
  1760. <member name="F:S7.Net.Types.S7StringType.S7String">
  1761. <summary>
  1762. ASCII string.
  1763. </summary>
  1764. </member>
  1765. <member name="F:S7.Net.Types.S7StringType.S7WString">
  1766. <summary>
  1767. Unicode string.
  1768. </summary>
  1769. </member>
  1770. <member name="T:S7.Net.Types.S7WString">
  1771. <summary>
  1772. Contains the methods to convert from S7 wstrings to C# strings
  1773. An S7 WString has a preceding 4 byte header containing its capacity and length
  1774. </summary>
  1775. </member>
  1776. <member name="M:S7.Net.Types.S7WString.FromByteArray(System.Byte[])">
  1777. <summary>
  1778. Converts S7 bytes to a string
  1779. </summary>
  1780. <param name="bytes"></param>
  1781. <returns></returns>
  1782. </member>
  1783. <member name="M:S7.Net.Types.S7WString.ToByteArray(System.String,System.Int32)">
  1784. <summary>
  1785. Converts a <see cref="T:string"/> to S7 wstring with 4-byte header.
  1786. </summary>
  1787. <param name="value">The string to convert to byte array.</param>
  1788. <param name="reservedLength">The length (in characters) allocated in PLC for the string.</param>
  1789. <returns>A <see cref="T:byte[]" /> containing the string header and string value with a maximum length of <paramref name="reservedLength"/> + 4.</returns>
  1790. </member>
  1791. <member name="T:S7.Net.Types.Single">
  1792. <summary>
  1793. Contains the conversion methods to convert Real from S7 plc to C# float.
  1794. </summary>
  1795. </member>
  1796. <member name="M:S7.Net.Types.Single.FromByteArray(System.Byte[])">
  1797. <summary>
  1798. Converts a S7 Real (4 bytes) to float
  1799. </summary>
  1800. </member>
  1801. <member name="M:S7.Net.Types.Single.FromDWord(System.Int32)">
  1802. <summary>
  1803. Converts a S7 DInt to float
  1804. </summary>
  1805. </member>
  1806. <member name="M:S7.Net.Types.Single.FromDWord(System.UInt32)">
  1807. <summary>
  1808. Converts a S7 DWord to float
  1809. </summary>
  1810. </member>
  1811. <member name="M:S7.Net.Types.Single.ToByteArray(System.Single)">
  1812. <summary>
  1813. Converts a double to S7 Real (4 bytes)
  1814. </summary>
  1815. </member>
  1816. <member name="M:S7.Net.Types.Single.ToByteArray(System.Single[])">
  1817. <summary>
  1818. Converts an array of float to an array of bytes
  1819. </summary>
  1820. </member>
  1821. <member name="M:S7.Net.Types.Single.ToArray(System.Byte[])">
  1822. <summary>
  1823. Converts an array of S7 Real to an array of float
  1824. </summary>
  1825. </member>
  1826. <member name="T:S7.Net.Types.String">
  1827. <summary>
  1828. Contains the methods to convert from S7 Array of Chars (like a const char[N] C-String) to C# strings
  1829. </summary>
  1830. </member>
  1831. <member name="M:S7.Net.Types.String.ToByteArray(System.String,System.Int32)">
  1832. <summary>
  1833. Converts a string to <paramref name="reservedLength"/> of bytes, padded with 0-bytes if required.
  1834. </summary>
  1835. <param name="value">The string to write to the PLC.</param>
  1836. <param name="reservedLength">The amount of bytes reserved for the <paramref name="value"/> in the PLC.</param>
  1837. </member>
  1838. <member name="M:S7.Net.Types.String.FromByteArray(System.Byte[])">
  1839. <summary>
  1840. Converts S7 bytes to a string
  1841. </summary>
  1842. <param name="bytes"></param>
  1843. <returns></returns>
  1844. </member>
  1845. <member name="T:S7.Net.Types.StringEx">
  1846. <inheritdoc cref="T:S7.Net.Types.S7String"/>
  1847. </member>
  1848. <member name="M:S7.Net.Types.StringEx.FromByteArray(System.Byte[])">
  1849. <inheritdoc cref="M:S7.Net.Types.S7String.FromByteArray(System.Byte[])"/>
  1850. </member>
  1851. <member name="M:S7.Net.Types.StringEx.ToByteArray(System.String,System.Int32)">
  1852. <inheritdoc cref="M:S7.Net.Types.S7String.ToByteArray(System.String,System.Int32)"/>
  1853. </member>
  1854. <member name="T:S7.Net.Types.Struct">
  1855. <summary>
  1856. Contains the method to convert a C# struct to S7 data types
  1857. </summary>
  1858. </member>
  1859. <member name="M:S7.Net.Types.Struct.GetStructSize(System.Type)">
  1860. <summary>
  1861. Gets the size of the struct in bytes.
  1862. </summary>
  1863. <param name="structType">the type of the struct</param>
  1864. <returns>the number of bytes</returns>
  1865. </member>
  1866. <member name="M:S7.Net.Types.Struct.FromBytes(System.Type,System.Byte[])">
  1867. <summary>
  1868. Creates a struct of a specified type by an array of bytes.
  1869. </summary>
  1870. <param name="structType">The struct type</param>
  1871. <param name="bytes">The array of bytes</param>
  1872. <returns>The object depending on the struct type or null if fails(array-length != struct-length</returns>
  1873. </member>
  1874. <member name="M:S7.Net.Types.Struct.ToBytes(System.Object)">
  1875. <summary>
  1876. Creates a byte array depending on the struct type.
  1877. </summary>
  1878. <param name="structValue">The struct object</param>
  1879. <returns>A byte array or null if fails.</returns>
  1880. </member>
  1881. <member name="T:S7.Net.Types.Timer">
  1882. <summary>
  1883. Converts the Timer data type to C# data type
  1884. </summary>
  1885. </member>
  1886. <member name="M:S7.Net.Types.Timer.FromByteArray(System.Byte[])">
  1887. <summary>
  1888. Converts the timer bytes to a double
  1889. </summary>
  1890. </member>
  1891. <member name="M:S7.Net.Types.Timer.ToByteArray(System.UInt16)">
  1892. <summary>
  1893. Converts a ushort (UInt16) to an array of bytes formatted as time
  1894. </summary>
  1895. </member>
  1896. <member name="M:S7.Net.Types.Timer.ToByteArray(System.UInt16[])">
  1897. <summary>
  1898. Converts an array of ushorts (Uint16) to an array of bytes formatted as time
  1899. </summary>
  1900. </member>
  1901. <member name="M:S7.Net.Types.Timer.ToArray(System.Byte[])">
  1902. <summary>
  1903. Converts an array of bytes formatted as time to an array of doubles
  1904. </summary>
  1905. <param name="bytes"></param>
  1906. <returns></returns>
  1907. </member>
  1908. <member name="T:S7.Net.Types.TimeSpan">
  1909. <summary>
  1910. Contains the methods to convert between <see cref="T:System.TimeSpan"/> and S7 representation of TIME values.
  1911. </summary>
  1912. </member>
  1913. <member name="F:S7.Net.Types.TimeSpan.SpecMinimumTimeSpan">
  1914. <summary>
  1915. The minimum <see cref="T:System.TimeSpan"/> value supported by the specification.
  1916. </summary>
  1917. </member>
  1918. <member name="F:S7.Net.Types.TimeSpan.SpecMaximumTimeSpan">
  1919. <summary>
  1920. The maximum <see cref="T:System.TimeSpan"/> value supported by the specification.
  1921. </summary>
  1922. </member>
  1923. <member name="M:S7.Net.Types.TimeSpan.FromByteArray(System.Byte[])">
  1924. <summary>
  1925. Parses a <see cref="T:System.TimeSpan"/> value from bytes.
  1926. </summary>
  1927. <param name="bytes">Input bytes read from PLC.</param>
  1928. <returns>A <see cref="T:System.TimeSpan"/> object representing the value read from PLC.</returns>
  1929. <exception cref="T:System.ArgumentOutOfRangeException">Thrown when the length of
  1930. <paramref name="bytes"/> is not 4 or any value in <paramref name="bytes"/>
  1931. is outside the valid range of values.</exception>
  1932. </member>
  1933. <member name="M:S7.Net.Types.TimeSpan.ToArray(System.Byte[])">
  1934. <summary>
  1935. Parses an array of <see cref="T:System.TimeSpan"/> values from bytes.
  1936. </summary>
  1937. <param name="bytes">Input bytes read from PLC.</param>
  1938. <returns>An array of <see cref="T:System.TimeSpan"/> objects representing the values read from PLC.</returns>
  1939. <exception cref="T:System.ArgumentOutOfRangeException">Thrown when the length of
  1940. <paramref name="bytes"/> is not a multiple of 4 or any value in
  1941. <paramref name="bytes"/> is outside the valid range of values.</exception>
  1942. </member>
  1943. <member name="M:S7.Net.Types.TimeSpan.ToByteArray(System.TimeSpan)">
  1944. <summary>
  1945. Converts a <see cref="T:System.TimeSpan"/> value to a byte array.
  1946. </summary>
  1947. <param name="timeSpan">The TimeSpan value to convert.</param>
  1948. <returns>A byte array containing the S7 date time representation of <paramref name="timeSpan"/>.</returns>
  1949. <exception cref="T:System.ArgumentOutOfRangeException">Thrown when the value of
  1950. <paramref name="timeSpan"/> is before <see cref="P:SpecMinimumTimeSpan"/>
  1951. or after <see cref="P:SpecMaximumTimeSpan"/>.</exception>
  1952. </member>
  1953. <member name="M:S7.Net.Types.TimeSpan.ToByteArray(System.TimeSpan[])">
  1954. <summary>
  1955. Converts an array of <see cref="T:System.TimeSpan"/> values to a byte array.
  1956. </summary>
  1957. <param name="timeSpans">The TimeSpan values to convert.</param>
  1958. <returns>A byte array containing the S7 date time representations of <paramref name="timeSpans"/>.</returns>
  1959. <exception cref="T:System.ArgumentOutOfRangeException">Thrown when any value of
  1960. <paramref name="timeSpans"/> is before <see cref="P:SpecMinimumTimeSpan"/>
  1961. or after <see cref="P:SpecMaximumTimeSpan"/>.</exception>
  1962. </member>
  1963. <member name="M:S7.Net.Types.TypeHelper.ToByteArray``1(``0[],System.Func{``0,System.Byte[]})">
  1964. <summary>
  1965. Converts an array of T to an array of bytes
  1966. </summary>
  1967. </member>
  1968. <member name="M:S7.Net.Types.TypeHelper.ToArray``1(System.Byte[],System.Func{System.Byte[],``0})">
  1969. <summary>
  1970. Converts an array of T repesented as S7 binary data to an array of T
  1971. </summary>
  1972. </member>
  1973. <member name="T:S7.Net.Types.Word">
  1974. <summary>
  1975. Contains the conversion methods to convert Words from S7 plc to C#.
  1976. </summary>
  1977. </member>
  1978. <member name="M:S7.Net.Types.Word.FromByteArray(System.Byte[])">
  1979. <summary>
  1980. Converts a word (2 bytes) to ushort (UInt16)
  1981. </summary>
  1982. </member>
  1983. <member name="M:S7.Net.Types.Word.FromBytes(System.Byte,System.Byte)">
  1984. <summary>
  1985. Converts 2 bytes to ushort (UInt16)
  1986. </summary>
  1987. </member>
  1988. <member name="M:S7.Net.Types.Word.ToByteArray(System.UInt16)">
  1989. <summary>
  1990. Converts a ushort (UInt16) to word (2 bytes)
  1991. </summary>
  1992. </member>
  1993. <member name="M:S7.Net.Types.Word.ToByteArray(System.UInt16[])">
  1994. <summary>
  1995. Converts an array of ushort (UInt16) to an array of bytes
  1996. </summary>
  1997. </member>
  1998. <member name="M:S7.Net.Types.Word.ToArray(System.Byte[])">
  1999. <summary>
  2000. Converts an array of bytes to an array of ushort
  2001. </summary>
  2002. </member>
  2003. </members>
  2004. </doc>