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 2020/11/18 10:19:27 UTC
[plc4x] branch feature/plc4go updated: - Added the sources needed
in the PLC to run the manual test to a comment at the top
This is an automated email from the ASF dual-hosted git repository.
cdutz pushed a commit to branch feature/plc4go
in repository https://gitbox.apache.org/repos/asf/plc4x.git
The following commit(s) were added to refs/heads/feature/plc4go by this push:
new fe0ad76 - Added the sources needed in the PLC to run the manual test to a comment at the top
fe0ad76 is described below
commit fe0ad76069e91f184e37a28a7d0a618e93ca246c
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Wed Nov 18 11:19:20 2020 +0100
- Added the sources needed in the PLC to run the manual test to a comment at the top
---
.../plc4x/protocol/ads/ManualAdsDriverTest.java | 39 ++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/plc4j/drivers/ads/src/test/java/org/apache/plc4x/protocol/ads/ManualAdsDriverTest.java b/plc4j/drivers/ads/src/test/java/org/apache/plc4x/protocol/ads/ManualAdsDriverTest.java
index ca2b17b..2df45f2 100644
--- a/plc4j/drivers/ads/src/test/java/org/apache/plc4x/protocol/ads/ManualAdsDriverTest.java
+++ b/plc4j/drivers/ads/src/test/java/org/apache/plc4x/protocol/ads/ManualAdsDriverTest.java
@@ -24,6 +24,45 @@ import java.util.Arrays;
public class ManualAdsDriverTest extends ManualTest {
+ /*
+ * Test program code on the PLC with the test-data.
+ *
+ * Located in "main"
+ *
+
+ hurz_BOOL := TRUE;
+ hurz_BYTE := 42;
+ hurz_WORD := 42424;
+ hurz_DWORD := 4242442424;
+ hurz_LWORD := 4242442424242424242;
+ hurz_SINT := -42;
+ hurz_USINT := 42;
+ hurz_INT := -2424;
+ hurz_UINT := 42424;
+ hurz_DINT := -242442424;
+ hurz_UDINT := 4242442424;
+ hurz_LINT := -4242442424242424242;
+ hurz_ULINT := 4242442424242424242;
+ hurz_REAL := 3.14159265359;
+ hurz_LREAL := 2.71828182846;
+ hurz_TIME := T#1S234MS;
+ hurz_LTIME := LTIME#1000D15H23M12S34MS2US44NS;
+ hurz_DATE := D#1978-03-28;
+ //hurz_LDATE:LDATE;
+ hurz_TIME_OF_DAY := TIME_OF_DAY#15:36:30.123;
+ hurz_TOD := TOD#16:17:18.123;
+ //hurz_LTIME_OF_DAY:LTIME_OF_DAY;
+ //hurz_LTOD:LTOD;
+ hurz_DATE_AND_TIME := DATE_AND_TIME#1996-05-06-15:36:30;
+ hurz_DT := DT#1972-03-29-00:00:00;
+ //hurz_LDATE_AND_TIME:LDATE_AND_TIME;
+ //hurz_LDT:LDT;
+ hurz_STRING := 'hurz';
+ hurz_WSTRING := "wolf";
+
+ *
+ */
+
public ManualAdsDriverTest(String connectionString) {
super(connectionString);
}