EasyManuals Logo

WAGO WAGO-I/O-IPC-C6 User Manual

WAGO WAGO-I/O-IPC-C6
322 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #175 background imageLoading...
Page #175 background image
WAGO-I/O-SYSTEM 750 Incorporation of C-Functions as CoDeSys Library 175
758-874/000-131 WAGO-I/O-IPC-C6
Manual
Version 1.0.0
TYPE t_teststruct :
STRUCT
a : BYTE;
b : WORD;
c : INT;
d : DWORD;
e : REAL;
f : POINTER TO STRING;
END_STRUCT
END_TYPE
struct t_teststruct{ // Codesys-Style:
char a; // BYTE
unsigned short b; // WORD
signed short c; // INT
unsigned int d; // DWORD
float e; // REAL
char *f; // POINTER TO STRING
} __attribute__((packed));
13.2.2 Structures
Structures can also be transferred. In doing so, it is important that the data types
be maintained exactly. The structures must also be defined with the "packed"
attribute. Therefore, the following CoDeSys structure
Figure 99: "Example.lib" file
would appear in C as follows:
Figure 100: "Example.h" file
Pay attention to the data types and the "packed" attribute in the "Beispiel.h" file.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the WAGO WAGO-I/O-IPC-C6 and is the answer not in the manual?

WAGO WAGO-I/O-IPC-C6 Specifications

General IconGeneral
BrandWAGO
ModelWAGO-I/O-IPC-C6
CategoryI/O Systems
LanguageEnglish

Related product manuals