Michael Croes
cf64c65c23
Provide a clear message on Encoding.ASCII.GetString exceptions
2019-07-17 21:04:26 +02:00
tatzemax
3872e638aa
Merge branch 'develop' into develop
2019-07-11 17:57:14 +02:00
Max
b2183dd760
rename PORT to Port
...
add a Space
2019-07-10 20:42:52 +02:00
max
f2d33855ca
add Port Setting for PLC.
...
is required for port forwarding
2019-07-10 18:44:04 +02:00
max
b1d2d11904
add Port Setting for PLC.
...
is required for port forwarding
2019-07-10 18:17:02 +02:00
Evgeniy
23796de8bf
Update PlcSynchronous.cs
...
MaxPDUSize for WriteBytes
2019-07-03 13:04:33 +05:00
Смирнов Виталий
2fbabd5517
style: updated code style.
2019-05-28 10:01:28 +03:00
Смирнов Виталий
800a790b89
feature: added changing ReadTimeout and WriteTimeout for connected tcpClient.
2019-05-28 08:56:06 +03:00
Смирнов Виталий
0dbe401ce9
feature: added ReadTimeout and WriteTimeout to PLC class for NetworkStream.
2019-05-27 13:52:38 +03:00
Michael Croes
ce359789dc
Add explicit support for Logo0BA8
...
Unsure if the PLC actually requires the specfically provided TSAP's,
but these have been verified to work.
2019-03-14 23:04:26 +01:00
Michael Croes
4ae905ffd5
Set PDU size to 960
...
Allows communication with Siemens Logo 0BA8, currently no Siemens PLC
is known to support >960 PDU size.
2019-03-14 23:04:26 +01:00
Michael Croes
70506e7dba
Throw InvalidDataException in Open(Async)
2019-03-14 23:02:15 +01:00
Michael Croes
20458d4b46
Add InvalidDataException
2019-03-14 23:02:14 +01:00
Michael Croes
898b870221
Expose TPKT on TPDU
...
Temporary hack to allow access to the received TPKT data.
2019-03-14 23:02:14 +01:00
Adam Oleksy
de084394a6
Fix writing nested classes
2018-10-04 18:14:44 +02:00
Adam Oleksy
370fd6b3d9
Fix reading nested classes
2018-09-26 14:43:49 +02:00
Michael Croes
e44cb1571c
Validate BitAdr when writing a bit
2018-07-12 20:51:37 +02:00
Michael Croes
ab486e3d1f
Only set bitNumber in address for Write when a bit is written
2018-07-12 20:51:20 +02:00
Michael Croes
705743e5f1
Convert bitNumber '-1' to 0 in DataItem
2018-07-12 20:49:44 +02:00
Michael Croes
09d323925a
Add length to String.ToByteArray(...)
2018-07-11 22:07:08 +02:00
Michael Croes
bf4550655e
Add support for creating DataItem from string ( #149 )
...
* Refactor PLCAddress
- Change fields into properties
- Apply PascalCase naming to all properties
- Make Parse public static with out parameters
* Support creating DataItem from string
* Rename PlcAddress.Address to StartByte
2018-07-11 10:21:49 +02:00
Raphael Schlameuß
214a7a73c8
Read many bytes 1500 (develop branch) ( #160 )
...
* ReadBytesWithSingleRequest cannot read >491 Bytes on S7-1500
2018-07-11 10:15:08 +02:00
Michael Croes
a5d3c70373
Add SourceLink.Copy.PdbFiles to add missing .pdb files ( #163 )
2018-07-11 09:53:33 +02:00
Michael Croes
2204ab360c
Fix write stringex ( #162 )
...
* Add StringEx.ToByteArray(...)
* Add Serialization.SerializeDataItem(DataItem)
Supports StringEx VarType or offloads to SerializeValue method.
* Use SerializeDataItem in S7WriteMultiple
* Assume string length without header in StringEx.ToByteArray
VarTypeToByteLength already assumed that StringEx declared count for
the number of characters without the header, this now matches that
behavior.
* Add unit tests for StringEx conversions
* Fix incorrect value passed to Encoding.GetBytes
The length must actually be within string limits.
2018-07-11 09:47:43 +02:00
Michael Croes
1538de148b
Replace LastErrorCode and LastErrorString with exceptions
2018-07-09 20:07:47 +02:00
Michael Croes
ab11cc8e3e
Add SourceLink support
2018-07-06 22:24:07 +02:00
Michael Croes
9740224966
Add NuGet tags to S7.Net.csproj
2018-07-06 22:24:07 +02:00
Raphael
2f3bbddaef
Fixes invalid TPKT length in request header
2018-07-04 11:47:13 +02:00
Raphael
932433ad69
Merge branch 'master' of https://github.com/rapha-dev/s7netplus into datatype-float
2018-07-03 08:44:51 +02:00
Raphael
d37c388d20
Fixed obsolete message
2018-07-03 08:41:54 +02:00
Raphael
b8b144d7ae
Add support for datatype float (Single) and obsolete double (Double) usage
2018-07-02 10:20:02 +02:00
Michael Croes
98228924ea
Simplify info declaration in Struct field loops
2018-06-30 22:19:44 +02:00
Michael Croes
a1f4e44c48
R#: Cleanup usings
2018-06-30 22:19:44 +02:00
Michael Croes
7821b6b6f6
Add NetStandard 1.3 support
...
Supersedes UWP support since UWP 10.0 supports up to NetStandard 1.4.
2018-06-30 22:19:44 +02:00
Michael Croes
e516675a70
Replace InvalidEnumArgumentException usage
...
InvalidEnumArgumentException is not supported in NetStandard 1.3.
2018-06-30 22:19:44 +02:00
Michael Croes
710ab2e026
Provide a buffer to MemoryStream
...
NetStandard 1.3 doesn't expose .GetBuffer(), this removes the need for
having it. The support for messages that span TPKT's is quite nasty, but
probably S7 PLC's will never even use a message spanning multiple TPKT's.
2018-06-30 22:17:48 +02:00
Raul Hidalgo Caballero
66fe6750b2
Merge branch 'master' into master
2018-06-28 10:40:11 +02:00
Michael Croes
514dde365e
Cleanup TSAP parameters
...
- Remove duplicate parameter code / length (already in initial array)
- Remove separate branch for S7-400 (same as S7-300/1200)
- Change all values to 2-character hex
2018-06-27 21:26:44 +02:00
Michael Croes
6569e5e169
Extract ConnectionRequest from PLCHelpers
2018-06-27 21:07:41 +02:00
Michael Croes
4bca9d8c19
Merge pull request #130 from mycroes/fix-communication-setup-pdu-size
...
Fix the PDU size in communication setup
2018-06-26 22:18:44 +02:00
Raul Hidalgo Caballero
daf0f8e0d6
Merge branch 'master' into master
2018-06-21 21:24:01 +02:00
Michael Croes
d9abebe550
Fix the PDU size in communication setup
...
[7, 80] resulted in 1872; [7, 128] (or [0x07, 0x80] in hex) results in
the 1920 as specified in comments.
2018-06-21 20:49:05 +02:00
Michael Croes
2083ab1501
Remove obsolete attribute and comments
...
References #124 .
2018-06-21 20:28:22 +02:00
Michele Cattafesta
003d775228
Merge pull request #127 from mycroes/write-short-array-fix
...
Write short array fix
2018-06-21 13:32:44 +01:00
Michael Croes
5a82313eb1
Change order of byte assignment for uniformity
...
Order is now same as ToByteArray(Int16[] value), where the order is
important due to the index increment in the same line.
2018-06-19 21:26:03 +02:00
Michael Croes
8d64bd89fc
Fix byte order when serializing short[] / Int16[]
...
Values should be written as big-endian, unfortunately the ordering for
short values in an array was little-endian.
2018-06-19 21:24:28 +02:00
Michael Croes
299918e293
Add Plc.Write/WriteAsync(params DataItem[] dataItems)
2018-06-15 21:50:41 +02:00
Michael Croes
740a47ab43
Add initial WriteMultiple protocol
2018-06-15 21:39:38 +02:00
Michael Croes
38d089e117
Add boolean support to GetPackage
2018-06-15 21:39:38 +02:00
Michael Croes
aaab24a4c2
Add and move serialization helpers
...
Added (Get|Set)WordAt, SetAddressAt and moved GetPackage method.
2018-06-15 21:39:38 +02:00