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

Struct to Byte

$
0
0
Hello

I have a struct fx:
TYPE
stTest :
STRUCT
BoolTest : bool;
ByteTest : byte;
IntTest : int;

END_STRUCT;
END_TYPE

I want to trasfer it over Profinet IO (ILC131) to a Siemens Master.
I Found the function MEMCPY, and in the Help file it says; "For this type of data management it is recommended to use the data types STRUCT and ARRAY"
But i can't connect the stTest Struct to the FB?

I'm a little lost now...


- Emil

Viewing all articles
Browse latest Browse all 46412


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