Create structure in ST with several levels

ebachs

Member
Join Date
May 2016
Location
Denmark
Posts
1
Hi there

I'm quiet new to PLC and just got into programming in ST. I'm having trouble in creating structs with more than one level - can anyone help me out?

What I want is:

struct.level1.level2.signal etc etc.

right now I'm only capable of creating structs with one level

struct.level1.signal

Thanks in advance!

Regards Esben
 
Example of nesting structs:

Code:
VAR lev1 STRUCT
  lev2INT : INT ;
  lev2BOOL : BOOL ;
  lev2struct : STRUCT
     lev3INT : INT ;
     lev3BOOL : BOOL ;
   END_STRUCT ;
END_VAR ;
you then have

lev1.lev2INT
lev1.lev2BOOL
lev1.lev2struct.lev3INT
lev1.lev2struct.lev3BOOL
 

Similar Topics

Hello, I've been trying to learn this a while now and still have not found out how this works. I have an Omron CJ2M PLC and an ABB ACS 355 VFD...
Replies
1
Views
241
Hello, I have to deal with iFix again and am looking at the most efficient way to create alarms to display in iFix, i.e. not creating an...
Replies
0
Views
153
Good morning to all, I have the following issue, I installed everything of intouch including the patch, it is the 2023 version. The...
Replies
0
Views
329
So, I finally got versioin 27 installed on my Windows 10 VM. However, now I can't upload a project from my lab controller. I have the above error...
Replies
0
Views
1,129
Hi all, I have few GB of logged data created by RS View 32 Works, it is all in .DBF format. At the moment, my company wants to shift all data to...
Replies
14
Views
1,447
Back
Top Bottom