Serge Camille
2a451bc049
TSDU: Use Array.Copy for Read functions.
2020-09-02 20:09:51 +02:00
Michael Croes
324ae95c42
Merge pull request #293 from scamille/fb-nullable
...
Add nullable support throughout the whole library.
2020-09-01 21:06:52 +02:00
Serge Camille
bd8177d39e
Add nullable support throughout the whole library.
...
This requires reference types that can be null to be annotated by a ? operator, similar to value types.
This gives the advantage that the compiler can warn against any null dereference exceptions, of which this commits elimits a few.
To make the underlying protocol implementation not any more complicated and to eliminate existing problems, and not that precise error reporting, I replaced some return null statements with explicit Exceptions. This lead to the assumption that those core protocoll functions always return non-null objects if they do not throw, making the PLC code simpler.
Adjust some NotConnected tests to look for explicit PlcException instead of NullReferenceException.
2020-08-31 22:48:45 +02:00
Michael Croes
e68ca64596
Merge pull request #302 from mycroes/build-infra-update
...
AppVeyor and infra updates
2020-08-31 22:31:03 +02:00
Michael Croes
647d4c7ae2
AppVeyor and infra updates
...
- Change build image to VS 2019
- Update Microsoft.SourceLink.GitHub package
- Update solution file
- Build separate symbol package (.snupkg)
2020-08-31 22:28:59 +02:00
Michael Croes
c7ef055be2
Merge pull request #286 from scamille/fb-sdkTestProject
...
Convert UnitTest project to SDK project type.
2020-08-18 22:09:39 +02:00
Serge Camille
7035d22506
Convert UnitTest project to SDK project type.
2020-08-18 09:20:31 +02:00
Michael Croes
3555436c04
Merge pull request #284 from scamille/fb-DTL
...
Add DateTimeLong type
2020-08-17 21:36:05 +02:00
Serge Camille
3258c84fbc
Add DateTimeLong test to S7NetTestsSync
2020-08-17 19:20:47 +02:00
Serge Camille
28257f28b3
Dtl: Add TypeLengthInBytes constant instead of always rewriting 12.
2020-08-17 19:20:19 +02:00
Serge Camille
a1d87de2d9
Rename DTL to DateTimeLong
2020-08-17 19:14:28 +02:00
Serge Camille
4be5765fc9
Run Resharper cleanup on DTL class, fix Dtl.ToByteArray list capacity.
2020-08-16 22:50:23 +02:00
Serge Camille
6614c7330a
Hook up DTL to VarType enum and PLCHelper.
2020-08-16 22:36:23 +02:00
Serge Camille
5d59c8284d
Add DTL type
...
Add new class Types.Dtl by taking the DateTime type and adjusting things.
Also add unit test with binary data calculated by hand. (Need to verify with actual S7 data)
2020-08-16 22:31:26 +02:00
Michael Croes
ff20687776
Merge pull request #282 from mycroes/develop
...
PLC: Improve exceptions on Read
2020-08-13 22:50:20 +02:00
Michael Croes
0b6226327b
PLC: Improve exceptions on Read
...
Close #258 .
2020-08-13 22:47:32 +02:00
Michael Croes
385240ba5e
Merge pull request #281 from mycroes/develop
...
PLCAddress: Add OB, OW, OD types from PR #277
2020-08-13 22:08:13 +02:00
Michael Croes
0a8ee0e091
PLCAddress: Add OB, OW, OD types from PR #277
...
PR #246 included most types also included in #277 , this adds OB, OW and
OD that were only in #277 .
Close #277 .
2020-08-13 22:04:53 +02:00
Michael Croes
1685270535
Merge pull request #280 from mycroes/develop
...
Tests/TypeTests: Add ClassTests from #178
2020-08-13 22:00:48 +02:00
Michael Croes
9a34b14e1e
Tests/TypeTests: Add ClassTests from #178
...
Close #178 .
2020-08-13 21:57:42 +02:00
Michael Croes
50f0e62573
Merge pull request #279 from mycroes/develop
...
Types/Class: Start arrays on even bytes.
Close #175 , #220 .
2020-08-13 21:49:30 +02:00
Michael Croes
9ea54be524
Types/Class: Start arrays on even bytes
...
Addresses #175
2020-08-13 21:40:44 +02:00
Michael Croes
dcd5bb3437
Merge pull request #246 from timverwaal/PLCAdddres-Parsing
...
Extended PLCAddress.Parse method
2020-08-13 20:43:16 +02:00
Tim Verwaal
8dc89867e9
Extended PLCAddress.Parse method
2019-12-19 10:55:51 +01:00
Michael Croes
2fbf659136
Merge pull request #167 from mycroes/bit-arrays
...
Fix incorrect length when reading BitArray
2019-07-17 21:50:12 +02:00
Michael Croes
6a84b6f124
Use ToBitArray overload with length in ParseBytes
2019-07-17 21:46:18 +02:00
Michael Croes
b3cb45de37
Add ToBitArray overload with length
2019-07-17 21:46:17 +02:00
Michael Croes
4fcab9a167
Fix VarTypeToByteLength for bit arrays
2019-07-17 21:46:17 +02:00
Michael Croes
94a178478b
Merge pull request #227 from mycroes/calculate-pdu-constraint
...
Calculate PDU size constraints
2019-07-17 21:43:38 +02:00
Michael Croes
2a4485941f
Calculate PDU size constraints
2019-07-17 21:39:41 +02:00
Michael Croes
47cce5887d
Merge pull request #223 from thoj/develop
...
Fix padding of last dataitem in WriteMulitple fixes #222
2019-07-17 21:39:19 +02:00
Michael Croes
0e5651b37f
Merge branch 'develop' into develop
2019-07-17 21:22:45 +02:00
Michael Croes
1d1f1e76a9
Merge pull request #189 from mycroes/add-datetime-support
...
Add DateTime support
2019-07-17 21:10:12 +02:00
Michael Croes
555d1e8956
Add unit test for Types.DateTime
2019-07-17 21:07:45 +02:00
Michael Croes
427d8124de
Add DateTime support for read/write methods
2019-07-17 21:07:45 +02:00
Michael Croes
735f1d4533
Add support for DateTime array conversion
2019-07-17 21:07:45 +02:00
Michael Croes
2aa4f08836
Add Types.DateTime
2019-07-17 21:07:44 +02:00
Michael Croes
8d8b2ec36e
Merge pull request #173 from mycroes/stringex-read-rubbish
...
Provide a clear message on Encoding.ASCII.GetString exceptions
2019-07-17 21:06:47 +02:00
Michael Croes
cf64c65c23
Provide a clear message on Encoding.ASCII.GetString exceptions
2019-07-17 21:04:26 +02:00
Michael Croes
93752a3485
Merge pull request #225 from tatzemax/develop
...
Add Property to selected Port from PLC
2019-07-11 20:10:29 +02:00
max
229df2dfcd
Merge branch 'develop' of https://github.com/tatzemax/s7netplus into develop
2019-07-11 18:11:14 +02:00
max
3b23ab76e7
correction of wrong changes
2019-07-11 18:10:14 +02:00
tatzemax
3872e638aa
Merge branch 'develop' into develop
2019-07-11 17:57:14 +02:00
Thomas Jager
e124c70fb1
Merge branch 'develop' into develop
2019-07-11 12:24:07 +02:00
Michael Croes
b8b4071e39
Merge pull request #226 from SevenMag/develop
...
Use PDU size in WriteBytes
2019-07-11 12:13:01 +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
Thomas Jäger
02b38326c8
Fix padding of last dataitem in WriteMulitple fixes #222
2019-06-19 13:02:53 +02:00