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

Hey all, simple question. Once I create a Macro in my Factory Talk Project, do I need to trigger the macro to run somehow? Or are all macros...
Replies
5
Views
37
I recently uploaded an aplication from a Panel View, created a new screen and now that I've downloaded it to the Panel View, all the texts have...
Replies
9
Views
172
I have never had the pleasure of working with a "Thermistor" until now and have a question. The Thermistor is a 10KOhm 4-20mA 2-wire device and I...
Replies
4
Views
156
Hi All, So I have a main routine with an instruction that's executed by XIC "Run" I have a JSR located on a rung below it. In the logic for that...
Replies
6
Views
249
I have a 120V relay, 120V DI card and a analog input. I was wanting to know if i could put a 24V DI and well as a 120V DI card on the same plc...
Replies
1
Views
111
Back
Top Bottom