Commit Graph

274 Commits

Author SHA1 Message Date
shen.jz
6a2bc708a9 Get bit of read bytes 2017-12-12 15:56:18 +08:00
Michele Cattafesta
ea84cd414f Fix UWP build 2017-09-14 18:26:49 +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
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
89415e79b5 Merge branch 'master' into generic-class-and-struct-reading 2017-07-11 22:15: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
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
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
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
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
Marcos Pereira
df019ac193 GetClassSize return zero. Issue #61. 2016-07-07 11:06:14 +01: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
Senen Fernandez
955a775dcd Sign the assembly. Issue #54 2016-06-08 20:54:00 -05:00
Michele Cattafesta
5c04125d55 Added method ClearLastErrorCode (Issue #44).
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com>
2016-05-11 22:20:00 +02:00
Michele Cattafesta
9108dbde51 documentation, cleanup and unit tests.
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com>
2016-05-02 21:58:09 +02:00
Michele Cattafesta
0a450ec769 Added IDisposable to Plc class.
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com>
2016-05-02 07:40:12 +02:00
Michele Cattafesta
f5303cb3a7 ReadMultipleVars: removed returned List, that was of no use, and added documentation.
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com>
2016-05-02 00:38:51 +02:00
Michele Cattafesta
0beb9a91db Removed Name and Tag, that were of no use in this library.
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com>
2016-05-02 00:31:46 +02:00
Michele Cattafesta
63bd361e76 cleanup and documentation.
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com>
2016-05-02 00:31:17 +02:00
Michele Cattafesta
e59ff7d34c Removed IPlc interface, because it was of no use.
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com>
2016-05-02 00:22:54 +02:00
Michele Cattafesta
3fe7ee23eb Revert "signed assembly with Strong Name key (issue #52)."
This reverts commit bb6f9097ee.
2016-05-02 00:00:44 +02:00
Dirk-Jan
1f0534abc4 Fixed reading of vars bigger than 2 bytes, see killnine/s7netplus#49 2016-05-01 20:37:58 +02:00
Dirk-Jan
6ddcc37294 Added basic reading of multiple vars
Could use some enhancement in splitting a read in multiple requests if it
exceeds the limit
2016-05-01 20:37:58 +02:00
Michele Cattafesta
847dddfb3f documentation.
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com>
2016-05-01 19:39:14 +02:00
Michele Cattafesta
bb6f9097ee signed assembly with Strong Name key (issue #52).
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com>
2016-05-01 18:33:54 +02:00
Marcos Pereira
12d7574c66 "System.InvalidCastException" on boolean type variable. 2016-04-28 15:28:04 +01:00
Marcos
2f7025ede6 Read and write class from a specific start bytes address. 2016-03-13 11:54:24 +00:00
Marcos Pereira
5dcd52e9d2 Write struct and multiple bytes from a specific start bytes address. 2016-03-09 14:32:19 +00:00
Marcos Pereira
6cff54514f Read struct and multiple bytes from a specific start bytes address. 2016-02-23 09:09:12 +00:00
Michele Cattafesta
9a790376ff fix Issue #38: now read and write bytes handles address overflow correctly.
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com>
2016-02-13 12:26:50 +01:00
Marcos
4fd09e7db1 VS2015 .Net Core compatible solution added. 2016-02-08 22:09:18 +00:00
Michele Cattafesta
9aa01a4aad Read/Write class and structs now handle more than 200 bytes with multiple requests (Issue #30 and Issue #27).
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com>
2015-10-05 23:44:49 +02:00
Michele Cattafesta
a6307baa8c Added rack and slot for S7-1500 (Issue #1). These are needed if you are connecting from an external ethernet card (es. CP 1543-1).
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com>
2015-10-03 11:40:07 +02:00
Michele Cattafesta
489f97fe70 IsAvailable disposes Ping properly (Issue #32).
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com>
2015-10-02 18:35:27 +02:00
Michele Cattafesta
92dd158698 Improved IsConnected and IsAvailable as shown in Issue #8.
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com>
2015-10-01 22:18:30 +02:00
Michele Cattafesta
2c40bc6ab5 Issue 31: modified IsConnected.
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com>
2015-09-30 23:12:31 +02:00