You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2018/08/02 09:20:13 UTC

[incubator-plc4x] 02/04: Added javadoc on S7PlcConnection.

This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch JulianFeinauer-s7-communication-documentation
in repository https://gitbox.apache.org/repos/asf/incubator-plc4x.git

commit a919e94e9c144d203c947b9e5f7ecd89d8c9890f
Author: julian <j....@pragmaticminds.de>
AuthorDate: Wed Aug 1 17:14:34 2018 +0200

    Added javadoc on S7PlcConnection.
---
 .../plc4x/java/s7/connection/S7PlcConnection.java      | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/plc4j/protocols/s7/src/main/java/org/apache/plc4x/java/s7/connection/S7PlcConnection.java b/plc4j/protocols/s7/src/main/java/org/apache/plc4x/java/s7/connection/S7PlcConnection.java
index f17ec90..33c0335 100644
--- a/plc4j/protocols/s7/src/main/java/org/apache/plc4x/java/s7/connection/S7PlcConnection.java
+++ b/plc4j/protocols/s7/src/main/java/org/apache/plc4x/java/s7/connection/S7PlcConnection.java
@@ -53,6 +53,24 @@ import java.util.concurrent.CompletableFuture;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
 
+/**
+ * Class implementing the Connection handling for Siemens S7.
+ * The adressing of Values in S7 works as follows:
+ *
+ * For adressing values from Datablocks the following syntax is used:
+ * <pre>
+ *     DATA_BLOCKS/{blockNumer}/{byteOffset}
+ * </pre>
+ *
+ * For adressing data from other memory segments like I/O, Markers, ...
+ * <pre>
+ *     {memory area}/{byte offset}
+ *     or
+ *     {memory area}/{byte offset}/{bit offset}
+ * </pre>
+ * where the {bit-offset} is optional.
+ * All Available Memory Areas for this mode are defined in the {@link MemoryArea} enum.
+ */
 public class S7PlcConnection extends AbstractPlcConnection implements PlcReader, PlcWriter {
 
     private static final int ISO_ON_TCP_PORT = 102;