Michael Croes
cf64c65c23
Provide a clear message on Encoding.ASCII.GetString exceptions
2019-07-17 21:04:26 +02: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
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
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
Raphael
932433ad69
Merge branch 'master' of https://github.com/rapha-dev/s7netplus into datatype-float
2018-07-03 08:44:51 +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
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
Thomas Jäger
00e22ee214
Incorporate fixes from #117 (moved to helpers)
...
fix array naming.
2018-05-16 15:50:00 +02:00
Raphael
642cf8169e
Fixed bug for reading VarType.Bit and VarType.Byte on odd number of bytes in ReadMultipleVars()
2018-05-07 11:47:52 +02:00
Raphael
cbaa8921df
import killnine master
2018-05-07 09:47:20 +02:00
Thomas Ze
7cedec5909
- fix data type converting
...
- add new string string data type
2018-03-18 21:26:22 +01:00
shen.jz
ef5e060948
Added Bit to Types
...
get bool or BitArray from byte array
2017-12-14 10:38:10 +08:00
Thomas Bargetz
6d7edc9f86
Types.Class.ToBytes doesn't need a type information, because the object is passed as parameter anyway
2017-08-07 12:06:03 +02:00
Thomas Bargetz
07fe703b3d
Classes with arrays can now be read/written from/to the plc
2017-08-07 11:51:58 +02:00
Michele Cattafesta
db229de529
Fix .Net core build
2017-07-11 22:33:39 +01:00
Thomas Bargetz
6328efbc5b
Ignoring properties without a public setter or no setter at all
2017-07-07 10:57:12 +02:00
Michele Cattafesta
7012205c3e
documentation, cleanup and formatting + output xml documentation.
2016-08-26 13:06:34 +02:00
Michele Cattafesta
b4d99010fb
argument check for conversions.
...
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com >
2016-08-26 12:56:42 +02:00
Michele Cattafesta
aff5df1b33
S7.Net and S7.Net.Core unification (issue #56 ): moved files, updated csproj, minor modification for compatibility in SocketClient class.
...
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com >
2016-07-09 00:08:32 +02:00
Marcos
4fd09e7db1
VS2015 .Net Core compatible solution added.
2016-02-08 22:09:18 +00:00
Johnnyxy
533a18e2cc
o changed target .NET framework to v3.5 (higher .NET versions can load and execute lower versions code)
...
x fixes compatibility to support .NET 3.5 (removed unused usings/imports and changed method calls to .NET equivalents)
2015-06-17 17:04:12 +02:00
Michele Cattafesta
968639aea9
Added a new feature: Read and Write class.
...
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com >
2014-12-22 14:43:52 +01:00
Michele Cattafesta
31b38754e2
Fix an error that made impossible to read negative values when reading a struct.
...
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com >
2014-12-22 14:35:54 +01:00
abenedykt
452cb40bd3
fixing namespaces to c# style of coding
2014-08-08 20:56:26 +02:00
Derek Heiser
abcbff259c
Removed some helper extensions.
...
Some of the helpers I added already existed under the Type namespaces.
2013-02-10 21:49:53 -06:00
Derek Heiser
e65c0eed25
S7.NET Testability Updates
...
Removed the Controls project and existing Test projects. Added new Test
project and references to NUnit and Should projects for testing.
Extracted IPlc interface to help test projects that reference this
library. Also implemented the IDisposable interface on the Plc object so
that references to mSocket would be cleaned up appropriately when the
object is blown away.
2013-02-09 10:17:47 -06:00