Commit Graph

145 Commits

Author SHA1 Message Date
Thomas Ze
7cedec5909 - fix data type converting
- add new string string data type
2018-03-18 21:26:22 +01:00
Michele Cattafesta
f6a2e11045 0.1.8 v0.1.8 2018-02-05 20:07:11 +00:00
Michele Cattafesta
8005304827 Merge pull request #97 from GS770/master
Added Bit to Types
2017-12-14 23:00:19 +00:00
shen.jz
ef5e060948 Added Bit to Types
get bool or BitArray from byte array
2017-12-14 10:38:10 +08:00
Michele Cattafesta
3178d2aa09 Merge pull request #96 from GS770/master
Get bit of read bytes
2017-12-13 08:57:52 +00:00
shen.jz
6a2bc708a9 Get bit of read bytes 2017-12-12 15:56:18 +08:00
Michele Cattafesta
ea84cd414f Fix UWP build v0.1.7 2017-09-14 18:26:49 +01:00
Michele Cattafesta
ad98783888 Added one more test 2017-09-14 18:20:06 +01:00
Michele Cattafesta
cddb826053 Fix V0.1.6 bit write to DB don't work #91 2017-09-14 18:16:35 +01:00
Michele Cattafesta
61ebfca0c2 Nuget 0.1.6 v0.1.6 2017-09-05 20:25:26 +01:00
Michele Cattafesta
9a9231d6d3 Update README.md 2017-08-31 21:17:31 +01:00
Michele Cattafesta
9f3de01911 Update README.md 2017-08-31 21:17:17 +01:00
Michele Cattafesta
e0ba394bf7 Png for wiki 2017-08-31 20:59:39 +01:00
Michele Cattafesta
03ff8bda8e Merge pull request #89 from uknickwilliams/atomic-bit-writing
Support atomic bit writing protocol, instead of read-modify-write
2017-08-31 20:43:55 +01:00
nick.williams
75e8017744 Support atomic bit writing protocol, instead of read-modify-write 2017-08-23 11:07:29 +01:00
Thomas.Bargetz
ac19f913af fixed #87
IsAvailable is not using the Ping class anymore.
2017-08-11 11:09:35 +02: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
Michele Cattafesta
947450a181 Merge pull request #83 from thomasbargetz/generic-class-and-struct-reading
Generic class and struct reading
2017-07-11 22:17:13 +01:00
Michele Cattafesta
89415e79b5 Merge branch 'master' into generic-class-and-struct-reading 2017-07-11 22:15:39 +01:00
Michele Cattafesta
3090d03b97 Merge pull request #82 from thomasbargetz/ignore-non-public-setter-properties
Ignoring properties without a public setter or no setter at all
2017-07-11 21:37:02 +01:00
Thomas Bargetz
6328efbc5b Ignoring properties without a public setter or no setter at all 2017-07-07 10:57:12 +02:00
Thomas Bargetz
4130504a94 Added generic methods for ReadStruct and ReadClass. ReadClass returns the number of read bytes to check if something was read from the plc. 2017-07-07 10:25:12 +02:00
Michele Cattafesta
8c65632d7a Added unit tests to consolidate boolean read/write.
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com>
2017-05-23 22:29:43 +01:00
Michele Cattafesta
06bee240e5 documentation and cleanup.
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com>
2016-09-12 23:11:28 +02:00
Michele Cattafesta
8b8b96797f Removed redundant WriteMultipleBytes method.
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com>
2016-09-12 23:11:16 +02:00
Michele Cattafesta
d9d2c19dcd WriteBytesWithASingleRequest private.
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com>
2016-09-12 23:10:16 +02:00
Michele Cattafesta
ac66173f8a Merge pull request #66 from maurodx/patch-1
Changed WriteBytes to allow byte[] longer than 200 bytes
2016-09-12 22:58:36 +02:00
Mauro Destro
a2c68600cc Missing localIndex offset on startIndex
Missing localIndex to offset start write position
2016-09-12 12:08:50 +02:00
Mauro Destro
07f3513f20 Changed WriteBytes to allow byte[] longer than 200 bytes
Similar to ReadBytes that allow arrays longer than 200 bytes.
2016-09-12 10:52:05 +02:00
Michele Cattafesta
7e7b867789 nuget: support for .Net 3.5, .Net 4.0, .Net 4.5 and included xml documentation (Issue #65).
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com>
2016-08-26 13:27:49 +02:00
Michele Cattafesta
8f4dd2eb7b removed files not used.
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com>
2016-08-26 13:08:13 +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
9d56d33087 VarTypeToByteLength and ParseBytes are now private.
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com>
2016-08-26 12:53:11 +02:00
Michele Cattafesta
78bb5ea1fa plc: implemented shutdown of the socket correctly (Issue #29).
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com>
2016-08-26 12:29:23 +02:00
Michele Cattafesta
83e45e3be8 ReadBytes handles more than 200 bytes and is public.
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com>
2016-08-26 10:54:24 +02:00
Michele Cattafesta
142804f506 .NetCore: renamed socket class to minimize the #if NETFX_CORE in the sources. 2016-07-10 11:18:06 +02:00
Michele Cattafesta
5262b0fd59 cleaned tabs.
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com>
2016-07-09 00:08:48 +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
Michele Cattafesta
dc2b03d7d9 Merge pull request #62 from watashimeandeu/master
Fixes bug on ReadMultipleBytes: when readying one byte now it returns byte[] instead of byte.
2016-07-07 13:33:13 +02:00
Marcos Pereira
df019ac193 GetClassSize return zero. Issue #61. 2016-07-07 11:06:14 +01:00
Michele Cattafesta
5b36b774e2 Nuget 0.1.3
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com>
2016-06-12 23:54:56 +02:00
Michele Cattafesta
bf462c53a5 documentation
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com>
2016-06-12 23:45:36 +02:00
Michele Cattafesta
8fe5366a27 exceptions: added message of exceptions on LastErrorString.
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com>
2016-06-12 23:39:45 +02:00
Michele Cattafesta
f86281af82 Merge pull request #59 from SenenFernandez/master
Sign the assembly. Issue #52
2016-06-09 08:48:00 +02:00
Senen Fernandez
955a775dcd Sign the assembly. Issue #54 2016-06-08 20:54:00 -05:00
Michele Cattafesta
a74579b196 readme.md: appveyor build.
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com>
2016-05-20 23:06:15 +02:00
Michele Cattafesta
d7b8a3e039 Merge pull request #57 from Johnnyxy/master
VS2013 - C# 6 auto-property initializers - issue
2016-05-17 15:02:20 +02:00