Michael Croes
14823bca96
Merge pull request #395 from mycroes/s7-200-cr
...
Change S7 200 remote TSAP to 10.01
2021-06-06 22:45:53 +02:00
Serge Camille
53045c5952
Close connection on IOExceptions.
...
The idea behind this is that if we receive a response which does not conform to the underlying protocol specification (with all the TCP checks in place!), we are in a weird/corrupt state and it is better to just close the connection.
2021-06-06 22:40:04 +02:00
Michael Croes
677d2941e1
Apply S7 200 TSAP change to relocated code
2021-06-06 22:33:12 +02:00
Michael Croes
66b693676c
Merge branch 'develop' into s7-200-cr
2021-06-06 22:32:41 +02:00
Michael Croes
4542bbedb2
Merge pull request #396 from mycroes/tsap
...
Refactor TSAP related code
2021-06-06 22:24:29 +02:00
Serge Camille
a4b6a360fe
ParseDataIntoDataItems needs to always align the response address to a even value after each data item.
2021-06-06 22:16:59 +02:00
Serge Camille
0bef6bc9ff
Add unit test for the problem.
2021-06-06 21:59:39 +02:00
Michael Croes
cbe04fbfb4
Merge branch 'develop' into tsap
2021-06-06 21:19:17 +02:00
Michael Croes
0b4c79cb08
Merge pull request #319 from scamille/githubActions2
...
GitHub actions
2021-06-06 21:14:26 +02:00
Serge Camille
5c24e801fd
Add Actions Nuget Cache ( #2 )
...
* Try out action cache
* fix syntax error
* Now lets see what happens if it hits the cache
2021-06-05 18:50:28 +02:00
Serge Camille
bcde65120c
Github Actions Net5.0 ( #1 )
...
* Try integrating dotnet setup version into build matrix.
* Another attempt
* change matrix.
* don't add dotnet-sdk as main matrix variable
* remove test framework as well.
* or maybe not
* Fix copy paste mixup
2021-06-05 18:37:35 +02:00
Serge Camille
4541a7ebb7
Try adjusting the dotnet setup version.
2021-06-05 18:11:06 +02:00
Serge Camille
fc9c33fdaf
Add Net5.0 to test project as well.
2021-06-05 17:59:18 +02:00
Serge Camille
a23408d67e
Add Net5.0 to test matrix
2021-06-05 17:58:05 +02:00
Serge Camille
adb55dc80f
Merge branch 'develop' into githubActions2
2021-06-05 17:52:59 +02:00
Michael Croes
2fae2c01d5
Add TsapPair support to PLC
...
Add support for custom addressing by supplying a TsapPair to the PLC.
CPU, Rack and Slot properties are still present to preserve backwards
compatibility and to support alternate functionality based on the PLC
type.
2021-06-04 22:25:05 +02:00
Michael Croes
6465e3c8c7
Move GetDefaultTsapPair to TsapPair class
2021-06-04 22:01:40 +02:00
Michael Croes
fcd61c1236
Add CpuType.S7200Smart
2021-06-04 21:46:42 +02:00
Michael Croes
616dc1094c
Refactor TSAP related code
2021-06-04 21:45:51 +02:00
Michael Croes
70bc1499ef
ConnectionRequestTest: Cleanup trailing whitespace
2021-06-02 23:03:23 +02:00
Michael Croes
fd9aeb5b3b
Fix unit test for S7 200
2021-06-02 23:03:06 +02:00
Michael Croes
0750ee006f
Change S7 200 remote TSAP to 10.01
2021-06-02 22:06:00 +02:00
Michael Croes
5318f94dd7
Release S7NetPlus 0.12.0
...
Release highlights:
- Add synchronization to methods interacting with the PLC
v0.12.0
2021-06-02 21:28:48 +02:00
Michael Croes
ea3beff481
Merge pull request #394 from mycroes/sync
...
Add synchronization
2021-06-02 21:25:51 +02:00
Michael Croes
f67b1e773f
Add missing ConfigureAwait in OpenAsync
2021-06-01 20:59:20 +02:00
Michael Croes
e93a656312
Fix locking for OpenAsync
2021-06-01 20:28:34 +02:00
Michael Croes
8035f71a16
Apply synchronization to stream actions
2021-05-31 22:57:13 +02:00
Michael Croes
df4f258290
Move GetStreamIfAvailable to PLC.cs
2021-05-31 21:23:32 +02:00
Michael Croes
5636b93a53
PlcSynchronous: Remove unused usings
2021-05-31 21:17:42 +02:00
Michael Croes
8ed1b840bc
PlcSynchronous: Clenaup trailing whitespace
2021-05-31 21:17:23 +02:00
Michael Croes
2afed88231
Consolidate sync stream calls
2021-05-31 21:17:03 +02:00
Michael Croes
1ded47971b
Consolidate async stream calls
2021-05-31 21:07:16 +02:00
Michael Croes
ced10b4eca
Release S7NetPlus 0.11.0
...
Release highlights:
- Fix for byte length calculation of bits
- Fix for Boolean.ClearBit
- Added Boolean.ClearBit and .SetBit by reference
v0.11.0
2021-05-10 22:55:28 +02:00
Michael Croes
632e1c14ac
Merge pull request #391 from mycroes/set-bit-clear-bit
...
SetBit and ClearBit tests, fixes
2021-05-10 21:24:43 +02:00
Michael Croes
aa50280233
Boolean: Add SetBit and ClearBit by reference
2021-05-10 21:14:43 +02:00
Michael Croes
3a794e8a46
Cleanup trailing whitespace in PLC and PLCHelpers
2021-05-10 21:05:02 +02:00
Michael Croes
0b8bd66bf7
Fix bitwise operator in Boolean.ClearBit
...
Fixes #249
2021-05-10 20:50:46 +02:00
Michael Croes
e66d21af05
Add tests for Boolean.SetBit and Boolean.ClearBit
2021-05-10 20:49:15 +02:00
Michael Croes
44ee651ac4
Merge pull request #390 from mycroes/byte-length-bits
...
Fix byte length calculation for VarType.Bit
2021-05-10 20:32:34 +02:00
Michael Croes
a1b4694ef6
Fix calculation of byte length for VarType.Bit
...
Fixes #389
2021-05-10 20:25:38 +02:00
Michael Croes
d10c15b80f
Release S7NetPlus 0.10.0
...
Release highlights:
- Additional ConfigureAwait(false) calls used internally
- Fix for S7WString length
- Remove IsAvailable property
v0.10.0
2021-03-29 22:01:14 +02:00
Michael Croes
5225c8bffd
Merge pull request #311 from mycroes/is-available
...
Remove IsAvailable, document IsConnected
2021-03-29 21:51:34 +02:00
Michael Croes
aa03400350
Document IsConnected, shorten implementation
2021-03-29 21:43:24 +02:00
Michael Croes
2b4ec6d9dd
Remove IsAvailable
...
Addresses #275 , #252 , #208 , #154 .
2021-03-29 21:43:24 +02:00
Michael Croes
54f3de6c9f
Merge pull request #382 from mycroes/s7wstring-length
...
Fix problems with S7 string types (S7String and S7WString) and calculated byte length
2021-03-29 21:12:18 +02:00
diego
e6d14587d3
Added four new test methods to check ByteLength for S7 String types
2021-03-29 20:51:11 +02:00
diego
e63d92c61c
Fix ByteLength calculation for S7Strings when reserved is odd
2021-03-29 20:51:11 +02:00
diego
b4b94e1777
Fix wrong calculation for S7WString byte length
2021-03-29 20:51:11 +02:00
Michael Croes
13c25fc20b
Merge pull request #379 from scamille/fix-sync-class
...
Sprinkle more .ConfigureAwait(false) into async library.
2021-03-29 20:30:43 +02:00
Serge Camille
fff6f3458f
Merge branch 'develop' into githubActions2
2021-03-16 20:22:49 +01:00