Quantcast
Channel: SPS-Forum - Automatisierung und Elektrotechnik
Viewing all articles
Browse latest Browse all 50303

TIA 1511C-1 PN -> MOVE_BLK_VARIANT kopiert nichts

$
0
0
Hallo,

ich habe hier mit TIA (mal wieder) ein eigenartiges Ding m Hut. Der MOVE_BLK_VARIANT kopiert aus irgendwelchsen Gründen nichts bei mir. (CPU ist eine 1511C-1 PN)

Folgende SCL-Zeile ist in einem FB vorhanden:
Code:

#RetVal := MOVE_BLK_VARIANT(SRC := #savedata.StatusDevice, COUNT := 1, SRC_INDEX := 0, DEST_INDEX := 0, DEST => #hmi.StatusDevice);
Sowohl #savedata.StatusDevice als auch #hmi.StatusDevice befinden sich sim Static des Instanz-DB's.

StatusDevice ist ein UDT mit einem Array of [0..63] of Byte.

Die temp. Variable #RetVal zeigt online 0 an.

Folgendes funktioniert:
Code:

FOR #sz_1 := 0 TO 63 DO
    #hmi.StatusDevice.Device[#sz_1] := #savedata.StatusDevice.Device[#sz_1];
END_FOR;

Hat jemand eine Idee was das sein kann? Habe vor kurzem TIA von v15.1 auf v15.1 + Update2 updated.. hoffe aber mal nicht, dass es daran liegt :-)

vG,
Martin

Viewing all articles
Browse latest Browse all 50303

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>