# HG changeset patch
# User Laurent Bessard
# Date 1350920353 -7200
# Node ID c377a1d7767afaf58f7589211eb1c2a6c723c5fe
# Parent 980800a5aad0c139c370bcecccf7cae6b4c3f6c1# Parent bf4f7f0801b97911e6518bc2492c7e227dc6b4eb
Merged
diff -r bf4f7f0801b9 -r c377a1d7767a tests/python/plc.xml
--- a/tests/python/plc.xml Sun Oct 21 16:53:46 2012 +0200
+++ b/tests/python/plc.xml Mon Oct 22 17:39:13 2012 +0200
@@ -8,7 +8,7 @@
productVersion="0.0"
creationDateTime="2008-12-14T16:21:19"/>
+ modificationDateTime="2012-10-19T11:54:13">
@@ -23,7 +23,24 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -588,15 +605,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
IN);
- if(PLC_C_Call(fromPLC, &toPLC))__SET_VAR(data__->,OUT,toPLC);
-}
+{{
+ char toPLC;
+ char fromPLC = GetFbVar(IN);
+ if(PLC_C_Call(fromPLC, &toPLC)){
+ SetFbVar(OUT, toPLC);
+ }
+ if(0){
+ /* that code demonstrate C access to complex types */
+ char somebyte = GetFbVar(COORDS, .table[3]);
+ SetFbVar(SMURF, somebyte, .FIRSTBYTE);
+ SetFbVar(COORDS, somebyte, .table[4]);
+ }
+}}
(* If you do not use __GET_VAR and _SET_VAR macro, expect unexpected *)
]]>