Question about SFB variables declaration in SCL

italo2008

Member
Join Date
Feb 2009
Location
Padova
Posts
95
Hi all

in a SCL FB I've decalred some variables like this:

Code:
VAR 
ShiftRegister:ARRAY [0..100] OF BOOL;            
ValvesOutputCMD: ARRAY [0..100] OF BOOL;
Timer_Valve_1:SFB3;
Timer_Valve_2:SFB3;
Timer_Valve_3:SFB3;
END_VAR

The question is: is there any possibility to declare SFB variables in some kind of array or structure in order to point at them in a while or for loop?

thank you
 
A good question.
According the help, arrays can consist of both elementary and complex data. And FBs and SFBs counts as complex data. So it should be possible.
But I cannot get it to work in the regular STL/LAD/FBD editor. So it wont work with SCL either.
 

Similar Topics

Hello again..trying something on an existing poorly written program and just wanted to double check something system is an A-B MicroLogix 1200 In...
Replies
5
Views
175
Good morning! Let me start by saying, I am still learning about this type of HMI programming. I recently watched a video about recipes and how it...
Replies
0
Views
73
I have some logic that I have written within a 5380 series controller that tracks the time an event is started, while the event is running an RTO...
Replies
2
Views
94
I have an HMI 2711R - T4T Series B, and I want to know which PLCs, besides Micro 820, can communicate with it.
Replies
2
Views
100
HI i would like to know how to get a variable that will store the amount of times a program has been executed. The issue is I have 3 DBs for 1 FB...
Replies
2
Views
83
Back
Top Bottom