You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by jf...@apache.org on 2019/06/17 10:11:38 UTC
[plc4x] branch develop updated: [S7] Added Test Example for Mock
Driver Format...
This is an automated email from the ASF dual-hosted git repository.
jfeinauer pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git
The following commit(s) were added to refs/heads/develop by this push:
new 256b9b5 [S7] Added Test Example for Mock Driver Format...
256b9b5 is described below
commit 256b9b55b581f82574317e25b6dcb118ce8e8fd8
Author: julian <j....@pragmaticminds.de>
AuthorDate: Mon Jun 17 12:11:31 2019 +0200
[S7] Added Test Example for Mock Driver Format...
---
.../s7/src/test/java/org/apache/plc4x/java/s7/model/S7FieldTests.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/plc4j/protocols/s7/src/test/java/org/apache/plc4x/java/s7/model/S7FieldTests.java b/plc4j/protocols/s7/src/test/java/org/apache/plc4x/java/s7/model/S7FieldTests.java
index a412b67..fc82956 100644
--- a/plc4j/protocols/s7/src/test/java/org/apache/plc4x/java/s7/model/S7FieldTests.java
+++ b/plc4j/protocols/s7/src/test/java/org/apache/plc4x/java/s7/model/S7FieldTests.java
@@ -43,6 +43,7 @@ class S7FieldTests {
Arguments.of("%I0.1:BOOL", TransportSize.BOOL, MemoryArea.INPUTS, 0, 0, 1),
Arguments.of("%ID64:REAL", TransportSize.REAL, MemoryArea.INPUTS, 0, 64, 0),
Arguments.of("%Q0.4:BOOL", TransportSize.BOOL, MemoryArea.OUTPUTS, 0, 0, 4),
+ Arguments.of("%M9.0:BOOL", TransportSize.BOOL, MemoryArea.FLAGS_MARKERS, 0, 9, 0),
Arguments.of("%DB1.DBX38.1:BOOL", TransportSize.BOOL, MemoryArea.DATA_BLOCKS, 1, 38, 1)/*,
// Not quite sure about how Data Block addresses look like, in my TIA portal they all have the prefix "DB".
Arguments.of("%DB3.DX4.1:BOOL", S7DataType.BOOL, MemoryArea.DATA_BLOCKS, 3, 4, 1),